~ubuntu-dev/ubuntu/lucid/zabbix/lucid-201002110857

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-06-04 09:22:37 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080604092237-zgwq7kmraj1oohoz
Tags: 1:1.4.5-1ubuntu1
* Merge from debian unstable, remaining changes: 
  + fixing missing pid directory in /var/run
* Added the same patch to debian/zabbix-server-{mysql,pgsql}.zabbix-server.init
  (LP: #172775)

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.60.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
8
## --------------------- ##
17
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
17
  # is contrary to our usage.  Disable this feature.
19
18
  alias -g '${1+"$@"}'='"$@"'
20
 
  setopt NO_GLOB_SUBST
21
 
else
22
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
23
21
fi
24
 
BIN_SH=xpg4; export BIN_SH # for Tru64
25
22
DUALCASE=1; export DUALCASE # for MKS sh
26
23
 
27
 
 
28
 
# PATH needs CR
29
 
# Avoid depending upon Character Ranges.
30
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33
 
as_cr_digits='0123456789'
34
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
35
 
 
36
 
# The user is always right.
37
 
if test "${PATH_SEPARATOR+set}" != set; then
38
 
  echo "#! /bin/sh" >conf$$.sh
39
 
  echo  "exit 0"   >>conf$$.sh
40
 
  chmod +x conf$$.sh
41
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42
 
    PATH_SEPARATOR=';'
43
 
  else
44
 
    PATH_SEPARATOR=:
45
 
  fi
46
 
  rm -f conf$$.sh
47
 
fi
48
 
 
49
24
# Support unset when possible.
50
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51
26
  as_unset=unset
54
29
fi
55
30
 
56
31
 
57
 
# IFS
58
 
# We need space, tab and new line, in precisely that order.  Quoting is
59
 
# there to prevent editors from complaining about space-tab.
60
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61
 
# splitting by setting IFS to empty value.)
62
 
as_nl='
63
 
'
64
 
IFS=" ""        $as_nl"
65
 
 
66
 
# Find who we are.  Look in the path if we contain no directory separator.
67
 
case $0 in
68
 
  *[\\/]* ) as_myself=$0 ;;
69
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70
 
for as_dir in $PATH
71
 
do
72
 
  IFS=$as_save_IFS
73
 
  test -z "$as_dir" && as_dir=.
74
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75
 
done
76
 
IFS=$as_save_IFS
77
 
 
78
 
     ;;
79
 
esac
80
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
81
 
# in which case we are not to be found in the path.
82
 
if test "x$as_myself" = x; then
83
 
  as_myself=$0
84
 
fi
85
 
if test ! -f "$as_myself"; then
86
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87
 
  { (exit 1); exit 1; }
88
 
fi
89
 
 
90
32
# Work around bugs in pre-3.0 UWIN ksh.
91
 
for as_var in ENV MAIL MAILPATH
92
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93
 
done
 
33
$as_unset ENV MAIL MAILPATH
94
34
PS1='$ '
95
35
PS2='> '
96
36
PS4='+ '
104
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105
45
    eval $as_var=C; export $as_var
106
46
  else
107
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
47
    $as_unset $as_var
108
48
  fi
109
49
done
110
50
 
111
51
# Required to use basename.
112
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
113
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
114
53
  as_expr=expr
115
54
else
116
55
  as_expr=false
117
56
fi
118
57
 
119
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
120
59
  as_basename=basename
121
60
else
122
61
  as_basename=false
124
63
 
125
64
 
126
65
# Name of the executable.
127
 
as_me=`$as_basename -- "$0" ||
 
66
as_me=`$as_basename "$0" ||
128
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129
68
         X"$0" : 'X\(//\)$' \| \
130
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
131
71
echo X/"$0" |
132
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
133
 
            s//\1/
134
 
            q
135
 
          }
136
 
          /^X\/\(\/\/\)$/{
137
 
            s//\1/
138
 
            q
139
 
          }
140
 
          /^X\/\(\/\).*/{
141
 
            s//\1/
142
 
            q
143
 
          }
144
 
          s/.*/./; q'`
145
 
 
146
 
# CDPATH.
147
 
$as_unset CDPATH
148
 
 
149
 
 
150
 
if test "x$CONFIG_SHELL" = x; then
151
 
  if (eval ":") 2>/dev/null; then
152
 
  as_have_required=yes
153
 
else
154
 
  as_have_required=no
155
 
fi
156
 
 
157
 
  if test $as_have_required = yes &&     (eval ":
158
 
(as_func_return () {
159
 
  (exit \$1)
160
 
}
161
 
as_func_success () {
162
 
  as_func_return 0
163
 
}
164
 
as_func_failure () {
165
 
  as_func_return 1
166
 
}
167
 
as_func_ret_success () {
168
 
  return 0
169
 
}
170
 
as_func_ret_failure () {
171
 
  return 1
172
 
}
173
 
 
174
 
exitcode=0
175
 
if as_func_success; then
176
 
  :
177
 
else
178
 
  exitcode=1
179
 
  echo as_func_success failed.
180
 
fi
181
 
 
182
 
if as_func_failure; then
183
 
  exitcode=1
184
 
  echo as_func_failure succeeded.
185
 
fi
186
 
 
187
 
if as_func_ret_success; then
188
 
  :
189
 
else
190
 
  exitcode=1
191
 
  echo as_func_ret_success failed.
192
 
fi
193
 
 
194
 
if as_func_ret_failure; then
195
 
  exitcode=1
196
 
  echo as_func_ret_failure succeeded.
197
 
fi
198
 
 
199
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200
 
  :
201
 
else
202
 
  exitcode=1
203
 
  echo positional parameters were not saved.
204
 
fi
205
 
 
206
 
test \$exitcode = 0) || { (exit 1); exit 1; }
207
 
 
208
 
(
209
 
  as_lineno_1=\$LINENO
210
 
  as_lineno_2=\$LINENO
211
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213
 
") 2> /dev/null; then
214
 
  :
215
 
else
216
 
  as_candidate_shells=
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
217
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218
 
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219
132
do
220
133
  IFS=$as_save_IFS
221
134
  test -z "$as_dir" && as_dir=.
222
 
  case $as_dir in
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
223
137
         /*)
224
 
           for as_base in sh bash ksh sh5; do
225
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226
 
           done;;
227
 
       esac
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
228
152
done
229
 
IFS=$as_save_IFS
230
 
 
231
 
 
232
 
      for as_shell in $as_candidate_shells $SHELL; do
233
 
         # Try only shells that exist, to save several forks.
234
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
236
 
# Be Bourne compatible
237
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238
 
  emulate sh
239
 
  NULLCMD=:
240
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241
 
  # is contrary to our usage.  Disable this feature.
242
 
  alias -g '${1+"$@"}'='"$@"'
243
 
  setopt NO_GLOB_SUBST
244
 
else
245
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246
 
fi
247
 
BIN_SH=xpg4; export BIN_SH # for Tru64
248
 
DUALCASE=1; export DUALCASE # for MKS sh
249
 
 
250
 
:
251
 
_ASEOF
252
 
}; then
253
 
  CONFIG_SHELL=$as_shell
254
 
               as_have_required=yes
255
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
256
 
# Be Bourne compatible
257
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258
 
  emulate sh
259
 
  NULLCMD=:
260
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261
 
  # is contrary to our usage.  Disable this feature.
262
 
  alias -g '${1+"$@"}'='"$@"'
263
 
  setopt NO_GLOB_SUBST
264
 
else
265
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266
 
fi
267
 
BIN_SH=xpg4; export BIN_SH # for Tru64
268
 
DUALCASE=1; export DUALCASE # for MKS sh
269
 
 
270
 
:
271
 
(as_func_return () {
272
 
  (exit $1)
273
 
}
274
 
as_func_success () {
275
 
  as_func_return 0
276
 
}
277
 
as_func_failure () {
278
 
  as_func_return 1
279
 
}
280
 
as_func_ret_success () {
281
 
  return 0
282
 
}
283
 
as_func_ret_failure () {
284
 
  return 1
285
 
}
286
 
 
287
 
exitcode=0
288
 
if as_func_success; then
289
 
  :
290
 
else
291
 
  exitcode=1
292
 
  echo as_func_success failed.
293
 
fi
294
 
 
295
 
if as_func_failure; then
296
 
  exitcode=1
297
 
  echo as_func_failure succeeded.
298
 
fi
299
 
 
300
 
if as_func_ret_success; then
301
 
  :
302
 
else
303
 
  exitcode=1
304
 
  echo as_func_ret_success failed.
305
 
fi
306
 
 
307
 
if as_func_ret_failure; then
308
 
  exitcode=1
309
 
  echo as_func_ret_failure succeeded.
310
 
fi
311
 
 
312
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
313
 
  :
314
 
else
315
 
  exitcode=1
316
 
  echo positional parameters were not saved.
317
 
fi
318
 
 
319
 
test $exitcode = 0) || { (exit 1); exit 1; }
320
 
 
321
 
(
322
 
  as_lineno_1=$LINENO
323
 
  as_lineno_2=$LINENO
324
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
325
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
 
 
327
 
_ASEOF
328
 
}; then
329
 
  break
330
 
fi
331
 
 
332
 
fi
333
 
 
334
 
      done
335
 
 
336
 
      if test "x$CONFIG_SHELL" != x; then
337
 
  for as_var in BASH_ENV ENV
338
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339
 
        done
340
 
        export CONFIG_SHELL
341
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342
 
fi
343
 
 
344
 
 
345
 
    if test $as_have_required = no; then
346
 
  echo This script requires a shell more modern than all the
347
 
      echo shells that I found on your system.  Please install a
348
 
      echo modern shell, or manually run the script under such a
349
 
      echo shell if you do have one.
350
 
      { (exit 1); exit 1; }
351
 
fi
352
 
 
353
 
 
354
 
fi
355
 
 
356
 
fi
357
 
 
358
 
 
359
 
 
360
 
(eval "as_func_return () {
361
 
  (exit \$1)
362
 
}
363
 
as_func_success () {
364
 
  as_func_return 0
365
 
}
366
 
as_func_failure () {
367
 
  as_func_return 1
368
 
}
369
 
as_func_ret_success () {
370
 
  return 0
371
 
}
372
 
as_func_ret_failure () {
373
 
  return 1
374
 
}
375
 
 
376
 
exitcode=0
377
 
if as_func_success; then
378
 
  :
379
 
else
380
 
  exitcode=1
381
 
  echo as_func_success failed.
382
 
fi
383
 
 
384
 
if as_func_failure; then
385
 
  exitcode=1
386
 
  echo as_func_failure succeeded.
387
 
fi
388
 
 
389
 
if as_func_ret_success; then
390
 
  :
391
 
else
392
 
  exitcode=1
393
 
  echo as_func_ret_success failed.
394
 
fi
395
 
 
396
 
if as_func_ret_failure; then
397
 
  exitcode=1
398
 
  echo as_func_ret_failure succeeded.
399
 
fi
400
 
 
401
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402
 
  :
403
 
else
404
 
  exitcode=1
405
 
  echo positional parameters were not saved.
406
 
fi
407
 
 
408
 
test \$exitcode = 0") || {
409
 
  echo No shell found that supports shell functions.
410
 
  echo Please tell autoconf@gnu.org about your system,
411
 
  echo including any error possibly output before this
412
 
  echo message
413
 
}
414
 
 
415
 
 
416
 
 
417
 
  as_lineno_1=$LINENO
418
 
  as_lineno_2=$LINENO
419
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
420
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
153
;;
 
154
  esac
421
155
 
422
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
424
 
  # line-number line after each line using $LINENO; the second 'sed'
425
 
  # does the real work.  The second script uses 'N' to pair each
426
 
  # line-number line with the line containing $LINENO, and appends
427
 
  # trailing '-' during substitution so that $LINENO is not a special
428
 
  # case at line end.
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
429
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
432
 
  sed -n '
433
 
    p
434
 
    /[$]LINENO/=
435
 
  ' <$as_myself |
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
436
165
    sed '
437
 
      s/[$]LINENO.*/&-/
438
 
      t lineno
439
 
      b
440
 
      :lineno
441
166
      N
442
 
      :loop
443
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
444
170
      t loop
445
 
      s/-\n.*//
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
446
173
    ' >$as_me.lineno &&
447
 
  chmod +x "$as_me.lineno" ||
 
174
  chmod +x $as_me.lineno ||
448
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449
176
   { (exit 1); exit 1; }; }
450
177
 
451
178
  # Don't try to exec as it changes $[0], causing all sort of problems
452
179
  # (the dirname of $[0] is not the place where we might find the
453
 
  # original and so on.  Autoconf is especially sensitive to this).
454
 
  . "./$as_me.lineno"
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
455
182
  # Exit status is that of the last command.
456
183
  exit
457
184
}
458
185
 
459
186
 
460
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461
 
  as_dirname=dirname
462
 
else
463
 
  as_dirname=false
464
 
fi
465
 
 
466
 
ECHO_C= ECHO_N= ECHO_T=
467
 
case `echo -n x` in
468
 
-n*)
469
 
  case `echo 'x\c'` in
470
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471
 
  *)   ECHO_C='\c';;
472
 
  esac;;
473
 
*)
474
 
  ECHO_N='-n';;
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
475
192
esac
476
193
 
477
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
478
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
479
195
  as_expr=expr
480
196
else
481
197
  as_expr=false
482
198
fi
483
199
 
484
200
rm -f conf$$ conf$$.exe conf$$.file
485
 
if test -d conf$$.dir; then
486
 
  rm -f conf$$.dir/conf$$.file
487
 
else
488
 
  rm -f conf$$.dir
489
 
  mkdir conf$$.dir
490
 
fi
491
201
echo >conf$$.file
492
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
493
 
  as_ln_s='ln -s'
494
 
  # ... but there are two gotchas:
495
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
 
  # In both cases, we have to default to `cp -p'.
498
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
499
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
500
211
elif ln conf$$.file conf$$ 2>/dev/null; then
501
212
  as_ln_s=ln
502
213
else
503
214
  as_ln_s='cp -p'
504
215
fi
505
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
 
rmdir conf$$.dir 2>/dev/null
 
216
rm -f conf$$ conf$$.exe conf$$.file
507
217
 
508
218
if mkdir -p . 2>/dev/null; then
509
219
  as_mkdir_p=:
512
222
  as_mkdir_p=false
513
223
fi
514
224
 
515
 
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516
 
# systems may use methods other than mode bits to determine executability.
517
 
cat >conf$$.file <<_ASEOF
518
 
#! /bin/sh
519
 
exit 0
520
 
_ASEOF
521
 
chmod +x conf$$.file
522
 
if test -x conf$$.file >/dev/null 2>&1; then
523
 
  as_executable_p="test -x"
524
 
else
525
 
  as_executable_p=:
526
 
fi
527
 
rm -f conf$$.file
 
225
as_executable_p="test -f"
528
226
 
529
227
# Sed expression to map a string onto a valid CPP name.
530
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
232
 
535
233
 
536
 
 
537
 
exec 7<&0 </dev/null 6>&1
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
538
243
 
539
244
# Name of the host.
540
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541
246
# so uname gets run too.
542
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
248
 
 
249
exec 6>&1
 
250
 
544
251
#
545
252
# Initializations.
546
253
#
547
254
ac_default_prefix=/usr/local
548
 
ac_clean_files=
549
255
ac_config_libobj_dir=.
550
 
LIBOBJS=
551
256
cross_compiling=no
552
257
subdirs=
553
258
MFLAGS=
554
259
MAKEFLAGS=
555
260
SHELL=${CONFIG_SHELL-/bin/sh}
556
261
 
 
262
# Maximum number of lines to put in a shell here document.
 
263
# This variable seems obsolete.  It should probably be removed, and
 
264
# only ac_max_sed_lines should be used.
 
265
: ${ac_max_here_lines=38}
 
266
 
557
267
# Identity of this package.
558
268
PACKAGE_NAME=
559
269
PACKAGE_TARNAME=
590
300
#endif
591
301
#if HAVE_INTTYPES_H
592
302
# include <inttypes.h>
593
 
#endif
594
 
#if HAVE_STDINT_H
595
 
# include <stdint.h>
 
303
#else
 
304
# if HAVE_STDINT_H
 
305
#  include <stdint.h>
 
306
# endif
596
307
#endif
597
308
#if HAVE_UNISTD_H
598
309
# include <unistd.h>
599
310
#endif"
600
311
 
601
 
ac_subst_vars='SHELL
602
 
PATH_SEPARATOR
603
 
PACKAGE_NAME
604
 
PACKAGE_TARNAME
605
 
PACKAGE_VERSION
606
 
PACKAGE_STRING
607
 
PACKAGE_BUGREPORT
608
 
exec_prefix
609
 
prefix
610
 
program_transform_name
611
 
bindir
612
 
sbindir
613
 
libexecdir
614
 
datarootdir
615
 
datadir
616
 
sysconfdir
617
 
sharedstatedir
618
 
localstatedir
619
 
includedir
620
 
oldincludedir
621
 
docdir
622
 
infodir
623
 
htmldir
624
 
dvidir
625
 
pdfdir
626
 
psdir
627
 
libdir
628
 
localedir
629
 
mandir
630
 
DEFS
631
 
ECHO_C
632
 
ECHO_N
633
 
ECHO_T
634
 
LIBS
635
 
build_alias
636
 
host_alias
637
 
target_alias
638
 
INSTALL_PROGRAM
639
 
INSTALL_SCRIPT
640
 
INSTALL_DATA
641
 
CYGPATH_W
642
 
PACKAGE
643
 
VERSION
644
 
ACLOCAL
645
 
AUTOCONF
646
 
AUTOMAKE
647
 
AUTOHEADER
648
 
MAKEINFO
649
 
install_sh
650
 
STRIP
651
 
INSTALL_STRIP_PROGRAM
652
 
mkdir_p
653
 
AWK
654
 
SET_MAKE
655
 
am__leading_dot
656
 
AMTAR
657
 
am__tar
658
 
am__untar
659
 
build
660
 
build_cpu
661
 
build_vendor
662
 
build_os
663
 
host
664
 
host_cpu
665
 
host_vendor
666
 
host_os
667
 
CC
668
 
CFLAGS
669
 
LDFLAGS
670
 
CPPFLAGS
671
 
ac_ct_CC
672
 
EXEEXT
673
 
OBJEXT
674
 
DEPDIR
675
 
am__include
676
 
am__quote
677
 
AMDEP_TRUE
678
 
AMDEP_FALSE
679
 
AMDEPBACKSLASH
680
 
CCDEPMODE
681
 
am__fastdepCC_TRUE
682
 
am__fastdepCC_FALSE
683
 
CPP
684
 
GREP
685
 
EGREP
686
 
LIBOBJS
687
 
SERVER_TRUE
688
 
SERVER_FALSE
689
 
AGENT_TRUE
690
 
AGENT_FALSE
691
 
SQLORA8_CPPFLAGS
692
 
SQLORA8_LDFLAGS
693
 
ORACLE_CPPFLAGS
694
 
ORACLE_LDFLAGS
695
 
SQLITE3_CPPFLAGS
696
 
SQLITE3_LDFLAGS
697
 
SQLITE3_VERSION
698
 
MYSQL_CONFIG
699
 
MYSQL_VERSION
700
 
MYSQL_CFLAGS
701
 
MYSQL_LDFLAGS
702
 
MYSQL_LIBS
703
 
PG_CONFIG
704
 
POSTGRESQL_VERSION
705
 
POSTGRESQL_CPPFLAGS
706
 
POSTGRESQL_LDFLAGS
707
 
DB_CPPFLAGS
708
 
DB_LDFLAGS
709
 
DB_LIBS
710
 
PKG_CONFIG
711
 
IKSEMEL_CFLAGS
712
 
IKSEMEL_LIBS
713
 
JABBER_CPPFLAGS
714
 
JABBER_LDFLAGS
715
 
_libcurl_config
716
 
LIBCURL_CPPFLAGS
717
 
LIBCURL_LDFLAGS
718
 
LIBCURL_LIBS
719
 
_libnetsnmp_config
720
 
SNMP_CFLAGS
721
 
SNMP_LDFLAGS
722
 
SNMP_LIBS
723
 
SNMP_CPPFLAGS
724
 
SERVER_LDFLAGS
725
 
SERVER_LIBS
726
 
JABBER_TRUE
727
 
JABBER_FALSE
728
 
LDAP_CPPFLAGS
729
 
LDAP_LDFLAGS
730
 
RANLIB
731
 
ARCH
732
 
LTLIBOBJS'
 
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS SERVER_TRUE SERVER_FALSE AGENT_TRUE AGENT_FALSE SQLORA8_CPPFLAGS SQLORA8_LDFLAGS ORACLE_CPPFLAGS ORACLE_LDFLAGS SQLITE3_CPPFLAGS SQLITE3_LDFLAGS SQLITE3_VERSION MYSQL_CONFIG MYSQL_VERSION MYSQL_CFLAGS MYSQL_LDFLAGS MYSQL_LIBS PG_CONFIG POSTGRESQL_VERSION POSTGRESQL_CPPFLAGS POSTGRESQL_LDFLAGS DB_CPPFLAGS DB_LDFLAGS DB_LIBS PKG_CONFIG ac_pt_PKG_CONFIG IKSEMEL_CFLAGS IKSEMEL_LIBS JABBER_CPPFLAGS JABBER_LDFLAGS JABBER_LIBS _libcurl_config LIBCURL_CPPFLAGS LIBCURL_LDFLAGS LIBCURL_LIBS _libnetsnmp_config SNMP_CFLAGS SNMP_LDFLAGS SNMP_LIBS SNMP_CPPFLAGS SERVER_LDFLAGS SERVER_LIBS JABBER_TRUE JABBER_FALSE LDAP_CPPFLAGS LDAP_LDFLAGS RANLIB ARCH LTLIBOBJS'
733
313
ac_subst_files=''
734
 
      ac_precious_vars='build_alias
735
 
host_alias
736
 
target_alias
737
 
CC
738
 
CFLAGS
739
 
LDFLAGS
740
 
CPPFLAGS
741
 
CPP
742
 
PKG_CONFIG
743
 
IKSEMEL_CFLAGS
744
 
IKSEMEL_LIBS'
745
 
 
746
314
 
747
315
# Initialize some variables set by options.
748
316
ac_init_help=
769
337
# and all the variables that are supposed to be based on exec_prefix
770
338
# by default will actually change.
771
339
# Use braces instead of parens because sh, perl, etc. also accept them.
772
 
# (The list follows the same order as the GNU Coding Standards.)
773
340
bindir='${exec_prefix}/bin'
774
341
sbindir='${exec_prefix}/sbin'
775
342
libexecdir='${exec_prefix}/libexec'
776
 
datarootdir='${prefix}/share'
777
 
datadir='${datarootdir}'
 
343
datadir='${prefix}/share'
778
344
sysconfdir='${prefix}/etc'
779
345
sharedstatedir='${prefix}/com'
780
346
localstatedir='${prefix}/var'
 
347
libdir='${exec_prefix}/lib'
781
348
includedir='${prefix}/include'
782
349
oldincludedir='/usr/include'
783
 
docdir='${datarootdir}/doc/${PACKAGE}'
784
 
infodir='${datarootdir}/info'
785
 
htmldir='${docdir}'
786
 
dvidir='${docdir}'
787
 
pdfdir='${docdir}'
788
 
psdir='${docdir}'
789
 
libdir='${exec_prefix}/lib'
790
 
localedir='${datarootdir}/locale'
791
 
mandir='${datarootdir}/man'
 
350
infodir='${prefix}/info'
 
351
mandir='${prefix}/man'
792
352
 
793
353
ac_prev=
794
 
ac_dashdash=
795
354
for ac_option
796
355
do
797
356
  # If the previous option needs an argument, assign it.
798
357
  if test -n "$ac_prev"; then
799
 
    eval $ac_prev=\$ac_option
 
358
    eval "$ac_prev=\$ac_option"
800
359
    ac_prev=
801
360
    continue
802
361
  fi
803
362
 
804
 
  case $ac_option in
805
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806
 
  *)    ac_optarg=yes ;;
807
 
  esac
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
808
364
 
809
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
810
366
 
811
 
  case $ac_dashdash$ac_option in
812
 
  --)
813
 
    ac_dashdash=yes ;;
 
367
  case $ac_option in
814
368
 
815
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
816
370
    ac_prev=bindir ;;
832
386
  --config-cache | -C)
833
387
    cache_file=config.cache ;;
834
388
 
835
 
  -datadir | --datadir | --datadi | --datad)
 
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
836
390
    ac_prev=datadir ;;
837
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
392
  | --da=*)
838
393
    datadir=$ac_optarg ;;
839
394
 
840
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841
 
  | --dataroo | --dataro | --datar)
842
 
    ac_prev=datarootdir ;;
843
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845
 
    datarootdir=$ac_optarg ;;
846
 
 
847
395
  -disable-* | --disable-*)
848
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849
397
    # Reject names that are not valid shell variable names.
851
399
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852
400
   { (exit 1); exit 1; }; }
853
401
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
854
 
    eval enable_$ac_feature=no ;;
855
 
 
856
 
  -docdir | --docdir | --docdi | --doc | --do)
857
 
    ac_prev=docdir ;;
858
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859
 
    docdir=$ac_optarg ;;
860
 
 
861
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862
 
    ac_prev=dvidir ;;
863
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864
 
    dvidir=$ac_optarg ;;
 
402
    eval "enable_$ac_feature=no" ;;
865
403
 
866
404
  -enable-* | --enable-*)
867
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870
408
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871
409
   { (exit 1); exit 1; }; }
872
410
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
873
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
411
    case $ac_option in
 
412
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
413
      *) ac_optarg=yes ;;
 
414
    esac
 
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
874
416
 
875
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897
439
  -host=* | --host=* | --hos=* | --ho=*)
898
440
    host_alias=$ac_optarg ;;
899
441
 
900
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901
 
    ac_prev=htmldir ;;
902
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903
 
  | --ht=*)
904
 
    htmldir=$ac_optarg ;;
905
 
 
906
442
  -includedir | --includedir | --includedi | --included | --include \
907
443
  | --includ | --inclu | --incl | --inc)
908
444
    ac_prev=includedir ;;
927
463
  | --libexe=* | --libex=* | --libe=*)
928
464
    libexecdir=$ac_optarg ;;
929
465
 
930
 
  -localedir | --localedir | --localedi | --localed | --locale)
931
 
    ac_prev=localedir ;;
932
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933
 
    localedir=$ac_optarg ;;
934
 
 
935
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
936
 
  | --localstate | --localstat | --localsta | --localst | --locals)
 
467
  | --localstate | --localstat | --localsta | --localst \
 
468
  | --locals | --local | --loca | --loc | --lo)
937
469
    ac_prev=localstatedir ;;
938
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
940
473
    localstatedir=$ac_optarg ;;
941
474
 
942
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
1002
535
    program_transform_name=$ac_optarg ;;
1003
536
 
1004
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005
 
    ac_prev=pdfdir ;;
1006
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007
 
    pdfdir=$ac_optarg ;;
1008
 
 
1009
 
  -psdir | --psdir | --psdi | --psd | --ps)
1010
 
    ac_prev=psdir ;;
1011
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012
 
    psdir=$ac_optarg ;;
1013
 
 
1014
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015
538
  | -silent | --silent | --silen | --sile | --sil)
1016
539
    silent=yes ;;
1067
590
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1068
591
   { (exit 1); exit 1; }; }
1069
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
1070
 
    eval with_$ac_package=\$ac_optarg ;;
 
593
    case $ac_option in
 
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
595
      *) ac_optarg=yes ;;
 
596
    esac
 
597
    eval "with_$ac_package='$ac_optarg'" ;;
1071
598
 
1072
599
  -without-* | --without-*)
1073
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076
603
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1077
604
   { (exit 1); exit 1; }; }
1078
605
    ac_package=`echo $ac_package | sed 's/-/_/g'`
1079
 
    eval with_$ac_package=no ;;
 
606
    eval "with_$ac_package=no" ;;
1080
607
 
1081
608
  --x)
1082
609
    # Obsolete; use --with-x.
1107
634
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108
635
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109
636
   { (exit 1); exit 1; }; }
1110
 
    eval $ac_envvar=\$ac_optarg
 
637
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
638
    eval "$ac_envvar='$ac_optarg'"
1111
639
    export $ac_envvar ;;
1112
640
 
1113
641
  *)
1127
655
   { (exit 1); exit 1; }; }
1128
656
fi
1129
657
 
1130
 
# Be sure to have absolute directory names.
1131
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1133
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134
 
                libdir localedir mandir
1135
 
do
1136
 
  eval ac_val=\$$ac_var
1137
 
  case $ac_val in
1138
 
    [\\/$]* | ?:[\\/]* )  continue;;
1139
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140
 
  esac
1141
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142
 
   { (exit 1); exit 1; }; }
 
658
# Be sure to have absolute paths.
 
659
for ac_var in exec_prefix prefix
 
660
do
 
661
  eval ac_val=$`echo $ac_var`
 
662
  case $ac_val in
 
663
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
664
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
665
   { (exit 1); exit 1; }; };;
 
666
  esac
 
667
done
 
668
 
 
669
# Be sure to have absolute paths.
 
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
671
              localstatedir libdir includedir oldincludedir infodir mandir
 
672
do
 
673
  eval ac_val=$`echo $ac_var`
 
674
  case $ac_val in
 
675
    [\\/$]* | ?:[\\/]* ) ;;
 
676
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
677
   { (exit 1); exit 1; }; };;
 
678
  esac
1143
679
done
1144
680
 
1145
681
# There might be people who depend on the old broken behavior: `$host'
1166
702
test "$silent" = yes && exec 6>/dev/null
1167
703
 
1168
704
 
1169
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170
 
ac_ls_di=`ls -di .` &&
1171
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1173
 
   { (exit 1); exit 1; }; }
1174
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1176
 
   { (exit 1); exit 1; }; }
1177
 
 
1178
 
 
1179
705
# Find the source files, if location was not specified.
1180
706
if test -z "$srcdir"; then
1181
707
  ac_srcdir_defaulted=yes
1182
 
  # Try the directory containing this script, then the parent directory.
1183
 
  ac_confdir=`$as_dirname -- "$0" ||
 
708
  # Try the directory containing this script, then its parent.
 
709
  ac_confdir=`(dirname "$0") 2>/dev/null ||
1184
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185
711
         X"$0" : 'X\(//\)[^/]' \| \
1186
712
         X"$0" : 'X\(//\)$' \| \
1187
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
713
         X"$0" : 'X\(/\)' \| \
 
714
         .     : '\(.\)' 2>/dev/null ||
1188
715
echo X"$0" |
1189
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190
 
            s//\1/
1191
 
            q
1192
 
          }
1193
 
          /^X\(\/\/\)[^/].*/{
1194
 
            s//\1/
1195
 
            q
1196
 
          }
1197
 
          /^X\(\/\/\)$/{
1198
 
            s//\1/
1199
 
            q
1200
 
          }
1201
 
          /^X\(\/\).*/{
1202
 
            s//\1/
1203
 
            q
1204
 
          }
1205
 
          s/.*/./; q'`
 
716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
718
          /^X\(\/\/\)$/{ s//\1/; q; }
 
719
          /^X\(\/\).*/{ s//\1/; q; }
 
720
          s/.*/./; q'`
1206
721
  srcdir=$ac_confdir
1207
 
  if test ! -r "$srcdir/$ac_unique_file"; then
 
722
  if test ! -r $srcdir/$ac_unique_file; then
1208
723
    srcdir=..
1209
724
  fi
1210
725
else
1211
726
  ac_srcdir_defaulted=no
1212
727
fi
1213
 
if test ! -r "$srcdir/$ac_unique_file"; then
1214
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216
 
   { (exit 1); exit 1; }; }
1217
 
fi
1218
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219
 
ac_abs_confdir=`(
1220
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221
 
   { (exit 1); exit 1; }; }
1222
 
        pwd)`
1223
 
# When building in place, set srcdir=.
1224
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1225
 
  srcdir=.
1226
 
fi
1227
 
# Remove unnecessary trailing slashes from srcdir.
1228
 
# Double slashes in file names in object file debugging info
1229
 
# mess up M-x gdb in Emacs.
1230
 
case $srcdir in
1231
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232
 
esac
1233
 
for ac_var in $ac_precious_vars; do
1234
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1236
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238
 
done
 
728
if test ! -r $srcdir/$ac_unique_file; then
 
729
  if test "$ac_srcdir_defaulted" = yes; then
 
730
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
731
   { (exit 1); exit 1; }; }
 
732
  else
 
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
734
   { (exit 1); exit 1; }; }
 
735
  fi
 
736
fi
 
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
738
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
739
   { (exit 1); exit 1; }; }
 
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
741
ac_env_build_alias_set=${build_alias+set}
 
742
ac_env_build_alias_value=$build_alias
 
743
ac_cv_env_build_alias_set=${build_alias+set}
 
744
ac_cv_env_build_alias_value=$build_alias
 
745
ac_env_host_alias_set=${host_alias+set}
 
746
ac_env_host_alias_value=$host_alias
 
747
ac_cv_env_host_alias_set=${host_alias+set}
 
748
ac_cv_env_host_alias_value=$host_alias
 
749
ac_env_target_alias_set=${target_alias+set}
 
750
ac_env_target_alias_value=$target_alias
 
751
ac_cv_env_target_alias_set=${target_alias+set}
 
752
ac_cv_env_target_alias_value=$target_alias
 
753
ac_env_CC_set=${CC+set}
 
754
ac_env_CC_value=$CC
 
755
ac_cv_env_CC_set=${CC+set}
 
756
ac_cv_env_CC_value=$CC
 
757
ac_env_CFLAGS_set=${CFLAGS+set}
 
758
ac_env_CFLAGS_value=$CFLAGS
 
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_cv_env_CFLAGS_value=$CFLAGS
 
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
762
ac_env_LDFLAGS_value=$LDFLAGS
 
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
766
ac_env_CPPFLAGS_value=$CPPFLAGS
 
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_env_CPP_set=${CPP+set}
 
770
ac_env_CPP_value=$CPP
 
771
ac_cv_env_CPP_set=${CPP+set}
 
772
ac_cv_env_CPP_value=$CPP
 
773
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
774
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
775
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
776
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
777
ac_env_IKSEMEL_CFLAGS_set=${IKSEMEL_CFLAGS+set}
 
778
ac_env_IKSEMEL_CFLAGS_value=$IKSEMEL_CFLAGS
 
779
ac_cv_env_IKSEMEL_CFLAGS_set=${IKSEMEL_CFLAGS+set}
 
780
ac_cv_env_IKSEMEL_CFLAGS_value=$IKSEMEL_CFLAGS
 
781
ac_env_IKSEMEL_LIBS_set=${IKSEMEL_LIBS+set}
 
782
ac_env_IKSEMEL_LIBS_value=$IKSEMEL_LIBS
 
783
ac_cv_env_IKSEMEL_LIBS_set=${IKSEMEL_LIBS+set}
 
784
ac_cv_env_IKSEMEL_LIBS_value=$IKSEMEL_LIBS
1239
785
 
1240
786
#
1241
787
# Report the --help message.
1264
810
  -n, --no-create         do not create output files
1265
811
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1266
812
 
 
813
_ACEOF
 
814
 
 
815
  cat <<_ACEOF
1267
816
Installation directories:
1268
817
  --prefix=PREFIX         install architecture-independent files in PREFIX
1269
818
                          [$ac_default_prefix]
1281
830
  --bindir=DIR           user executables [EPREFIX/bin]
1282
831
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1283
832
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
833
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1284
834
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1285
835
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1286
836
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1287
837
  --libdir=DIR           object code libraries [EPREFIX/lib]
1288
838
  --includedir=DIR       C header files [PREFIX/include]
1289
839
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1290
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1291
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1292
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1293
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1294
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1295
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1296
 
  --htmldir=DIR          html documentation [DOCDIR]
1297
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1298
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1299
 
  --psdir=DIR            ps documentation [DOCDIR]
 
840
  --infodir=DIR          info documentation [PREFIX/info]
 
841
  --mandir=DIR           man documentation [PREFIX/man]
1300
842
_ACEOF
1301
843
 
1302
844
  cat <<\_ACEOF
1324
866
  --enable-static         Build statically linked binaries
1325
867
  --enable-server         Turn on build of server
1326
868
  --enable-agent          Turn on build of agent
 
869
  --enable-ipv6         Turn on support of IPv6
1327
870
 
1328
871
Optional Packages:
1329
872
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1330
873
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1331
874
 
1332
875
What DBMS do you want to use (please select only one):
1333
 
  --with-oracle[=ARG]     use Sqlora8 library [default=no], default is to
1334
 
                          search through a number of common places for the
 
876
  --with-oracle[=ARG]
 
877
                          use Sqlora8 library [default=no], default is
 
878
                          to search through a number of common places for the
1335
879
                          Sqlora8 files.
1336
 
  --with-sqlora8[=ARG]    use Sqlora8 library [default=no], same as
 
880
  --with-sqlora8[=ARG]
 
881
                          use Sqlora8 library [default=no], same as
1337
882
                          --with-oracle.
1338
 
  --with-sqlite3[=ARG]    use SQLite 3 library [default=no], optionally
 
883
  --with-sqlite3[=ARG]
 
884
                          use SQLite 3 library [default=no], optionally
1339
885
                          specify the prefix for sqlite3 library
1340
 
  --with-mysql[=ARG]      use MySQL client library [default=no], optionally
1341
 
                          specify path to mysql_config
1342
 
  --with-pgsql[=ARG]      use PostgreSQL library [default=no], optionally
1343
 
                          specify path to pg_config
 
886
  --with-mysql[=ARG]
 
887
                          use MySQL client library [default=no],
 
888
                          optionally specify path to mysql_config
 
889
  --with-pgsql[=ARG]
 
890
                          use PostgreSQL library [default=no],
 
891
                          optionally specify path to pg_config
1344
892
 
1345
893
If you want to use Jabber protocol for messaging:
1346
 
  --with-jabber[=DIR]     Include Jabber support [default=no]. DIR is the
1347
 
                          iksemel library install directory.
 
894
  --with-jabber[=DIR]
 
895
                          Include Jabber support [default=no]. DIR is
 
896
                          the iksemel library install directory.
1348
897
If you want to use cURL library:
1349
 
  --with-libcurl[=DIR]    use cURL package [default=yes], optionally specify
1350
 
                          path to curl_config
 
898
  --with-libcurl[=DIR]
 
899
                          use cURL package [default=yes], optionally
 
900
                          specify path to curl_config
1351
901
 
1352
902
What SNMP package do you want to use (please select only one):
1353
 
  --with-net-snmp[=ARG]   use NET-SNMP package [default=no], optionally
 
903
  --with-net-snmp[=ARG]
 
904
                          use NET-SNMP package [default=no], optionally
1354
905
                          specify path to net-snmp-config
1355
906
 
1356
 
  --with-ucd-snmp[=ARG]   use UCD-SNMP package [default=no], default is to
1357
 
                          search through a number of common places for the
 
907
  --with-ucd-snmp[=ARG]
 
908
                          use UCD-SNMP package [default=no], default is
 
909
                          to search through a number of common places for the
1358
910
                          UCD-SNMP files.
1359
911
 
1360
912
If you want to check LDAP servers:
1361
 
  --with-ldap[=DIR]       Include LDAP support [default=no]. DIR is the LDAP
1362
 
                          base install directory, default is to search through
1363
 
                          a number of common places for the LDAP files.
 
913
  --with-ldap[=DIR] Include LDAP support [default=no]. DIR is the
 
914
                          LDAP base install directory, default is to search
 
915
                          through a number of common places for the LDAP
 
916
                          files.
1364
917
 
1365
918
 
1366
919
Some influential environment variables:
1368
921
  CFLAGS      C compiler flags
1369
922
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1370
923
              nonstandard directory <lib dir>
1371
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1372
 
              you have headers in a nonstandard directory <include dir>
 
924
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
925
              headers in a nonstandard directory <include dir>
1373
926
  CPP         C preprocessor
1374
927
  PKG_CONFIG  path to pkg-config utility
1375
928
  IKSEMEL_CFLAGS
1381
934
it to find libraries and programs with nonstandard names/locations.
1382
935
 
1383
936
_ACEOF
1384
 
ac_status=$?
1385
937
fi
1386
938
 
1387
939
if test "$ac_init_help" = "recursive"; then
1388
940
  # If there are subdirs, report their specific --help.
 
941
  ac_popdir=`pwd`
1389
942
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390
 
    test -d "$ac_dir" || continue
 
943
    test -d $ac_dir || continue
1391
944
    ac_builddir=.
1392
945
 
1393
 
case "$ac_dir" in
1394
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395
 
*)
 
946
if test "$ac_dir" != .; then
1396
947
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397
 
  # A ".." for each directory in $ac_dir_suffix.
1398
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399
 
  case $ac_top_builddir_sub in
1400
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402
 
  esac ;;
1403
 
esac
1404
 
ac_abs_top_builddir=$ac_pwd
1405
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406
 
# for backward compatibility:
1407
 
ac_top_builddir=$ac_top_build_prefix
 
948
  # A "../" for each directory in $ac_dir_suffix.
 
949
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
950
else
 
951
  ac_dir_suffix= ac_top_builddir=
 
952
fi
1408
953
 
1409
954
case $srcdir in
1410
 
  .)  # We are building in place.
 
955
  .)  # No --srcdir option.  We are building in place.
1411
956
    ac_srcdir=.
1412
 
    ac_top_srcdir=$ac_top_builddir_sub
1413
 
    ac_abs_top_srcdir=$ac_pwd ;;
1414
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
957
    if test -z "$ac_top_builddir"; then
 
958
       ac_top_srcdir=.
 
959
    else
 
960
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
961
    fi ;;
 
962
  [\\/]* | ?:[\\/]* )  # Absolute path.
1415
963
    ac_srcdir=$srcdir$ac_dir_suffix;
1416
 
    ac_top_srcdir=$srcdir
1417
 
    ac_abs_top_srcdir=$srcdir ;;
1418
 
  *) # Relative name.
1419
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1421
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422
 
esac
1423
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
 
 
1425
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1426
 
    # Check for guested configure.
1427
 
    if test -f "$ac_srcdir/configure.gnu"; then
1428
 
      echo &&
1429
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430
 
    elif test -f "$ac_srcdir/configure"; then
1431
 
      echo &&
1432
 
      $SHELL "$ac_srcdir/configure" --help=recursive
 
964
    ac_top_srcdir=$srcdir ;;
 
965
  *) # Relative path.
 
966
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
967
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
968
esac
 
969
 
 
970
# Do not use `cd foo && pwd` to compute absolute paths, because
 
971
# the directories may not exist.
 
972
case `pwd` in
 
973
.) ac_abs_builddir="$ac_dir";;
 
974
*)
 
975
  case "$ac_dir" in
 
976
  .) ac_abs_builddir=`pwd`;;
 
977
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
978
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
979
  esac;;
 
980
esac
 
981
case $ac_abs_builddir in
 
982
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
983
*)
 
984
  case ${ac_top_builddir}. in
 
985
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
986
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
987
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
988
  esac;;
 
989
esac
 
990
case $ac_abs_builddir in
 
991
.) ac_abs_srcdir=$ac_srcdir;;
 
992
*)
 
993
  case $ac_srcdir in
 
994
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
995
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
996
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
997
  esac;;
 
998
esac
 
999
case $ac_abs_builddir in
 
1000
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1001
*)
 
1002
  case $ac_top_srcdir in
 
1003
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1004
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1005
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1006
  esac;;
 
1007
esac
 
1008
 
 
1009
    cd $ac_dir
 
1010
    # Check for guested configure; otherwise get Cygnus style configure.
 
1011
    if test -f $ac_srcdir/configure.gnu; then
 
1012
      echo
 
1013
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1014
    elif test -f $ac_srcdir/configure; then
 
1015
      echo
 
1016
      $SHELL $ac_srcdir/configure  --help=recursive
 
1017
    elif test -f $ac_srcdir/configure.ac ||
 
1018
           test -f $ac_srcdir/configure.in; then
 
1019
      echo
 
1020
      $ac_configure --help
1433
1021
    else
1434
1022
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435
 
    fi || ac_status=$?
1436
 
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1023
    fi
 
1024
    cd "$ac_popdir"
1437
1025
  done
1438
1026
fi
1439
1027
 
1440
 
test -n "$ac_init_help" && exit $ac_status
 
1028
test -n "$ac_init_help" && exit 0
1441
1029
if $ac_init_version; then
1442
1030
  cat <<\_ACEOF
1443
 
configure
1444
 
generated by GNU Autoconf 2.60
1445
1031
 
1446
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1032
Copyright (C) 2003 Free Software Foundation, Inc.
1448
1033
This configure script is free software; the Free Software Foundation
1449
1034
gives unlimited permission to copy, distribute and modify it.
1450
1035
_ACEOF
1451
 
  exit
 
1036
  exit 0
1452
1037
fi
1453
 
cat >config.log <<_ACEOF
 
1038
exec 5>config.log
 
1039
cat >&5 <<_ACEOF
1454
1040
This file contains any messages produced by compilers while
1455
1041
running configure, to aid debugging if configure makes a mistake.
1456
1042
 
1457
1043
It was created by $as_me, which was
1458
 
generated by GNU Autoconf 2.60.  Invocation command line was
 
1044
generated by GNU Autoconf 2.59.  Invocation command line was
1459
1045
 
1460
1046
  $ $0 $@
1461
1047
 
1462
1048
_ACEOF
1463
 
exec 5>>config.log
1464
1049
{
1465
1050
cat <<_ASUNAME
1466
1051
## --------- ##
1479
1064
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1480
1065
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1481
1066
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1067
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1483
1068
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1484
1069
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1485
1070
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1493
1078
  test -z "$as_dir" && as_dir=.
1494
1079
  echo "PATH: $as_dir"
1495
1080
done
1496
 
IFS=$as_save_IFS
1497
1081
 
1498
1082
} >&5
1499
1083
 
1515
1099
ac_configure_args=
1516
1100
ac_configure_args0=
1517
1101
ac_configure_args1=
 
1102
ac_sep=
1518
1103
ac_must_keep_next=false
1519
1104
for ac_pass in 1 2
1520
1105
do
1525
1110
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526
1111
    | -silent | --silent | --silen | --sile | --sil)
1527
1112
      continue ;;
1528
 
    *\'*)
 
1113
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1529
1114
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530
1115
    esac
1531
1116
    case $ac_pass in
1547
1132
          -* ) ac_must_keep_next=true ;;
1548
1133
        esac
1549
1134
      fi
1550
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1135
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1136
      # Get rid of the leading space.
 
1137
      ac_sep=" "
1551
1138
      ;;
1552
1139
    esac
1553
1140
  done
1558
1145
# When interrupted or exit'd, cleanup temporary files, and complete
1559
1146
# config.log.  We remove comments because anyway the quotes in there
1560
1147
# would cause problems or look ugly.
1561
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1562
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1148
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1149
# such as our DU 5.0 friend, will then `close' the trap.
1563
1150
trap 'exit_status=$?
1564
1151
  # Save into config.log some information that might help in debugging.
1565
1152
  {
1572
1159
_ASBOX
1573
1160
    echo
1574
1161
    # The following way of writing the cache mishandles newlines in values,
1575
 
(
1576
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577
 
    eval ac_val=\$$ac_var
1578
 
    case $ac_val in #(
1579
 
    *${as_nl}*)
1580
 
      case $ac_var in #(
1581
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583
 
      esac
1584
 
      case $ac_var in #(
1585
 
      _ | IFS | as_nl) ;; #(
1586
 
      *) $as_unset $ac_var ;;
1587
 
      esac ;;
1588
 
    esac
1589
 
  done
 
1162
{
1590
1163
  (set) 2>&1 |
1591
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592
 
    *${as_nl}ac_space=\ *)
 
1164
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1165
    *ac_space=\ *)
1593
1166
      sed -n \
1594
 
        "s/'\''/'\''\\\\'\'''\''/g;
1595
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596
 
      ;; #(
 
1167
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1168
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1169
      ;;
1597
1170
    *)
1598
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1171
      sed -n \
 
1172
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1599
1173
      ;;
1600
 
    esac |
1601
 
    sort
1602
 
)
 
1174
    esac;
 
1175
}
1603
1176
    echo
1604
1177
 
1605
1178
    cat <<\_ASBOX
1610
1183
    echo
1611
1184
    for ac_var in $ac_subst_vars
1612
1185
    do
1613
 
      eval ac_val=\$$ac_var
1614
 
      case $ac_val in
1615
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616
 
      esac
1617
 
      echo "$ac_var='\''$ac_val'\''"
 
1186
      eval ac_val=$`echo $ac_var`
 
1187
      echo "$ac_var='"'"'$ac_val'"'"'"
1618
1188
    done | sort
1619
1189
    echo
1620
1190
 
1621
1191
    if test -n "$ac_subst_files"; then
1622
1192
      cat <<\_ASBOX
1623
 
## ------------------- ##
1624
 
## File substitutions. ##
1625
 
## ------------------- ##
 
1193
## ------------- ##
 
1194
## Output files. ##
 
1195
## ------------- ##
1626
1196
_ASBOX
1627
1197
      echo
1628
1198
      for ac_var in $ac_subst_files
1629
1199
      do
1630
 
        eval ac_val=\$$ac_var
1631
 
        case $ac_val in
1632
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633
 
        esac
1634
 
        echo "$ac_var='\''$ac_val'\''"
 
1200
        eval ac_val=$`echo $ac_var`
 
1201
        echo "$ac_var='"'"'$ac_val'"'"'"
1635
1202
      done | sort
1636
1203
      echo
1637
1204
    fi
1643
1210
## ----------- ##
1644
1211
_ASBOX
1645
1212
      echo
1646
 
      cat confdefs.h
 
1213
      sed "/^$/d" confdefs.h | sort
1647
1214
      echo
1648
1215
    fi
1649
1216
    test "$ac_signal" != 0 &&
1650
1217
      echo "$as_me: caught signal $ac_signal"
1651
1218
    echo "$as_me: exit $exit_status"
1652
1219
  } >&5
1653
 
  rm -f core *.core core.conftest.* &&
1654
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1220
  rm -f core *.core &&
 
1221
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1655
1222
    exit $exit_status
1656
 
' 0
 
1223
     ' 0
1657
1224
for ac_signal in 1 2 13 15; do
1658
1225
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659
1226
done
1660
1227
ac_signal=0
1661
1228
 
1662
1229
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1663
 
rm -f -r conftest* confdefs.h
 
1230
rm -rf conftest* confdefs.h
 
1231
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1232
echo >confdefs.h
1664
1233
 
1665
1234
# Predefined preprocessor variables.
1666
1235
 
1691
1260
 
1692
1261
# Let the site file select an alternate cache file if it wants to.
1693
1262
# Prefer explicitly selected file to automatically selected ones.
1694
 
if test -n "$CONFIG_SITE"; then
1695
 
  set x "$CONFIG_SITE"
1696
 
elif test "x$prefix" != xNONE; then
1697
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698
 
else
1699
 
  set x "$ac_default_prefix/share/config.site" \
1700
 
        "$ac_default_prefix/etc/config.site"
 
1263
if test -z "$CONFIG_SITE"; then
 
1264
  if test "x$prefix" != xNONE; then
 
1265
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1266
  else
 
1267
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1268
  fi
1701
1269
fi
1702
 
shift
1703
 
for ac_site_file
1704
 
do
 
1270
for ac_site_file in $CONFIG_SITE; do
1705
1271
  if test -r "$ac_site_file"; then
1706
1272
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707
1273
echo "$as_me: loading site script $ac_site_file" >&6;}
1717
1283
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718
1284
echo "$as_me: loading cache $cache_file" >&6;}
1719
1285
    case $cache_file in
1720
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721
 
      *)                      . "./$cache_file";;
 
1286
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1287
      *)                      . ./$cache_file;;
1722
1288
    esac
1723
1289
  fi
1724
1290
else
1730
1296
# Check that the precious variables saved in the cache have kept the same
1731
1297
# value.
1732
1298
ac_cache_corrupted=false
1733
 
for ac_var in $ac_precious_vars; do
 
1299
for ac_var in `(set) 2>&1 |
 
1300
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1734
1301
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735
1302
  eval ac_new_set=\$ac_env_${ac_var}_set
1736
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737
 
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1303
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1304
  eval ac_new_val="\$ac_env_${ac_var}_value"
1738
1305
  case $ac_old_set,$ac_new_set in
1739
1306
    set,)
1740
1307
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1759
1326
  # Pass precious variables to config.status.
1760
1327
  if test "$ac_new_set" = set; then
1761
1328
    case $ac_new_val in
1762
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1329
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1330
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763
1331
    *) ac_arg=$ac_var=$ac_new_val ;;
1764
1332
    esac
1765
1333
    case " $ac_configure_args " in
1776
1344
   { (exit 1); exit 1; }; }
1777
1345
fi
1778
1346
 
1779
 
 
1780
 
 
1781
 
 
1782
 
 
1783
 
 
1784
 
 
1785
 
 
1786
 
 
1787
 
 
1788
 
 
1789
 
 
1790
 
 
1791
 
 
1792
 
 
1793
 
 
1794
 
 
1795
1347
ac_ext=c
1796
1348
ac_cpp='$CPP $CPPFLAGS'
1797
1349
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799
1351
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800
1352
 
1801
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
 
1369
 
 
1370
 
1802
1371
am__api_version="1.9"
1803
1372
ac_aux_dir=
1804
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1805
 
  if test -f "$ac_dir/install-sh"; then
 
1373
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1374
  if test -f $ac_dir/install-sh; then
1806
1375
    ac_aux_dir=$ac_dir
1807
1376
    ac_install_sh="$ac_aux_dir/install-sh -c"
1808
1377
    break
1809
 
  elif test -f "$ac_dir/install.sh"; then
 
1378
  elif test -f $ac_dir/install.sh; then
1810
1379
    ac_aux_dir=$ac_dir
1811
1380
    ac_install_sh="$ac_aux_dir/install.sh -c"
1812
1381
    break
1813
 
  elif test -f "$ac_dir/shtool"; then
 
1382
  elif test -f $ac_dir/shtool; then
1814
1383
    ac_aux_dir=$ac_dir
1815
1384
    ac_install_sh="$ac_aux_dir/shtool install -c"
1816
1385
    break
1817
1386
  fi
1818
1387
done
1819
1388
if test -z "$ac_aux_dir"; then
1820
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1821
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1389
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1390
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1822
1391
   { (exit 1); exit 1; }; }
1823
1392
fi
1824
 
 
1825
 
# These three variables are undocumented and unsupported,
1826
 
# and are intended to be withdrawn in a future Autoconf release.
1827
 
# They can cause serious problems if a builder's source tree is in a directory
1828
 
# whose full name contains unusual characters.
1829
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1830
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1831
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1832
 
 
 
1393
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1394
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1395
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1833
1396
 
1834
1397
# Find a good install program.  We prefer a C program (faster),
1835
1398
# so one script is as good as another.  But avoid the broken or
1844
1407
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1845
1408
# OS/2's system install, which has a completely different semantic
1846
1409
# ./install, which can be erroneously created by make from ./install.sh.
1847
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1848
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
1410
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1411
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1849
1412
if test -z "$INSTALL"; then
1850
1413
if test "${ac_cv_path_install+set}" = set; then
1851
1414
  echo $ECHO_N "(cached) $ECHO_C" >&6
1867
1430
    # by default.
1868
1431
    for ac_prog in ginstall scoinst install; do
1869
1432
      for ac_exec_ext in '' $ac_executable_extensions; do
1870
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
1433
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1871
1434
          if test $ac_prog = install &&
1872
1435
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1873
1436
            # AIX install.  It has an incompatible calling convention.
1886
1449
    ;;
1887
1450
esac
1888
1451
done
1889
 
IFS=$as_save_IFS
1890
1452
 
1891
1453
 
1892
1454
fi
1893
1455
  if test "${ac_cv_path_install+set}" = set; then
1894
1456
    INSTALL=$ac_cv_path_install
1895
1457
  else
1896
 
    # As a last resort, use the slow shell script.  Don't cache a
1897
 
    # value for INSTALL within a source directory, because that will
 
1458
    # As a last resort, use the slow shell script.  We don't cache a
 
1459
    # path for INSTALL within a source directory, because that will
1898
1460
    # break other packages using the cache if that directory is
1899
 
    # removed, or if the value is a relative name.
 
1461
    # removed, or if the path is relative.
1900
1462
    INSTALL=$ac_install_sh
1901
1463
  fi
1902
1464
fi
1903
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1904
 
echo "${ECHO_T}$INSTALL" >&6; }
 
1465
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1466
echo "${ECHO_T}$INSTALL" >&6
1905
1467
 
1906
1468
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1907
1469
# It thinks the first close brace ends the variable substitution.
1911
1473
 
1912
1474
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1913
1475
 
1914
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1915
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
1476
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1477
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1916
1478
# Just in case
1917
1479
sleep 1
1918
1480
echo timestamp > conftest.file
1954
1516
Check your system clock" >&2;}
1955
1517
   { (exit 1); exit 1; }; }
1956
1518
fi
1957
 
{ echo "$as_me:$LINENO: result: yes" >&5
1958
 
echo "${ECHO_T}yes" >&6; }
 
1519
echo "$as_me:$LINENO: result: yes" >&5
 
1520
echo "${ECHO_T}yes" >&6
1959
1521
test "$program_prefix" != NONE &&
1960
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
1522
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1961
1523
# Use a double $ so make ignores it.
1962
1524
test "$program_suffix" != NONE &&
1963
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
1525
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1964
1526
# Double any \ or $.  echo might interpret backslashes.
1965
1527
# By default was `s,x,x', remove it if useless.
1966
1528
cat <<\_ACEOF >conftest.sed
1967
1529
s/[\\$]/&&/g;s/;s,x,x,$//
1968
1530
_ACEOF
1969
1531
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1970
 
rm -f conftest.sed
 
1532
rm conftest.sed
1971
1533
 
1972
1534
# expand $ac_aux_dir to an absolute path
1973
1535
am_aux_dir=`cd $ac_aux_dir && pwd`
2019
1581
do
2020
1582
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2021
1583
set dummy $ac_prog; ac_word=$2
2022
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1584
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024
1586
if test "${ac_cv_prog_AWK+set}" = set; then
2025
1587
  echo $ECHO_N "(cached) $ECHO_C" >&6
2026
1588
else
2033
1595
  IFS=$as_save_IFS
2034
1596
  test -z "$as_dir" && as_dir=.
2035
1597
  for ac_exec_ext in '' $ac_executable_extensions; do
2036
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1598
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037
1599
    ac_cv_prog_AWK="$ac_prog"
2038
1600
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039
1601
    break 2
2040
1602
  fi
2041
1603
done
2042
1604
done
2043
 
IFS=$as_save_IFS
2044
1605
 
2045
1606
fi
2046
1607
fi
2047
1608
AWK=$ac_cv_prog_AWK
2048
1609
if test -n "$AWK"; then
2049
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2050
 
echo "${ECHO_T}$AWK" >&6; }
 
1610
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1611
echo "${ECHO_T}$AWK" >&6
2051
1612
else
2052
 
  { echo "$as_me:$LINENO: result: no" >&5
2053
 
echo "${ECHO_T}no" >&6; }
 
1613
  echo "$as_me:$LINENO: result: no" >&5
 
1614
echo "${ECHO_T}no" >&6
2054
1615
fi
2055
1616
 
2056
 
 
2057
1617
  test -n "$AWK" && break
2058
1618
done
2059
1619
 
2060
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2061
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2062
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2063
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
1620
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1621
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1622
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1623
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2064
1624
  echo $ECHO_N "(cached) $ECHO_C" >&6
2065
1625
else
2066
1626
  cat >conftest.make <<\_ACEOF
2067
 
SHELL = /bin/sh
2068
1627
all:
2069
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
1628
        @echo 'ac_maketemp="$(MAKE)"'
2070
1629
_ACEOF
2071
1630
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2072
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2073
 
  *@@@%%%=?*=@@@%%%*)
2074
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2075
 
  *)
2076
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2077
 
esac
 
1631
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1632
if test -n "$ac_maketemp"; then
 
1633
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1634
else
 
1635
  eval ac_cv_prog_make_${ac_make}_set=no
 
1636
fi
2078
1637
rm -f conftest.make
2079
1638
fi
2080
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2081
 
  { echo "$as_me:$LINENO: result: yes" >&5
2082
 
echo "${ECHO_T}yes" >&6; }
 
1639
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1640
  echo "$as_me:$LINENO: result: yes" >&5
 
1641
echo "${ECHO_T}yes" >&6
2083
1642
  SET_MAKE=
2084
1643
else
2085
 
  { echo "$as_me:$LINENO: result: no" >&5
2086
 
echo "${ECHO_T}no" >&6; }
 
1644
  echo "$as_me:$LINENO: result: no" >&5
 
1645
echo "${ECHO_T}no" >&6
2087
1646
  SET_MAKE="MAKE=${MAKE-make}"
2088
1647
fi
2089
1648
 
2116
1675
 
2117
1676
# Define the identity of the package.
2118
1677
 PACKAGE=zabbix
2119
 
 VERSION=1.4.2
 
1678
 VERSION=1.4.5
2120
1679
 
2121
1680
 
2122
1681
cat >>confdefs.h <<_ACEOF
2154
1713
  if test -n "$ac_tool_prefix"; then
2155
1714
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2156
1715
set dummy ${ac_tool_prefix}strip; ac_word=$2
2157
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2158
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1716
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159
1718
if test "${ac_cv_prog_STRIP+set}" = set; then
2160
1719
  echo $ECHO_N "(cached) $ECHO_C" >&6
2161
1720
else
2168
1727
  IFS=$as_save_IFS
2169
1728
  test -z "$as_dir" && as_dir=.
2170
1729
  for ac_exec_ext in '' $ac_executable_extensions; do
2171
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1730
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172
1731
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2173
1732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174
1733
    break 2
2175
1734
  fi
2176
1735
done
2177
1736
done
2178
 
IFS=$as_save_IFS
2179
1737
 
2180
1738
fi
2181
1739
fi
2182
1740
STRIP=$ac_cv_prog_STRIP
2183
1741
if test -n "$STRIP"; then
2184
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2185
 
echo "${ECHO_T}$STRIP" >&6; }
 
1742
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1743
echo "${ECHO_T}$STRIP" >&6
2186
1744
else
2187
 
  { echo "$as_me:$LINENO: result: no" >&5
2188
 
echo "${ECHO_T}no" >&6; }
 
1745
  echo "$as_me:$LINENO: result: no" >&5
 
1746
echo "${ECHO_T}no" >&6
2189
1747
fi
2190
 
 
2191
1748
 
2192
1749
fi
2193
1750
if test -z "$ac_cv_prog_STRIP"; then
2194
1751
  ac_ct_STRIP=$STRIP
2195
1752
  # Extract the first word of "strip", so it can be a program name with args.
2196
1753
set dummy strip; ac_word=$2
2197
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2198
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1754
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199
1756
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2200
1757
  echo $ECHO_N "(cached) $ECHO_C" >&6
2201
1758
else
2208
1765
  IFS=$as_save_IFS
2209
1766
  test -z "$as_dir" && as_dir=.
2210
1767
  for ac_exec_ext in '' $ac_executable_extensions; do
2211
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1768
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212
1769
    ac_cv_prog_ac_ct_STRIP="strip"
2213
1770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214
1771
    break 2
2215
1772
  fi
2216
1773
done
2217
1774
done
2218
 
IFS=$as_save_IFS
2219
1775
 
 
1776
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2220
1777
fi
2221
1778
fi
2222
1779
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2223
1780
if test -n "$ac_ct_STRIP"; then
2224
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2225
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
1781
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1782
echo "${ECHO_T}$ac_ct_STRIP" >&6
2226
1783
else
2227
 
  { echo "$as_me:$LINENO: result: no" >&5
2228
 
echo "${ECHO_T}no" >&6; }
 
1784
  echo "$as_me:$LINENO: result: no" >&5
 
1785
echo "${ECHO_T}no" >&6
2229
1786
fi
2230
1787
 
2231
 
  if test "x$ac_ct_STRIP" = x; then
2232
 
    STRIP=":"
2233
 
  else
2234
 
    case $cross_compiling:$ac_tool_warned in
2235
 
yes:)
2236
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2237
 
whose name does not start with the host triplet.  If you think this
2238
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2239
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2240
 
whose name does not start with the host triplet.  If you think this
2241
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2242
 
ac_tool_warned=yes ;;
2243
 
esac
2244
 
    STRIP=$ac_ct_STRIP
2245
 
  fi
 
1788
  STRIP=$ac_ct_STRIP
2246
1789
else
2247
1790
  STRIP="$ac_cv_prog_STRIP"
2248
1791
fi
2266
1809
{ echo "$as_me:$LINENO: Configuring $PACKAGE_NAME $PACKAGE_VERSION" >&5
2267
1810
echo "$as_me: Configuring $PACKAGE_NAME $PACKAGE_VERSION" >&6;}
2268
1811
 
2269
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2270
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2271
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2272
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
1812
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1813
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1814
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1815
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2273
1816
  echo $ECHO_N "(cached) $ECHO_C" >&6
2274
1817
else
2275
1818
  cat >conftest.make <<\_ACEOF
2276
 
SHELL = /bin/sh
2277
1819
all:
2278
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
1820
        @echo 'ac_maketemp="$(MAKE)"'
2279
1821
_ACEOF
2280
1822
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2281
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2282
 
  *@@@%%%=?*=@@@%%%*)
2283
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2284
 
  *)
2285
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2286
 
esac
 
1823
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1824
if test -n "$ac_maketemp"; then
 
1825
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1826
else
 
1827
  eval ac_cv_prog_make_${ac_make}_set=no
 
1828
fi
2287
1829
rm -f conftest.make
2288
1830
fi
2289
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2290
 
  { echo "$as_me:$LINENO: result: yes" >&5
2291
 
echo "${ECHO_T}yes" >&6; }
 
1831
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1832
  echo "$as_me:$LINENO: result: yes" >&5
 
1833
echo "${ECHO_T}yes" >&6
2292
1834
  SET_MAKE=
2293
1835
else
2294
 
  { echo "$as_me:$LINENO: result: no" >&5
2295
 
echo "${ECHO_T}no" >&6; }
 
1836
  echo "$as_me:$LINENO: result: no" >&5
 
1837
echo "${ECHO_T}no" >&6
2296
1838
  SET_MAKE="MAKE=${MAKE-make}"
2297
1839
fi
2298
1840
 
2299
1841
 
2300
 
ac_config_headers="$ac_config_headers include/config.h"
 
1842
          ac_config_headers="$ac_config_headers include/config.h"
2301
1843
 
2302
1844
 
2303
1845
# Make sure we can run config.sub.
2304
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2306
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
1846
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1847
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1848
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2307
1849
   { (exit 1); exit 1; }; }
2308
1850
 
2309
 
{ echo "$as_me:$LINENO: checking build system type" >&5
2310
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
1851
echo "$as_me:$LINENO: checking build system type" >&5
 
1852
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2311
1853
if test "${ac_cv_build+set}" = set; then
2312
1854
  echo $ECHO_N "(cached) $ECHO_C" >&6
2313
1855
else
2314
 
  ac_build_alias=$build_alias
2315
 
test "x$ac_build_alias" = x &&
2316
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2317
 
test "x$ac_build_alias" = x &&
 
1856
  ac_cv_build_alias=$build_alias
 
1857
test -z "$ac_cv_build_alias" &&
 
1858
  ac_cv_build_alias=`$ac_config_guess`
 
1859
test -z "$ac_cv_build_alias" &&
2318
1860
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2319
1861
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2320
1862
   { (exit 1); exit 1; }; }
2321
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2322
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2323
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
1863
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1864
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1865
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2324
1866
   { (exit 1); exit 1; }; }
2325
1867
 
2326
1868
fi
2327
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2328
 
echo "${ECHO_T}$ac_cv_build" >&6; }
2329
 
case $ac_cv_build in
2330
 
*-*-*) ;;
2331
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2332
 
echo "$as_me: error: invalid value of canonical build" >&2;}
2333
 
   { (exit 1); exit 1; }; };;
2334
 
esac
 
1869
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1870
echo "${ECHO_T}$ac_cv_build" >&6
2335
1871
build=$ac_cv_build
2336
 
ac_save_IFS=$IFS; IFS='-'
2337
 
set x $ac_cv_build
2338
 
shift
2339
 
build_cpu=$1
2340
 
build_vendor=$2
2341
 
shift; shift
2342
 
# Remember, the first character of IFS is used to create $*,
2343
 
# except with old shells:
2344
 
build_os=$*
2345
 
IFS=$ac_save_IFS
2346
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2347
 
 
2348
 
 
2349
 
{ echo "$as_me:$LINENO: checking host system type" >&5
2350
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
1872
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1873
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1874
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1875
 
 
1876
 
 
1877
echo "$as_me:$LINENO: checking host system type" >&5
 
1878
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2351
1879
if test "${ac_cv_host+set}" = set; then
2352
1880
  echo $ECHO_N "(cached) $ECHO_C" >&6
2353
1881
else
2354
 
  if test "x$host_alias" = x; then
2355
 
  ac_cv_host=$ac_cv_build
2356
 
else
2357
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2359
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
1882
  ac_cv_host_alias=$host_alias
 
1883
test -z "$ac_cv_host_alias" &&
 
1884
  ac_cv_host_alias=$ac_cv_build_alias
 
1885
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1886
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1887
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2360
1888
   { (exit 1); exit 1; }; }
2361
 
fi
2362
1889
 
2363
1890
fi
2364
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2365
 
echo "${ECHO_T}$ac_cv_host" >&6; }
2366
 
case $ac_cv_host in
2367
 
*-*-*) ;;
2368
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2369
 
echo "$as_me: error: invalid value of canonical host" >&2;}
2370
 
   { (exit 1); exit 1; }; };;
2371
 
esac
 
1891
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1892
echo "${ECHO_T}$ac_cv_host" >&6
2372
1893
host=$ac_cv_host
2373
 
ac_save_IFS=$IFS; IFS='-'
2374
 
set x $ac_cv_host
2375
 
shift
2376
 
host_cpu=$1
2377
 
host_vendor=$2
2378
 
shift; shift
2379
 
# Remember, the first character of IFS is used to create $*,
2380
 
# except with old shells:
2381
 
host_os=$*
2382
 
IFS=$ac_save_IFS
2383
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
1894
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1895
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1896
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2384
1897
 
2385
1898
 
2386
1899
 
2392
1905
if test -n "$ac_tool_prefix"; then
2393
1906
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394
1907
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1908
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1909
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397
1910
if test "${ac_cv_prog_CC+set}" = set; then
2398
1911
  echo $ECHO_N "(cached) $ECHO_C" >&6
2399
1912
else
2406
1919
  IFS=$as_save_IFS
2407
1920
  test -z "$as_dir" && as_dir=.
2408
1921
  for ac_exec_ext in '' $ac_executable_extensions; do
2409
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1922
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410
1923
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411
1924
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412
1925
    break 2
2413
1926
  fi
2414
1927
done
2415
1928
done
2416
 
IFS=$as_save_IFS
2417
1929
 
2418
1930
fi
2419
1931
fi
2420
1932
CC=$ac_cv_prog_CC
2421
1933
if test -n "$CC"; then
2422
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2423
 
echo "${ECHO_T}$CC" >&6; }
 
1934
  echo "$as_me:$LINENO: result: $CC" >&5
 
1935
echo "${ECHO_T}$CC" >&6
2424
1936
else
2425
 
  { echo "$as_me:$LINENO: result: no" >&5
2426
 
echo "${ECHO_T}no" >&6; }
 
1937
  echo "$as_me:$LINENO: result: no" >&5
 
1938
echo "${ECHO_T}no" >&6
2427
1939
fi
2428
 
 
2429
1940
 
2430
1941
fi
2431
1942
if test -z "$ac_cv_prog_CC"; then
2432
1943
  ac_ct_CC=$CC
2433
1944
  # Extract the first word of "gcc", so it can be a program name with args.
2434
1945
set dummy gcc; ac_word=$2
2435
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1946
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1947
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437
1948
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438
1949
  echo $ECHO_N "(cached) $ECHO_C" >&6
2439
1950
else
2446
1957
  IFS=$as_save_IFS
2447
1958
  test -z "$as_dir" && as_dir=.
2448
1959
  for ac_exec_ext in '' $ac_executable_extensions; do
2449
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1960
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450
1961
    ac_cv_prog_ac_ct_CC="gcc"
2451
1962
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452
1963
    break 2
2453
1964
  fi
2454
1965
done
2455
1966
done
2456
 
IFS=$as_save_IFS
2457
1967
 
2458
1968
fi
2459
1969
fi
2460
1970
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461
1971
if test -n "$ac_ct_CC"; then
2462
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463
 
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
2464
1974
else
2465
 
  { echo "$as_me:$LINENO: result: no" >&5
2466
 
echo "${ECHO_T}no" >&6; }
 
1975
  echo "$as_me:$LINENO: result: no" >&5
 
1976
echo "${ECHO_T}no" >&6
2467
1977
fi
2468
1978
 
2469
 
  if test "x$ac_ct_CC" = x; then
2470
 
    CC=""
2471
 
  else
2472
 
    case $cross_compiling:$ac_tool_warned in
2473
 
yes:)
2474
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475
 
whose name does not start with the host triplet.  If you think this
2476
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2477
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478
 
whose name does not start with the host triplet.  If you think this
2479
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480
 
ac_tool_warned=yes ;;
2481
 
esac
2482
 
    CC=$ac_ct_CC
2483
 
  fi
 
1979
  CC=$ac_ct_CC
2484
1980
else
2485
1981
  CC="$ac_cv_prog_CC"
2486
1982
fi
2487
1983
 
2488
1984
if test -z "$CC"; then
2489
 
          if test -n "$ac_tool_prefix"; then
2490
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1985
  if test -n "$ac_tool_prefix"; then
 
1986
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491
1987
set dummy ${ac_tool_prefix}cc; ac_word=$2
2492
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1988
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1989
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2494
1990
if test "${ac_cv_prog_CC+set}" = set; then
2495
1991
  echo $ECHO_N "(cached) $ECHO_C" >&6
2496
1992
else
2503
1999
  IFS=$as_save_IFS
2504
2000
  test -z "$as_dir" && as_dir=.
2505
2001
  for ac_exec_ext in '' $ac_executable_extensions; do
2506
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2002
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2507
2003
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2508
2004
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509
2005
    break 2
2510
2006
  fi
2511
2007
done
2512
2008
done
2513
 
IFS=$as_save_IFS
2514
2009
 
2515
2010
fi
2516
2011
fi
2517
2012
CC=$ac_cv_prog_CC
2518
2013
if test -n "$CC"; then
2519
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2520
 
echo "${ECHO_T}$CC" >&6; }
2521
 
else
2522
 
  { echo "$as_me:$LINENO: result: no" >&5
2523
 
echo "${ECHO_T}no" >&6; }
2524
 
fi
2525
 
 
2526
 
 
 
2014
  echo "$as_me:$LINENO: result: $CC" >&5
 
2015
echo "${ECHO_T}$CC" >&6
 
2016
else
 
2017
  echo "$as_me:$LINENO: result: no" >&5
 
2018
echo "${ECHO_T}no" >&6
 
2019
fi
 
2020
 
 
2021
fi
 
2022
if test -z "$ac_cv_prog_CC"; then
 
2023
  ac_ct_CC=$CC
 
2024
  # Extract the first word of "cc", so it can be a program name with args.
 
2025
set dummy cc; ac_word=$2
 
2026
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2027
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2028
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2030
else
 
2031
  if test -n "$ac_ct_CC"; then
 
2032
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2033
else
 
2034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2035
for as_dir in $PATH
 
2036
do
 
2037
  IFS=$as_save_IFS
 
2038
  test -z "$as_dir" && as_dir=.
 
2039
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2040
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2041
    ac_cv_prog_ac_ct_CC="cc"
 
2042
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2043
    break 2
2527
2044
  fi
 
2045
done
 
2046
done
 
2047
 
 
2048
fi
 
2049
fi
 
2050
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2051
if test -n "$ac_ct_CC"; then
 
2052
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2053
echo "${ECHO_T}$ac_ct_CC" >&6
 
2054
else
 
2055
  echo "$as_me:$LINENO: result: no" >&5
 
2056
echo "${ECHO_T}no" >&6
 
2057
fi
 
2058
 
 
2059
  CC=$ac_ct_CC
 
2060
else
 
2061
  CC="$ac_cv_prog_CC"
 
2062
fi
 
2063
 
2528
2064
fi
2529
2065
if test -z "$CC"; then
2530
2066
  # Extract the first word of "cc", so it can be a program name with args.
2531
2067
set dummy cc; ac_word=$2
2532
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2068
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2069
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534
2070
if test "${ac_cv_prog_CC+set}" = set; then
2535
2071
  echo $ECHO_N "(cached) $ECHO_C" >&6
2536
2072
else
2544
2080
  IFS=$as_save_IFS
2545
2081
  test -z "$as_dir" && as_dir=.
2546
2082
  for ac_exec_ext in '' $ac_executable_extensions; do
2547
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548
2084
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549
2085
       ac_prog_rejected=yes
2550
2086
       continue
2555
2091
  fi
2556
2092
done
2557
2093
done
2558
 
IFS=$as_save_IFS
2559
2094
 
2560
2095
if test $ac_prog_rejected = yes; then
2561
2096
  # We found a bogon in the path, so make sure we never use it.
2573
2108
fi
2574
2109
CC=$ac_cv_prog_CC
2575
2110
if test -n "$CC"; then
2576
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2577
 
echo "${ECHO_T}$CC" >&6; }
 
2111
  echo "$as_me:$LINENO: result: $CC" >&5
 
2112
echo "${ECHO_T}$CC" >&6
2578
2113
else
2579
 
  { echo "$as_me:$LINENO: result: no" >&5
2580
 
echo "${ECHO_T}no" >&6; }
 
2114
  echo "$as_me:$LINENO: result: no" >&5
 
2115
echo "${ECHO_T}no" >&6
2581
2116
fi
2582
 
 
2583
2117
 
2584
2118
fi
2585
2119
if test -z "$CC"; then
2586
2120
  if test -n "$ac_tool_prefix"; then
2587
 
  for ac_prog in cl.exe
 
2121
  for ac_prog in cl
2588
2122
  do
2589
2123
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590
2124
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2125
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593
2127
if test "${ac_cv_prog_CC+set}" = set; then
2594
2128
  echo $ECHO_N "(cached) $ECHO_C" >&6
2595
2129
else
2602
2136
  IFS=$as_save_IFS
2603
2137
  test -z "$as_dir" && as_dir=.
2604
2138
  for ac_exec_ext in '' $ac_executable_extensions; do
2605
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2139
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606
2140
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607
2141
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608
2142
    break 2
2609
2143
  fi
2610
2144
done
2611
2145
done
2612
 
IFS=$as_save_IFS
2613
2146
 
2614
2147
fi
2615
2148
fi
2616
2149
CC=$ac_cv_prog_CC
2617
2150
if test -n "$CC"; then
2618
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2619
 
echo "${ECHO_T}$CC" >&6; }
 
2151
  echo "$as_me:$LINENO: result: $CC" >&5
 
2152
echo "${ECHO_T}$CC" >&6
2620
2153
else
2621
 
  { echo "$as_me:$LINENO: result: no" >&5
2622
 
echo "${ECHO_T}no" >&6; }
 
2154
  echo "$as_me:$LINENO: result: no" >&5
 
2155
echo "${ECHO_T}no" >&6
2623
2156
fi
2624
2157
 
2625
 
 
2626
2158
    test -n "$CC" && break
2627
2159
  done
2628
2160
fi
2629
2161
if test -z "$CC"; then
2630
2162
  ac_ct_CC=$CC
2631
 
  for ac_prog in cl.exe
 
2163
  for ac_prog in cl
2632
2164
do
2633
2165
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2634
2166
set dummy $ac_prog; ac_word=$2
2635
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2167
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
2169
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638
2170
  echo $ECHO_N "(cached) $ECHO_C" >&6
2639
2171
else
2646
2178
  IFS=$as_save_IFS
2647
2179
  test -z "$as_dir" && as_dir=.
2648
2180
  for ac_exec_ext in '' $ac_executable_extensions; do
2649
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2181
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
2182
    ac_cv_prog_ac_ct_CC="$ac_prog"
2651
2183
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
2184
    break 2
2653
2185
  fi
2654
2186
done
2655
2187
done
2656
 
IFS=$as_save_IFS
2657
2188
 
2658
2189
fi
2659
2190
fi
2660
2191
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661
2192
if test -n "$ac_ct_CC"; then
2662
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2193
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2194
echo "${ECHO_T}$ac_ct_CC" >&6
2664
2195
else
2665
 
  { echo "$as_me:$LINENO: result: no" >&5
2666
 
echo "${ECHO_T}no" >&6; }
 
2196
  echo "$as_me:$LINENO: result: no" >&5
 
2197
echo "${ECHO_T}no" >&6
2667
2198
fi
2668
2199
 
2669
 
 
2670
2200
  test -n "$ac_ct_CC" && break
2671
2201
done
2672
2202
 
2673
 
  if test "x$ac_ct_CC" = x; then
2674
 
    CC=""
2675
 
  else
2676
 
    case $cross_compiling:$ac_tool_warned in
2677
 
yes:)
2678
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679
 
whose name does not start with the host triplet.  If you think this
2680
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2681
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682
 
whose name does not start with the host triplet.  If you think this
2683
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684
 
ac_tool_warned=yes ;;
2685
 
esac
2686
 
    CC=$ac_ct_CC
2687
 
  fi
 
2203
  CC=$ac_ct_CC
2688
2204
fi
2689
2205
 
2690
2206
fi
2697
2213
   { (exit 1); exit 1; }; }
2698
2214
 
2699
2215
# Provide some information about the compiler.
2700
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2216
echo "$as_me:$LINENO:" \
 
2217
     "checking for C compiler version" >&5
2701
2218
ac_compiler=`set X $ac_compile; echo $2`
2702
 
{ (ac_try="$ac_compiler --version >&5"
2703
 
case "(($ac_try" in
2704
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705
 
  *) ac_try_echo=$ac_try;;
2706
 
esac
2707
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708
 
  (eval "$ac_compiler --version >&5") 2>&5
2709
 
  ac_status=$?
2710
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711
 
  (exit $ac_status); }
2712
 
{ (ac_try="$ac_compiler -v >&5"
2713
 
case "(($ac_try" in
2714
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715
 
  *) ac_try_echo=$ac_try;;
2716
 
esac
2717
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718
 
  (eval "$ac_compiler -v >&5") 2>&5
2719
 
  ac_status=$?
2720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721
 
  (exit $ac_status); }
2722
 
{ (ac_try="$ac_compiler -V >&5"
2723
 
case "(($ac_try" in
2724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725
 
  *) ac_try_echo=$ac_try;;
2726
 
esac
2727
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728
 
  (eval "$ac_compiler -V >&5") 2>&5
 
2219
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2220
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2221
  ac_status=$?
 
2222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2223
  (exit $ac_status); }
 
2224
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2225
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2226
  ac_status=$?
 
2227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2228
  (exit $ac_status); }
 
2229
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2230
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2729
2231
  ac_status=$?
2730
2232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
2233
  (exit $ac_status); }
2750
2252
# Try to create an executable without -o first, disregard a.out.
2751
2253
# It will help us diagnose broken compilers, and finding out an intuition
2752
2254
# of exeext.
2753
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2255
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2256
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2755
2257
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756
 
#
2757
 
# List of possible output files, starting from the most likely.
2758
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759
 
# only as a last resort.  b.out is created by i960 compilers.
2760
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761
 
#
2762
 
# The IRIX 6 linker writes into existing files which may not be
2763
 
# executable, retaining their permissions.  Remove them first so a
2764
 
# subsequent execution test works.
2765
 
ac_rmfiles=
2766
 
for ac_file in $ac_files
2767
 
do
2768
 
  case $ac_file in
2769
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771
 
  esac
2772
 
done
2773
 
rm -f $ac_rmfiles
2774
 
 
2775
 
if { (ac_try="$ac_link_default"
2776
 
case "(($ac_try" in
2777
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778
 
  *) ac_try_echo=$ac_try;;
2779
 
esac
2780
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781
 
  (eval "$ac_link_default") 2>&5
 
2258
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2259
  (eval $ac_link_default) 2>&5
2782
2260
  ac_status=$?
2783
2261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
2262
  (exit $ac_status); }; then
2785
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2788
 
# so that the user can short-circuit this test for compilers unknown to
2789
 
# Autoconf.
2790
 
for ac_file in $ac_files
 
2263
  # Find the output, starting from the most likely.  This scheme is
 
2264
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2265
# resort.
 
2266
 
 
2267
# Be careful to initialize this variable, since it used to be cached.
 
2268
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2269
ac_cv_exeext=
 
2270
# b.out is created by i960 compilers.
 
2271
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2791
2272
do
2792
2273
  test -f "$ac_file" || continue
2793
2274
  case $ac_file in
2794
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2275
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2276
        ;;
 
2277
    conftest.$ac_ext )
 
2278
        # This is the source file.
2795
2279
        ;;
2796
2280
    [ab].out )
2797
2281
        # We found the default executable, but exeext='' is most
2798
2282
        # certainly right.
2799
2283
        break;;
2800
2284
    *.* )
2801
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802
 
        then :; else
2803
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804
 
        fi
2805
 
        # We set ac_cv_exeext here because the later test for it is not
2806
 
        # safe: cross compilers may not add the suffix if given an `-o'
2807
 
        # argument, so we may need to know it at that point already.
2808
 
        # Even if this section looks crufty: it has the advantage of
2809
 
        # actually working.
 
2285
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2286
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2287
        # but it would be cool to find out if it's true.  Does anybody
 
2288
        # maintain Libtool? --akim.
 
2289
        export ac_cv_exeext
2810
2290
        break;;
2811
2291
    * )
2812
2292
        break;;
2813
2293
  esac
2814
2294
done
2815
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
 
 
2817
2295
else
2818
2296
  echo "$as_me: failed program was:" >&5
2819
2297
sed 's/^/| /' conftest.$ac_ext >&5
2826
2304
fi
2827
2305
 
2828
2306
ac_exeext=$ac_cv_exeext
2829
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830
 
echo "${ECHO_T}$ac_file" >&6; }
 
2307
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2308
echo "${ECHO_T}$ac_file" >&6
2831
2309
 
2832
 
# Check that the compiler produces executables we can run.  If not, either
 
2310
# Check the compiler produces executables we can run.  If not, either
2833
2311
# the compiler is broken, or we cross compile.
2834
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2312
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2313
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2836
2314
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837
2315
# If not cross compiling, check that we can run a simple program.
2838
2316
if test "$cross_compiling" != yes; then
2839
2317
  if { ac_try='./$ac_file'
2840
 
  { (case "(($ac_try" in
2841
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842
 
  *) ac_try_echo=$ac_try;;
2843
 
esac
2844
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845
 
  (eval "$ac_try") 2>&5
 
2318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2319
  (eval $ac_try) 2>&5
2846
2320
  ac_status=$?
2847
2321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
2322
  (exit $ac_status); }; }; then
2861
2335
    fi
2862
2336
  fi
2863
2337
fi
2864
 
{ echo "$as_me:$LINENO: result: yes" >&5
2865
 
echo "${ECHO_T}yes" >&6; }
 
2338
echo "$as_me:$LINENO: result: yes" >&5
 
2339
echo "${ECHO_T}yes" >&6
2866
2340
 
2867
2341
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868
2342
ac_clean_files=$ac_clean_files_save
2869
 
# Check that the compiler produces executables we can run.  If not, either
 
2343
# Check the compiler produces executables we can run.  If not, either
2870
2344
# the compiler is broken, or we cross compile.
2871
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874
 
echo "${ECHO_T}$cross_compiling" >&6; }
 
2345
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2346
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2347
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2348
echo "${ECHO_T}$cross_compiling" >&6
2875
2349
 
2876
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878
 
if { (ac_try="$ac_link"
2879
 
case "(($ac_try" in
2880
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881
 
  *) ac_try_echo=$ac_try;;
2882
 
esac
2883
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884
 
  (eval "$ac_link") 2>&5
 
2350
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2351
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2352
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2353
  (eval $ac_link) 2>&5
2885
2354
  ac_status=$?
2886
2355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887
2356
  (exit $ac_status); }; then
2892
2361
for ac_file in conftest.exe conftest conftest.*; do
2893
2362
  test -f "$ac_file" || continue
2894
2363
  case $ac_file in
2895
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2364
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2896
2365
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2366
          export ac_cv_exeext
2897
2367
          break;;
2898
2368
    * ) break;;
2899
2369
  esac
2907
2377
fi
2908
2378
 
2909
2379
rm -f conftest$ac_cv_exeext
2910
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2380
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2381
echo "${ECHO_T}$ac_cv_exeext" >&6
2912
2382
 
2913
2383
rm -f conftest.$ac_ext
2914
2384
EXEEXT=$ac_cv_exeext
2915
2385
ac_exeext=$EXEEXT
2916
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2386
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2387
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2918
2388
if test "${ac_cv_objext+set}" = set; then
2919
2389
  echo $ECHO_N "(cached) $ECHO_C" >&6
2920
2390
else
2934
2404
}
2935
2405
_ACEOF
2936
2406
rm -f conftest.o conftest.obj
2937
 
if { (ac_try="$ac_compile"
2938
 
case "(($ac_try" in
2939
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940
 
  *) ac_try_echo=$ac_try;;
2941
 
esac
2942
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943
 
  (eval "$ac_compile") 2>&5
 
2407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2408
  (eval $ac_compile) 2>&5
2944
2409
  ac_status=$?
2945
2410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
2411
  (exit $ac_status); }; then
2947
 
  for ac_file in conftest.o conftest.obj conftest.*; do
2948
 
  test -f "$ac_file" || continue;
 
2412
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2949
2413
  case $ac_file in
2950
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2414
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2951
2415
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952
2416
       break;;
2953
2417
  esac
2965
2429
 
2966
2430
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967
2431
fi
2968
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2432
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2433
echo "${ECHO_T}$ac_cv_objext" >&6
2970
2434
OBJEXT=$ac_cv_objext
2971
2435
ac_objext=$OBJEXT
2972
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2436
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2437
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2974
2438
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975
2439
  echo $ECHO_N "(cached) $ECHO_C" >&6
2976
2440
else
2993
2457
}
2994
2458
_ACEOF
2995
2459
rm -f conftest.$ac_objext
2996
 
if { (ac_try="$ac_compile"
2997
 
case "(($ac_try" in
2998
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999
 
  *) ac_try_echo=$ac_try;;
3000
 
esac
3001
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002
 
  (eval "$ac_compile") 2>conftest.er1
 
2460
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2461
  (eval $ac_compile) 2>conftest.er1
3003
2462
  ac_status=$?
3004
2463
  grep -v '^ *+' conftest.er1 >conftest.err
3005
2464
  rm -f conftest.er1
3006
2465
  cat conftest.err >&5
3007
2466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
2467
  (exit $ac_status); } &&
3009
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010
 
  { (case "(($ac_try" in
3011
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012
 
  *) ac_try_echo=$ac_try;;
3013
 
esac
3014
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015
 
  (eval "$ac_try") 2>&5
 
2468
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2470
  (eval $ac_try) 2>&5
3016
2471
  ac_status=$?
3017
2472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018
2473
  (exit $ac_status); }; } &&
3019
2474
         { ac_try='test -s conftest.$ac_objext'
3020
 
  { (case "(($ac_try" in
3021
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022
 
  *) ac_try_echo=$ac_try;;
3023
 
esac
3024
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025
 
  (eval "$ac_try") 2>&5
 
2475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2476
  (eval $ac_try) 2>&5
3026
2477
  ac_status=$?
3027
2478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028
2479
  (exit $ac_status); }; }; then
3031
2482
  echo "$as_me: failed program was:" >&5
3032
2483
sed 's/^/| /' conftest.$ac_ext >&5
3033
2484
 
3034
 
        ac_compiler_gnu=no
 
2485
ac_compiler_gnu=no
3035
2486
fi
3036
 
 
3037
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2487
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3038
2488
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
2489
 
3040
2490
fi
3041
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
2491
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2492
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3043
2493
GCC=`test $ac_compiler_gnu = yes && echo yes`
3044
2494
ac_test_CFLAGS=${CFLAGS+set}
3045
2495
ac_save_CFLAGS=$CFLAGS
3046
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
2496
CFLAGS="-g"
 
2497
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2498
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3048
2499
if test "${ac_cv_prog_cc_g+set}" = set; then
3049
2500
  echo $ECHO_N "(cached) $ECHO_C" >&6
3050
2501
else
3051
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3052
 
   ac_c_werror_flag=yes
3053
 
   ac_cv_prog_cc_g=no
3054
 
   CFLAGS="-g"
3055
 
   cat >conftest.$ac_ext <<_ACEOF
3056
 
/* confdefs.h.  */
3057
 
_ACEOF
3058
 
cat confdefs.h >>conftest.$ac_ext
3059
 
cat >>conftest.$ac_ext <<_ACEOF
3060
 
/* end confdefs.h.  */
3061
 
 
3062
 
int
3063
 
main ()
3064
 
{
3065
 
 
3066
 
  ;
3067
 
  return 0;
3068
 
}
3069
 
_ACEOF
3070
 
rm -f conftest.$ac_objext
3071
 
if { (ac_try="$ac_compile"
3072
 
case "(($ac_try" in
3073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074
 
  *) ac_try_echo=$ac_try;;
3075
 
esac
3076
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077
 
  (eval "$ac_compile") 2>conftest.er1
3078
 
  ac_status=$?
3079
 
  grep -v '^ *+' conftest.er1 >conftest.err
3080
 
  rm -f conftest.er1
3081
 
  cat conftest.err >&5
3082
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083
 
  (exit $ac_status); } &&
3084
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085
 
  { (case "(($ac_try" in
3086
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087
 
  *) ac_try_echo=$ac_try;;
3088
 
esac
3089
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090
 
  (eval "$ac_try") 2>&5
3091
 
  ac_status=$?
3092
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093
 
  (exit $ac_status); }; } &&
3094
 
         { ac_try='test -s conftest.$ac_objext'
3095
 
  { (case "(($ac_try" in
3096
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097
 
  *) ac_try_echo=$ac_try;;
3098
 
esac
3099
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100
 
  (eval "$ac_try") 2>&5
3101
 
  ac_status=$?
3102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
 
  (exit $ac_status); }; }; then
3104
 
  ac_cv_prog_cc_g=yes
3105
 
else
3106
 
  echo "$as_me: failed program was:" >&5
3107
 
sed 's/^/| /' conftest.$ac_ext >&5
3108
 
 
3109
 
        CFLAGS=""
3110
 
      cat >conftest.$ac_ext <<_ACEOF
3111
 
/* confdefs.h.  */
3112
 
_ACEOF
3113
 
cat confdefs.h >>conftest.$ac_ext
3114
 
cat >>conftest.$ac_ext <<_ACEOF
3115
 
/* end confdefs.h.  */
3116
 
 
3117
 
int
3118
 
main ()
3119
 
{
3120
 
 
3121
 
  ;
3122
 
  return 0;
3123
 
}
3124
 
_ACEOF
3125
 
rm -f conftest.$ac_objext
3126
 
if { (ac_try="$ac_compile"
3127
 
case "(($ac_try" in
3128
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129
 
  *) ac_try_echo=$ac_try;;
3130
 
esac
3131
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132
 
  (eval "$ac_compile") 2>conftest.er1
3133
 
  ac_status=$?
3134
 
  grep -v '^ *+' conftest.er1 >conftest.err
3135
 
  rm -f conftest.er1
3136
 
  cat conftest.err >&5
3137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138
 
  (exit $ac_status); } &&
3139
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140
 
  { (case "(($ac_try" in
3141
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142
 
  *) ac_try_echo=$ac_try;;
3143
 
esac
3144
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145
 
  (eval "$ac_try") 2>&5
3146
 
  ac_status=$?
3147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148
 
  (exit $ac_status); }; } &&
3149
 
         { ac_try='test -s conftest.$ac_objext'
3150
 
  { (case "(($ac_try" in
3151
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152
 
  *) ac_try_echo=$ac_try;;
3153
 
esac
3154
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155
 
  (eval "$ac_try") 2>&5
3156
 
  ac_status=$?
3157
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158
 
  (exit $ac_status); }; }; then
3159
 
  :
3160
 
else
3161
 
  echo "$as_me: failed program was:" >&5
3162
 
sed 's/^/| /' conftest.$ac_ext >&5
3163
 
 
3164
 
        ac_c_werror_flag=$ac_save_c_werror_flag
3165
 
         CFLAGS="-g"
3166
 
         cat >conftest.$ac_ext <<_ACEOF
3167
 
/* confdefs.h.  */
3168
 
_ACEOF
3169
 
cat confdefs.h >>conftest.$ac_ext
3170
 
cat >>conftest.$ac_ext <<_ACEOF
3171
 
/* end confdefs.h.  */
3172
 
 
3173
 
int
3174
 
main ()
3175
 
{
3176
 
 
3177
 
  ;
3178
 
  return 0;
3179
 
}
3180
 
_ACEOF
3181
 
rm -f conftest.$ac_objext
3182
 
if { (ac_try="$ac_compile"
3183
 
case "(($ac_try" in
3184
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185
 
  *) ac_try_echo=$ac_try;;
3186
 
esac
3187
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188
 
  (eval "$ac_compile") 2>conftest.er1
3189
 
  ac_status=$?
3190
 
  grep -v '^ *+' conftest.er1 >conftest.err
3191
 
  rm -f conftest.er1
3192
 
  cat conftest.err >&5
3193
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
 
  (exit $ac_status); } &&
3195
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196
 
  { (case "(($ac_try" in
3197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198
 
  *) ac_try_echo=$ac_try;;
3199
 
esac
3200
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201
 
  (eval "$ac_try") 2>&5
3202
 
  ac_status=$?
3203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204
 
  (exit $ac_status); }; } &&
3205
 
         { ac_try='test -s conftest.$ac_objext'
3206
 
  { (case "(($ac_try" in
3207
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208
 
  *) ac_try_echo=$ac_try;;
3209
 
esac
3210
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211
 
  (eval "$ac_try") 2>&5
3212
 
  ac_status=$?
3213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214
 
  (exit $ac_status); }; }; then
3215
 
  ac_cv_prog_cc_g=yes
3216
 
else
3217
 
  echo "$as_me: failed program was:" >&5
3218
 
sed 's/^/| /' conftest.$ac_ext >&5
3219
 
 
3220
 
 
3221
 
fi
3222
 
 
3223
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224
 
fi
3225
 
 
3226
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227
 
fi
3228
 
 
3229
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3231
 
fi
3232
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
2502
  cat >conftest.$ac_ext <<_ACEOF
 
2503
/* confdefs.h.  */
 
2504
_ACEOF
 
2505
cat confdefs.h >>conftest.$ac_ext
 
2506
cat >>conftest.$ac_ext <<_ACEOF
 
2507
/* end confdefs.h.  */
 
2508
 
 
2509
int
 
2510
main ()
 
2511
{
 
2512
 
 
2513
  ;
 
2514
  return 0;
 
2515
}
 
2516
_ACEOF
 
2517
rm -f conftest.$ac_objext
 
2518
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2519
  (eval $ac_compile) 2>conftest.er1
 
2520
  ac_status=$?
 
2521
  grep -v '^ *+' conftest.er1 >conftest.err
 
2522
  rm -f conftest.er1
 
2523
  cat conftest.err >&5
 
2524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2525
  (exit $ac_status); } &&
 
2526
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2528
  (eval $ac_try) 2>&5
 
2529
  ac_status=$?
 
2530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2531
  (exit $ac_status); }; } &&
 
2532
         { ac_try='test -s conftest.$ac_objext'
 
2533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2534
  (eval $ac_try) 2>&5
 
2535
  ac_status=$?
 
2536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2537
  (exit $ac_status); }; }; then
 
2538
  ac_cv_prog_cc_g=yes
 
2539
else
 
2540
  echo "$as_me: failed program was:" >&5
 
2541
sed 's/^/| /' conftest.$ac_ext >&5
 
2542
 
 
2543
ac_cv_prog_cc_g=no
 
2544
fi
 
2545
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2546
fi
 
2547
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2548
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3234
2549
if test "$ac_test_CFLAGS" = set; then
3235
2550
  CFLAGS=$ac_save_CFLAGS
3236
2551
elif test $ac_cv_prog_cc_g = yes; then
3246
2561
    CFLAGS=
3247
2562
  fi
3248
2563
fi
3249
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2564
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2565
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2566
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3252
2567
  echo $ECHO_N "(cached) $ECHO_C" >&6
3253
2568
else
3254
 
  ac_cv_prog_cc_c89=no
 
2569
  ac_cv_prog_cc_stdc=no
3255
2570
ac_save_CC=$CC
3256
2571
cat >conftest.$ac_ext <<_ACEOF
3257
2572
/* confdefs.h.  */
3285
2600
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3286
2601
   function prototypes and stuff, but not '\xHH' hex character constants.
3287
2602
   These don't provoke an error unfortunately, instead are silently treated
3288
 
   as 'x'.  The following induces an error, until -std is added to get
 
2603
   as 'x'.  The following induces an error, until -std1 is added to get
3289
2604
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3290
2605
   array size at least.  It's necessary to write '\x00'==0 to get something
3291
 
   that's true only with -std.  */
 
2606
   that's true only with -std1.  */
3292
2607
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
2608
 
3294
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295
 
   inside strings and character constants.  */
3296
 
#define FOO(x) 'x'
3297
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
 
 
3299
2609
int test (int i, double x);
3300
2610
struct s1 {int (*f) (int a);};
3301
2611
struct s2 {int (*f) (double a);};
3310
2620
  return 0;
3311
2621
}
3312
2622
_ACEOF
3313
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2623
# Don't try gcc -ansi; that turns off useful extensions and
 
2624
# breaks some systems' header files.
 
2625
# AIX                   -qlanglvl=ansi
 
2626
# Ultrix and OSF/1      -std1
 
2627
# HP-UX 10.20 and later -Ae
 
2628
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2629
# SVR4                  -Xc -D__EXTENSIONS__
 
2630
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315
2631
do
3316
2632
  CC="$ac_save_CC $ac_arg"
3317
2633
  rm -f conftest.$ac_objext
3318
 
if { (ac_try="$ac_compile"
3319
 
case "(($ac_try" in
3320
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321
 
  *) ac_try_echo=$ac_try;;
3322
 
esac
3323
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324
 
  (eval "$ac_compile") 2>conftest.er1
 
2634
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2635
  (eval $ac_compile) 2>conftest.er1
3325
2636
  ac_status=$?
3326
2637
  grep -v '^ *+' conftest.er1 >conftest.err
3327
2638
  rm -f conftest.er1
3328
2639
  cat conftest.err >&5
3329
2640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330
2641
  (exit $ac_status); } &&
3331
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332
 
  { (case "(($ac_try" in
3333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334
 
  *) ac_try_echo=$ac_try;;
3335
 
esac
3336
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337
 
  (eval "$ac_try") 2>&5
 
2642
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2644
  (eval $ac_try) 2>&5
3338
2645
  ac_status=$?
3339
2646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340
2647
  (exit $ac_status); }; } &&
3341
2648
         { ac_try='test -s conftest.$ac_objext'
3342
 
  { (case "(($ac_try" in
3343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344
 
  *) ac_try_echo=$ac_try;;
3345
 
esac
3346
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347
 
  (eval "$ac_try") 2>&5
 
2649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2650
  (eval $ac_try) 2>&5
3348
2651
  ac_status=$?
3349
2652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350
2653
  (exit $ac_status); }; }; then
3351
 
  ac_cv_prog_cc_c89=$ac_arg
 
2654
  ac_cv_prog_cc_stdc=$ac_arg
 
2655
break
3352
2656
else
3353
2657
  echo "$as_me: failed program was:" >&5
3354
2658
sed 's/^/| /' conftest.$ac_ext >&5
3355
2659
 
3356
 
 
3357
2660
fi
3358
 
 
3359
 
rm -f core conftest.err conftest.$ac_objext
3360
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2661
rm -f conftest.err conftest.$ac_objext
3361
2662
done
3362
 
rm -f conftest.$ac_ext
 
2663
rm -f conftest.$ac_ext conftest.$ac_objext
3363
2664
CC=$ac_save_CC
3364
2665
 
3365
2666
fi
3366
 
# AC_CACHE_VAL
3367
 
case "x$ac_cv_prog_cc_c89" in
3368
 
  x)
3369
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3370
 
echo "${ECHO_T}none needed" >&6; } ;;
3371
 
  xno)
3372
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3373
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
2667
 
 
2668
case "x$ac_cv_prog_cc_stdc" in
 
2669
  x|xno)
 
2670
    echo "$as_me:$LINENO: result: none needed" >&5
 
2671
echo "${ECHO_T}none needed" >&6 ;;
3374
2672
  *)
3375
 
    CC="$CC $ac_cv_prog_cc_c89"
3376
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
2673
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2674
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2675
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3378
2676
esac
3379
2677
 
3380
 
 
 
2678
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2679
# in C++ we need to declare it.  In case someone uses the same compiler
 
2680
# for both compiling C and C++ we need to have the C++ compiler decide
 
2681
# the declaration of exit, since it's the most demanding environment.
 
2682
cat >conftest.$ac_ext <<_ACEOF
 
2683
#ifndef __cplusplus
 
2684
  choke me
 
2685
#endif
 
2686
_ACEOF
 
2687
rm -f conftest.$ac_objext
 
2688
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2689
  (eval $ac_compile) 2>conftest.er1
 
2690
  ac_status=$?
 
2691
  grep -v '^ *+' conftest.er1 >conftest.err
 
2692
  rm -f conftest.er1
 
2693
  cat conftest.err >&5
 
2694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2695
  (exit $ac_status); } &&
 
2696
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2698
  (eval $ac_try) 2>&5
 
2699
  ac_status=$?
 
2700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2701
  (exit $ac_status); }; } &&
 
2702
         { ac_try='test -s conftest.$ac_objext'
 
2703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2704
  (eval $ac_try) 2>&5
 
2705
  ac_status=$?
 
2706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2707
  (exit $ac_status); }; }; then
 
2708
  for ac_declaration in \
 
2709
   '' \
 
2710
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2711
   'extern "C" void std::exit (int); using std::exit;' \
 
2712
   'extern "C" void exit (int) throw ();' \
 
2713
   'extern "C" void exit (int);' \
 
2714
   'void exit (int);'
 
2715
do
 
2716
  cat >conftest.$ac_ext <<_ACEOF
 
2717
/* confdefs.h.  */
 
2718
_ACEOF
 
2719
cat confdefs.h >>conftest.$ac_ext
 
2720
cat >>conftest.$ac_ext <<_ACEOF
 
2721
/* end confdefs.h.  */
 
2722
$ac_declaration
 
2723
#include <stdlib.h>
 
2724
int
 
2725
main ()
 
2726
{
 
2727
exit (42);
 
2728
  ;
 
2729
  return 0;
 
2730
}
 
2731
_ACEOF
 
2732
rm -f conftest.$ac_objext
 
2733
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2734
  (eval $ac_compile) 2>conftest.er1
 
2735
  ac_status=$?
 
2736
  grep -v '^ *+' conftest.er1 >conftest.err
 
2737
  rm -f conftest.er1
 
2738
  cat conftest.err >&5
 
2739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2740
  (exit $ac_status); } &&
 
2741
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2743
  (eval $ac_try) 2>&5
 
2744
  ac_status=$?
 
2745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2746
  (exit $ac_status); }; } &&
 
2747
         { ac_try='test -s conftest.$ac_objext'
 
2748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2749
  (eval $ac_try) 2>&5
 
2750
  ac_status=$?
 
2751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2752
  (exit $ac_status); }; }; then
 
2753
  :
 
2754
else
 
2755
  echo "$as_me: failed program was:" >&5
 
2756
sed 's/^/| /' conftest.$ac_ext >&5
 
2757
 
 
2758
continue
 
2759
fi
 
2760
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2761
  cat >conftest.$ac_ext <<_ACEOF
 
2762
/* confdefs.h.  */
 
2763
_ACEOF
 
2764
cat confdefs.h >>conftest.$ac_ext
 
2765
cat >>conftest.$ac_ext <<_ACEOF
 
2766
/* end confdefs.h.  */
 
2767
$ac_declaration
 
2768
int
 
2769
main ()
 
2770
{
 
2771
exit (42);
 
2772
  ;
 
2773
  return 0;
 
2774
}
 
2775
_ACEOF
 
2776
rm -f conftest.$ac_objext
 
2777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2778
  (eval $ac_compile) 2>conftest.er1
 
2779
  ac_status=$?
 
2780
  grep -v '^ *+' conftest.er1 >conftest.err
 
2781
  rm -f conftest.er1
 
2782
  cat conftest.err >&5
 
2783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2784
  (exit $ac_status); } &&
 
2785
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2787
  (eval $ac_try) 2>&5
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }; } &&
 
2791
         { ac_try='test -s conftest.$ac_objext'
 
2792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2793
  (eval $ac_try) 2>&5
 
2794
  ac_status=$?
 
2795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2796
  (exit $ac_status); }; }; then
 
2797
  break
 
2798
else
 
2799
  echo "$as_me: failed program was:" >&5
 
2800
sed 's/^/| /' conftest.$ac_ext >&5
 
2801
 
 
2802
fi
 
2803
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2804
done
 
2805
rm -f conftest*
 
2806
if test -n "$ac_declaration"; then
 
2807
  echo '#ifdef __cplusplus' >>confdefs.h
 
2808
  echo $ac_declaration      >>confdefs.h
 
2809
  echo '#endif'             >>confdefs.h
 
2810
fi
 
2811
 
 
2812
else
 
2813
  echo "$as_me: failed program was:" >&5
 
2814
sed 's/^/| /' conftest.$ac_ext >&5
 
2815
 
 
2816
fi
 
2817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381
2818
ac_ext=c
3382
2819
ac_cpp='$CPP $CPPFLAGS'
3383
2820
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385
2822
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
2823
DEPDIR="${am__leading_dot}deps"
3387
2824
 
3388
 
ac_config_commands="$ac_config_commands depfiles"
 
2825
          ac_config_commands="$ac_config_commands depfiles"
3389
2826
 
3390
2827
 
3391
2828
am_make=${MAKE-make}
3395
2832
.PHONY: am__doit
3396
2833
END
3397
2834
# If we don't find an include directive, just comment out the code.
3398
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3399
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2835
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2836
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3400
2837
am__include="#"
3401
2838
am__quote=
3402
2839
_am_result=none
3423
2860
fi
3424
2861
 
3425
2862
 
3426
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3427
 
echo "${ECHO_T}$_am_result" >&6; }
 
2863
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2864
echo "${ECHO_T}$_am_result" >&6
3428
2865
rm -f confinc confmf
3429
2866
 
3430
 
# Check whether --enable-dependency-tracking was given.
 
2867
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3431
2868
if test "${enable_dependency_tracking+set}" = set; then
3432
 
  enableval=$enable_dependency_tracking;
3433
 
fi
 
2869
  enableval="$enable_dependency_tracking"
3434
2870
 
 
2871
fi;
3435
2872
if test "x$enable_dependency_tracking" != xno; then
3436
2873
  am_depcomp="$ac_aux_dir/depcomp"
3437
2874
  AMDEPBACKSLASH='\'
3451
2888
 
3452
2889
depcc="$CC"   am_compiler_list=
3453
2890
 
3454
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3455
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
2891
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2892
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3456
2893
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3457
2894
  echo $ECHO_N "(cached) $ECHO_C" >&6
3458
2895
else
3541
2978
fi
3542
2979
 
3543
2980
fi
3544
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3545
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
2981
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2982
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3546
2983
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3547
2984
 
3548
2985
 
3565
3002
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566
3003
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567
3004
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3569
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3005
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3006
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3570
3007
# On Suns, sometimes $CPP names a directory.
3571
3008
if test -n "$CPP" && test -d "$CPP"; then
3572
3009
  CPP=
3600
3037
#endif
3601
3038
                     Syntax error
3602
3039
_ACEOF
3603
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3604
 
case "(($ac_try" in
3605
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606
 
  *) ac_try_echo=$ac_try;;
3607
 
esac
3608
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3040
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3041
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3610
3042
  ac_status=$?
3611
3043
  grep -v '^ *+' conftest.er1 >conftest.err
3612
3044
  rm -f conftest.er1
3631
3063
  # Broken: fails on valid input.
3632
3064
continue
3633
3065
fi
3634
 
 
3635
3066
rm -f conftest.err conftest.$ac_ext
3636
3067
 
3637
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3068
  # OK, works on sane cases.  Now check whether non-existent headers
3638
3069
  # can be detected and how.
3639
3070
  cat >conftest.$ac_ext <<_ACEOF
3640
3071
/* confdefs.h.  */
3644
3075
/* end confdefs.h.  */
3645
3076
#include <ac_nonexistent.h>
3646
3077
_ACEOF
3647
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3648
 
case "(($ac_try" in
3649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650
 
  *) ac_try_echo=$ac_try;;
3651
 
esac
3652
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3078
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3079
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654
3080
  ac_status=$?
3655
3081
  grep -v '^ *+' conftest.er1 >conftest.err
3656
3082
  rm -f conftest.er1
3677
3103
ac_preproc_ok=:
3678
3104
break
3679
3105
fi
3680
 
 
3681
3106
rm -f conftest.err conftest.$ac_ext
3682
3107
 
3683
3108
done
3695
3120
else
3696
3121
  ac_cv_prog_CPP=$CPP
3697
3122
fi
3698
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
3699
 
echo "${ECHO_T}$CPP" >&6; }
 
3123
echo "$as_me:$LINENO: result: $CPP" >&5
 
3124
echo "${ECHO_T}$CPP" >&6
3700
3125
ac_preproc_ok=false
3701
3126
for ac_c_preproc_warn_flag in '' yes
3702
3127
do
3719
3144
#endif
3720
3145
                     Syntax error
3721
3146
_ACEOF
3722
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3723
 
case "(($ac_try" in
3724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725
 
  *) ac_try_echo=$ac_try;;
3726
 
esac
3727
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3147
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3148
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3729
3149
  ac_status=$?
3730
3150
  grep -v '^ *+' conftest.er1 >conftest.err
3731
3151
  rm -f conftest.er1
3750
3170
  # Broken: fails on valid input.
3751
3171
continue
3752
3172
fi
3753
 
 
3754
3173
rm -f conftest.err conftest.$ac_ext
3755
3174
 
3756
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3175
  # OK, works on sane cases.  Now check whether non-existent headers
3757
3176
  # can be detected and how.
3758
3177
  cat >conftest.$ac_ext <<_ACEOF
3759
3178
/* confdefs.h.  */
3763
3182
/* end confdefs.h.  */
3764
3183
#include <ac_nonexistent.h>
3765
3184
_ACEOF
3766
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3767
 
case "(($ac_try" in
3768
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769
 
  *) ac_try_echo=$ac_try;;
3770
 
esac
3771
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3185
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3186
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3773
3187
  ac_status=$?
3774
3188
  grep -v '^ *+' conftest.er1 >conftest.err
3775
3189
  rm -f conftest.er1
3796
3210
ac_preproc_ok=:
3797
3211
break
3798
3212
fi
3799
 
 
3800
3213
rm -f conftest.err conftest.$ac_ext
3801
3214
 
3802
3215
done
3819
3232
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3233
 
3821
3234
 
3822
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3823
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3824
 
if test "${ac_cv_path_GREP+set}" = set; then
3825
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3826
 
else
3827
 
  # Extract the first word of "grep ggrep" to use in msg output
3828
 
if test -z "$GREP"; then
3829
 
set dummy grep ggrep; ac_prog_name=$2
3830
 
if test "${ac_cv_path_GREP+set}" = set; then
3831
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3832
 
else
3833
 
  ac_path_GREP_found=false
3834
 
# Loop through the user's path and test for each of PROGNAME-LIST
3835
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3837
 
do
3838
 
  IFS=$as_save_IFS
3839
 
  test -z "$as_dir" && as_dir=.
3840
 
  for ac_prog in grep ggrep; do
3841
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3842
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3843
 
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3844
 
    # Check for GNU ac_path_GREP and select it if it is found.
3845
 
  # Check for GNU $ac_path_GREP
3846
 
case `"$ac_path_GREP" --version 2>&1` in
3847
 
*GNU*)
3848
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3849
 
*)
3850
 
  ac_count=0
3851
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3852
 
  while :
3853
 
  do
3854
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3855
 
    mv "conftest.tmp" "conftest.in"
3856
 
    cp "conftest.in" "conftest.nl"
3857
 
    echo 'GREP' >> "conftest.nl"
3858
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3859
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3860
 
    ac_count=`expr $ac_count + 1`
3861
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3862
 
      # Best one so far, save it but keep looking for a better one
3863
 
      ac_cv_path_GREP="$ac_path_GREP"
3864
 
      ac_path_GREP_max=$ac_count
3865
 
    fi
3866
 
    # 10*(2^10) chars as input seems more than enough
3867
 
    test $ac_count -gt 10 && break
3868
 
  done
3869
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3870
 
esac
3871
 
 
3872
 
 
3873
 
    $ac_path_GREP_found && break 3
3874
 
  done
3875
 
done
3876
 
 
3877
 
done
3878
 
IFS=$as_save_IFS
3879
 
 
3880
 
 
3881
 
fi
3882
 
 
3883
 
GREP="$ac_cv_path_GREP"
3884
 
if test -z "$GREP"; then
3885
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3886
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3887
 
   { (exit 1); exit 1; }; }
3888
 
fi
3889
 
 
3890
 
else
3891
 
  ac_cv_path_GREP=$GREP
3892
 
fi
3893
 
 
3894
 
 
3895
 
fi
3896
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3897
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3898
 
 GREP="$ac_cv_path_GREP"
3899
 
 
3900
 
 
3901
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
3902
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3903
 
if test "${ac_cv_path_EGREP+set}" = set; then
3904
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3905
 
else
3906
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3907
 
   then ac_cv_path_EGREP="$GREP -E"
3908
 
   else
3909
 
     # Extract the first word of "egrep" to use in msg output
3910
 
if test -z "$EGREP"; then
3911
 
set dummy egrep; ac_prog_name=$2
3912
 
if test "${ac_cv_path_EGREP+set}" = set; then
3913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3914
 
else
3915
 
  ac_path_EGREP_found=false
3916
 
# Loop through the user's path and test for each of PROGNAME-LIST
3917
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919
 
do
3920
 
  IFS=$as_save_IFS
3921
 
  test -z "$as_dir" && as_dir=.
3922
 
  for ac_prog in egrep; do
3923
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3924
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3925
 
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3926
 
    # Check for GNU ac_path_EGREP and select it if it is found.
3927
 
  # Check for GNU $ac_path_EGREP
3928
 
case `"$ac_path_EGREP" --version 2>&1` in
3929
 
*GNU*)
3930
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3931
 
*)
3932
 
  ac_count=0
3933
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3934
 
  while :
3935
 
  do
3936
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3937
 
    mv "conftest.tmp" "conftest.in"
3938
 
    cp "conftest.in" "conftest.nl"
3939
 
    echo 'EGREP' >> "conftest.nl"
3940
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942
 
    ac_count=`expr $ac_count + 1`
3943
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3944
 
      # Best one so far, save it but keep looking for a better one
3945
 
      ac_cv_path_EGREP="$ac_path_EGREP"
3946
 
      ac_path_EGREP_max=$ac_count
3947
 
    fi
3948
 
    # 10*(2^10) chars as input seems more than enough
3949
 
    test $ac_count -gt 10 && break
3950
 
  done
3951
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952
 
esac
3953
 
 
3954
 
 
3955
 
    $ac_path_EGREP_found && break 3
3956
 
  done
3957
 
done
3958
 
 
3959
 
done
3960
 
IFS=$as_save_IFS
3961
 
 
3962
 
 
3963
 
fi
3964
 
 
3965
 
EGREP="$ac_cv_path_EGREP"
3966
 
if test -z "$EGREP"; then
3967
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3968
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3969
 
   { (exit 1); exit 1; }; }
3970
 
fi
3971
 
 
3972
 
else
3973
 
  ac_cv_path_EGREP=$EGREP
3974
 
fi
3975
 
 
3976
 
 
3977
 
   fi
3978
 
fi
3979
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3980
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3981
 
 EGREP="$ac_cv_path_EGREP"
3982
 
 
3983
 
 
3984
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3985
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
3235
echo "$as_me:$LINENO: checking for egrep" >&5
 
3236
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3237
if test "${ac_cv_prog_egrep+set}" = set; then
 
3238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3239
else
 
3240
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3241
    then ac_cv_prog_egrep='grep -E'
 
3242
    else ac_cv_prog_egrep='egrep'
 
3243
    fi
 
3244
fi
 
3245
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3246
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3247
 EGREP=$ac_cv_prog_egrep
 
3248
 
 
3249
 
 
3250
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3251
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3986
3252
if test "${ac_cv_header_stdc+set}" = set; then
3987
3253
  echo $ECHO_N "(cached) $ECHO_C" >&6
3988
3254
else
4006
3272
}
4007
3273
_ACEOF
4008
3274
rm -f conftest.$ac_objext
4009
 
if { (ac_try="$ac_compile"
4010
 
case "(($ac_try" in
4011
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012
 
  *) ac_try_echo=$ac_try;;
4013
 
esac
4014
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015
 
  (eval "$ac_compile") 2>conftest.er1
 
3275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3276
  (eval $ac_compile) 2>conftest.er1
4016
3277
  ac_status=$?
4017
3278
  grep -v '^ *+' conftest.er1 >conftest.err
4018
3279
  rm -f conftest.er1
4019
3280
  cat conftest.err >&5
4020
3281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021
3282
  (exit $ac_status); } &&
4022
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4023
 
  { (case "(($ac_try" in
4024
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025
 
  *) ac_try_echo=$ac_try;;
4026
 
esac
4027
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028
 
  (eval "$ac_try") 2>&5
 
3283
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3285
  (eval $ac_try) 2>&5
4029
3286
  ac_status=$?
4030
3287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
3288
  (exit $ac_status); }; } &&
4032
3289
         { ac_try='test -s conftest.$ac_objext'
4033
 
  { (case "(($ac_try" in
4034
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035
 
  *) ac_try_echo=$ac_try;;
4036
 
esac
4037
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038
 
  (eval "$ac_try") 2>&5
 
3290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3291
  (eval $ac_try) 2>&5
4039
3292
  ac_status=$?
4040
3293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041
3294
  (exit $ac_status); }; }; then
4044
3297
  echo "$as_me: failed program was:" >&5
4045
3298
sed 's/^/| /' conftest.$ac_ext >&5
4046
3299
 
4047
 
        ac_cv_header_stdc=no
 
3300
ac_cv_header_stdc=no
4048
3301
fi
4049
 
 
4050
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3302
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051
3303
 
4052
3304
if test $ac_cv_header_stdc = yes; then
4053
3305
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4103
3355
cat >>conftest.$ac_ext <<_ACEOF
4104
3356
/* end confdefs.h.  */
4105
3357
#include <ctype.h>
4106
 
#include <stdlib.h>
4107
3358
#if ((' ' & 0x0FF) == 0x020)
4108
3359
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4109
3360
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4123
3374
  for (i = 0; i < 256; i++)
4124
3375
    if (XOR (islower (i), ISLOWER (i))
4125
3376
        || toupper (i) != TOUPPER (i))
4126
 
      return 2;
4127
 
  return 0;
 
3377
      exit(2);
 
3378
  exit (0);
4128
3379
}
4129
3380
_ACEOF
4130
3381
rm -f conftest$ac_exeext
4131
 
if { (ac_try="$ac_link"
4132
 
case "(($ac_try" in
4133
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134
 
  *) ac_try_echo=$ac_try;;
4135
 
esac
4136
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137
 
  (eval "$ac_link") 2>&5
 
3382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3383
  (eval $ac_link) 2>&5
4138
3384
  ac_status=$?
4139
3385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140
3386
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4141
 
  { (case "(($ac_try" in
4142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143
 
  *) ac_try_echo=$ac_try;;
4144
 
esac
4145
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146
 
  (eval "$ac_try") 2>&5
 
3387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3388
  (eval $ac_try) 2>&5
4147
3389
  ac_status=$?
4148
3390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149
3391
  (exit $ac_status); }; }; then
4156
3398
( exit $ac_status )
4157
3399
ac_cv_header_stdc=no
4158
3400
fi
4159
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4160
 
fi
4161
 
 
4162
 
 
4163
 
fi
4164
 
fi
4165
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4166
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
3401
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3402
fi
 
3403
fi
 
3404
fi
 
3405
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3406
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4167
3407
if test $ac_cv_header_stdc = yes; then
4168
3408
 
4169
3409
cat >>confdefs.h <<\_ACEOF
4186
3426
                  inttypes.h stdint.h unistd.h
4187
3427
do
4188
3428
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4189
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4190
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4191
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3429
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3430
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3431
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4192
3432
  echo $ECHO_N "(cached) $ECHO_C" >&6
4193
3433
else
4194
3434
  cat >conftest.$ac_ext <<_ACEOF
4202
3442
#include <$ac_header>
4203
3443
_ACEOF
4204
3444
rm -f conftest.$ac_objext
4205
 
if { (ac_try="$ac_compile"
4206
 
case "(($ac_try" in
4207
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208
 
  *) ac_try_echo=$ac_try;;
4209
 
esac
4210
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211
 
  (eval "$ac_compile") 2>conftest.er1
 
3445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3446
  (eval $ac_compile) 2>conftest.er1
4212
3447
  ac_status=$?
4213
3448
  grep -v '^ *+' conftest.er1 >conftest.err
4214
3449
  rm -f conftest.er1
4215
3450
  cat conftest.err >&5
4216
3451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
3452
  (exit $ac_status); } &&
4218
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4219
 
  { (case "(($ac_try" in
4220
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221
 
  *) ac_try_echo=$ac_try;;
4222
 
esac
4223
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224
 
  (eval "$ac_try") 2>&5
 
3453
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3455
  (eval $ac_try) 2>&5
4225
3456
  ac_status=$?
4226
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227
3458
  (exit $ac_status); }; } &&
4228
3459
         { ac_try='test -s conftest.$ac_objext'
4229
 
  { (case "(($ac_try" in
4230
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231
 
  *) ac_try_echo=$ac_try;;
4232
 
esac
4233
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234
 
  (eval "$ac_try") 2>&5
 
3460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3461
  (eval $ac_try) 2>&5
4235
3462
  ac_status=$?
4236
3463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237
3464
  (exit $ac_status); }; }; then
4240
3467
  echo "$as_me: failed program was:" >&5
4241
3468
sed 's/^/| /' conftest.$ac_ext >&5
4242
3469
 
4243
 
        eval "$as_ac_Header=no"
4244
 
fi
4245
 
 
4246
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247
 
fi
4248
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4249
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4250
 
echo "${ECHO_T}$ac_res" >&6; }
 
3470
eval "$as_ac_Header=no"
 
3471
fi
 
3472
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3473
fi
 
3474
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3475
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4251
3476
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4252
3477
  cat >>confdefs.h <<_ACEOF
4253
3478
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338
3563
 
4339
3564
 
4340
3565
 
 
3566
 
4341
3567
for ac_header in stdio.h stdlib.h string.h unistd.h netdb.h signal.h \
4342
3568
  syslog.h time.h errno.h sys/types.h sys/stat.h netinet/in.h \
4343
3569
  math.h sys/socket.h dirent.h ctype.h \
4351
3577
  nlist.h net/if.h kvm.h linux/kernel.h ldap.h getopt.h procinfo.h sys/dk.h \
4352
3578
  sys/resource.h pthread.h windows.h process.h conio.h sys/wait.h regex.h \
4353
3579
  stdarg.h winsock2.h pdh.h psapi.h sys/sem.h sys/ipc.h sys/shm.h Winldap.h \
4354
 
  sys/timeb.h Winber.h lber.h ws2tcpip.h inttypes.h sys/file.h
 
3580
  sys/timeb.h Winber.h lber.h ws2tcpip.h inttypes.h sys/file.h grp.h
4355
3581
do
4356
3582
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4357
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4358
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4359
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4360
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3583
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3584
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3585
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3586
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4361
3587
  echo $ECHO_N "(cached) $ECHO_C" >&6
4362
3588
fi
4363
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4364
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4365
 
echo "${ECHO_T}$ac_res" >&6; }
 
3589
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3590
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4366
3591
else
4367
3592
  # Is the header compilable?
4368
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4369
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
3593
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3594
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4370
3595
cat >conftest.$ac_ext <<_ACEOF
4371
3596
/* confdefs.h.  */
4372
3597
_ACEOF
4377
3602
#include <$ac_header>
4378
3603
_ACEOF
4379
3604
rm -f conftest.$ac_objext
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
 
3605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3606
  (eval $ac_compile) 2>conftest.er1
4387
3607
  ac_status=$?
4388
3608
  grep -v '^ *+' conftest.er1 >conftest.err
4389
3609
  rm -f conftest.er1
4390
3610
  cat conftest.err >&5
4391
3611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
3612
  (exit $ac_status); } &&
4393
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4394
 
  { (case "(($ac_try" in
4395
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396
 
  *) ac_try_echo=$ac_try;;
4397
 
esac
4398
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399
 
  (eval "$ac_try") 2>&5
 
3613
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3615
  (eval $ac_try) 2>&5
4400
3616
  ac_status=$?
4401
3617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402
3618
  (exit $ac_status); }; } &&
4403
3619
         { ac_try='test -s conftest.$ac_objext'
4404
 
  { (case "(($ac_try" in
4405
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406
 
  *) ac_try_echo=$ac_try;;
4407
 
esac
4408
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409
 
  (eval "$ac_try") 2>&5
 
3620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3621
  (eval $ac_try) 2>&5
4410
3622
  ac_status=$?
4411
3623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412
3624
  (exit $ac_status); }; }; then
4415
3627
  echo "$as_me: failed program was:" >&5
4416
3628
sed 's/^/| /' conftest.$ac_ext >&5
4417
3629
 
4418
 
        ac_header_compiler=no
 
3630
ac_header_compiler=no
4419
3631
fi
4420
 
 
4421
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4423
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
3632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3633
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3634
echo "${ECHO_T}$ac_header_compiler" >&6
4424
3635
 
4425
3636
# Is the header present?
4426
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4427
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
3637
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3638
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4428
3639
cat >conftest.$ac_ext <<_ACEOF
4429
3640
/* confdefs.h.  */
4430
3641
_ACEOF
4433
3644
/* end confdefs.h.  */
4434
3645
#include <$ac_header>
4435
3646
_ACEOF
4436
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4437
 
case "(($ac_try" in
4438
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439
 
  *) ac_try_echo=$ac_try;;
4440
 
esac
4441
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3647
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3648
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4443
3649
  ac_status=$?
4444
3650
  grep -v '^ *+' conftest.er1 >conftest.err
4445
3651
  rm -f conftest.er1
4463
3669
 
4464
3670
  ac_header_preproc=no
4465
3671
fi
4466
 
 
4467
3672
rm -f conftest.err conftest.$ac_ext
4468
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4469
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
3673
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3674
echo "${ECHO_T}$ac_header_preproc" >&6
4470
3675
 
4471
3676
# So?  What about this header?
4472
3677
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4490
3695
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4491
3696
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4492
3697
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4493
 
 
 
3698
    (
 
3699
      cat <<\_ASBOX
 
3700
## ------------------------------------------ ##
 
3701
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3702
## ------------------------------------------ ##
 
3703
_ASBOX
 
3704
    ) |
 
3705
      sed "s/^/$as_me: WARNING:     /" >&2
4494
3706
    ;;
4495
3707
esac
4496
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4497
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4498
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3708
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3709
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3710
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4499
3711
  echo $ECHO_N "(cached) $ECHO_C" >&6
4500
3712
else
4501
3713
  eval "$as_ac_Header=\$ac_header_preproc"
4502
3714
fi
4503
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4504
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4505
 
echo "${ECHO_T}$ac_res" >&6; }
 
3715
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3716
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506
3717
 
4507
3718
fi
4508
3719
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4515
3726
done
4516
3727
 
4517
3728
 
4518
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4519
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
3729
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
3730
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4520
3731
if test "${ac_cv_c_const+set}" = set; then
4521
3732
  echo $ECHO_N "(cached) $ECHO_C" >&6
4522
3733
else
4556
3767
    char const *s = 0 ? (char *) 0 : (char const *) 0;
4557
3768
 
4558
3769
    *t++ = 0;
4559
 
    if (s) return 0;
4560
3770
  }
4561
3771
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4562
3772
    int x[] = {25, 17};
4575
3785
  }
4576
3786
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4577
3787
    const int foo = 10;
4578
 
    if (!foo) return 0;
4579
3788
  }
4580
 
  return !x[0] && !zero.x;
4581
3789
#endif
4582
3790
 
4583
3791
  ;
4585
3793
}
4586
3794
_ACEOF
4587
3795
rm -f conftest.$ac_objext
4588
 
if { (ac_try="$ac_compile"
4589
 
case "(($ac_try" in
4590
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591
 
  *) ac_try_echo=$ac_try;;
4592
 
esac
4593
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594
 
  (eval "$ac_compile") 2>conftest.er1
 
3796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3797
  (eval $ac_compile) 2>conftest.er1
4595
3798
  ac_status=$?
4596
3799
  grep -v '^ *+' conftest.er1 >conftest.err
4597
3800
  rm -f conftest.er1
4598
3801
  cat conftest.err >&5
4599
3802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600
3803
  (exit $ac_status); } &&
4601
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4602
 
  { (case "(($ac_try" in
4603
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604
 
  *) ac_try_echo=$ac_try;;
4605
 
esac
4606
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607
 
  (eval "$ac_try") 2>&5
 
3804
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3806
  (eval $ac_try) 2>&5
4608
3807
  ac_status=$?
4609
3808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610
3809
  (exit $ac_status); }; } &&
4611
3810
         { ac_try='test -s conftest.$ac_objext'
4612
 
  { (case "(($ac_try" in
4613
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614
 
  *) ac_try_echo=$ac_try;;
4615
 
esac
4616
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617
 
  (eval "$ac_try") 2>&5
 
3811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3812
  (eval $ac_try) 2>&5
4618
3813
  ac_status=$?
4619
3814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620
3815
  (exit $ac_status); }; }; then
4623
3818
  echo "$as_me: failed program was:" >&5
4624
3819
sed 's/^/| /' conftest.$ac_ext >&5
4625
3820
 
4626
 
        ac_cv_c_const=no
4627
 
fi
4628
 
 
4629
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630
 
fi
4631
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4632
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
3821
ac_cv_c_const=no
 
3822
fi
 
3823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3824
fi
 
3825
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
3826
echo "${ECHO_T}$ac_cv_c_const" >&6
4633
3827
if test $ac_cv_c_const = no; then
4634
3828
 
4635
3829
cat >>confdefs.h <<\_ACEOF
4638
3832
 
4639
3833
fi
4640
3834
 
4641
 
{ echo "$as_me:$LINENO: checking for pid_t" >&5
4642
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
3835
echo "$as_me:$LINENO: checking for pid_t" >&5
 
3836
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4643
3837
if test "${ac_cv_type_pid_t+set}" = set; then
4644
3838
  echo $ECHO_N "(cached) $ECHO_C" >&6
4645
3839
else
4650
3844
cat >>conftest.$ac_ext <<_ACEOF
4651
3845
/* end confdefs.h.  */
4652
3846
$ac_includes_default
4653
 
typedef pid_t ac__type_new_;
4654
3847
int
4655
3848
main ()
4656
3849
{
4657
 
if ((ac__type_new_ *) 0)
 
3850
if ((pid_t *) 0)
4658
3851
  return 0;
4659
 
if (sizeof (ac__type_new_))
 
3852
if (sizeof (pid_t))
4660
3853
  return 0;
4661
3854
  ;
4662
3855
  return 0;
4663
3856
}
4664
3857
_ACEOF
4665
3858
rm -f conftest.$ac_objext
4666
 
if { (ac_try="$ac_compile"
4667
 
case "(($ac_try" in
4668
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669
 
  *) ac_try_echo=$ac_try;;
4670
 
esac
4671
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672
 
  (eval "$ac_compile") 2>conftest.er1
 
3859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3860
  (eval $ac_compile) 2>conftest.er1
4673
3861
  ac_status=$?
4674
3862
  grep -v '^ *+' conftest.er1 >conftest.err
4675
3863
  rm -f conftest.er1
4676
3864
  cat conftest.err >&5
4677
3865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
3866
  (exit $ac_status); } &&
4679
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4680
 
  { (case "(($ac_try" in
4681
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682
 
  *) ac_try_echo=$ac_try;;
4683
 
esac
4684
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685
 
  (eval "$ac_try") 2>&5
 
3867
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3869
  (eval $ac_try) 2>&5
4686
3870
  ac_status=$?
4687
3871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
3872
  (exit $ac_status); }; } &&
4689
3873
         { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
 
3874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3875
  (eval $ac_try) 2>&5
4696
3876
  ac_status=$?
4697
3877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698
3878
  (exit $ac_status); }; }; then
4701
3881
  echo "$as_me: failed program was:" >&5
4702
3882
sed 's/^/| /' conftest.$ac_ext >&5
4703
3883
 
4704
 
        ac_cv_type_pid_t=no
4705
 
fi
4706
 
 
4707
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708
 
fi
4709
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4710
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
3884
ac_cv_type_pid_t=no
 
3885
fi
 
3886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3887
fi
 
3888
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
3889
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4711
3890
if test $ac_cv_type_pid_t = yes; then
4712
3891
  :
4713
3892
else
4719
3898
fi
4720
3899
 
4721
3900
 
4722
 
{ echo "$as_me:$LINENO: checking for library containing socket" >&5
4723
 
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
 
3901
echo "$as_me:$LINENO: checking for library containing socket" >&5
 
3902
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4724
3903
if test "${ac_cv_search_socket+set}" = set; then
4725
3904
  echo $ECHO_N "(cached) $ECHO_C" >&6
4726
3905
else
4727
3906
  ac_func_search_save_LIBS=$LIBS
 
3907
ac_cv_search_socket=no
4728
3908
cat >conftest.$ac_ext <<_ACEOF
4729
3909
/* confdefs.h.  */
4730
3910
_ACEOF
4732
3912
cat >>conftest.$ac_ext <<_ACEOF
4733
3913
/* end confdefs.h.  */
4734
3914
 
4735
 
/* Override any GCC internal prototype to avoid an error.
4736
 
   Use char because int might match the return type of a GCC
4737
 
   builtin and then its argument prototype would still apply.  */
 
3915
/* Override any gcc2 internal prototype to avoid an error.  */
4738
3916
#ifdef __cplusplus
4739
3917
extern "C"
4740
3918
#endif
 
3919
/* We use char because int might match the return type of a gcc2
 
3920
   builtin and then its argument prototype would still apply.  */
4741
3921
char socket ();
4742
3922
int
4743
3923
main ()
4744
3924
{
4745
 
return socket ();
 
3925
socket ();
4746
3926
  ;
4747
3927
  return 0;
4748
3928
}
4749
3929
_ACEOF
4750
 
for ac_lib in '' socket; do
4751
 
  if test -z "$ac_lib"; then
4752
 
    ac_res="none required"
4753
 
  else
4754
 
    ac_res=-l$ac_lib
 
3930
rm -f conftest.$ac_objext conftest$ac_exeext
 
3931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3932
  (eval $ac_link) 2>conftest.er1
 
3933
  ac_status=$?
 
3934
  grep -v '^ *+' conftest.er1 >conftest.err
 
3935
  rm -f conftest.er1
 
3936
  cat conftest.err >&5
 
3937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3938
  (exit $ac_status); } &&
 
3939
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3941
  (eval $ac_try) 2>&5
 
3942
  ac_status=$?
 
3943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3944
  (exit $ac_status); }; } &&
 
3945
         { ac_try='test -s conftest$ac_exeext'
 
3946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3947
  (eval $ac_try) 2>&5
 
3948
  ac_status=$?
 
3949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3950
  (exit $ac_status); }; }; then
 
3951
  ac_cv_search_socket="none required"
 
3952
else
 
3953
  echo "$as_me: failed program was:" >&5
 
3954
sed 's/^/| /' conftest.$ac_ext >&5
 
3955
 
 
3956
fi
 
3957
rm -f conftest.err conftest.$ac_objext \
 
3958
      conftest$ac_exeext conftest.$ac_ext
 
3959
if test "$ac_cv_search_socket" = no; then
 
3960
  for ac_lib in socket; do
4755
3961
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4756
 
  fi
4757
 
  rm -f conftest.$ac_objext conftest$ac_exeext
4758
 
if { (ac_try="$ac_link"
4759
 
case "(($ac_try" in
4760
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761
 
  *) ac_try_echo=$ac_try;;
4762
 
esac
4763
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764
 
  (eval "$ac_link") 2>conftest.er1
 
3962
    cat >conftest.$ac_ext <<_ACEOF
 
3963
/* confdefs.h.  */
 
3964
_ACEOF
 
3965
cat confdefs.h >>conftest.$ac_ext
 
3966
cat >>conftest.$ac_ext <<_ACEOF
 
3967
/* end confdefs.h.  */
 
3968
 
 
3969
/* Override any gcc2 internal prototype to avoid an error.  */
 
3970
#ifdef __cplusplus
 
3971
extern "C"
 
3972
#endif
 
3973
/* We use char because int might match the return type of a gcc2
 
3974
   builtin and then its argument prototype would still apply.  */
 
3975
char socket ();
 
3976
int
 
3977
main ()
 
3978
{
 
3979
socket ();
 
3980
  ;
 
3981
  return 0;
 
3982
}
 
3983
_ACEOF
 
3984
rm -f conftest.$ac_objext conftest$ac_exeext
 
3985
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3986
  (eval $ac_link) 2>conftest.er1
4765
3987
  ac_status=$?
4766
3988
  grep -v '^ *+' conftest.er1 >conftest.err
4767
3989
  rm -f conftest.er1
4768
3990
  cat conftest.err >&5
4769
3991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770
3992
  (exit $ac_status); } &&
4771
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4772
 
  { (case "(($ac_try" in
4773
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774
 
  *) ac_try_echo=$ac_try;;
4775
 
esac
4776
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777
 
  (eval "$ac_try") 2>&5
 
3993
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3995
  (eval $ac_try) 2>&5
4778
3996
  ac_status=$?
4779
3997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780
3998
  (exit $ac_status); }; } &&
4781
3999
         { ac_try='test -s conftest$ac_exeext'
4782
 
  { (case "(($ac_try" in
4783
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784
 
  *) ac_try_echo=$ac_try;;
4785
 
esac
4786
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787
 
  (eval "$ac_try") 2>&5
 
4000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4001
  (eval $ac_try) 2>&5
4788
4002
  ac_status=$?
4789
4003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790
4004
  (exit $ac_status); }; }; then
4791
 
  ac_cv_search_socket=$ac_res
 
4005
  ac_cv_search_socket="-l$ac_lib"
 
4006
break
4792
4007
else
4793
4008
  echo "$as_me: failed program was:" >&5
4794
4009
sed 's/^/| /' conftest.$ac_ext >&5
4795
4010
 
4796
 
 
4797
 
fi
4798
 
 
4799
 
rm -f core conftest.err conftest.$ac_objext \
4800
 
      conftest$ac_exeext
4801
 
  if test "${ac_cv_search_socket+set}" = set; then
4802
 
  break
4803
 
fi
4804
 
done
4805
 
if test "${ac_cv_search_socket+set}" = set; then
4806
 
  :
4807
 
else
4808
 
  ac_cv_search_socket=no
4809
 
fi
4810
 
rm conftest.$ac_ext
 
4011
fi
 
4012
rm -f conftest.err conftest.$ac_objext \
 
4013
      conftest$ac_exeext conftest.$ac_ext
 
4014
  done
 
4015
fi
4811
4016
LIBS=$ac_func_search_save_LIBS
4812
4017
fi
4813
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4814
 
echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4815
 
ac_res=$ac_cv_search_socket
4816
 
if test "$ac_res" != no; then
4817
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4018
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
 
4019
echo "${ECHO_T}$ac_cv_search_socket" >&6
 
4020
if test "$ac_cv_search_socket" != no; then
 
4021
  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4818
4022
 
4819
4023
fi
4820
4024
 
4821
4025
#Solaris SNMP requires this
4822
 
{ echo "$as_me:$LINENO: checking for library containing kstat_open" >&5
4823
 
echo $ECHO_N "checking for library containing kstat_open... $ECHO_C" >&6; }
4824
 
if test "${ac_cv_search_kstat_open+set}" = set; then
4825
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4826
 
else
4827
 
  ac_func_search_save_LIBS=$LIBS
4828
 
cat >conftest.$ac_ext <<_ACEOF
4829
 
/* confdefs.h.  */
4830
 
_ACEOF
4831
 
cat confdefs.h >>conftest.$ac_ext
4832
 
cat >>conftest.$ac_ext <<_ACEOF
4833
 
/* end confdefs.h.  */
4834
 
 
4835
 
/* Override any GCC internal prototype to avoid an error.
4836
 
   Use char because int might match the return type of a GCC
4837
 
   builtin and then its argument prototype would still apply.  */
4838
 
#ifdef __cplusplus
4839
 
extern "C"
4840
 
#endif
4841
 
char kstat_open ();
4842
 
int
4843
 
main ()
4844
 
{
4845
 
return kstat_open ();
4846
 
  ;
4847
 
  return 0;
4848
 
}
4849
 
_ACEOF
4850
 
for ac_lib in '' kstat; do
4851
 
  if test -z "$ac_lib"; then
4852
 
    ac_res="none required"
4853
 
  else
4854
 
    ac_res=-l$ac_lib
4855
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4856
 
  fi
4857
 
  rm -f conftest.$ac_objext conftest$ac_exeext
4858
 
if { (ac_try="$ac_link"
4859
 
case "(($ac_try" in
4860
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861
 
  *) ac_try_echo=$ac_try;;
4862
 
esac
4863
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864
 
  (eval "$ac_link") 2>conftest.er1
4865
 
  ac_status=$?
4866
 
  grep -v '^ *+' conftest.er1 >conftest.err
4867
 
  rm -f conftest.er1
4868
 
  cat conftest.err >&5
4869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870
 
  (exit $ac_status); } &&
4871
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4872
 
  { (case "(($ac_try" in
4873
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874
 
  *) ac_try_echo=$ac_try;;
4875
 
esac
4876
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877
 
  (eval "$ac_try") 2>&5
4878
 
  ac_status=$?
4879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880
 
  (exit $ac_status); }; } &&
4881
 
         { ac_try='test -s conftest$ac_exeext'
4882
 
  { (case "(($ac_try" in
4883
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884
 
  *) ac_try_echo=$ac_try;;
4885
 
esac
4886
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887
 
  (eval "$ac_try") 2>&5
4888
 
  ac_status=$?
4889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890
 
  (exit $ac_status); }; }; then
4891
 
  ac_cv_search_kstat_open=$ac_res
4892
 
else
4893
 
  echo "$as_me: failed program was:" >&5
4894
 
sed 's/^/| /' conftest.$ac_ext >&5
4895
 
 
4896
 
 
4897
 
fi
4898
 
 
4899
 
rm -f core conftest.err conftest.$ac_objext \
4900
 
      conftest$ac_exeext
4901
 
  if test "${ac_cv_search_kstat_open+set}" = set; then
4902
 
  break
4903
 
fi
4904
 
done
4905
 
if test "${ac_cv_search_kstat_open+set}" = set; then
4906
 
  :
4907
 
else
4908
 
  ac_cv_search_kstat_open=no
4909
 
fi
4910
 
rm conftest.$ac_ext
4911
 
LIBS=$ac_func_search_save_LIBS
4912
 
fi
4913
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_kstat_open" >&5
4914
 
echo "${ECHO_T}$ac_cv_search_kstat_open" >&6; }
4915
 
ac_res=$ac_cv_search_kstat_open
4916
 
if test "$ac_res" != no; then
4917
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4918
 
 
4919
 
fi
4920
 
 
4921
 
{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4922
 
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4923
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
4924
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4925
 
else
4926
 
  ac_func_search_save_LIBS=$LIBS
4927
 
cat >conftest.$ac_ext <<_ACEOF
4928
 
/* confdefs.h.  */
4929
 
_ACEOF
4930
 
cat confdefs.h >>conftest.$ac_ext
4931
 
cat >>conftest.$ac_ext <<_ACEOF
4932
 
/* end confdefs.h.  */
4933
 
 
4934
 
/* Override any GCC internal prototype to avoid an error.
4935
 
   Use char because int might match the return type of a GCC
4936
 
   builtin and then its argument prototype would still apply.  */
4937
 
#ifdef __cplusplus
4938
 
extern "C"
4939
 
#endif
4940
 
char gethostbyname ();
4941
 
int
4942
 
main ()
4943
 
{
4944
 
return gethostbyname ();
4945
 
  ;
4946
 
  return 0;
4947
 
}
4948
 
_ACEOF
4949
 
for ac_lib in '' nsl; do
4950
 
  if test -z "$ac_lib"; then
4951
 
    ac_res="none required"
4952
 
  else
4953
 
    ac_res=-l$ac_lib
4954
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4955
 
  fi
4956
 
  rm -f conftest.$ac_objext conftest$ac_exeext
4957
 
if { (ac_try="$ac_link"
4958
 
case "(($ac_try" in
4959
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960
 
  *) ac_try_echo=$ac_try;;
4961
 
esac
4962
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963
 
  (eval "$ac_link") 2>conftest.er1
4964
 
  ac_status=$?
4965
 
  grep -v '^ *+' conftest.er1 >conftest.err
4966
 
  rm -f conftest.er1
4967
 
  cat conftest.err >&5
4968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969
 
  (exit $ac_status); } &&
4970
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4971
 
  { (case "(($ac_try" in
4972
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973
 
  *) ac_try_echo=$ac_try;;
4974
 
esac
4975
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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_exeext'
4981
 
  { (case "(($ac_try" in
4982
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983
 
  *) ac_try_echo=$ac_try;;
4984
 
esac
4985
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986
 
  (eval "$ac_try") 2>&5
4987
 
  ac_status=$?
4988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
 
  (exit $ac_status); }; }; then
4990
 
  ac_cv_search_gethostbyname=$ac_res
4991
 
else
4992
 
  echo "$as_me: failed program was:" >&5
4993
 
sed 's/^/| /' conftest.$ac_ext >&5
4994
 
 
4995
 
 
4996
 
fi
4997
 
 
4998
 
rm -f core conftest.err conftest.$ac_objext \
4999
 
      conftest$ac_exeext
5000
 
  if test "${ac_cv_search_gethostbyname+set}" = set; then
5001
 
  break
5002
 
fi
5003
 
done
5004
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
5005
 
  :
5006
 
else
5007
 
  ac_cv_search_gethostbyname=no
5008
 
fi
5009
 
rm conftest.$ac_ext
5010
 
LIBS=$ac_func_search_save_LIBS
5011
 
fi
5012
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5013
 
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
5014
 
ac_res=$ac_cv_search_gethostbyname
5015
 
if test "$ac_res" != no; then
5016
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5017
 
 
5018
 
fi
5019
 
 
5020
 
{ echo "$as_me:$LINENO: checking for library containing __res_query" >&5
5021
 
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6; }
5022
 
if test "${ac_cv_search___res_query+set}" = set; then
5023
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5024
 
else
5025
 
  ac_func_search_save_LIBS=$LIBS
5026
 
cat >conftest.$ac_ext <<_ACEOF
5027
 
/* confdefs.h.  */
5028
 
_ACEOF
5029
 
cat confdefs.h >>conftest.$ac_ext
5030
 
cat >>conftest.$ac_ext <<_ACEOF
5031
 
/* end confdefs.h.  */
5032
 
 
5033
 
/* Override any GCC internal prototype to avoid an error.
5034
 
   Use char because int might match the return type of a GCC
5035
 
   builtin and then its argument prototype would still apply.  */
5036
 
#ifdef __cplusplus
5037
 
extern "C"
5038
 
#endif
5039
 
char __res_query ();
5040
 
int
5041
 
main ()
5042
 
{
5043
 
return __res_query ();
5044
 
  ;
5045
 
  return 0;
5046
 
}
5047
 
_ACEOF
5048
 
for ac_lib in '' resolv bind socket; do
5049
 
  if test -z "$ac_lib"; then
5050
 
    ac_res="none required"
5051
 
  else
5052
 
    ac_res=-l$ac_lib
5053
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5054
 
  fi
5055
 
  rm -f conftest.$ac_objext conftest$ac_exeext
5056
 
if { (ac_try="$ac_link"
5057
 
case "(($ac_try" in
5058
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059
 
  *) ac_try_echo=$ac_try;;
5060
 
esac
5061
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062
 
  (eval "$ac_link") 2>conftest.er1
5063
 
  ac_status=$?
5064
 
  grep -v '^ *+' conftest.er1 >conftest.err
5065
 
  rm -f conftest.er1
5066
 
  cat conftest.err >&5
5067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068
 
  (exit $ac_status); } &&
5069
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5070
 
  { (case "(($ac_try" in
5071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072
 
  *) ac_try_echo=$ac_try;;
5073
 
esac
5074
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075
 
  (eval "$ac_try") 2>&5
5076
 
  ac_status=$?
5077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
 
  (exit $ac_status); }; } &&
5079
 
         { ac_try='test -s conftest$ac_exeext'
5080
 
  { (case "(($ac_try" in
5081
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082
 
  *) ac_try_echo=$ac_try;;
5083
 
esac
5084
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085
 
  (eval "$ac_try") 2>&5
5086
 
  ac_status=$?
5087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088
 
  (exit $ac_status); }; }; then
5089
 
  ac_cv_search___res_query=$ac_res
5090
 
else
5091
 
  echo "$as_me: failed program was:" >&5
5092
 
sed 's/^/| /' conftest.$ac_ext >&5
5093
 
 
5094
 
 
5095
 
fi
5096
 
 
5097
 
rm -f core conftest.err conftest.$ac_objext \
5098
 
      conftest$ac_exeext
5099
 
  if test "${ac_cv_search___res_query+set}" = set; then
5100
 
  break
5101
 
fi
5102
 
done
5103
 
if test "${ac_cv_search___res_query+set}" = set; then
5104
 
  :
5105
 
else
5106
 
  ac_cv_search___res_query=no
5107
 
fi
5108
 
rm conftest.$ac_ext
5109
 
LIBS=$ac_func_search_save_LIBS
5110
 
fi
5111
 
{ echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
5112
 
echo "${ECHO_T}$ac_cv_search___res_query" >&6; }
5113
 
ac_res=$ac_cv_search___res_query
5114
 
if test "$ac_res" != no; then
5115
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4026
echo "$as_me:$LINENO: checking for library containing kstat_open" >&5
 
4027
echo $ECHO_N "checking for library containing kstat_open... $ECHO_C" >&6
 
4028
if test "${ac_cv_search_kstat_open+set}" = set; then
 
4029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4030
else
 
4031
  ac_func_search_save_LIBS=$LIBS
 
4032
ac_cv_search_kstat_open=no
 
4033
cat >conftest.$ac_ext <<_ACEOF
 
4034
/* confdefs.h.  */
 
4035
_ACEOF
 
4036
cat confdefs.h >>conftest.$ac_ext
 
4037
cat >>conftest.$ac_ext <<_ACEOF
 
4038
/* end confdefs.h.  */
 
4039
 
 
4040
/* Override any gcc2 internal prototype to avoid an error.  */
 
4041
#ifdef __cplusplus
 
4042
extern "C"
 
4043
#endif
 
4044
/* We use char because int might match the return type of a gcc2
 
4045
   builtin and then its argument prototype would still apply.  */
 
4046
char kstat_open ();
 
4047
int
 
4048
main ()
 
4049
{
 
4050
kstat_open ();
 
4051
  ;
 
4052
  return 0;
 
4053
}
 
4054
_ACEOF
 
4055
rm -f conftest.$ac_objext conftest$ac_exeext
 
4056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4057
  (eval $ac_link) 2>conftest.er1
 
4058
  ac_status=$?
 
4059
  grep -v '^ *+' conftest.er1 >conftest.err
 
4060
  rm -f conftest.er1
 
4061
  cat conftest.err >&5
 
4062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4063
  (exit $ac_status); } &&
 
4064
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4066
  (eval $ac_try) 2>&5
 
4067
  ac_status=$?
 
4068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4069
  (exit $ac_status); }; } &&
 
4070
         { ac_try='test -s conftest$ac_exeext'
 
4071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4072
  (eval $ac_try) 2>&5
 
4073
  ac_status=$?
 
4074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4075
  (exit $ac_status); }; }; then
 
4076
  ac_cv_search_kstat_open="none required"
 
4077
else
 
4078
  echo "$as_me: failed program was:" >&5
 
4079
sed 's/^/| /' conftest.$ac_ext >&5
 
4080
 
 
4081
fi
 
4082
rm -f conftest.err conftest.$ac_objext \
 
4083
      conftest$ac_exeext conftest.$ac_ext
 
4084
if test "$ac_cv_search_kstat_open" = no; then
 
4085
  for ac_lib in kstat; do
 
4086
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4087
    cat >conftest.$ac_ext <<_ACEOF
 
4088
/* confdefs.h.  */
 
4089
_ACEOF
 
4090
cat confdefs.h >>conftest.$ac_ext
 
4091
cat >>conftest.$ac_ext <<_ACEOF
 
4092
/* end confdefs.h.  */
 
4093
 
 
4094
/* Override any gcc2 internal prototype to avoid an error.  */
 
4095
#ifdef __cplusplus
 
4096
extern "C"
 
4097
#endif
 
4098
/* We use char because int might match the return type of a gcc2
 
4099
   builtin and then its argument prototype would still apply.  */
 
4100
char kstat_open ();
 
4101
int
 
4102
main ()
 
4103
{
 
4104
kstat_open ();
 
4105
  ;
 
4106
  return 0;
 
4107
}
 
4108
_ACEOF
 
4109
rm -f conftest.$ac_objext conftest$ac_exeext
 
4110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4111
  (eval $ac_link) 2>conftest.er1
 
4112
  ac_status=$?
 
4113
  grep -v '^ *+' conftest.er1 >conftest.err
 
4114
  rm -f conftest.er1
 
4115
  cat conftest.err >&5
 
4116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4117
  (exit $ac_status); } &&
 
4118
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4120
  (eval $ac_try) 2>&5
 
4121
  ac_status=$?
 
4122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4123
  (exit $ac_status); }; } &&
 
4124
         { ac_try='test -s conftest$ac_exeext'
 
4125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4126
  (eval $ac_try) 2>&5
 
4127
  ac_status=$?
 
4128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4129
  (exit $ac_status); }; }; then
 
4130
  ac_cv_search_kstat_open="-l$ac_lib"
 
4131
break
 
4132
else
 
4133
  echo "$as_me: failed program was:" >&5
 
4134
sed 's/^/| /' conftest.$ac_ext >&5
 
4135
 
 
4136
fi
 
4137
rm -f conftest.err conftest.$ac_objext \
 
4138
      conftest$ac_exeext conftest.$ac_ext
 
4139
  done
 
4140
fi
 
4141
LIBS=$ac_func_search_save_LIBS
 
4142
fi
 
4143
echo "$as_me:$LINENO: result: $ac_cv_search_kstat_open" >&5
 
4144
echo "${ECHO_T}$ac_cv_search_kstat_open" >&6
 
4145
if test "$ac_cv_search_kstat_open" != no; then
 
4146
  test "$ac_cv_search_kstat_open" = "none required" || LIBS="$ac_cv_search_kstat_open $LIBS"
 
4147
 
 
4148
fi
 
4149
 
 
4150
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
4151
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
4152
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
4153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4154
else
 
4155
  ac_func_search_save_LIBS=$LIBS
 
4156
ac_cv_search_gethostbyname=no
 
4157
cat >conftest.$ac_ext <<_ACEOF
 
4158
/* confdefs.h.  */
 
4159
_ACEOF
 
4160
cat confdefs.h >>conftest.$ac_ext
 
4161
cat >>conftest.$ac_ext <<_ACEOF
 
4162
/* end confdefs.h.  */
 
4163
 
 
4164
/* Override any gcc2 internal prototype to avoid an error.  */
 
4165
#ifdef __cplusplus
 
4166
extern "C"
 
4167
#endif
 
4168
/* We use char because int might match the return type of a gcc2
 
4169
   builtin and then its argument prototype would still apply.  */
 
4170
char gethostbyname ();
 
4171
int
 
4172
main ()
 
4173
{
 
4174
gethostbyname ();
 
4175
  ;
 
4176
  return 0;
 
4177
}
 
4178
_ACEOF
 
4179
rm -f conftest.$ac_objext conftest$ac_exeext
 
4180
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4181
  (eval $ac_link) 2>conftest.er1
 
4182
  ac_status=$?
 
4183
  grep -v '^ *+' conftest.er1 >conftest.err
 
4184
  rm -f conftest.er1
 
4185
  cat conftest.err >&5
 
4186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4187
  (exit $ac_status); } &&
 
4188
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4190
  (eval $ac_try) 2>&5
 
4191
  ac_status=$?
 
4192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4193
  (exit $ac_status); }; } &&
 
4194
         { ac_try='test -s conftest$ac_exeext'
 
4195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4196
  (eval $ac_try) 2>&5
 
4197
  ac_status=$?
 
4198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4199
  (exit $ac_status); }; }; then
 
4200
  ac_cv_search_gethostbyname="none required"
 
4201
else
 
4202
  echo "$as_me: failed program was:" >&5
 
4203
sed 's/^/| /' conftest.$ac_ext >&5
 
4204
 
 
4205
fi
 
4206
rm -f conftest.err conftest.$ac_objext \
 
4207
      conftest$ac_exeext conftest.$ac_ext
 
4208
if test "$ac_cv_search_gethostbyname" = no; then
 
4209
  for ac_lib in nsl; do
 
4210
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4211
    cat >conftest.$ac_ext <<_ACEOF
 
4212
/* confdefs.h.  */
 
4213
_ACEOF
 
4214
cat confdefs.h >>conftest.$ac_ext
 
4215
cat >>conftest.$ac_ext <<_ACEOF
 
4216
/* end confdefs.h.  */
 
4217
 
 
4218
/* Override any gcc2 internal prototype to avoid an error.  */
 
4219
#ifdef __cplusplus
 
4220
extern "C"
 
4221
#endif
 
4222
/* We use char because int might match the return type of a gcc2
 
4223
   builtin and then its argument prototype would still apply.  */
 
4224
char gethostbyname ();
 
4225
int
 
4226
main ()
 
4227
{
 
4228
gethostbyname ();
 
4229
  ;
 
4230
  return 0;
 
4231
}
 
4232
_ACEOF
 
4233
rm -f conftest.$ac_objext conftest$ac_exeext
 
4234
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4235
  (eval $ac_link) 2>conftest.er1
 
4236
  ac_status=$?
 
4237
  grep -v '^ *+' conftest.er1 >conftest.err
 
4238
  rm -f conftest.er1
 
4239
  cat conftest.err >&5
 
4240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4241
  (exit $ac_status); } &&
 
4242
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4244
  (eval $ac_try) 2>&5
 
4245
  ac_status=$?
 
4246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4247
  (exit $ac_status); }; } &&
 
4248
         { ac_try='test -s conftest$ac_exeext'
 
4249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4250
  (eval $ac_try) 2>&5
 
4251
  ac_status=$?
 
4252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4253
  (exit $ac_status); }; }; then
 
4254
  ac_cv_search_gethostbyname="-l$ac_lib"
 
4255
break
 
4256
else
 
4257
  echo "$as_me: failed program was:" >&5
 
4258
sed 's/^/| /' conftest.$ac_ext >&5
 
4259
 
 
4260
fi
 
4261
rm -f conftest.err conftest.$ac_objext \
 
4262
      conftest$ac_exeext conftest.$ac_ext
 
4263
  done
 
4264
fi
 
4265
LIBS=$ac_func_search_save_LIBS
 
4266
fi
 
4267
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
4268
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
 
4269
if test "$ac_cv_search_gethostbyname" != no; then
 
4270
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
 
4271
 
 
4272
fi
 
4273
 
 
4274
echo "$as_me:$LINENO: checking for library containing __res_query" >&5
 
4275
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6
 
4276
if test "${ac_cv_search___res_query+set}" = set; then
 
4277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4278
else
 
4279
  ac_func_search_save_LIBS=$LIBS
 
4280
ac_cv_search___res_query=no
 
4281
cat >conftest.$ac_ext <<_ACEOF
 
4282
/* confdefs.h.  */
 
4283
_ACEOF
 
4284
cat confdefs.h >>conftest.$ac_ext
 
4285
cat >>conftest.$ac_ext <<_ACEOF
 
4286
/* end confdefs.h.  */
 
4287
 
 
4288
/* Override any gcc2 internal prototype to avoid an error.  */
 
4289
#ifdef __cplusplus
 
4290
extern "C"
 
4291
#endif
 
4292
/* We use char because int might match the return type of a gcc2
 
4293
   builtin and then its argument prototype would still apply.  */
 
4294
char __res_query ();
 
4295
int
 
4296
main ()
 
4297
{
 
4298
__res_query ();
 
4299
  ;
 
4300
  return 0;
 
4301
}
 
4302
_ACEOF
 
4303
rm -f conftest.$ac_objext conftest$ac_exeext
 
4304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4305
  (eval $ac_link) 2>conftest.er1
 
4306
  ac_status=$?
 
4307
  grep -v '^ *+' conftest.er1 >conftest.err
 
4308
  rm -f conftest.er1
 
4309
  cat conftest.err >&5
 
4310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4311
  (exit $ac_status); } &&
 
4312
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4314
  (eval $ac_try) 2>&5
 
4315
  ac_status=$?
 
4316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4317
  (exit $ac_status); }; } &&
 
4318
         { ac_try='test -s conftest$ac_exeext'
 
4319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4320
  (eval $ac_try) 2>&5
 
4321
  ac_status=$?
 
4322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4323
  (exit $ac_status); }; }; then
 
4324
  ac_cv_search___res_query="none required"
 
4325
else
 
4326
  echo "$as_me: failed program was:" >&5
 
4327
sed 's/^/| /' conftest.$ac_ext >&5
 
4328
 
 
4329
fi
 
4330
rm -f conftest.err conftest.$ac_objext \
 
4331
      conftest$ac_exeext conftest.$ac_ext
 
4332
if test "$ac_cv_search___res_query" = no; then
 
4333
  for ac_lib in resolv bind socket; do
 
4334
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4335
    cat >conftest.$ac_ext <<_ACEOF
 
4336
/* confdefs.h.  */
 
4337
_ACEOF
 
4338
cat confdefs.h >>conftest.$ac_ext
 
4339
cat >>conftest.$ac_ext <<_ACEOF
 
4340
/* end confdefs.h.  */
 
4341
 
 
4342
/* Override any gcc2 internal prototype to avoid an error.  */
 
4343
#ifdef __cplusplus
 
4344
extern "C"
 
4345
#endif
 
4346
/* We use char because int might match the return type of a gcc2
 
4347
   builtin and then its argument prototype would still apply.  */
 
4348
char __res_query ();
 
4349
int
 
4350
main ()
 
4351
{
 
4352
__res_query ();
 
4353
  ;
 
4354
  return 0;
 
4355
}
 
4356
_ACEOF
 
4357
rm -f conftest.$ac_objext conftest$ac_exeext
 
4358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4359
  (eval $ac_link) 2>conftest.er1
 
4360
  ac_status=$?
 
4361
  grep -v '^ *+' conftest.er1 >conftest.err
 
4362
  rm -f conftest.er1
 
4363
  cat conftest.err >&5
 
4364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4365
  (exit $ac_status); } &&
 
4366
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4368
  (eval $ac_try) 2>&5
 
4369
  ac_status=$?
 
4370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4371
  (exit $ac_status); }; } &&
 
4372
         { ac_try='test -s conftest$ac_exeext'
 
4373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4374
  (eval $ac_try) 2>&5
 
4375
  ac_status=$?
 
4376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4377
  (exit $ac_status); }; }; then
 
4378
  ac_cv_search___res_query="-l$ac_lib"
 
4379
break
 
4380
else
 
4381
  echo "$as_me: failed program was:" >&5
 
4382
sed 's/^/| /' conftest.$ac_ext >&5
 
4383
 
 
4384
fi
 
4385
rm -f conftest.err conftest.$ac_objext \
 
4386
      conftest$ac_exeext conftest.$ac_ext
 
4387
  done
 
4388
fi
 
4389
LIBS=$ac_func_search_save_LIBS
 
4390
fi
 
4391
echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
 
4392
echo "${ECHO_T}$ac_cv_search___res_query" >&6
 
4393
if test "$ac_cv_search___res_query" != no; then
 
4394
  test "$ac_cv_search___res_query" = "none required" || LIBS="$ac_cv_search___res_query $LIBS"
5116
4395
 
5117
4396
fi
5118
4397
 
5119
4398
#Solaris 8 requires this. It does not have symbol __res_query.
5120
 
{ echo "$as_me:$LINENO: checking for library containing res_query" >&5
5121
 
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
 
4399
echo "$as_me:$LINENO: checking for library containing res_query" >&5
 
4400
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
5122
4401
if test "${ac_cv_search_res_query+set}" = set; then
5123
4402
  echo $ECHO_N "(cached) $ECHO_C" >&6
5124
4403
else
5125
4404
  ac_func_search_save_LIBS=$LIBS
 
4405
ac_cv_search_res_query=no
5126
4406
cat >conftest.$ac_ext <<_ACEOF
5127
4407
/* confdefs.h.  */
5128
4408
_ACEOF
5130
4410
cat >>conftest.$ac_ext <<_ACEOF
5131
4411
/* end confdefs.h.  */
5132
4412
 
5133
 
/* Override any GCC internal prototype to avoid an error.
5134
 
   Use char because int might match the return type of a GCC
5135
 
   builtin and then its argument prototype would still apply.  */
 
4413
/* Override any gcc2 internal prototype to avoid an error.  */
5136
4414
#ifdef __cplusplus
5137
4415
extern "C"
5138
4416
#endif
 
4417
/* We use char because int might match the return type of a gcc2
 
4418
   builtin and then its argument prototype would still apply.  */
5139
4419
char res_query ();
5140
4420
int
5141
4421
main ()
5142
4422
{
5143
 
return res_query ();
 
4423
res_query ();
5144
4424
  ;
5145
4425
  return 0;
5146
4426
}
5147
4427
_ACEOF
5148
 
for ac_lib in '' resolv bind socket; do
5149
 
  if test -z "$ac_lib"; then
5150
 
    ac_res="none required"
5151
 
  else
5152
 
    ac_res=-l$ac_lib
 
4428
rm -f conftest.$ac_objext conftest$ac_exeext
 
4429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4430
  (eval $ac_link) 2>conftest.er1
 
4431
  ac_status=$?
 
4432
  grep -v '^ *+' conftest.er1 >conftest.err
 
4433
  rm -f conftest.er1
 
4434
  cat conftest.err >&5
 
4435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4436
  (exit $ac_status); } &&
 
4437
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4439
  (eval $ac_try) 2>&5
 
4440
  ac_status=$?
 
4441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4442
  (exit $ac_status); }; } &&
 
4443
         { ac_try='test -s conftest$ac_exeext'
 
4444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4445
  (eval $ac_try) 2>&5
 
4446
  ac_status=$?
 
4447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4448
  (exit $ac_status); }; }; then
 
4449
  ac_cv_search_res_query="none required"
 
4450
else
 
4451
  echo "$as_me: failed program was:" >&5
 
4452
sed 's/^/| /' conftest.$ac_ext >&5
 
4453
 
 
4454
fi
 
4455
rm -f conftest.err conftest.$ac_objext \
 
4456
      conftest$ac_exeext conftest.$ac_ext
 
4457
if test "$ac_cv_search_res_query" = no; then
 
4458
  for ac_lib in resolv bind socket; do
5153
4459
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5154
 
  fi
5155
 
  rm -f conftest.$ac_objext conftest$ac_exeext
5156
 
if { (ac_try="$ac_link"
5157
 
case "(($ac_try" in
5158
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159
 
  *) ac_try_echo=$ac_try;;
5160
 
esac
5161
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162
 
  (eval "$ac_link") 2>conftest.er1
 
4460
    cat >conftest.$ac_ext <<_ACEOF
 
4461
/* confdefs.h.  */
 
4462
_ACEOF
 
4463
cat confdefs.h >>conftest.$ac_ext
 
4464
cat >>conftest.$ac_ext <<_ACEOF
 
4465
/* end confdefs.h.  */
 
4466
 
 
4467
/* Override any gcc2 internal prototype to avoid an error.  */
 
4468
#ifdef __cplusplus
 
4469
extern "C"
 
4470
#endif
 
4471
/* We use char because int might match the return type of a gcc2
 
4472
   builtin and then its argument prototype would still apply.  */
 
4473
char res_query ();
 
4474
int
 
4475
main ()
 
4476
{
 
4477
res_query ();
 
4478
  ;
 
4479
  return 0;
 
4480
}
 
4481
_ACEOF
 
4482
rm -f conftest.$ac_objext conftest$ac_exeext
 
4483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4484
  (eval $ac_link) 2>conftest.er1
5163
4485
  ac_status=$?
5164
4486
  grep -v '^ *+' conftest.er1 >conftest.err
5165
4487
  rm -f conftest.er1
5166
4488
  cat conftest.err >&5
5167
4489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168
4490
  (exit $ac_status); } &&
5169
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5170
 
  { (case "(($ac_try" in
5171
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172
 
  *) ac_try_echo=$ac_try;;
5173
 
esac
5174
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175
 
  (eval "$ac_try") 2>&5
 
4491
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4493
  (eval $ac_try) 2>&5
5176
4494
  ac_status=$?
5177
4495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178
4496
  (exit $ac_status); }; } &&
5179
4497
         { ac_try='test -s conftest$ac_exeext'
5180
 
  { (case "(($ac_try" in
5181
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182
 
  *) ac_try_echo=$ac_try;;
5183
 
esac
5184
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185
 
  (eval "$ac_try") 2>&5
 
4498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4499
  (eval $ac_try) 2>&5
5186
4500
  ac_status=$?
5187
4501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188
4502
  (exit $ac_status); }; }; then
5189
 
  ac_cv_search_res_query=$ac_res
 
4503
  ac_cv_search_res_query="-l$ac_lib"
 
4504
break
5190
4505
else
5191
4506
  echo "$as_me: failed program was:" >&5
5192
4507
sed 's/^/| /' conftest.$ac_ext >&5
5193
4508
 
5194
 
 
5195
 
fi
5196
 
 
5197
 
rm -f core conftest.err conftest.$ac_objext \
5198
 
      conftest$ac_exeext
5199
 
  if test "${ac_cv_search_res_query+set}" = set; then
5200
 
  break
5201
 
fi
5202
 
done
5203
 
if test "${ac_cv_search_res_query+set}" = set; then
5204
 
  :
5205
 
else
5206
 
  ac_cv_search_res_query=no
5207
 
fi
5208
 
rm conftest.$ac_ext
 
4509
fi
 
4510
rm -f conftest.err conftest.$ac_objext \
 
4511
      conftest$ac_exeext conftest.$ac_ext
 
4512
  done
 
4513
fi
5209
4514
LIBS=$ac_func_search_save_LIBS
5210
4515
fi
5211
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
5212
 
echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
5213
 
ac_res=$ac_cv_search_res_query
5214
 
if test "$ac_res" != no; then
5215
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4516
echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
 
4517
echo "${ECHO_T}$ac_cv_search_res_query" >&6
 
4518
if test "$ac_cv_search_res_query" != no; then
 
4519
  test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
5216
4520
 
5217
4521
fi
5218
4522
 
5219
4523
 
5220
 
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5221
 
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
 
4524
echo "$as_me:$LINENO: checking for main in -lm" >&5
 
4525
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5222
4526
if test "${ac_cv_lib_m_main+set}" = set; then
5223
4527
  echo $ECHO_N "(cached) $ECHO_C" >&6
5224
4528
else
5235
4539
int
5236
4540
main ()
5237
4541
{
5238
 
return main ();
 
4542
main ();
5239
4543
  ;
5240
4544
  return 0;
5241
4545
}
5242
4546
_ACEOF
5243
4547
rm -f conftest.$ac_objext conftest$ac_exeext
5244
 
if { (ac_try="$ac_link"
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_link") 2>conftest.er1
 
4548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4549
  (eval $ac_link) 2>conftest.er1
5251
4550
  ac_status=$?
5252
4551
  grep -v '^ *+' conftest.er1 >conftest.err
5253
4552
  rm -f conftest.er1
5254
4553
  cat conftest.err >&5
5255
4554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256
4555
  (exit $ac_status); } &&
5257
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5258
 
  { (case "(($ac_try" in
5259
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260
 
  *) ac_try_echo=$ac_try;;
5261
 
esac
5262
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263
 
  (eval "$ac_try") 2>&5
 
4556
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4558
  (eval $ac_try) 2>&5
5264
4559
  ac_status=$?
5265
4560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266
4561
  (exit $ac_status); }; } &&
5267
4562
         { ac_try='test -s conftest$ac_exeext'
5268
 
  { (case "(($ac_try" in
5269
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270
 
  *) ac_try_echo=$ac_try;;
5271
 
esac
5272
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273
 
  (eval "$ac_try") 2>&5
 
4563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4564
  (eval $ac_try) 2>&5
5274
4565
  ac_status=$?
5275
4566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276
4567
  (exit $ac_status); }; }; then
5279
4570
  echo "$as_me: failed program was:" >&5
5280
4571
sed 's/^/| /' conftest.$ac_ext >&5
5281
4572
 
5282
 
        ac_cv_lib_m_main=no
 
4573
ac_cv_lib_m_main=no
5283
4574
fi
5284
 
 
5285
 
rm -f core conftest.err conftest.$ac_objext \
 
4575
rm -f conftest.err conftest.$ac_objext \
5286
4576
      conftest$ac_exeext conftest.$ac_ext
5287
4577
LIBS=$ac_check_lib_save_LIBS
5288
4578
fi
5289
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5290
 
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
 
4579
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
4580
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5291
4581
if test $ac_cv_lib_m_main = yes; then
5292
4582
  cat >>confdefs.h <<_ACEOF
5293
4583
#define HAVE_LIBM 1
5298
4588
fi
5299
4589
 
5300
4590
 
5301
 
{ echo "$as_me:$LINENO: checking for main in -lkvm" >&5
5302
 
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6; }
 
4591
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
 
4592
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
5303
4593
if test "${ac_cv_lib_kvm_main+set}" = set; then
5304
4594
  echo $ECHO_N "(cached) $ECHO_C" >&6
5305
4595
else
5316
4606
int
5317
4607
main ()
5318
4608
{
5319
 
return main ();
 
4609
main ();
5320
4610
  ;
5321
4611
  return 0;
5322
4612
}
5323
4613
_ACEOF
5324
4614
rm -f conftest.$ac_objext conftest$ac_exeext
5325
 
if { (ac_try="$ac_link"
5326
 
case "(($ac_try" in
5327
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328
 
  *) ac_try_echo=$ac_try;;
5329
 
esac
5330
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331
 
  (eval "$ac_link") 2>conftest.er1
 
4615
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4616
  (eval $ac_link) 2>conftest.er1
5332
4617
  ac_status=$?
5333
4618
  grep -v '^ *+' conftest.er1 >conftest.err
5334
4619
  rm -f conftest.er1
5335
4620
  cat conftest.err >&5
5336
4621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337
4622
  (exit $ac_status); } &&
5338
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5339
 
  { (case "(($ac_try" in
5340
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341
 
  *) ac_try_echo=$ac_try;;
5342
 
esac
5343
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344
 
  (eval "$ac_try") 2>&5
 
4623
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4625
  (eval $ac_try) 2>&5
5345
4626
  ac_status=$?
5346
4627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347
4628
  (exit $ac_status); }; } &&
5348
4629
         { ac_try='test -s conftest$ac_exeext'
5349
 
  { (case "(($ac_try" in
5350
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351
 
  *) ac_try_echo=$ac_try;;
5352
 
esac
5353
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354
 
  (eval "$ac_try") 2>&5
 
4630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4631
  (eval $ac_try) 2>&5
5355
4632
  ac_status=$?
5356
4633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357
4634
  (exit $ac_status); }; }; then
5360
4637
  echo "$as_me: failed program was:" >&5
5361
4638
sed 's/^/| /' conftest.$ac_ext >&5
5362
4639
 
5363
 
        ac_cv_lib_kvm_main=no
 
4640
ac_cv_lib_kvm_main=no
5364
4641
fi
5365
 
 
5366
 
rm -f core conftest.err conftest.$ac_objext \
 
4642
rm -f conftest.err conftest.$ac_objext \
5367
4643
      conftest$ac_exeext conftest.$ac_ext
5368
4644
LIBS=$ac_check_lib_save_LIBS
5369
4645
fi
5370
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
5371
 
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6; }
 
4646
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
 
4647
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
5372
4648
if test $ac_cv_lib_kvm_main = yes; then
5373
4649
  cat >>confdefs.h <<_ACEOF
5374
4650
#define HAVE_LIBKVM 1
5379
4655
fi
5380
4656
 
5381
4657
 
5382
 
{ echo "$as_me:$LINENO: checking for union semun" >&5
5383
 
echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
 
4658
echo "$as_me:$LINENO: checking for function res_query" >&5
 
4659
echo $ECHO_N "checking for function res_query... $ECHO_C" >&6
 
4660
cat >conftest.$ac_ext <<_ACEOF
 
4661
/* confdefs.h.  */
 
4662
_ACEOF
 
4663
cat confdefs.h >>conftest.$ac_ext
 
4664
cat >>conftest.$ac_ext <<_ACEOF
 
4665
/* end confdefs.h.  */
 
4666
 
 
4667
#include <resolv.h>
 
4668
#if !defined(C_IN)
 
4669
#       define C_IN     ns_c_in
 
4670
#endif /* C_IN */
 
4671
 
 
4672
#if !defined(T_SOA)
 
4673
#       define T_SOA    ns_t_soa
 
4674
#endif /* T_SOA */
 
4675
 
 
4676
int
 
4677
main ()
 
4678
{
 
4679
 
 
4680
        char zone[1024];
 
4681
        char respbuf[1024];
 
4682
        res_query(zone, C_IN, T_SOA, (unsigned char *)respbuf, sizeof(respbuf));
 
4683
 
 
4684
  ;
 
4685
  return 0;
 
4686
}
 
4687
_ACEOF
 
4688
rm -f conftest.$ac_objext
 
4689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4690
  (eval $ac_compile) 2>conftest.er1
 
4691
  ac_status=$?
 
4692
  grep -v '^ *+' conftest.er1 >conftest.err
 
4693
  rm -f conftest.er1
 
4694
  cat conftest.err >&5
 
4695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4696
  (exit $ac_status); } &&
 
4697
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4699
  (eval $ac_try) 2>&5
 
4700
  ac_status=$?
 
4701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4702
  (exit $ac_status); }; } &&
 
4703
         { ac_try='test -s conftest.$ac_objext'
 
4704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4705
  (eval $ac_try) 2>&5
 
4706
  ac_status=$?
 
4707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4708
  (exit $ac_status); }; }; then
 
4709
 
 
4710
cat >>confdefs.h <<\_ACEOF
 
4711
#define HAVE_RES_QUERY 1
 
4712
_ACEOF
 
4713
 
 
4714
echo "$as_me:$LINENO: result: yes" >&5
 
4715
echo "${ECHO_T}yes" >&6
 
4716
else
 
4717
  echo "$as_me: failed program was:" >&5
 
4718
sed 's/^/| /' conftest.$ac_ext >&5
 
4719
 
 
4720
echo "$as_me:$LINENO: result: no" >&5
 
4721
echo "${ECHO_T}no" >&6
 
4722
fi
 
4723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4724
 
 
4725
 
 
4726
echo "$as_me:$LINENO: checking for union semun" >&5
 
4727
echo $ECHO_N "checking for union semun... $ECHO_C" >&6
5384
4728
cat >conftest.$ac_ext <<_ACEOF
5385
4729
/* confdefs.h.  */
5386
4730
_ACEOF
5401
4745
}
5402
4746
_ACEOF
5403
4747
rm -f conftest.$ac_objext
5404
 
if { (ac_try="$ac_compile"
5405
 
case "(($ac_try" in
5406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407
 
  *) ac_try_echo=$ac_try;;
5408
 
esac
5409
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410
 
  (eval "$ac_compile") 2>conftest.er1
 
4748
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4749
  (eval $ac_compile) 2>conftest.er1
5411
4750
  ac_status=$?
5412
4751
  grep -v '^ *+' conftest.er1 >conftest.err
5413
4752
  rm -f conftest.er1
5414
4753
  cat conftest.err >&5
5415
4754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416
4755
  (exit $ac_status); } &&
5417
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5418
 
  { (case "(($ac_try" in
5419
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420
 
  *) ac_try_echo=$ac_try;;
5421
 
esac
5422
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423
 
  (eval "$ac_try") 2>&5
 
4756
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4758
  (eval $ac_try) 2>&5
5424
4759
  ac_status=$?
5425
4760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426
4761
  (exit $ac_status); }; } &&
5427
4762
         { ac_try='test -s conftest.$ac_objext'
5428
 
  { (case "(($ac_try" in
5429
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430
 
  *) ac_try_echo=$ac_try;;
5431
 
esac
5432
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433
 
  (eval "$ac_try") 2>&5
 
4763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4764
  (eval $ac_try) 2>&5
5434
4765
  ac_status=$?
5435
4766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
4767
  (exit $ac_status); }; }; then
5439
4770
#define HAVE_SEMUN 1
5440
4771
_ACEOF
5441
4772
 
5442
 
{ echo "$as_me:$LINENO: result: yes" >&5
5443
 
echo "${ECHO_T}yes" >&6; }
 
4773
echo "$as_me:$LINENO: result: yes" >&5
 
4774
echo "${ECHO_T}yes" >&6
5444
4775
else
5445
4776
  echo "$as_me: failed program was:" >&5
5446
4777
sed 's/^/| /' conftest.$ac_ext >&5
5447
4778
 
5448
 
        { echo "$as_me:$LINENO: result: no" >&5
5449
 
echo "${ECHO_T}no" >&6; }
5450
 
fi
5451
 
 
5452
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453
 
 
5454
 
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
5455
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
 
4779
echo "$as_me:$LINENO: result: no" >&5
 
4780
echo "${ECHO_T}no" >&6
 
4781
fi
 
4782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4783
 
 
4784
echo "$as_me:$LINENO: checking for long long format" >&5
 
4785
echo $ECHO_N "checking for long long format... $ECHO_C" >&6
 
4786
if test "$cross_compiling" = yes; then
 
4787
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
4788
See \`config.log' for more details." >&5
 
4789
echo "$as_me: error: cannot run test program while cross compiling
 
4790
See \`config.log' for more details." >&2;}
 
4791
   { (exit 1); exit 1; }; }
 
4792
else
 
4793
  cat >conftest.$ac_ext <<_ACEOF
 
4794
 
 
4795
#include <sys/types.h>
 
4796
int main()
 
4797
{
 
4798
        uint64_t i;
 
4799
 
 
4800
        sscanf("200000000010020" ,"%qu" ,&i);
 
4801
 
 
4802
        if(i == 200000000010020) return 0;
 
4803
        else    return -1;
 
4804
}
 
4805
 
 
4806
_ACEOF
 
4807
rm -f conftest$ac_exeext
 
4808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4809
  (eval $ac_link) 2>&5
 
4810
  ac_status=$?
 
4811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4812
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4814
  (eval $ac_try) 2>&5
 
4815
  ac_status=$?
 
4816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4817
  (exit $ac_status); }; }; then
 
4818
 
 
4819
cat >>confdefs.h <<\_ACEOF
 
4820
#define HAVE_LONG_LONG_QU 1
 
4821
_ACEOF
 
4822
 
 
4823
echo "$as_me:$LINENO: result: yes" >&5
 
4824
echo "${ECHO_T}yes" >&6
 
4825
else
 
4826
  echo "$as_me: program exited with status $ac_status" >&5
 
4827
echo "$as_me: failed program was:" >&5
 
4828
sed 's/^/| /' conftest.$ac_ext >&5
 
4829
 
 
4830
( exit $ac_status )
 
4831
echo "$as_me:$LINENO: result: no" >&5
 
4832
echo "${ECHO_T}no" >&6
 
4833
fi
 
4834
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4835
fi
 
4836
 
 
4837
echo "$as_me:$LINENO: checking for socklen_t" >&5
 
4838
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
5456
4839
cat >conftest.$ac_ext <<_ACEOF
5457
4840
/* confdefs.h.  */
5458
4841
_ACEOF
5473
4856
}
5474
4857
_ACEOF
5475
4858
rm -f conftest.$ac_objext
5476
 
if { (ac_try="$ac_compile"
5477
 
case "(($ac_try" in
5478
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479
 
  *) ac_try_echo=$ac_try;;
5480
 
esac
5481
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482
 
  (eval "$ac_compile") 2>conftest.er1
 
4859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4860
  (eval $ac_compile) 2>conftest.er1
5483
4861
  ac_status=$?
5484
4862
  grep -v '^ *+' conftest.er1 >conftest.err
5485
4863
  rm -f conftest.er1
5486
4864
  cat conftest.err >&5
5487
4865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488
4866
  (exit $ac_status); } &&
5489
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5490
 
  { (case "(($ac_try" in
5491
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492
 
  *) ac_try_echo=$ac_try;;
5493
 
esac
5494
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495
 
  (eval "$ac_try") 2>&5
 
4867
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4869
  (eval $ac_try) 2>&5
5496
4870
  ac_status=$?
5497
4871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498
4872
  (exit $ac_status); }; } &&
5499
4873
         { ac_try='test -s conftest.$ac_objext'
5500
 
  { (case "(($ac_try" in
5501
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502
 
  *) ac_try_echo=$ac_try;;
5503
 
esac
5504
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505
 
  (eval "$ac_try") 2>&5
 
4874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4875
  (eval $ac_try) 2>&5
5506
4876
  ac_status=$?
5507
4877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508
4878
  (exit $ac_status); }; }; then
5509
 
  { echo "$as_me:$LINENO: result: yes" >&5
5510
 
echo "${ECHO_T}yes" >&6; }
 
4879
  echo "$as_me:$LINENO: result: yes" >&5
 
4880
echo "${ECHO_T}yes" >&6
5511
4881
else
5512
4882
  echo "$as_me: failed program was:" >&5
5513
4883
sed 's/^/| /' conftest.$ac_ext >&5
5517
4887
#define socklen_t int
5518
4888
_ACEOF
5519
4889
 
5520
 
{ echo "$as_me:$LINENO: result: no" >&5
5521
 
echo "${ECHO_T}no" >&6; }
 
4890
echo "$as_me:$LINENO: result: no" >&5
 
4891
echo "${ECHO_T}no" >&6
5522
4892
fi
5523
 
 
5524
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525
 
 
5526
 
{ echo "$as_me:$LINENO: checking for /proc filesystem" >&5
5527
 
echo $ECHO_N "checking for /proc filesystem... $ECHO_C" >&6; }
 
4893
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4894
 
 
4895
echo "$as_me:$LINENO: checking for /proc filesystem" >&5
 
4896
echo $ECHO_N "checking for /proc filesystem... $ECHO_C" >&6
5528
4897
if test -d /proc; then
5529
 
        { echo "$as_me:$LINENO: result: yes" >&5
5530
 
echo "${ECHO_T}yes" >&6; }
 
4898
        echo "$as_me:$LINENO: result: yes" >&5
 
4899
echo "${ECHO_T}yes" >&6
5531
4900
 
5532
4901
cat >>confdefs.h <<\_ACEOF
5533
4902
#define HAVE_PROC 1
5534
4903
_ACEOF
5535
4904
 
5536
4905
else
5537
 
        { echo "$as_me:$LINENO: result: no" >&5
5538
 
echo "${ECHO_T}no" >&6; }
 
4906
        echo "$as_me:$LINENO: result: no" >&5
 
4907
echo "${ECHO_T}no" >&6
5539
4908
fi
5540
4909
 
5541
 
{ echo "$as_me:$LINENO: checking for file /proc/stat" >&5
5542
 
echo $ECHO_N "checking for file /proc/stat... $ECHO_C" >&6; }
 
4910
echo "$as_me:$LINENO: checking for file /proc/stat" >&5
 
4911
echo $ECHO_N "checking for file /proc/stat... $ECHO_C" >&6
5543
4912
if test -r /proc/stat; then
5544
 
        { echo "$as_me:$LINENO: result: yes" >&5
5545
 
echo "${ECHO_T}yes" >&6; }
 
4913
        echo "$as_me:$LINENO: result: yes" >&5
 
4914
echo "${ECHO_T}yes" >&6
5546
4915
 
5547
4916
cat >>confdefs.h <<\_ACEOF
5548
4917
#define HAVE_PROC_STAT 1
5549
4918
_ACEOF
5550
4919
 
5551
4920
else
5552
 
        { echo "$as_me:$LINENO: result: no" >&5
5553
 
echo "${ECHO_T}no" >&6; }
 
4921
        echo "$as_me:$LINENO: result: no" >&5
 
4922
echo "${ECHO_T}no" >&6
5554
4923
fi
5555
4924
 
5556
 
{ echo "$as_me:$LINENO: checking for file /proc/cpuinfo" >&5
5557
 
echo $ECHO_N "checking for file /proc/cpuinfo... $ECHO_C" >&6; }
 
4925
echo "$as_me:$LINENO: checking for file /proc/cpuinfo" >&5
 
4926
echo $ECHO_N "checking for file /proc/cpuinfo... $ECHO_C" >&6
5558
4927
if test -r /proc/cpuinfo; then
5559
 
        { echo "$as_me:$LINENO: result: yes" >&5
5560
 
echo "${ECHO_T}yes" >&6; }
 
4928
        echo "$as_me:$LINENO: result: yes" >&5
 
4929
echo "${ECHO_T}yes" >&6
5561
4930
 
5562
4931
cat >>confdefs.h <<\_ACEOF
5563
4932
#define HAVE_PROC_CPUINFO 1
5564
4933
_ACEOF
5565
4934
 
5566
4935
else
5567
 
        { echo "$as_me:$LINENO: result: no" >&5
5568
 
echo "${ECHO_T}no" >&6; }
 
4936
        echo "$as_me:$LINENO: result: no" >&5
 
4937
echo "${ECHO_T}no" >&6
5569
4938
fi
5570
4939
 
5571
 
{ echo "$as_me:$LINENO: checking for file /proc/1/status" >&5
5572
 
echo $ECHO_N "checking for file /proc/1/status... $ECHO_C" >&6; }
 
4940
echo "$as_me:$LINENO: checking for file /proc/1/status" >&5
 
4941
echo $ECHO_N "checking for file /proc/1/status... $ECHO_C" >&6
5573
4942
if test -r /proc/1/status; then
5574
 
        { echo "$as_me:$LINENO: result: yes" >&5
5575
 
echo "${ECHO_T}yes" >&6; }
 
4943
        echo "$as_me:$LINENO: result: yes" >&5
 
4944
echo "${ECHO_T}yes" >&6
5576
4945
 
5577
4946
cat >>confdefs.h <<\_ACEOF
5578
4947
#define HAVE_PROC_1_STATUS 1
5579
4948
_ACEOF
5580
4949
 
5581
4950
else
5582
 
        { echo "$as_me:$LINENO: result: no" >&5
5583
 
echo "${ECHO_T}no" >&6; }
 
4951
        echo "$as_me:$LINENO: result: no" >&5
 
4952
echo "${ECHO_T}no" >&6
5584
4953
fi
5585
4954
 
5586
 
{ echo "$as_me:$LINENO: checking for file /proc/0/psinfo" >&5
5587
 
echo $ECHO_N "checking for file /proc/0/psinfo... $ECHO_C" >&6; }
 
4955
echo "$as_me:$LINENO: checking for file /proc/0/psinfo" >&5
 
4956
echo $ECHO_N "checking for file /proc/0/psinfo... $ECHO_C" >&6
5588
4957
if test -r /proc/0/psinfo; then
5589
 
        { echo "$as_me:$LINENO: result: yes" >&5
5590
 
echo "${ECHO_T}yes" >&6; }
 
4958
        echo "$as_me:$LINENO: result: yes" >&5
 
4959
echo "${ECHO_T}yes" >&6
5591
4960
 
5592
4961
cat >>confdefs.h <<\_ACEOF
5593
4962
#define HAVE_PROC_0_PSINFO 1
5594
4963
_ACEOF
5595
4964
 
5596
4965
else
5597
 
        { echo "$as_me:$LINENO: result: no" >&5
5598
 
echo "${ECHO_T}no" >&6; }
 
4966
        echo "$as_me:$LINENO: result: no" >&5
 
4967
echo "${ECHO_T}no" >&6
5599
4968
fi
5600
4969
 
5601
 
{ echo "$as_me:$LINENO: checking for file /proc/loadavg" >&5
5602
 
echo $ECHO_N "checking for file /proc/loadavg... $ECHO_C" >&6; }
 
4970
echo "$as_me:$LINENO: checking for file /proc/loadavg" >&5
 
4971
echo $ECHO_N "checking for file /proc/loadavg... $ECHO_C" >&6
5603
4972
if test -r /proc/loadavg; then
5604
 
        { echo "$as_me:$LINENO: result: yes" >&5
5605
 
echo "${ECHO_T}yes" >&6; }
 
4973
        echo "$as_me:$LINENO: result: yes" >&5
 
4974
echo "${ECHO_T}yes" >&6
5606
4975
 
5607
4976
cat >>confdefs.h <<\_ACEOF
5608
4977
#define HAVE_PROC_LOADAVG 1
5609
4978
_ACEOF
5610
4979
 
5611
4980
else
5612
 
        { echo "$as_me:$LINENO: result: no" >&5
5613
 
echo "${ECHO_T}no" >&6; }
 
4981
        echo "$as_me:$LINENO: result: no" >&5
 
4982
echo "${ECHO_T}no" >&6
5614
4983
fi
5615
4984
 
5616
 
{ echo "$as_me:$LINENO: checking for file /proc/net/dev" >&5
5617
 
echo $ECHO_N "checking for file /proc/net/dev... $ECHO_C" >&6; }
 
4985
echo "$as_me:$LINENO: checking for file /proc/net/dev" >&5
 
4986
echo $ECHO_N "checking for file /proc/net/dev... $ECHO_C" >&6
5618
4987
if test -r /proc/net/dev; then
5619
 
        { echo "$as_me:$LINENO: result: yes" >&5
5620
 
echo "${ECHO_T}yes" >&6; }
 
4988
        echo "$as_me:$LINENO: result: yes" >&5
 
4989
echo "${ECHO_T}yes" >&6
5621
4990
 
5622
4991
cat >>confdefs.h <<\_ACEOF
5623
4992
#define HAVE_PROC_NET_DEV 1
5624
4993
_ACEOF
5625
4994
 
5626
4995
else
5627
 
        { echo "$as_me:$LINENO: result: no" >&5
5628
 
echo "${ECHO_T}no" >&6; }
 
4996
        echo "$as_me:$LINENO: result: no" >&5
 
4997
echo "${ECHO_T}no" >&6
5629
4998
fi
5630
4999
 
5631
 
{ echo "$as_me:$LINENO: checking for mem_unit in struct sysinfo" >&5
5632
 
echo $ECHO_N "checking for mem_unit in struct sysinfo... $ECHO_C" >&6; }
 
5000
echo "$as_me:$LINENO: checking for mem_unit in struct sysinfo" >&5
 
5001
echo $ECHO_N "checking for mem_unit in struct sysinfo... $ECHO_C" >&6
5633
5002
cat >conftest.$ac_ext <<_ACEOF
5634
5003
/* confdefs.h.  */
5635
5004
_ACEOF
5648
5017
}
5649
5018
_ACEOF
5650
5019
rm -f conftest.$ac_objext
5651
 
if { (ac_try="$ac_compile"
5652
 
case "(($ac_try" in
5653
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654
 
  *) ac_try_echo=$ac_try;;
5655
 
esac
5656
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657
 
  (eval "$ac_compile") 2>conftest.er1
 
5020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5021
  (eval $ac_compile) 2>conftest.er1
5658
5022
  ac_status=$?
5659
5023
  grep -v '^ *+' conftest.er1 >conftest.err
5660
5024
  rm -f conftest.er1
5661
5025
  cat conftest.err >&5
5662
5026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
5027
  (exit $ac_status); } &&
5664
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5665
 
  { (case "(($ac_try" in
5666
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667
 
  *) ac_try_echo=$ac_try;;
5668
 
esac
5669
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670
 
  (eval "$ac_try") 2>&5
 
5028
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5030
  (eval $ac_try) 2>&5
5671
5031
  ac_status=$?
5672
5032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
5033
  (exit $ac_status); }; } &&
5674
5034
         { ac_try='test -s conftest.$ac_objext'
5675
 
  { (case "(($ac_try" in
5676
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677
 
  *) ac_try_echo=$ac_try;;
5678
 
esac
5679
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680
 
  (eval "$ac_try") 2>&5
 
5035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5036
  (eval $ac_try) 2>&5
5681
5037
  ac_status=$?
5682
5038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
5039
  (exit $ac_status); }; }; then
5686
5042
#define HAVE_SYSINFO_MEM_UNIT 1
5687
5043
_ACEOF
5688
5044
 
5689
 
{ echo "$as_me:$LINENO: result: yes" >&5
5690
 
echo "${ECHO_T}yes" >&6; }
 
5045
echo "$as_me:$LINENO: result: yes" >&5
 
5046
echo "${ECHO_T}yes" >&6
5691
5047
else
5692
5048
  echo "$as_me: failed program was:" >&5
5693
5049
sed 's/^/| /' conftest.$ac_ext >&5
5694
5050
 
5695
 
        { echo "$as_me:$LINENO: result: no" >&5
5696
 
echo "${ECHO_T}no" >&6; }
 
5051
echo "$as_me:$LINENO: result: no" >&5
 
5052
echo "${ECHO_T}no" >&6
5697
5053
fi
5698
 
 
5699
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700
 
 
5701
 
{ echo "$as_me:$LINENO: checking for freeswap in struct sysinfo" >&5
5702
 
echo $ECHO_N "checking for freeswap in struct sysinfo... $ECHO_C" >&6; }
 
5054
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5055
 
 
5056
echo "$as_me:$LINENO: checking for freeswap in struct sysinfo" >&5
 
5057
echo $ECHO_N "checking for freeswap in struct sysinfo... $ECHO_C" >&6
5703
5058
cat >conftest.$ac_ext <<_ACEOF
5704
5059
/* confdefs.h.  */
5705
5060
_ACEOF
5718
5073
}
5719
5074
_ACEOF
5720
5075
rm -f conftest.$ac_objext
5721
 
if { (ac_try="$ac_compile"
5722
 
case "(($ac_try" in
5723
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724
 
  *) ac_try_echo=$ac_try;;
5725
 
esac
5726
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727
 
  (eval "$ac_compile") 2>conftest.er1
 
5076
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5077
  (eval $ac_compile) 2>conftest.er1
5728
5078
  ac_status=$?
5729
5079
  grep -v '^ *+' conftest.er1 >conftest.err
5730
5080
  rm -f conftest.er1
5731
5081
  cat conftest.err >&5
5732
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
5083
  (exit $ac_status); } &&
5734
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5735
 
  { (case "(($ac_try" in
5736
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737
 
  *) ac_try_echo=$ac_try;;
5738
 
esac
5739
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740
 
  (eval "$ac_try") 2>&5
 
5084
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5086
  (eval $ac_try) 2>&5
5741
5087
  ac_status=$?
5742
5088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
5089
  (exit $ac_status); }; } &&
5744
5090
         { ac_try='test -s conftest.$ac_objext'
5745
 
  { (case "(($ac_try" in
5746
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747
 
  *) ac_try_echo=$ac_try;;
5748
 
esac
5749
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750
 
  (eval "$ac_try") 2>&5
 
5091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5092
  (eval $ac_try) 2>&5
5751
5093
  ac_status=$?
5752
5094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
5095
  (exit $ac_status); }; }; then
5756
5098
#define HAVE_SYSINFO_FREESWAP 1
5757
5099
_ACEOF
5758
5100
 
5759
 
{ echo "$as_me:$LINENO: result: yes" >&5
5760
 
echo "${ECHO_T}yes" >&6; }
 
5101
echo "$as_me:$LINENO: result: yes" >&5
 
5102
echo "${ECHO_T}yes" >&6
5761
5103
else
5762
5104
  echo "$as_me: failed program was:" >&5
5763
5105
sed 's/^/| /' conftest.$ac_ext >&5
5764
5106
 
5765
 
        { echo "$as_me:$LINENO: result: no" >&5
5766
 
echo "${ECHO_T}no" >&6; }
 
5107
echo "$as_me:$LINENO: result: no" >&5
 
5108
echo "${ECHO_T}no" >&6
5767
5109
fi
5768
 
 
5769
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770
 
 
5771
 
{ echo "$as_me:$LINENO: checking for function setpriority() in sys/resource.h" >&5
5772
 
echo $ECHO_N "checking for function setpriority() in sys/resource.h... $ECHO_C" >&6; }
 
5110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5111
 
 
5112
echo "$as_me:$LINENO: checking for function setpriority() in sys/resource.h" >&5
 
5113
echo $ECHO_N "checking for function setpriority() in sys/resource.h... $ECHO_C" >&6
5773
5114
cat >conftest.$ac_ext <<_ACEOF
5774
5115
/* confdefs.h.  */
5775
5116
_ACEOF
5792
5133
}
5793
5134
_ACEOF
5794
5135
rm -f conftest.$ac_objext
5795
 
if { (ac_try="$ac_compile"
5796
 
case "(($ac_try" in
5797
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798
 
  *) ac_try_echo=$ac_try;;
5799
 
esac
5800
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801
 
  (eval "$ac_compile") 2>conftest.er1
 
5136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5137
  (eval $ac_compile) 2>conftest.er1
5802
5138
  ac_status=$?
5803
5139
  grep -v '^ *+' conftest.er1 >conftest.err
5804
5140
  rm -f conftest.er1
5805
5141
  cat conftest.err >&5
5806
5142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807
5143
  (exit $ac_status); } &&
5808
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809
 
  { (case "(($ac_try" in
5810
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811
 
  *) ac_try_echo=$ac_try;;
5812
 
esac
5813
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814
 
  (eval "$ac_try") 2>&5
 
5144
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5146
  (eval $ac_try) 2>&5
5815
5147
  ac_status=$?
5816
5148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817
5149
  (exit $ac_status); }; } &&
5818
5150
         { ac_try='test -s conftest.$ac_objext'
5819
 
  { (case "(($ac_try" in
5820
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821
 
  *) ac_try_echo=$ac_try;;
5822
 
esac
5823
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824
 
  (eval "$ac_try") 2>&5
 
5151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5152
  (eval $ac_try) 2>&5
5825
5153
  ac_status=$?
5826
5154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827
5155
  (exit $ac_status); }; }; then
5830
5158
#define HAVE_SYS_RESOURCE_SETPRIORITY 1
5831
5159
_ACEOF
5832
5160
 
5833
 
{ echo "$as_me:$LINENO: result: yes" >&5
5834
 
echo "${ECHO_T}yes" >&6; }
 
5161
echo "$as_me:$LINENO: result: yes" >&5
 
5162
echo "${ECHO_T}yes" >&6
5835
5163
else
5836
5164
  echo "$as_me: failed program was:" >&5
5837
5165
sed 's/^/| /' conftest.$ac_ext >&5
5838
5166
 
5839
 
        { echo "$as_me:$LINENO: result: no" >&5
5840
 
echo "${ECHO_T}no" >&6; }
 
5167
echo "$as_me:$LINENO: result: no" >&5
 
5168
echo "${ECHO_T}no" >&6
5841
5169
fi
5842
 
 
5843
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844
 
 
5845
 
{ echo "$as_me:$LINENO: checking for function sysconf() in unistd.h" >&5
5846
 
echo $ECHO_N "checking for function sysconf() in unistd.h... $ECHO_C" >&6; }
 
5170
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5171
 
 
5172
echo "$as_me:$LINENO: checking for function sysconf() in unistd.h" >&5
 
5173
echo $ECHO_N "checking for function sysconf() in unistd.h... $ECHO_C" >&6
5847
5174
cat >conftest.$ac_ext <<_ACEOF
5848
5175
/* confdefs.h.  */
5849
5176
_ACEOF
5866
5193
}
5867
5194
_ACEOF
5868
5195
rm -f conftest.$ac_objext
5869
 
if { (ac_try="$ac_compile"
5870
 
case "(($ac_try" in
5871
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872
 
  *) ac_try_echo=$ac_try;;
5873
 
esac
5874
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875
 
  (eval "$ac_compile") 2>conftest.er1
 
5196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5197
  (eval $ac_compile) 2>conftest.er1
5876
5198
  ac_status=$?
5877
5199
  grep -v '^ *+' conftest.er1 >conftest.err
5878
5200
  rm -f conftest.er1
5879
5201
  cat conftest.err >&5
5880
5202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881
5203
  (exit $ac_status); } &&
5882
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5883
 
  { (case "(($ac_try" in
5884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885
 
  *) ac_try_echo=$ac_try;;
5886
 
esac
5887
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888
 
  (eval "$ac_try") 2>&5
 
5204
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5206
  (eval $ac_try) 2>&5
5889
5207
  ac_status=$?
5890
5208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891
5209
  (exit $ac_status); }; } &&
5892
5210
         { ac_try='test -s conftest.$ac_objext'
5893
 
  { (case "(($ac_try" in
5894
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895
 
  *) ac_try_echo=$ac_try;;
5896
 
esac
5897
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898
 
  (eval "$ac_try") 2>&5
 
5211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5212
  (eval $ac_try) 2>&5
5899
5213
  ac_status=$?
5900
5214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901
5215
  (exit $ac_status); }; }; then
5904
5218
#define HAVE_UNISTD_SYSCONF 1
5905
5219
_ACEOF
5906
5220
 
5907
 
{ echo "$as_me:$LINENO: result: yes" >&5
5908
 
echo "${ECHO_T}yes" >&6; }
 
5221
echo "$as_me:$LINENO: result: yes" >&5
 
5222
echo "${ECHO_T}yes" >&6
5909
5223
else
5910
5224
  echo "$as_me: failed program was:" >&5
5911
5225
sed 's/^/| /' conftest.$ac_ext >&5
5912
5226
 
5913
 
        { echo "$as_me:$LINENO: result: no" >&5
5914
 
echo "${ECHO_T}no" >&6; }
 
5227
echo "$as_me:$LINENO: result: no" >&5
 
5228
echo "${ECHO_T}no" >&6
5915
5229
fi
5916
 
 
5917
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918
 
 
5919
 
{ echo "$as_me:$LINENO: checking for macro __va_copy() in stdarg.h" >&5
5920
 
echo $ECHO_N "checking for macro __va_copy() in stdarg.h... $ECHO_C" >&6; }
 
5230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5231
 
 
5232
echo "$as_me:$LINENO: checking for macro __va_copy() in stdarg.h" >&5
 
5233
echo $ECHO_N "checking for macro __va_copy() in stdarg.h... $ECHO_C" >&6
5921
5234
cat >conftest.$ac_ext <<_ACEOF
5922
5235
/* confdefs.h.  */
5923
5236
_ACEOF
5941
5254
}
5942
5255
_ACEOF
5943
5256
rm -f conftest.$ac_objext
5944
 
if { (ac_try="$ac_compile"
5945
 
case "(($ac_try" in
5946
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947
 
  *) ac_try_echo=$ac_try;;
5948
 
esac
5949
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950
 
  (eval "$ac_compile") 2>conftest.er1
 
5257
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5258
  (eval $ac_compile) 2>conftest.er1
5951
5259
  ac_status=$?
5952
5260
  grep -v '^ *+' conftest.er1 >conftest.err
5953
5261
  rm -f conftest.er1
5954
5262
  cat conftest.err >&5
5955
5263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956
5264
  (exit $ac_status); } &&
5957
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5958
 
  { (case "(($ac_try" in
5959
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960
 
  *) ac_try_echo=$ac_try;;
5961
 
esac
5962
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963
 
  (eval "$ac_try") 2>&5
 
5265
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5267
  (eval $ac_try) 2>&5
5964
5268
  ac_status=$?
5965
5269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966
5270
  (exit $ac_status); }; } &&
5967
5271
         { ac_try='test -s conftest.$ac_objext'
5968
 
  { (case "(($ac_try" in
5969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970
 
  *) ac_try_echo=$ac_try;;
5971
 
esac
5972
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973
 
  (eval "$ac_try") 2>&5
 
5272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5273
  (eval $ac_try) 2>&5
5974
5274
  ac_status=$?
5975
5275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976
5276
  (exit $ac_status); }; }; then
5979
5279
#define HAVE___VA_COPY 1
5980
5280
_ACEOF
5981
5281
 
5982
 
{ echo "$as_me:$LINENO: result: yes" >&5
5983
 
echo "${ECHO_T}yes" >&6; }
 
5282
echo "$as_me:$LINENO: result: yes" >&5
 
5283
echo "${ECHO_T}yes" >&6
5984
5284
else
5985
5285
  echo "$as_me: failed program was:" >&5
5986
5286
sed 's/^/| /' conftest.$ac_ext >&5
5987
5287
 
5988
 
        { echo "$as_me:$LINENO: result: no" >&5
5989
 
echo "${ECHO_T}no" >&6; }
 
5288
echo "$as_me:$LINENO: result: no" >&5
 
5289
echo "${ECHO_T}no" >&6
5990
5290
fi
5991
 
 
5992
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993
 
 
5994
 
{ echo "$as_me:$LINENO: checking for vmtotal in struct sys/vmmeter.h" >&5
5995
 
echo $ECHO_N "checking for vmtotal in struct sys/vmmeter.h... $ECHO_C" >&6; }
 
5291
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5292
 
 
5293
echo "$as_me:$LINENO: checking for vmtotal in struct sys/vmmeter.h" >&5
 
5294
echo $ECHO_N "checking for vmtotal in struct sys/vmmeter.h... $ECHO_C" >&6
5996
5295
cat >conftest.$ac_ext <<_ACEOF
5997
5296
/* confdefs.h.  */
5998
5297
_ACEOF
6000
5299
cat >>conftest.$ac_ext <<_ACEOF
6001
5300
/* end confdefs.h.  */
6002
5301
 
6003
 
#include <stdlib.h>
 
5302
#ifdef HAVE_SYS_TYPES_H
6004
5303
#include <sys/types.h>
 
5304
#endif /* HAVE_SYS_TYPES_H */
 
5305
 
 
5306
#ifdef HAVE_SYS_PARAM_H
 
5307
#include <sys/param.h>
 
5308
#endif /* HAVE_SYS_PARAM_H */
 
5309
 
6005
5310
#include <sys/sysctl.h>
 
5311
 
 
5312
#ifdef HAVE_VM_VM_PARAM_H
6006
5313
#include <vm/vm_param.h>
 
5314
#endif /* HAVE_VM_VM_PARAM_H */
 
5315
 
 
5316
#ifdef HAVE_SYS_VMMETER_H
6007
5317
#include <sys/vmmeter.h>
 
5318
#endif /* HAVE_SYS_VMMETER_H */
6008
5319
 
6009
5320
int
6010
5321
main ()
6011
5322
{
6012
 
        int mib[2],len;
6013
 
        struct vmtotal v;
6014
 
 
6015
 
        len=sizeof(struct vmtotal);
6016
 
        mib[0]=CTL_VM;
6017
 
        mib[1]=VM_METER;
6018
 
 
6019
 
        sysctl(mib,2,&v,&len,NULL,0);
 
5323
 
 
5324
        size_t          len;
 
5325
        int             mib[2];
 
5326
        struct vmtotal  v;
 
5327
 
 
5328
        len = sizeof(struct vmtotal);
 
5329
        mib[0] = CTL_VM;
 
5330
        mib[1] = VM_METER;
 
5331
 
 
5332
        sysctl(mib, 2, &v, &len, NULL, 0);
6020
5333
 
6021
5334
  ;
6022
5335
  return 0;
6023
5336
}
6024
5337
_ACEOF
6025
5338
rm -f conftest.$ac_objext
6026
 
if { (ac_try="$ac_compile"
6027
 
case "(($ac_try" in
6028
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029
 
  *) ac_try_echo=$ac_try;;
6030
 
esac
6031
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032
 
  (eval "$ac_compile") 2>conftest.er1
 
5339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5340
  (eval $ac_compile) 2>conftest.er1
6033
5341
  ac_status=$?
6034
5342
  grep -v '^ *+' conftest.er1 >conftest.err
6035
5343
  rm -f conftest.er1
6036
5344
  cat conftest.err >&5
6037
5345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038
5346
  (exit $ac_status); } &&
6039
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6040
 
  { (case "(($ac_try" in
6041
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042
 
  *) ac_try_echo=$ac_try;;
6043
 
esac
6044
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045
 
  (eval "$ac_try") 2>&5
 
5347
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5349
  (eval $ac_try) 2>&5
6046
5350
  ac_status=$?
6047
5351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048
5352
  (exit $ac_status); }; } &&
6049
5353
         { ac_try='test -s conftest.$ac_objext'
6050
 
  { (case "(($ac_try" in
6051
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052
 
  *) ac_try_echo=$ac_try;;
6053
 
esac
6054
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055
 
  (eval "$ac_try") 2>&5
 
5354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5355
  (eval $ac_try) 2>&5
6056
5356
  ac_status=$?
6057
5357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058
5358
  (exit $ac_status); }; }; then
6061
5361
#define HAVE_SYS_VMMETER_VMTOTAL 1
6062
5362
_ACEOF
6063
5363
 
6064
 
{ echo "$as_me:$LINENO: result: yes" >&5
6065
 
echo "${ECHO_T}yes" >&6; }
 
5364
echo "$as_me:$LINENO: result: yes" >&5
 
5365
echo "${ECHO_T}yes" >&6
6066
5366
else
6067
5367
  echo "$as_me: failed program was:" >&5
6068
5368
sed 's/^/| /' conftest.$ac_ext >&5
6069
5369
 
6070
 
        { echo "$as_me:$LINENO: result: no" >&5
6071
 
echo "${ECHO_T}no" >&6; }
 
5370
echo "$as_me:$LINENO: result: no" >&5
 
5371
echo "${ECHO_T}no" >&6
6072
5372
fi
6073
 
 
6074
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075
 
 
6076
 
{ echo "$as_me:$LINENO: checking for struct swaptable in sys/swap.h" >&5
6077
 
echo $ECHO_N "checking for struct swaptable in sys/swap.h... $ECHO_C" >&6; }
 
5373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5374
 
 
5375
echo "$as_me:$LINENO: checking for struct swaptable in sys/swap.h" >&5
 
5376
echo $ECHO_N "checking for struct swaptable in sys/swap.h... $ECHO_C" >&6
6078
5377
cat >conftest.$ac_ext <<_ACEOF
6079
5378
/* confdefs.h.  */
6080
5379
_ACEOF
6146
5445
}
6147
5446
_ACEOF
6148
5447
rm -f conftest.$ac_objext
6149
 
if { (ac_try="$ac_compile"
6150
 
case "(($ac_try" in
6151
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152
 
  *) ac_try_echo=$ac_try;;
6153
 
esac
6154
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155
 
  (eval "$ac_compile") 2>conftest.er1
 
5448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5449
  (eval $ac_compile) 2>conftest.er1
6156
5450
  ac_status=$?
6157
5451
  grep -v '^ *+' conftest.er1 >conftest.err
6158
5452
  rm -f conftest.er1
6159
5453
  cat conftest.err >&5
6160
5454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161
5455
  (exit $ac_status); } &&
6162
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6163
 
  { (case "(($ac_try" in
6164
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165
 
  *) ac_try_echo=$ac_try;;
6166
 
esac
6167
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168
 
  (eval "$ac_try") 2>&5
 
5456
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5458
  (eval $ac_try) 2>&5
6169
5459
  ac_status=$?
6170
5460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171
5461
  (exit $ac_status); }; } &&
6172
5462
         { ac_try='test -s conftest.$ac_objext'
6173
 
  { (case "(($ac_try" in
6174
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175
 
  *) ac_try_echo=$ac_try;;
6176
 
esac
6177
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178
 
  (eval "$ac_try") 2>&5
 
5463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5464
  (eval $ac_try) 2>&5
6179
5465
  ac_status=$?
6180
5466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181
5467
  (exit $ac_status); }; }; then
6184
5470
#define HAVE_SYS_SWAP_SWAPTABLE 1
6185
5471
_ACEOF
6186
5472
 
6187
 
{ echo "$as_me:$LINENO: result: yes" >&5
6188
 
echo "${ECHO_T}yes" >&6; }
 
5473
echo "$as_me:$LINENO: result: yes" >&5
 
5474
echo "${ECHO_T}yes" >&6
6189
5475
else
6190
5476
  echo "$as_me: failed program was:" >&5
6191
5477
sed 's/^/| /' conftest.$ac_ext >&5
6192
5478
 
6193
 
        { echo "$as_me:$LINENO: result: no" >&5
6194
 
echo "${ECHO_T}no" >&6; }
 
5479
echo "$as_me:$LINENO: result: no" >&5
 
5480
echo "${ECHO_T}no" >&6
6195
5481
fi
6196
 
 
6197
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198
 
 
6199
 
{ echo "$as_me:$LINENO: checking for totalswap in struct sysinfo" >&5
6200
 
echo $ECHO_N "checking for totalswap in struct sysinfo... $ECHO_C" >&6; }
 
5482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5483
 
 
5484
echo "$as_me:$LINENO: checking for totalswap in struct sysinfo" >&5
 
5485
echo $ECHO_N "checking for totalswap in struct sysinfo... $ECHO_C" >&6
6201
5486
cat >conftest.$ac_ext <<_ACEOF
6202
5487
/* confdefs.h.  */
6203
5488
_ACEOF
6216
5501
}
6217
5502
_ACEOF
6218
5503
rm -f conftest.$ac_objext
6219
 
if { (ac_try="$ac_compile"
6220
 
case "(($ac_try" in
6221
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222
 
  *) ac_try_echo=$ac_try;;
6223
 
esac
6224
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225
 
  (eval "$ac_compile") 2>conftest.er1
 
5504
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5505
  (eval $ac_compile) 2>conftest.er1
6226
5506
  ac_status=$?
6227
5507
  grep -v '^ *+' conftest.er1 >conftest.err
6228
5508
  rm -f conftest.er1
6229
5509
  cat conftest.err >&5
6230
5510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231
5511
  (exit $ac_status); } &&
6232
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6233
 
  { (case "(($ac_try" in
6234
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235
 
  *) ac_try_echo=$ac_try;;
6236
 
esac
6237
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238
 
  (eval "$ac_try") 2>&5
 
5512
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5514
  (eval $ac_try) 2>&5
6239
5515
  ac_status=$?
6240
5516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241
5517
  (exit $ac_status); }; } &&
6242
5518
         { ac_try='test -s conftest.$ac_objext'
6243
 
  { (case "(($ac_try" in
6244
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245
 
  *) ac_try_echo=$ac_try;;
6246
 
esac
6247
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248
 
  (eval "$ac_try") 2>&5
 
5519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5520
  (eval $ac_try) 2>&5
6249
5521
  ac_status=$?
6250
5522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251
5523
  (exit $ac_status); }; }; then
6254
5526
#define HAVE_SYSINFO_TOTALSWAP 1
6255
5527
_ACEOF
6256
5528
 
6257
 
{ echo "$as_me:$LINENO: result: yes" >&5
6258
 
echo "${ECHO_T}yes" >&6; }
 
5529
echo "$as_me:$LINENO: result: yes" >&5
 
5530
echo "${ECHO_T}yes" >&6
6259
5531
else
6260
5532
  echo "$as_me: failed program was:" >&5
6261
5533
sed 's/^/| /' conftest.$ac_ext >&5
6262
5534
 
6263
 
        { echo "$as_me:$LINENO: result: no" >&5
6264
 
echo "${ECHO_T}no" >&6; }
 
5535
echo "$as_me:$LINENO: result: no" >&5
 
5536
echo "${ECHO_T}no" >&6
6265
5537
fi
6266
 
 
6267
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268
 
 
6269
 
{ echo "$as_me:$LINENO: checking for function sysctl (KERN_BOOTTIME)" >&5
6270
 
echo $ECHO_N "checking for function sysctl (KERN_BOOTTIME)... $ECHO_C" >&6; }
 
5538
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5539
 
 
5540
echo "$as_me:$LINENO: checking for function sysctl (KERN_BOOTTIME)" >&5
 
5541
echo $ECHO_N "checking for function sysctl (KERN_BOOTTIME)... $ECHO_C" >&6
6271
5542
cat >conftest.$ac_ext <<_ACEOF
6272
5543
/* confdefs.h.  */
6273
5544
_ACEOF
6275
5546
cat >>conftest.$ac_ext <<_ACEOF
6276
5547
/* end confdefs.h.  */
6277
5548
 
6278
 
        #include <sys/types.h>
6279
 
        #include <sys/sysctl.h>
6280
 
        #include <unistd.h>
6281
 
        #include <time.h>
6282
 
        #include <sys/time.h>
 
5549
#ifdef HAVE_SYS_TYPES_H
 
5550
#include <sys/types.h>
 
5551
#endif /* HAVE_SYS_TYPES_H */
 
5552
 
 
5553
#ifdef HAVE_SYS_PARAM_H
 
5554
#include <sys/param.h>
 
5555
#endif /* HAVE_SYS_PARAM_H */
 
5556
 
 
5557
#include <sys/sysctl.h>
 
5558
#include <unistd.h>
 
5559
#include <time.h>
 
5560
#include <sys/time.h>
6283
5561
 
6284
5562
int
6285
5563
main ()
6286
5564
{
6287
5565
 
6288
 
        struct timeval uptime;
6289
 
        int     mib[2],len;
6290
 
        int     now;
6291
 
 
6292
 
        mib[0]=CTL_KERN;
6293
 
        mib[1]=KERN_BOOTTIME;
6294
 
        len=sizeof(uptime);
6295
 
        sysctl(mib,2,&uptime,&len,0,0);
 
5566
        size_t          len;
 
5567
        struct timeval  uptime;
 
5568
        int             mib[2];
 
5569
 
 
5570
        mib[0] = CTL_KERN;
 
5571
        mib[1] = KERN_BOOTTIME;
 
5572
 
 
5573
        len = sizeof(uptime);
 
5574
        sysctl(mib, 2, &uptime, &len, 0, 0);
6296
5575
 
6297
5576
  ;
6298
5577
  return 0;
6299
5578
}
6300
5579
_ACEOF
6301
5580
rm -f conftest.$ac_objext
6302
 
if { (ac_try="$ac_compile"
6303
 
case "(($ac_try" in
6304
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305
 
  *) ac_try_echo=$ac_try;;
6306
 
esac
6307
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308
 
  (eval "$ac_compile") 2>conftest.er1
 
5581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5582
  (eval $ac_compile) 2>conftest.er1
6309
5583
  ac_status=$?
6310
5584
  grep -v '^ *+' conftest.er1 >conftest.err
6311
5585
  rm -f conftest.er1
6312
5586
  cat conftest.err >&5
6313
5587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314
5588
  (exit $ac_status); } &&
6315
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6316
 
  { (case "(($ac_try" in
6317
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318
 
  *) ac_try_echo=$ac_try;;
6319
 
esac
6320
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321
 
  (eval "$ac_try") 2>&5
 
5589
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5591
  (eval $ac_try) 2>&5
6322
5592
  ac_status=$?
6323
5593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324
5594
  (exit $ac_status); }; } &&
6325
5595
         { ac_try='test -s conftest.$ac_objext'
6326
 
  { (case "(($ac_try" in
6327
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328
 
  *) ac_try_echo=$ac_try;;
6329
 
esac
6330
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331
 
  (eval "$ac_try") 2>&5
 
5596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5597
  (eval $ac_try) 2>&5
6332
5598
  ac_status=$?
6333
5599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334
5600
  (exit $ac_status); }; }; then
6337
5603
#define HAVE_FUNCTION_SYSCTL_KERN_BOOTTIME 1
6338
5604
_ACEOF
6339
5605
 
6340
 
{ echo "$as_me:$LINENO: result: yes" >&5
6341
 
echo "${ECHO_T}yes" >&6; }
6342
 
else
6343
 
  echo "$as_me: failed program was:" >&5
6344
 
sed 's/^/| /' conftest.$ac_ext >&5
6345
 
 
6346
 
        { echo "$as_me:$LINENO: result: no" >&5
6347
 
echo "${ECHO_T}no" >&6; }
6348
 
fi
6349
 
 
6350
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351
 
 
6352
 
{ echo "$as_me:$LINENO: checking for function sysctl (KERN_MAXFILES)" >&5
6353
 
echo $ECHO_N "checking for function sysctl (KERN_MAXFILES)... $ECHO_C" >&6; }
6354
 
cat >conftest.$ac_ext <<_ACEOF
6355
 
/* confdefs.h.  */
6356
 
_ACEOF
6357
 
cat confdefs.h >>conftest.$ac_ext
6358
 
cat >>conftest.$ac_ext <<_ACEOF
6359
 
/* end confdefs.h.  */
6360
 
 
6361
 
        #include <sys/types.h>
6362
 
        #include <sys/sysctl.h>
6363
 
 
6364
 
int
6365
 
main ()
6366
 
{
6367
 
 
6368
 
        int     mib[2],len;
6369
 
        int     maxfiles;
6370
 
 
6371
 
        mib[0]=CTL_KERN;
6372
 
        mib[1]=KERN_MAXFILES;
6373
 
        len=sizeof(maxfiles);
6374
 
        sysctl(mib,2,&maxfiles,&len,0,0);
6375
 
 
6376
 
  ;
6377
 
  return 0;
6378
 
}
6379
 
_ACEOF
6380
 
rm -f conftest.$ac_objext
6381
 
if { (ac_try="$ac_compile"
6382
 
case "(($ac_try" in
6383
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384
 
  *) ac_try_echo=$ac_try;;
6385
 
esac
6386
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387
 
  (eval "$ac_compile") 2>conftest.er1
6388
 
  ac_status=$?
6389
 
  grep -v '^ *+' conftest.er1 >conftest.err
6390
 
  rm -f conftest.er1
6391
 
  cat conftest.err >&5
6392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393
 
  (exit $ac_status); } &&
6394
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6395
 
  { (case "(($ac_try" in
6396
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397
 
  *) ac_try_echo=$ac_try;;
6398
 
esac
6399
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400
 
  (eval "$ac_try") 2>&5
6401
 
  ac_status=$?
6402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403
 
  (exit $ac_status); }; } &&
6404
 
         { ac_try='test -s conftest.$ac_objext'
6405
 
  { (case "(($ac_try" in
6406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407
 
  *) ac_try_echo=$ac_try;;
6408
 
esac
6409
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410
 
  (eval "$ac_try") 2>&5
 
5606
echo "$as_me:$LINENO: result: yes" >&5
 
5607
echo "${ECHO_T}yes" >&6
 
5608
else
 
5609
  echo "$as_me: failed program was:" >&5
 
5610
sed 's/^/| /' conftest.$ac_ext >&5
 
5611
 
 
5612
echo "$as_me:$LINENO: result: no" >&5
 
5613
echo "${ECHO_T}no" >&6
 
5614
fi
 
5615
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5616
 
 
5617
echo "$as_me:$LINENO: checking for function sysctl (HW_NCPU)" >&5
 
5618
echo $ECHO_N "checking for function sysctl (HW_NCPU)... $ECHO_C" >&6
 
5619
cat >conftest.$ac_ext <<_ACEOF
 
5620
/* confdefs.h.  */
 
5621
_ACEOF
 
5622
cat confdefs.h >>conftest.$ac_ext
 
5623
cat >>conftest.$ac_ext <<_ACEOF
 
5624
/* end confdefs.h.  */
 
5625
 
 
5626
#ifdef HAVE_SYS_TYPES_H
 
5627
#include <sys/types.h>
 
5628
#endif /* HAVE_SYS_TYPES_H */
 
5629
 
 
5630
#ifdef HAVE_SYS_PARAM_H
 
5631
#include <sys/param.h>
 
5632
#endif /* HAVE_SYS_PARAM_H */
 
5633
 
 
5634
#include <sys/sysctl.h>
 
5635
 
 
5636
int
 
5637
main ()
 
5638
{
 
5639
 
 
5640
        size_t  len;
 
5641
        int     mib[2], ncpu;
 
5642
 
 
5643
        mib[0] = CTL_HW;
 
5644
        mib[1] = HW_NCPU;
 
5645
 
 
5646
        len = sizeof(ncpu);
 
5647
        sysctl(mib, 2, &ncpu, &len, 0, 0);
 
5648
 
 
5649
  ;
 
5650
  return 0;
 
5651
}
 
5652
_ACEOF
 
5653
rm -f conftest.$ac_objext
 
5654
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5655
  (eval $ac_compile) 2>conftest.er1
 
5656
  ac_status=$?
 
5657
  grep -v '^ *+' conftest.er1 >conftest.err
 
5658
  rm -f conftest.er1
 
5659
  cat conftest.err >&5
 
5660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5661
  (exit $ac_status); } &&
 
5662
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5664
  (eval $ac_try) 2>&5
 
5665
  ac_status=$?
 
5666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5667
  (exit $ac_status); }; } &&
 
5668
         { ac_try='test -s conftest.$ac_objext'
 
5669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5670
  (eval $ac_try) 2>&5
 
5671
  ac_status=$?
 
5672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5673
  (exit $ac_status); }; }; then
 
5674
 
 
5675
cat >>confdefs.h <<\_ACEOF
 
5676
#define HAVE_FUNCTION_SYSCTL_HW_NCPU 1
 
5677
_ACEOF
 
5678
 
 
5679
echo "$as_me:$LINENO: result: yes" >&5
 
5680
echo "${ECHO_T}yes" >&6
 
5681
else
 
5682
  echo "$as_me: failed program was:" >&5
 
5683
sed 's/^/| /' conftest.$ac_ext >&5
 
5684
 
 
5685
echo "$as_me:$LINENO: result: no" >&5
 
5686
echo "${ECHO_T}no" >&6
 
5687
fi
 
5688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5689
 
 
5690
echo "$as_me:$LINENO: checking for function sysctlbyname()" >&5
 
5691
echo $ECHO_N "checking for function sysctlbyname()... $ECHO_C" >&6
 
5692
cat >conftest.$ac_ext <<_ACEOF
 
5693
/* confdefs.h.  */
 
5694
_ACEOF
 
5695
cat confdefs.h >>conftest.$ac_ext
 
5696
cat >>conftest.$ac_ext <<_ACEOF
 
5697
/* end confdefs.h.  */
 
5698
 
 
5699
#ifdef HAVE_SYS_TYPES_H
 
5700
#include <sys/types.h>
 
5701
#endif /* HAVE_SYS_TYPES_H */
 
5702
 
 
5703
#include <sys/sysctl.h>
 
5704
 
 
5705
int
 
5706
main ()
 
5707
{
 
5708
 
 
5709
        sysctlbyname("", 0, 0, 0, 0);
 
5710
 
 
5711
  ;
 
5712
  return 0;
 
5713
}
 
5714
_ACEOF
 
5715
rm -f conftest.$ac_objext conftest$ac_exeext
 
5716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5717
  (eval $ac_link) 2>conftest.er1
 
5718
  ac_status=$?
 
5719
  grep -v '^ *+' conftest.er1 >conftest.err
 
5720
  rm -f conftest.er1
 
5721
  cat conftest.err >&5
 
5722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5723
  (exit $ac_status); } &&
 
5724
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5726
  (eval $ac_try) 2>&5
 
5727
  ac_status=$?
 
5728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5729
  (exit $ac_status); }; } &&
 
5730
         { ac_try='test -s conftest$ac_exeext'
 
5731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5732
  (eval $ac_try) 2>&5
 
5733
  ac_status=$?
 
5734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5735
  (exit $ac_status); }; }; then
 
5736
 
 
5737
cat >>confdefs.h <<\_ACEOF
 
5738
#define HAVE_FUNCTION_SYSCTLBYNAME 1
 
5739
_ACEOF
 
5740
 
 
5741
echo "$as_me:$LINENO: result: yes" >&5
 
5742
echo "${ECHO_T}yes" >&6
 
5743
else
 
5744
  echo "$as_me: failed program was:" >&5
 
5745
sed 's/^/| /' conftest.$ac_ext >&5
 
5746
 
 
5747
echo "$as_me:$LINENO: result: no" >&5
 
5748
echo "${ECHO_T}no" >&6
 
5749
fi
 
5750
rm -f conftest.err conftest.$ac_objext \
 
5751
      conftest$ac_exeext conftest.$ac_ext
 
5752
 
 
5753
echo "$as_me:$LINENO: checking for function sysctl (KERN_MAXFILES)" >&5
 
5754
echo $ECHO_N "checking for function sysctl (KERN_MAXFILES)... $ECHO_C" >&6
 
5755
cat >conftest.$ac_ext <<_ACEOF
 
5756
/* confdefs.h.  */
 
5757
_ACEOF
 
5758
cat confdefs.h >>conftest.$ac_ext
 
5759
cat >>conftest.$ac_ext <<_ACEOF
 
5760
/* end confdefs.h.  */
 
5761
 
 
5762
#ifdef HAVE_SYS_TYPES_H
 
5763
#include <sys/types.h>
 
5764
#endif /* HAVE_SYS_TYPES_H */
 
5765
 
 
5766
#ifdef HAVE_SYS_PARAM_H
 
5767
#include <sys/param.h>
 
5768
#endif /* HAVE_SYS_PARAM_H */
 
5769
 
 
5770
#include <sys/sysctl.h>
 
5771
 
 
5772
int
 
5773
main ()
 
5774
{
 
5775
 
 
5776
        size_t  len;
 
5777
        int     mib[2], maxfiles;
 
5778
 
 
5779
        mib[0] = CTL_KERN;
 
5780
        mib[1] = KERN_MAXFILES;
 
5781
 
 
5782
        len = sizeof(maxfiles);
 
5783
        sysctl(mib, 2, &maxfiles, &len, 0, 0);
 
5784
 
 
5785
  ;
 
5786
  return 0;
 
5787
}
 
5788
_ACEOF
 
5789
rm -f conftest.$ac_objext
 
5790
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5791
  (eval $ac_compile) 2>conftest.er1
 
5792
  ac_status=$?
 
5793
  grep -v '^ *+' conftest.er1 >conftest.err
 
5794
  rm -f conftest.er1
 
5795
  cat conftest.err >&5
 
5796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5797
  (exit $ac_status); } &&
 
5798
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5800
  (eval $ac_try) 2>&5
 
5801
  ac_status=$?
 
5802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5803
  (exit $ac_status); }; } &&
 
5804
         { ac_try='test -s conftest.$ac_objext'
 
5805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5806
  (eval $ac_try) 2>&5
6411
5807
  ac_status=$?
6412
5808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413
5809
  (exit $ac_status); }; }; then
6416
5812
#define HAVE_FUNCTION_SYSCTL_KERN_MAXFILES 1
6417
5813
_ACEOF
6418
5814
 
6419
 
{ echo "$as_me:$LINENO: result: yes" >&5
6420
 
echo "${ECHO_T}yes" >&6; }
 
5815
echo "$as_me:$LINENO: result: yes" >&5
 
5816
echo "${ECHO_T}yes" >&6
6421
5817
else
6422
5818
  echo "$as_me: failed program was:" >&5
6423
5819
sed 's/^/| /' conftest.$ac_ext >&5
6424
5820
 
6425
 
        { echo "$as_me:$LINENO: result: no" >&5
6426
 
echo "${ECHO_T}no" >&6; }
 
5821
echo "$as_me:$LINENO: result: no" >&5
 
5822
echo "${ECHO_T}no" >&6
6427
5823
fi
6428
 
 
6429
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430
 
 
6431
 
{ echo "$as_me:$LINENO: checking for function sysctl (KERN_MAXPROC)" >&5
6432
 
echo $ECHO_N "checking for function sysctl (KERN_MAXPROC)... $ECHO_C" >&6; }
 
5824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5825
 
 
5826
echo "$as_me:$LINENO: checking for function sysctl (KERN_MAXPROC)" >&5
 
5827
echo $ECHO_N "checking for function sysctl (KERN_MAXPROC)... $ECHO_C" >&6
6433
5828
cat >conftest.$ac_ext <<_ACEOF
6434
5829
/* confdefs.h.  */
6435
5830
_ACEOF
6437
5832
cat >>conftest.$ac_ext <<_ACEOF
6438
5833
/* end confdefs.h.  */
6439
5834
 
6440
 
        #include <sys/types.h>
6441
 
        #include <sys/sysctl.h>
 
5835
#ifdef HAVE_SYS_TYPES_H
 
5836
#include <sys/types.h>
 
5837
#endif /* HAVE_SYS_TYPES_H */
 
5838
 
 
5839
#ifdef HAVE_SYS_PARAM_H
 
5840
#include <sys/param.h>
 
5841
#endif /* HAVE_SYS_PARAM_H */
 
5842
 
 
5843
#include <sys/sysctl.h>
6442
5844
 
6443
5845
int
6444
5846
main ()
6445
5847
{
6446
5848
 
6447
 
        int     mib[2],len;
6448
 
        int     maxproc;
6449
 
 
6450
 
        mib[0]=CTL_KERN;
6451
 
        mib[1]=KERN_MAXPROC;
6452
 
        len=sizeof(maxproc);
6453
 
        sysctl(mib,2,&maxproc,&len,0,0);
 
5849
        size_t  len;
 
5850
        int     mib[2], maxproc;
 
5851
 
 
5852
        mib[0] = CTL_KERN;
 
5853
        mib[1] = KERN_MAXPROC;
 
5854
 
 
5855
        len = sizeof(maxproc);
 
5856
        sysctl(mib, 2, &maxproc, &len, 0, 0);
6454
5857
 
6455
5858
  ;
6456
5859
  return 0;
6457
5860
}
6458
5861
_ACEOF
6459
5862
rm -f conftest.$ac_objext
6460
 
if { (ac_try="$ac_compile"
6461
 
case "(($ac_try" in
6462
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463
 
  *) ac_try_echo=$ac_try;;
6464
 
esac
6465
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466
 
  (eval "$ac_compile") 2>conftest.er1
 
5863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5864
  (eval $ac_compile) 2>conftest.er1
6467
5865
  ac_status=$?
6468
5866
  grep -v '^ *+' conftest.er1 >conftest.err
6469
5867
  rm -f conftest.er1
6470
5868
  cat conftest.err >&5
6471
5869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472
5870
  (exit $ac_status); } &&
6473
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6474
 
  { (case "(($ac_try" in
6475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476
 
  *) ac_try_echo=$ac_try;;
6477
 
esac
6478
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479
 
  (eval "$ac_try") 2>&5
 
5871
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5873
  (eval $ac_try) 2>&5
6480
5874
  ac_status=$?
6481
5875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482
5876
  (exit $ac_status); }; } &&
6483
5877
         { ac_try='test -s conftest.$ac_objext'
6484
 
  { (case "(($ac_try" in
6485
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486
 
  *) ac_try_echo=$ac_try;;
6487
 
esac
6488
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489
 
  (eval "$ac_try") 2>&5
 
5878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5879
  (eval $ac_try) 2>&5
6490
5880
  ac_status=$?
6491
5881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492
5882
  (exit $ac_status); }; }; then
6495
5885
#define HAVE_FUNCTION_SYSCTL_KERN_MAXPROC 1
6496
5886
_ACEOF
6497
5887
 
6498
 
{ echo "$as_me:$LINENO: result: yes" >&5
6499
 
echo "${ECHO_T}yes" >&6; }
6500
 
else
6501
 
  echo "$as_me: failed program was:" >&5
6502
 
sed 's/^/| /' conftest.$ac_ext >&5
6503
 
 
6504
 
        { echo "$as_me:$LINENO: result: no" >&5
6505
 
echo "${ECHO_T}no" >&6; }
6506
 
fi
6507
 
 
6508
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509
 
 
6510
 
{ echo "$as_me:$LINENO: checking for function seteuid()" >&5
6511
 
echo $ECHO_N "checking for function seteuid()... $ECHO_C" >&6; }
 
5888
echo "$as_me:$LINENO: result: yes" >&5
 
5889
echo "${ECHO_T}yes" >&6
 
5890
else
 
5891
  echo "$as_me: failed program was:" >&5
 
5892
sed 's/^/| /' conftest.$ac_ext >&5
 
5893
 
 
5894
echo "$as_me:$LINENO: result: no" >&5
 
5895
echo "${ECHO_T}no" >&6
 
5896
fi
 
5897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5898
 
 
5899
echo "$as_me:$LINENO: checking for function initgroups()" >&5
 
5900
echo $ECHO_N "checking for function initgroups()... $ECHO_C" >&6
 
5901
cat >conftest.$ac_ext <<_ACEOF
 
5902
/* confdefs.h.  */
 
5903
_ACEOF
 
5904
cat confdefs.h >>conftest.$ac_ext
 
5905
cat >>conftest.$ac_ext <<_ACEOF
 
5906
/* end confdefs.h.  */
 
5907
 
 
5908
        #include <sys/types.h>
 
5909
        #include <grp.h>
 
5910
 
 
5911
int
 
5912
main ()
 
5913
{
 
5914
 
 
5915
        char    *user = "zabbix";
 
5916
        initgroups(user, 0);
 
5917
 
 
5918
  ;
 
5919
  return 0;
 
5920
}
 
5921
_ACEOF
 
5922
rm -f conftest.$ac_objext conftest$ac_exeext
 
5923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5924
  (eval $ac_link) 2>conftest.er1
 
5925
  ac_status=$?
 
5926
  grep -v '^ *+' conftest.er1 >conftest.err
 
5927
  rm -f conftest.er1
 
5928
  cat conftest.err >&5
 
5929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5930
  (exit $ac_status); } &&
 
5931
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5933
  (eval $ac_try) 2>&5
 
5934
  ac_status=$?
 
5935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5936
  (exit $ac_status); }; } &&
 
5937
         { ac_try='test -s conftest$ac_exeext'
 
5938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5939
  (eval $ac_try) 2>&5
 
5940
  ac_status=$?
 
5941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5942
  (exit $ac_status); }; }; then
 
5943
 
 
5944
cat >>confdefs.h <<\_ACEOF
 
5945
#define HAVE_FUNCTION_INITGROUPS 1
 
5946
_ACEOF
 
5947
 
 
5948
echo "$as_me:$LINENO: result: yes" >&5
 
5949
echo "${ECHO_T}yes" >&6
 
5950
else
 
5951
  echo "$as_me: failed program was:" >&5
 
5952
sed 's/^/| /' conftest.$ac_ext >&5
 
5953
 
 
5954
echo "$as_me:$LINENO: result: no" >&5
 
5955
echo "${ECHO_T}no" >&6
 
5956
fi
 
5957
rm -f conftest.err conftest.$ac_objext \
 
5958
      conftest$ac_exeext conftest.$ac_ext
 
5959
 
 
5960
echo "$as_me:$LINENO: checking for function seteuid()" >&5
 
5961
echo $ECHO_N "checking for function seteuid()... $ECHO_C" >&6
6512
5962
cat >conftest.$ac_ext <<_ACEOF
6513
5963
/* confdefs.h.  */
6514
5964
_ACEOF
6531
5981
}
6532
5982
_ACEOF
6533
5983
rm -f conftest.$ac_objext conftest$ac_exeext
6534
 
if { (ac_try="$ac_link"
6535
 
case "(($ac_try" in
6536
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537
 
  *) ac_try_echo=$ac_try;;
6538
 
esac
6539
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540
 
  (eval "$ac_link") 2>conftest.er1
 
5984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5985
  (eval $ac_link) 2>conftest.er1
6541
5986
  ac_status=$?
6542
5987
  grep -v '^ *+' conftest.er1 >conftest.err
6543
5988
  rm -f conftest.er1
6544
5989
  cat conftest.err >&5
6545
5990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546
5991
  (exit $ac_status); } &&
6547
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6548
 
  { (case "(($ac_try" in
6549
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550
 
  *) ac_try_echo=$ac_try;;
6551
 
esac
6552
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553
 
  (eval "$ac_try") 2>&5
 
5992
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5994
  (eval $ac_try) 2>&5
6554
5995
  ac_status=$?
6555
5996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556
5997
  (exit $ac_status); }; } &&
6557
5998
         { ac_try='test -s conftest$ac_exeext'
6558
 
  { (case "(($ac_try" in
6559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560
 
  *) ac_try_echo=$ac_try;;
6561
 
esac
6562
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563
 
  (eval "$ac_try") 2>&5
 
5999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6000
  (eval $ac_try) 2>&5
6564
6001
  ac_status=$?
6565
6002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566
6003
  (exit $ac_status); }; }; then
6569
6006
#define HAVE_FUNCTION_SETEUID 1
6570
6007
_ACEOF
6571
6008
 
6572
 
{ echo "$as_me:$LINENO: result: yes" >&5
6573
 
echo "${ECHO_T}yes" >&6; }
 
6009
echo "$as_me:$LINENO: result: yes" >&5
 
6010
echo "${ECHO_T}yes" >&6
6574
6011
else
6575
6012
  echo "$as_me: failed program was:" >&5
6576
6013
sed 's/^/| /' conftest.$ac_ext >&5
6577
6014
 
6578
 
        { echo "$as_me:$LINENO: result: no" >&5
6579
 
echo "${ECHO_T}no" >&6; }
 
6015
echo "$as_me:$LINENO: result: no" >&5
 
6016
echo "${ECHO_T}no" >&6
6580
6017
fi
6581
 
 
6582
 
rm -f core conftest.err conftest.$ac_objext \
 
6018
rm -f conftest.err conftest.$ac_objext \
6583
6019
      conftest$ac_exeext conftest.$ac_ext
6584
6020
 
6585
 
{ echo "$as_me:$LINENO: checking for function setproctitle()" >&5
6586
 
echo $ECHO_N "checking for function setproctitle()... $ECHO_C" >&6; }
 
6021
echo "$as_me:$LINENO: checking for function setproctitle()" >&5
 
6022
echo $ECHO_N "checking for function setproctitle()... $ECHO_C" >&6
6587
6023
cat >conftest.$ac_ext <<_ACEOF
6588
6024
/* confdefs.h.  */
6589
6025
_ACEOF
6605
6041
}
6606
6042
_ACEOF
6607
6043
rm -f conftest.$ac_objext conftest$ac_exeext
6608
 
if { (ac_try="$ac_link"
6609
 
case "(($ac_try" in
6610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611
 
  *) ac_try_echo=$ac_try;;
6612
 
esac
6613
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614
 
  (eval "$ac_link") 2>conftest.er1
 
6044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6045
  (eval $ac_link) 2>conftest.er1
6615
6046
  ac_status=$?
6616
6047
  grep -v '^ *+' conftest.er1 >conftest.err
6617
6048
  rm -f conftest.er1
6618
6049
  cat conftest.err >&5
6619
6050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620
6051
  (exit $ac_status); } &&
6621
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6622
 
  { (case "(($ac_try" in
6623
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624
 
  *) ac_try_echo=$ac_try;;
6625
 
esac
6626
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627
 
  (eval "$ac_try") 2>&5
 
6052
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6054
  (eval $ac_try) 2>&5
6628
6055
  ac_status=$?
6629
6056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630
6057
  (exit $ac_status); }; } &&
6631
6058
         { ac_try='test -s conftest$ac_exeext'
6632
 
  { (case "(($ac_try" in
6633
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634
 
  *) ac_try_echo=$ac_try;;
6635
 
esac
6636
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637
 
  (eval "$ac_try") 2>&5
 
6059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6060
  (eval $ac_try) 2>&5
6638
6061
  ac_status=$?
6639
6062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640
6063
  (exit $ac_status); }; }; then
6643
6066
#define HAVE_FUNCTION_SETPROCTITLE 1
6644
6067
_ACEOF
6645
6068
 
6646
 
{ echo "$as_me:$LINENO: result: yes" >&5
6647
 
echo "${ECHO_T}yes" >&6; }
 
6069
echo "$as_me:$LINENO: result: yes" >&5
 
6070
echo "${ECHO_T}yes" >&6
6648
6071
else
6649
6072
  echo "$as_me: failed program was:" >&5
6650
6073
sed 's/^/| /' conftest.$ac_ext >&5
6651
6074
 
6652
 
        { echo "$as_me:$LINENO: result: no" >&5
6653
 
echo "${ECHO_T}no" >&6; }
 
6075
echo "$as_me:$LINENO: result: no" >&5
 
6076
echo "${ECHO_T}no" >&6
6654
6077
fi
6655
 
 
6656
 
rm -f core conftest.err conftest.$ac_objext \
 
6078
rm -f conftest.err conftest.$ac_objext \
6657
6079
      conftest$ac_exeext conftest.$ac_ext
6658
6080
 
6659
 
{ echo "$as_me:$LINENO: checking for totalram in struct sysinfo" >&5
6660
 
echo $ECHO_N "checking for totalram in struct sysinfo... $ECHO_C" >&6; }
 
6081
echo "$as_me:$LINENO: checking for totalram in struct sysinfo" >&5
 
6082
echo $ECHO_N "checking for totalram in struct sysinfo... $ECHO_C" >&6
6661
6083
cat >conftest.$ac_ext <<_ACEOF
6662
6084
/* confdefs.h.  */
6663
6085
_ACEOF
6676
6098
}
6677
6099
_ACEOF
6678
6100
rm -f conftest.$ac_objext
6679
 
if { (ac_try="$ac_compile"
6680
 
case "(($ac_try" in
6681
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682
 
  *) ac_try_echo=$ac_try;;
6683
 
esac
6684
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685
 
  (eval "$ac_compile") 2>conftest.er1
 
6101
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6102
  (eval $ac_compile) 2>conftest.er1
6686
6103
  ac_status=$?
6687
6104
  grep -v '^ *+' conftest.er1 >conftest.err
6688
6105
  rm -f conftest.er1
6689
6106
  cat conftest.err >&5
6690
6107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691
6108
  (exit $ac_status); } &&
6692
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6693
 
  { (case "(($ac_try" in
6694
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695
 
  *) ac_try_echo=$ac_try;;
6696
 
esac
6697
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698
 
  (eval "$ac_try") 2>&5
 
6109
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6111
  (eval $ac_try) 2>&5
6699
6112
  ac_status=$?
6700
6113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701
6114
  (exit $ac_status); }; } &&
6702
6115
         { ac_try='test -s conftest.$ac_objext'
6703
 
  { (case "(($ac_try" in
6704
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705
 
  *) ac_try_echo=$ac_try;;
6706
 
esac
6707
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708
 
  (eval "$ac_try") 2>&5
 
6116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6117
  (eval $ac_try) 2>&5
6709
6118
  ac_status=$?
6710
6119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711
6120
  (exit $ac_status); }; }; then
6714
6123
#define HAVE_SYSINFO_TOTALRAM 1
6715
6124
_ACEOF
6716
6125
 
6717
 
{ echo "$as_me:$LINENO: result: yes" >&5
6718
 
echo "${ECHO_T}yes" >&6; }
 
6126
echo "$as_me:$LINENO: result: yes" >&5
 
6127
echo "${ECHO_T}yes" >&6
6719
6128
else
6720
6129
  echo "$as_me: failed program was:" >&5
6721
6130
sed 's/^/| /' conftest.$ac_ext >&5
6722
6131
 
6723
 
        { echo "$as_me:$LINENO: result: no" >&5
6724
 
echo "${ECHO_T}no" >&6; }
 
6132
echo "$as_me:$LINENO: result: no" >&5
 
6133
echo "${ECHO_T}no" >&6
6725
6134
fi
6726
 
 
6727
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728
 
 
6729
 
{ echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
6730
 
echo $ECHO_N "checking for __VA_ARGS__... $ECHO_C" >&6; }
 
6135
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6136
 
 
6137
echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
 
6138
echo $ECHO_N "checking for __VA_ARGS__... $ECHO_C" >&6
6731
6139
cat >conftest.$ac_ext <<_ACEOF
6732
6140
/* confdefs.h.  */
6733
6141
_ACEOF
6735
6143
cat >>conftest.$ac_ext <<_ACEOF
6736
6144
/* end confdefs.h.  */
6737
6145
 
 
6146
#define ZBX_CONST_STRING(str)   str
6738
6147
int test(const char *fmt, ...) { return 0; }
6739
6148
 
6740
6149
int
6741
6150
main ()
6742
6151
{
6743
6152
 
6744
 
#define TEST(fmt, ...) test(""fmt, ##__VA_ARGS__)
 
6153
#define TEST(fmt, ...) test(ZBX_CONST_STRING(fmt), ##__VA_ARGS__)
6745
6154
TEST("%s","test");
 
6155
TEST("test");
6746
6156
 
6747
6157
  ;
6748
6158
  return 0;
6749
6159
}
6750
6160
_ACEOF
6751
6161
rm -f conftest.$ac_objext
6752
 
if { (ac_try="$ac_compile"
6753
 
case "(($ac_try" in
6754
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755
 
  *) ac_try_echo=$ac_try;;
6756
 
esac
6757
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758
 
  (eval "$ac_compile") 2>conftest.er1
 
6162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6163
  (eval $ac_compile) 2>conftest.er1
6759
6164
  ac_status=$?
6760
6165
  grep -v '^ *+' conftest.er1 >conftest.err
6761
6166
  rm -f conftest.er1
6762
6167
  cat conftest.err >&5
6763
6168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
6169
  (exit $ac_status); } &&
6765
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6766
 
  { (case "(($ac_try" in
6767
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768
 
  *) ac_try_echo=$ac_try;;
6769
 
esac
6770
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771
 
  (eval "$ac_try") 2>&5
 
6170
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6172
  (eval $ac_try) 2>&5
6772
6173
  ac_status=$?
6773
6174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774
6175
  (exit $ac_status); }; } &&
6775
6176
         { ac_try='test -s conftest.$ac_objext'
6776
 
  { (case "(($ac_try" in
6777
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778
 
  *) ac_try_echo=$ac_try;;
6779
 
esac
6780
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781
 
  (eval "$ac_try") 2>&5
 
6177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6178
  (eval $ac_try) 2>&5
6782
6179
  ac_status=$?
6783
6180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784
6181
  (exit $ac_status); }; }; then
6787
6184
#define HAVE___VA_ARGS__ 1
6788
6185
_ACEOF
6789
6186
 
6790
 
{ echo "$as_me:$LINENO: result: yes" >&5
6791
 
echo "${ECHO_T}yes" >&6; }
 
6187
echo "$as_me:$LINENO: result: yes" >&5
 
6188
echo "${ECHO_T}yes" >&6
6792
6189
else
6793
6190
  echo "$as_me: failed program was:" >&5
6794
6191
sed 's/^/| /' conftest.$ac_ext >&5
6795
6192
 
6796
 
        { echo "$as_me:$LINENO: result: no" >&5
6797
 
echo "${ECHO_T}no" >&6; }
 
6193
echo "$as_me:$LINENO: result: no" >&5
 
6194
echo "${ECHO_T}no" >&6
6798
6195
fi
6799
 
 
6800
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801
 
{ echo "$as_me:$LINENO: checking for sharedram in struct sysinfo" >&5
6802
 
echo $ECHO_N "checking for sharedram in struct sysinfo... $ECHO_C" >&6; }
 
6196
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6197
echo "$as_me:$LINENO: checking for sharedram in struct sysinfo" >&5
 
6198
echo $ECHO_N "checking for sharedram in struct sysinfo... $ECHO_C" >&6
6803
6199
cat >conftest.$ac_ext <<_ACEOF
6804
6200
/* confdefs.h.  */
6805
6201
_ACEOF
6818
6214
}
6819
6215
_ACEOF
6820
6216
rm -f conftest.$ac_objext
6821
 
if { (ac_try="$ac_compile"
6822
 
case "(($ac_try" in
6823
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824
 
  *) ac_try_echo=$ac_try;;
6825
 
esac
6826
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827
 
  (eval "$ac_compile") 2>conftest.er1
 
6217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6218
  (eval $ac_compile) 2>conftest.er1
6828
6219
  ac_status=$?
6829
6220
  grep -v '^ *+' conftest.er1 >conftest.err
6830
6221
  rm -f conftest.er1
6831
6222
  cat conftest.err >&5
6832
6223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833
6224
  (exit $ac_status); } &&
6834
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6835
 
  { (case "(($ac_try" in
6836
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837
 
  *) ac_try_echo=$ac_try;;
6838
 
esac
6839
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840
 
  (eval "$ac_try") 2>&5
 
6225
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6227
  (eval $ac_try) 2>&5
6841
6228
  ac_status=$?
6842
6229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843
6230
  (exit $ac_status); }; } &&
6844
6231
         { ac_try='test -s conftest.$ac_objext'
6845
 
  { (case "(($ac_try" in
6846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847
 
  *) ac_try_echo=$ac_try;;
6848
 
esac
6849
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850
 
  (eval "$ac_try") 2>&5
 
6232
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6233
  (eval $ac_try) 2>&5
6851
6234
  ac_status=$?
6852
6235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853
6236
  (exit $ac_status); }; }; then
6856
6239
#define HAVE_SYSINFO_SHAREDRAM 1
6857
6240
_ACEOF
6858
6241
 
6859
 
{ echo "$as_me:$LINENO: result: yes" >&5
6860
 
echo "${ECHO_T}yes" >&6; }
 
6242
echo "$as_me:$LINENO: result: yes" >&5
 
6243
echo "${ECHO_T}yes" >&6
6861
6244
else
6862
6245
  echo "$as_me: failed program was:" >&5
6863
6246
sed 's/^/| /' conftest.$ac_ext >&5
6864
6247
 
6865
 
        { echo "$as_me:$LINENO: result: no" >&5
6866
 
echo "${ECHO_T}no" >&6; }
 
6248
echo "$as_me:$LINENO: result: no" >&5
 
6249
echo "${ECHO_T}no" >&6
6867
6250
fi
6868
 
 
6869
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870
 
 
6871
 
{ echo "$as_me:$LINENO: checking for bufferram in struct sysinfo" >&5
6872
 
echo $ECHO_N "checking for bufferram in struct sysinfo... $ECHO_C" >&6; }
 
6251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6252
 
 
6253
echo "$as_me:$LINENO: checking for bufferram in struct sysinfo" >&5
 
6254
echo $ECHO_N "checking for bufferram in struct sysinfo... $ECHO_C" >&6
6873
6255
cat >conftest.$ac_ext <<_ACEOF
6874
6256
/* confdefs.h.  */
6875
6257
_ACEOF
6888
6270
}
6889
6271
_ACEOF
6890
6272
rm -f conftest.$ac_objext
6891
 
if { (ac_try="$ac_compile"
6892
 
case "(($ac_try" in
6893
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894
 
  *) ac_try_echo=$ac_try;;
6895
 
esac
6896
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897
 
  (eval "$ac_compile") 2>conftest.er1
 
6273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6274
  (eval $ac_compile) 2>conftest.er1
6898
6275
  ac_status=$?
6899
6276
  grep -v '^ *+' conftest.er1 >conftest.err
6900
6277
  rm -f conftest.er1
6901
6278
  cat conftest.err >&5
6902
6279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903
6280
  (exit $ac_status); } &&
6904
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6905
 
  { (case "(($ac_try" in
6906
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907
 
  *) ac_try_echo=$ac_try;;
6908
 
esac
6909
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910
 
  (eval "$ac_try") 2>&5
 
6281
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6283
  (eval $ac_try) 2>&5
6911
6284
  ac_status=$?
6912
6285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913
6286
  (exit $ac_status); }; } &&
6914
6287
         { ac_try='test -s conftest.$ac_objext'
6915
 
  { (case "(($ac_try" in
6916
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917
 
  *) ac_try_echo=$ac_try;;
6918
 
esac
6919
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920
 
  (eval "$ac_try") 2>&5
 
6288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6289
  (eval $ac_try) 2>&5
6921
6290
  ac_status=$?
6922
6291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923
6292
  (exit $ac_status); }; }; then
6926
6295
#define HAVE_SYSINFO_BUFFERRAM 1
6927
6296
_ACEOF
6928
6297
 
6929
 
{ echo "$as_me:$LINENO: result: yes" >&5
6930
 
echo "${ECHO_T}yes" >&6; }
 
6298
echo "$as_me:$LINENO: result: yes" >&5
 
6299
echo "${ECHO_T}yes" >&6
6931
6300
else
6932
6301
  echo "$as_me: failed program was:" >&5
6933
6302
sed 's/^/| /' conftest.$ac_ext >&5
6934
6303
 
6935
 
        { echo "$as_me:$LINENO: result: no" >&5
6936
 
echo "${ECHO_T}no" >&6; }
 
6304
echo "$as_me:$LINENO: result: no" >&5
 
6305
echo "${ECHO_T}no" >&6
6937
6306
fi
6938
 
 
6939
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940
 
 
6941
 
{ echo "$as_me:$LINENO: checking for freeram in struct sysinfo" >&5
6942
 
echo $ECHO_N "checking for freeram in struct sysinfo... $ECHO_C" >&6; }
 
6307
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6308
 
 
6309
echo "$as_me:$LINENO: checking for freeram in struct sysinfo" >&5
 
6310
echo $ECHO_N "checking for freeram in struct sysinfo... $ECHO_C" >&6
6943
6311
cat >conftest.$ac_ext <<_ACEOF
6944
6312
/* confdefs.h.  */
6945
6313
_ACEOF
6958
6326
}
6959
6327
_ACEOF
6960
6328
rm -f conftest.$ac_objext
6961
 
if { (ac_try="$ac_compile"
6962
 
case "(($ac_try" in
6963
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964
 
  *) ac_try_echo=$ac_try;;
6965
 
esac
6966
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967
 
  (eval "$ac_compile") 2>conftest.er1
 
6329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6330
  (eval $ac_compile) 2>conftest.er1
6968
6331
  ac_status=$?
6969
6332
  grep -v '^ *+' conftest.er1 >conftest.err
6970
6333
  rm -f conftest.er1
6971
6334
  cat conftest.err >&5
6972
6335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973
6336
  (exit $ac_status); } &&
6974
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6975
 
  { (case "(($ac_try" in
6976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977
 
  *) ac_try_echo=$ac_try;;
6978
 
esac
6979
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6980
 
  (eval "$ac_try") 2>&5
 
6337
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6339
  (eval $ac_try) 2>&5
6981
6340
  ac_status=$?
6982
6341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983
6342
  (exit $ac_status); }; } &&
6984
6343
         { ac_try='test -s conftest.$ac_objext'
6985
 
  { (case "(($ac_try" in
6986
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987
 
  *) ac_try_echo=$ac_try;;
6988
 
esac
6989
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990
 
  (eval "$ac_try") 2>&5
 
6344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6345
  (eval $ac_try) 2>&5
6991
6346
  ac_status=$?
6992
6347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993
6348
  (exit $ac_status); }; }; then
6996
6351
#define HAVE_SYSINFO_FREERAM 1
6997
6352
_ACEOF
6998
6353
 
6999
 
{ echo "$as_me:$LINENO: result: yes" >&5
7000
 
echo "${ECHO_T}yes" >&6; }
 
6354
echo "$as_me:$LINENO: result: yes" >&5
 
6355
echo "${ECHO_T}yes" >&6
7001
6356
else
7002
6357
  echo "$as_me: failed program was:" >&5
7003
6358
sed 's/^/| /' conftest.$ac_ext >&5
7004
6359
 
7005
 
        { echo "$as_me:$LINENO: result: no" >&5
7006
 
echo "${ECHO_T}no" >&6; }
 
6360
echo "$as_me:$LINENO: result: no" >&5
 
6361
echo "${ECHO_T}no" >&6
7007
6362
fi
7008
 
 
7009
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010
 
 
7011
 
{ echo "$as_me:$LINENO: checking for uptime in struct sysinfo" >&5
7012
 
echo $ECHO_N "checking for uptime in struct sysinfo... $ECHO_C" >&6; }
 
6363
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6364
 
 
6365
echo "$as_me:$LINENO: checking for uptime in struct sysinfo" >&5
 
6366
echo $ECHO_N "checking for uptime in struct sysinfo... $ECHO_C" >&6
7013
6367
cat >conftest.$ac_ext <<_ACEOF
7014
6368
/* confdefs.h.  */
7015
6369
_ACEOF
7028
6382
}
7029
6383
_ACEOF
7030
6384
rm -f conftest.$ac_objext
7031
 
if { (ac_try="$ac_compile"
7032
 
case "(($ac_try" in
7033
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034
 
  *) ac_try_echo=$ac_try;;
7035
 
esac
7036
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037
 
  (eval "$ac_compile") 2>conftest.er1
 
6385
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6386
  (eval $ac_compile) 2>conftest.er1
7038
6387
  ac_status=$?
7039
6388
  grep -v '^ *+' conftest.er1 >conftest.err
7040
6389
  rm -f conftest.er1
7041
6390
  cat conftest.err >&5
7042
6391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043
6392
  (exit $ac_status); } &&
7044
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7045
 
  { (case "(($ac_try" in
7046
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047
 
  *) ac_try_echo=$ac_try;;
7048
 
esac
7049
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050
 
  (eval "$ac_try") 2>&5
 
6393
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6395
  (eval $ac_try) 2>&5
7051
6396
  ac_status=$?
7052
6397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053
6398
  (exit $ac_status); }; } &&
7054
6399
         { ac_try='test -s conftest.$ac_objext'
7055
 
  { (case "(($ac_try" in
7056
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057
 
  *) ac_try_echo=$ac_try;;
7058
 
esac
7059
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060
 
  (eval "$ac_try") 2>&5
 
6400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6401
  (eval $ac_try) 2>&5
7061
6402
  ac_status=$?
7062
6403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063
6404
  (exit $ac_status); }; }; then
7066
6407
#define HAVE_SYSINFO_UPTIME 1
7067
6408
_ACEOF
7068
6409
 
7069
 
{ echo "$as_me:$LINENO: result: yes" >&5
7070
 
echo "${ECHO_T}yes" >&6; }
 
6410
echo "$as_me:$LINENO: result: yes" >&5
 
6411
echo "${ECHO_T}yes" >&6
7071
6412
else
7072
6413
  echo "$as_me: failed program was:" >&5
7073
6414
sed 's/^/| /' conftest.$ac_ext >&5
7074
6415
 
7075
 
        { echo "$as_me:$LINENO: result: no" >&5
7076
 
echo "${ECHO_T}no" >&6; }
 
6416
echo "$as_me:$LINENO: result: no" >&5
 
6417
echo "${ECHO_T}no" >&6
7077
6418
fi
7078
 
 
7079
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080
 
 
7081
 
{ echo "$as_me:$LINENO: checking for procs in struct sysinfo" >&5
7082
 
echo $ECHO_N "checking for procs in struct sysinfo... $ECHO_C" >&6; }
 
6419
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6420
 
 
6421
echo "$as_me:$LINENO: checking for procs in struct sysinfo" >&5
 
6422
echo $ECHO_N "checking for procs in struct sysinfo... $ECHO_C" >&6
7083
6423
cat >conftest.$ac_ext <<_ACEOF
7084
6424
/* confdefs.h.  */
7085
6425
_ACEOF
7098
6438
}
7099
6439
_ACEOF
7100
6440
rm -f conftest.$ac_objext
7101
 
if { (ac_try="$ac_compile"
7102
 
case "(($ac_try" in
7103
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104
 
  *) ac_try_echo=$ac_try;;
7105
 
esac
7106
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107
 
  (eval "$ac_compile") 2>conftest.er1
 
6441
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6442
  (eval $ac_compile) 2>conftest.er1
7108
6443
  ac_status=$?
7109
6444
  grep -v '^ *+' conftest.er1 >conftest.err
7110
6445
  rm -f conftest.er1
7111
6446
  cat conftest.err >&5
7112
6447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113
6448
  (exit $ac_status); } &&
7114
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7115
 
  { (case "(($ac_try" in
7116
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117
 
  *) ac_try_echo=$ac_try;;
7118
 
esac
7119
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120
 
  (eval "$ac_try") 2>&5
 
6449
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6451
  (eval $ac_try) 2>&5
7121
6452
  ac_status=$?
7122
6453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123
6454
  (exit $ac_status); }; } &&
7124
6455
         { ac_try='test -s conftest.$ac_objext'
7125
 
  { (case "(($ac_try" in
7126
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127
 
  *) ac_try_echo=$ac_try;;
7128
 
esac
7129
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130
 
  (eval "$ac_try") 2>&5
 
6456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6457
  (eval $ac_try) 2>&5
7131
6458
  ac_status=$?
7132
6459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133
6460
  (exit $ac_status); }; }; then
7136
6463
#define HAVE_SYSINFO_PROCS 1
7137
6464
_ACEOF
7138
6465
 
7139
 
{ echo "$as_me:$LINENO: result: yes" >&5
7140
 
echo "${ECHO_T}yes" >&6; }
 
6466
echo "$as_me:$LINENO: result: yes" >&5
 
6467
echo "${ECHO_T}yes" >&6
7141
6468
else
7142
6469
  echo "$as_me: failed program was:" >&5
7143
6470
sed 's/^/| /' conftest.$ac_ext >&5
7144
6471
 
7145
 
        { echo "$as_me:$LINENO: result: no" >&5
7146
 
echo "${ECHO_T}no" >&6; }
 
6472
echo "$as_me:$LINENO: result: no" >&5
 
6473
echo "${ECHO_T}no" >&6
7147
6474
fi
7148
 
 
7149
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150
 
 
7151
 
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7152
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
 
6475
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6476
 
 
6477
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
6478
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7153
6479
if test "${ac_cv_type_signal+set}" = set; then
7154
6480
  echo $ECHO_N "(cached) $ECHO_C" >&6
7155
6481
else
7161
6487
/* end confdefs.h.  */
7162
6488
#include <sys/types.h>
7163
6489
#include <signal.h>
 
6490
#ifdef signal
 
6491
# undef signal
 
6492
#endif
 
6493
#ifdef __cplusplus
 
6494
extern "C" void (*signal (int, void (*)(int)))(int);
 
6495
#else
 
6496
void (*signal ()) ();
 
6497
#endif
7164
6498
 
7165
6499
int
7166
6500
main ()
7167
6501
{
7168
 
return *(signal (0, 0)) (0) == 1;
 
6502
int i;
7169
6503
  ;
7170
6504
  return 0;
7171
6505
}
7172
6506
_ACEOF
7173
6507
rm -f conftest.$ac_objext
7174
 
if { (ac_try="$ac_compile"
7175
 
case "(($ac_try" in
7176
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177
 
  *) ac_try_echo=$ac_try;;
7178
 
esac
7179
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180
 
  (eval "$ac_compile") 2>conftest.er1
 
6508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6509
  (eval $ac_compile) 2>conftest.er1
7181
6510
  ac_status=$?
7182
6511
  grep -v '^ *+' conftest.er1 >conftest.err
7183
6512
  rm -f conftest.er1
7184
6513
  cat conftest.err >&5
7185
6514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186
6515
  (exit $ac_status); } &&
7187
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7188
 
  { (case "(($ac_try" in
7189
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190
 
  *) ac_try_echo=$ac_try;;
7191
 
esac
7192
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193
 
  (eval "$ac_try") 2>&5
 
6516
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6518
  (eval $ac_try) 2>&5
7194
6519
  ac_status=$?
7195
6520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196
6521
  (exit $ac_status); }; } &&
7197
6522
         { ac_try='test -s conftest.$ac_objext'
7198
 
  { (case "(($ac_try" in
7199
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200
 
  *) ac_try_echo=$ac_try;;
7201
 
esac
7202
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203
 
  (eval "$ac_try") 2>&5
 
6523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6524
  (eval $ac_try) 2>&5
7204
6525
  ac_status=$?
7205
6526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206
6527
  (exit $ac_status); }; }; then
7207
 
  ac_cv_type_signal=int
 
6528
  ac_cv_type_signal=void
7208
6529
else
7209
6530
  echo "$as_me: failed program was:" >&5
7210
6531
sed 's/^/| /' conftest.$ac_ext >&5
7211
6532
 
7212
 
        ac_cv_type_signal=void
7213
 
fi
7214
 
 
7215
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216
 
fi
7217
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7218
 
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
6533
ac_cv_type_signal=int
 
6534
fi
 
6535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6536
fi
 
6537
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
6538
echo "${ECHO_T}$ac_cv_type_signal" >&6
7219
6539
 
7220
6540
cat >>confdefs.h <<_ACEOF
7221
6541
#define RETSIGTYPE $ac_cv_type_signal
7227
6547
for ac_func in getloadavg
7228
6548
do
7229
6549
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 { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6550
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6551
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6552
if eval "test \"\${$as_ac_var+set}\" = set"; then
7233
6553
  echo $ECHO_N "(cached) $ECHO_C" >&6
7234
6554
else
7235
6555
  cat >conftest.$ac_ext <<_ACEOF
7255
6575
 
7256
6576
#undef $ac_func
7257
6577
 
7258
 
/* Override any GCC internal prototype to avoid an error.
7259
 
   Use char because int might match the return type of a GCC
 
6578
/* Override any gcc2 internal prototype to avoid an error.  */
 
6579
#ifdef __cplusplus
 
6580
extern "C"
 
6581
{
 
6582
#endif
 
6583
/* We use char because int might match the return type of a gcc2
7260
6584
   builtin and then its argument prototype would still apply.  */
7261
 
#ifdef __cplusplus
7262
 
extern "C"
7263
 
#endif
7264
6585
char $ac_func ();
7265
6586
/* The GNU C library defines this for functions which it implements
7266
6587
    to always fail with ENOSYS.  Some functions are actually named
7267
6588
    something starting with __ and the normal name is an alias.  */
7268
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6589
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7269
6590
choke me
 
6591
#else
 
6592
char (*f) () = $ac_func;
 
6593
#endif
 
6594
#ifdef __cplusplus
 
6595
}
7270
6596
#endif
7271
6597
 
7272
6598
int
7273
6599
main ()
7274
6600
{
7275
 
return $ac_func ();
 
6601
return f != $ac_func;
7276
6602
  ;
7277
6603
  return 0;
7278
6604
}
7279
6605
_ACEOF
7280
6606
rm -f conftest.$ac_objext conftest$ac_exeext
7281
 
if { (ac_try="$ac_link"
7282
 
case "(($ac_try" in
7283
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284
 
  *) ac_try_echo=$ac_try;;
7285
 
esac
7286
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287
 
  (eval "$ac_link") 2>conftest.er1
 
6607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6608
  (eval $ac_link) 2>conftest.er1
7288
6609
  ac_status=$?
7289
6610
  grep -v '^ *+' conftest.er1 >conftest.err
7290
6611
  rm -f conftest.er1
7291
6612
  cat conftest.err >&5
7292
6613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293
6614
  (exit $ac_status); } &&
7294
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7295
 
  { (case "(($ac_try" in
7296
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297
 
  *) ac_try_echo=$ac_try;;
7298
 
esac
7299
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300
 
  (eval "$ac_try") 2>&5
 
6615
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6617
  (eval $ac_try) 2>&5
7301
6618
  ac_status=$?
7302
6619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303
6620
  (exit $ac_status); }; } &&
7304
6621
         { ac_try='test -s conftest$ac_exeext'
7305
 
  { (case "(($ac_try" in
7306
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307
 
  *) ac_try_echo=$ac_try;;
7308
 
esac
7309
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310
 
  (eval "$ac_try") 2>&5
 
6622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6623
  (eval $ac_try) 2>&5
7311
6624
  ac_status=$?
7312
6625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313
6626
  (exit $ac_status); }; }; then
7316
6629
  echo "$as_me: failed program was:" >&5
7317
6630
sed 's/^/| /' conftest.$ac_ext >&5
7318
6631
 
7319
 
        eval "$as_ac_var=no"
 
6632
eval "$as_ac_var=no"
7320
6633
fi
7321
 
 
7322
 
rm -f core conftest.err conftest.$ac_objext \
 
6634
rm -f conftest.err conftest.$ac_objext \
7323
6635
      conftest$ac_exeext conftest.$ac_ext
7324
6636
fi
7325
 
ac_res=`eval echo '${'$as_ac_var'}'`
7326
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7327
 
echo "${ECHO_T}$ac_res" >&6; }
 
6637
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6638
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7328
6639
if test `eval echo '${'$as_ac_var'}'` = yes; then
7329
6640
  cat >>confdefs.h <<_ACEOF
7330
6641
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7331
6642
_ACEOF
7332
6643
 
7333
6644
else
7334
 
  case " $LIBOBJS " in
 
6645
  case $LIBOBJS in
 
6646
    "$ac_func.$ac_objext"   | \
 
6647
  *" $ac_func.$ac_objext"   | \
 
6648
    "$ac_func.$ac_objext "* | \
7335
6649
  *" $ac_func.$ac_objext "* ) ;;
7336
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7337
 
 ;;
 
6650
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7338
6651
esac
7339
6652
 
7340
6653
fi
7346
6659
for ac_func in socket strtod
7347
6660
do
7348
6661
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7349
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7350
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7351
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6662
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6663
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6664
if eval "test \"\${$as_ac_var+set}\" = set"; then
7352
6665
  echo $ECHO_N "(cached) $ECHO_C" >&6
7353
6666
else
7354
6667
  cat >conftest.$ac_ext <<_ACEOF
7374
6687
 
7375
6688
#undef $ac_func
7376
6689
 
7377
 
/* Override any GCC internal prototype to avoid an error.
7378
 
   Use char because int might match the return type of a GCC
 
6690
/* Override any gcc2 internal prototype to avoid an error.  */
 
6691
#ifdef __cplusplus
 
6692
extern "C"
 
6693
{
 
6694
#endif
 
6695
/* We use char because int might match the return type of a gcc2
7379
6696
   builtin and then its argument prototype would still apply.  */
7380
 
#ifdef __cplusplus
7381
 
extern "C"
7382
 
#endif
7383
6697
char $ac_func ();
7384
6698
/* The GNU C library defines this for functions which it implements
7385
6699
    to always fail with ENOSYS.  Some functions are actually named
7386
6700
    something starting with __ and the normal name is an alias.  */
7387
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6701
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7388
6702
choke me
 
6703
#else
 
6704
char (*f) () = $ac_func;
 
6705
#endif
 
6706
#ifdef __cplusplus
 
6707
}
7389
6708
#endif
7390
6709
 
7391
6710
int
7392
6711
main ()
7393
6712
{
7394
 
return $ac_func ();
 
6713
return f != $ac_func;
7395
6714
  ;
7396
6715
  return 0;
7397
6716
}
7398
6717
_ACEOF
7399
6718
rm -f conftest.$ac_objext conftest$ac_exeext
7400
 
if { (ac_try="$ac_link"
7401
 
case "(($ac_try" in
7402
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403
 
  *) ac_try_echo=$ac_try;;
7404
 
esac
7405
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406
 
  (eval "$ac_link") 2>conftest.er1
 
6719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6720
  (eval $ac_link) 2>conftest.er1
7407
6721
  ac_status=$?
7408
6722
  grep -v '^ *+' conftest.er1 >conftest.err
7409
6723
  rm -f conftest.er1
7410
6724
  cat conftest.err >&5
7411
6725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412
6726
  (exit $ac_status); } &&
7413
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7414
 
  { (case "(($ac_try" in
7415
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416
 
  *) ac_try_echo=$ac_try;;
7417
 
esac
7418
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419
 
  (eval "$ac_try") 2>&5
 
6727
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6729
  (eval $ac_try) 2>&5
7420
6730
  ac_status=$?
7421
6731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422
6732
  (exit $ac_status); }; } &&
7423
6733
         { ac_try='test -s conftest$ac_exeext'
7424
 
  { (case "(($ac_try" in
7425
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426
 
  *) ac_try_echo=$ac_try;;
7427
 
esac
7428
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429
 
  (eval "$ac_try") 2>&5
 
6734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6735
  (eval $ac_try) 2>&5
7430
6736
  ac_status=$?
7431
6737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432
6738
  (exit $ac_status); }; }; then
7435
6741
  echo "$as_me: failed program was:" >&5
7436
6742
sed 's/^/| /' conftest.$ac_ext >&5
7437
6743
 
7438
 
        eval "$as_ac_var=no"
 
6744
eval "$as_ac_var=no"
7439
6745
fi
7440
 
 
7441
 
rm -f core conftest.err conftest.$ac_objext \
 
6746
rm -f conftest.err conftest.$ac_objext \
7442
6747
      conftest$ac_exeext conftest.$ac_ext
7443
6748
fi
7444
 
ac_res=`eval echo '${'$as_ac_var'}'`
7445
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7446
 
echo "${ECHO_T}$ac_res" >&6; }
 
6749
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6750
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7447
6751
if test `eval echo '${'$as_ac_var'}'` = yes; then
7448
6752
  cat >>confdefs.h <<_ACEOF
7449
6753
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7456
6760
for ac_func in snprintf
7457
6761
do
7458
6762
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7459
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7460
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7461
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6763
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6764
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6765
if eval "test \"\${$as_ac_var+set}\" = set"; then
7462
6766
  echo $ECHO_N "(cached) $ECHO_C" >&6
7463
6767
else
7464
6768
  cat >conftest.$ac_ext <<_ACEOF
7484
6788
 
7485
6789
#undef $ac_func
7486
6790
 
7487
 
/* Override any GCC internal prototype to avoid an error.
7488
 
   Use char because int might match the return type of a GCC
 
6791
/* Override any gcc2 internal prototype to avoid an error.  */
 
6792
#ifdef __cplusplus
 
6793
extern "C"
 
6794
{
 
6795
#endif
 
6796
/* We use char because int might match the return type of a gcc2
7489
6797
   builtin and then its argument prototype would still apply.  */
7490
 
#ifdef __cplusplus
7491
 
extern "C"
7492
 
#endif
7493
6798
char $ac_func ();
7494
6799
/* The GNU C library defines this for functions which it implements
7495
6800
    to always fail with ENOSYS.  Some functions are actually named
7496
6801
    something starting with __ and the normal name is an alias.  */
7497
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6802
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7498
6803
choke me
 
6804
#else
 
6805
char (*f) () = $ac_func;
 
6806
#endif
 
6807
#ifdef __cplusplus
 
6808
}
7499
6809
#endif
7500
6810
 
7501
6811
int
7502
6812
main ()
7503
6813
{
7504
 
return $ac_func ();
 
6814
return f != $ac_func;
7505
6815
  ;
7506
6816
  return 0;
7507
6817
}
7508
6818
_ACEOF
7509
6819
rm -f conftest.$ac_objext conftest$ac_exeext
7510
 
if { (ac_try="$ac_link"
7511
 
case "(($ac_try" in
7512
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513
 
  *) ac_try_echo=$ac_try;;
7514
 
esac
7515
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516
 
  (eval "$ac_link") 2>conftest.er1
 
6820
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6821
  (eval $ac_link) 2>conftest.er1
7517
6822
  ac_status=$?
7518
6823
  grep -v '^ *+' conftest.er1 >conftest.err
7519
6824
  rm -f conftest.er1
7520
6825
  cat conftest.err >&5
7521
6826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522
6827
  (exit $ac_status); } &&
7523
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7524
 
  { (case "(($ac_try" in
7525
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526
 
  *) ac_try_echo=$ac_try;;
7527
 
esac
7528
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529
 
  (eval "$ac_try") 2>&5
 
6828
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6830
  (eval $ac_try) 2>&5
7530
6831
  ac_status=$?
7531
6832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532
6833
  (exit $ac_status); }; } &&
7533
6834
         { ac_try='test -s conftest$ac_exeext'
7534
 
  { (case "(($ac_try" in
7535
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536
 
  *) ac_try_echo=$ac_try;;
7537
 
esac
7538
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539
 
  (eval "$ac_try") 2>&5
 
6835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6836
  (eval $ac_try) 2>&5
7540
6837
  ac_status=$?
7541
6838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542
6839
  (exit $ac_status); }; }; then
7545
6842
  echo "$as_me: failed program was:" >&5
7546
6843
sed 's/^/| /' conftest.$ac_ext >&5
7547
6844
 
7548
 
        eval "$as_ac_var=no"
 
6845
eval "$as_ac_var=no"
7549
6846
fi
7550
 
 
7551
 
rm -f core conftest.err conftest.$ac_objext \
 
6847
rm -f conftest.err conftest.$ac_objext \
7552
6848
      conftest$ac_exeext conftest.$ac_ext
7553
6849
fi
7554
 
ac_res=`eval echo '${'$as_ac_var'}'`
7555
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7556
 
echo "${ECHO_T}$ac_res" >&6; }
 
6850
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6851
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7557
6852
if test `eval echo '${'$as_ac_var'}'` = yes; then
7558
6853
  cat >>confdefs.h <<_ACEOF
7559
6854
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7566
6861
for ac_func in vasprintf
7567
6862
do
7568
6863
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7569
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7570
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7571
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6864
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6865
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6866
if eval "test \"\${$as_ac_var+set}\" = set"; then
7572
6867
  echo $ECHO_N "(cached) $ECHO_C" >&6
7573
6868
else
7574
6869
  cat >conftest.$ac_ext <<_ACEOF
7594
6889
 
7595
6890
#undef $ac_func
7596
6891
 
7597
 
/* Override any GCC internal prototype to avoid an error.
7598
 
   Use char because int might match the return type of a GCC
 
6892
/* Override any gcc2 internal prototype to avoid an error.  */
 
6893
#ifdef __cplusplus
 
6894
extern "C"
 
6895
{
 
6896
#endif
 
6897
/* We use char because int might match the return type of a gcc2
7599
6898
   builtin and then its argument prototype would still apply.  */
7600
 
#ifdef __cplusplus
7601
 
extern "C"
7602
 
#endif
7603
6899
char $ac_func ();
7604
6900
/* The GNU C library defines this for functions which it implements
7605
6901
    to always fail with ENOSYS.  Some functions are actually named
7606
6902
    something starting with __ and the normal name is an alias.  */
7607
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6903
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7608
6904
choke me
 
6905
#else
 
6906
char (*f) () = $ac_func;
 
6907
#endif
 
6908
#ifdef __cplusplus
 
6909
}
7609
6910
#endif
7610
6911
 
7611
6912
int
7612
6913
main ()
7613
6914
{
7614
 
return $ac_func ();
 
6915
return f != $ac_func;
7615
6916
  ;
7616
6917
  return 0;
7617
6918
}
7618
6919
_ACEOF
7619
6920
rm -f conftest.$ac_objext conftest$ac_exeext
7620
 
if { (ac_try="$ac_link"
7621
 
case "(($ac_try" in
7622
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623
 
  *) ac_try_echo=$ac_try;;
7624
 
esac
7625
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626
 
  (eval "$ac_link") 2>conftest.er1
 
6921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6922
  (eval $ac_link) 2>conftest.er1
7627
6923
  ac_status=$?
7628
6924
  grep -v '^ *+' conftest.er1 >conftest.err
7629
6925
  rm -f conftest.er1
7630
6926
  cat conftest.err >&5
7631
6927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632
6928
  (exit $ac_status); } &&
7633
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7634
 
  { (case "(($ac_try" in
7635
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636
 
  *) ac_try_echo=$ac_try;;
7637
 
esac
7638
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639
 
  (eval "$ac_try") 2>&5
 
6929
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6931
  (eval $ac_try) 2>&5
7640
6932
  ac_status=$?
7641
6933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642
6934
  (exit $ac_status); }; } &&
7643
6935
         { ac_try='test -s conftest$ac_exeext'
7644
 
  { (case "(($ac_try" in
7645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646
 
  *) ac_try_echo=$ac_try;;
7647
 
esac
7648
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649
 
  (eval "$ac_try") 2>&5
 
6936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6937
  (eval $ac_try) 2>&5
7650
6938
  ac_status=$?
7651
6939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652
6940
  (exit $ac_status); }; }; then
7655
6943
  echo "$as_me: failed program was:" >&5
7656
6944
sed 's/^/| /' conftest.$ac_ext >&5
7657
6945
 
7658
 
        eval "$as_ac_var=no"
 
6946
eval "$as_ac_var=no"
7659
6947
fi
7660
 
 
7661
 
rm -f core conftest.err conftest.$ac_objext \
 
6948
rm -f conftest.err conftest.$ac_objext \
7662
6949
      conftest$ac_exeext conftest.$ac_ext
7663
6950
fi
7664
 
ac_res=`eval echo '${'$as_ac_var'}'`
7665
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7666
 
echo "${ECHO_T}$ac_res" >&6; }
 
6951
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6952
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7667
6953
if test `eval echo '${'$as_ac_var'}'` = yes; then
7668
6954
  cat >>confdefs.h <<_ACEOF
7669
6955
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7676
6962
for ac_func in asprintf
7677
6963
do
7678
6964
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7679
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7680
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7681
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6965
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6966
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6967
if eval "test \"\${$as_ac_var+set}\" = set"; then
7682
6968
  echo $ECHO_N "(cached) $ECHO_C" >&6
7683
6969
else
7684
6970
  cat >conftest.$ac_ext <<_ACEOF
7704
6990
 
7705
6991
#undef $ac_func
7706
6992
 
7707
 
/* Override any GCC internal prototype to avoid an error.
7708
 
   Use char because int might match the return type of a GCC
 
6993
/* Override any gcc2 internal prototype to avoid an error.  */
 
6994
#ifdef __cplusplus
 
6995
extern "C"
 
6996
{
 
6997
#endif
 
6998
/* We use char because int might match the return type of a gcc2
7709
6999
   builtin and then its argument prototype would still apply.  */
7710
 
#ifdef __cplusplus
7711
 
extern "C"
7712
 
#endif
7713
7000
char $ac_func ();
7714
7001
/* The GNU C library defines this for functions which it implements
7715
7002
    to always fail with ENOSYS.  Some functions are actually named
7716
7003
    something starting with __ and the normal name is an alias.  */
7717
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
7004
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7718
7005
choke me
 
7006
#else
 
7007
char (*f) () = $ac_func;
 
7008
#endif
 
7009
#ifdef __cplusplus
 
7010
}
7719
7011
#endif
7720
7012
 
7721
7013
int
7722
7014
main ()
7723
7015
{
7724
 
return $ac_func ();
 
7016
return f != $ac_func;
7725
7017
  ;
7726
7018
  return 0;
7727
7019
}
7728
7020
_ACEOF
7729
7021
rm -f conftest.$ac_objext conftest$ac_exeext
7730
 
if { (ac_try="$ac_link"
7731
 
case "(($ac_try" in
7732
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733
 
  *) ac_try_echo=$ac_try;;
7734
 
esac
7735
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736
 
  (eval "$ac_link") 2>conftest.er1
 
7022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7023
  (eval $ac_link) 2>conftest.er1
7737
7024
  ac_status=$?
7738
7025
  grep -v '^ *+' conftest.er1 >conftest.err
7739
7026
  rm -f conftest.er1
7740
7027
  cat conftest.err >&5
7741
7028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742
7029
  (exit $ac_status); } &&
7743
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7744
 
  { (case "(($ac_try" in
7745
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746
 
  *) ac_try_echo=$ac_try;;
7747
 
esac
7748
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749
 
  (eval "$ac_try") 2>&5
 
7030
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7032
  (eval $ac_try) 2>&5
7750
7033
  ac_status=$?
7751
7034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752
7035
  (exit $ac_status); }; } &&
7753
7036
         { ac_try='test -s conftest$ac_exeext'
7754
 
  { (case "(($ac_try" in
7755
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756
 
  *) ac_try_echo=$ac_try;;
7757
 
esac
7758
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759
 
  (eval "$ac_try") 2>&5
 
7037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7038
  (eval $ac_try) 2>&5
7760
7039
  ac_status=$?
7761
7040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
7041
  (exit $ac_status); }; }; then
7765
7044
  echo "$as_me: failed program was:" >&5
7766
7045
sed 's/^/| /' conftest.$ac_ext >&5
7767
7046
 
7768
 
        eval "$as_ac_var=no"
 
7047
eval "$as_ac_var=no"
7769
7048
fi
7770
 
 
7771
 
rm -f core conftest.err conftest.$ac_objext \
 
7049
rm -f conftest.err conftest.$ac_objext \
7772
7050
      conftest$ac_exeext conftest.$ac_ext
7773
7051
fi
7774
 
ac_res=`eval echo '${'$as_ac_var'}'`
7775
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7776
 
echo "${ECHO_T}$ac_res" >&6; }
 
7052
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7053
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7777
7054
if test `eval echo '${'$as_ac_var'}'` = yes; then
7778
7055
  cat >>confdefs.h <<_ACEOF
7779
7056
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7786
7063
for ac_func in vsnprintf
7787
7064
do
7788
7065
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7789
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7790
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7791
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
7066
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7067
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7068
if eval "test \"\${$as_ac_var+set}\" = set"; then
7792
7069
  echo $ECHO_N "(cached) $ECHO_C" >&6
7793
7070
else
7794
7071
  cat >conftest.$ac_ext <<_ACEOF
7814
7091
 
7815
7092
#undef $ac_func
7816
7093
 
7817
 
/* Override any GCC internal prototype to avoid an error.
7818
 
   Use char because int might match the return type of a GCC
 
7094
/* Override any gcc2 internal prototype to avoid an error.  */
 
7095
#ifdef __cplusplus
 
7096
extern "C"
 
7097
{
 
7098
#endif
 
7099
/* We use char because int might match the return type of a gcc2
7819
7100
   builtin and then its argument prototype would still apply.  */
7820
 
#ifdef __cplusplus
7821
 
extern "C"
7822
 
#endif
7823
7101
char $ac_func ();
7824
7102
/* The GNU C library defines this for functions which it implements
7825
7103
    to always fail with ENOSYS.  Some functions are actually named
7826
7104
    something starting with __ and the normal name is an alias.  */
7827
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
7105
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7828
7106
choke me
 
7107
#else
 
7108
char (*f) () = $ac_func;
 
7109
#endif
 
7110
#ifdef __cplusplus
 
7111
}
7829
7112
#endif
7830
7113
 
7831
7114
int
7832
7115
main ()
7833
7116
{
7834
 
return $ac_func ();
 
7117
return f != $ac_func;
7835
7118
  ;
7836
7119
  return 0;
7837
7120
}
7838
7121
_ACEOF
7839
7122
rm -f conftest.$ac_objext conftest$ac_exeext
7840
 
if { (ac_try="$ac_link"
7841
 
case "(($ac_try" in
7842
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843
 
  *) ac_try_echo=$ac_try;;
7844
 
esac
7845
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846
 
  (eval "$ac_link") 2>conftest.er1
 
7123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7124
  (eval $ac_link) 2>conftest.er1
7847
7125
  ac_status=$?
7848
7126
  grep -v '^ *+' conftest.er1 >conftest.err
7849
7127
  rm -f conftest.er1
7850
7128
  cat conftest.err >&5
7851
7129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852
7130
  (exit $ac_status); } &&
7853
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7854
 
  { (case "(($ac_try" in
7855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856
 
  *) ac_try_echo=$ac_try;;
7857
 
esac
7858
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859
 
  (eval "$ac_try") 2>&5
 
7131
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7133
  (eval $ac_try) 2>&5
7860
7134
  ac_status=$?
7861
7135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862
7136
  (exit $ac_status); }; } &&
7863
7137
         { ac_try='test -s conftest$ac_exeext'
7864
 
  { (case "(($ac_try" in
7865
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866
 
  *) ac_try_echo=$ac_try;;
7867
 
esac
7868
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869
 
  (eval "$ac_try") 2>&5
 
7138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7139
  (eval $ac_try) 2>&5
7870
7140
  ac_status=$?
7871
7141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872
7142
  (exit $ac_status); }; }; then
7875
7145
  echo "$as_me: failed program was:" >&5
7876
7146
sed 's/^/| /' conftest.$ac_ext >&5
7877
7147
 
7878
 
        eval "$as_ac_var=no"
 
7148
eval "$as_ac_var=no"
7879
7149
fi
7880
 
 
7881
 
rm -f core conftest.err conftest.$ac_objext \
 
7150
rm -f conftest.err conftest.$ac_objext \
7882
7151
      conftest$ac_exeext conftest.$ac_ext
7883
7152
fi
7884
 
ac_res=`eval echo '${'$as_ac_var'}'`
7885
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7886
 
echo "${ECHO_T}$ac_res" >&6; }
 
7153
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7154
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7887
7155
if test `eval echo '${'$as_ac_var'}'` = yes; then
7888
7156
  cat >>confdefs.h <<_ACEOF
7889
7157
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7896
7164
for ac_func in hstrerror
7897
7165
do
7898
7166
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7899
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7900
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7901
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
7167
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7168
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7169
if eval "test \"\${$as_ac_var+set}\" = set"; then
7902
7170
  echo $ECHO_N "(cached) $ECHO_C" >&6
7903
7171
else
7904
7172
  cat >conftest.$ac_ext <<_ACEOF
7924
7192
 
7925
7193
#undef $ac_func
7926
7194
 
7927
 
/* Override any GCC internal prototype to avoid an error.
7928
 
   Use char because int might match the return type of a GCC
 
7195
/* Override any gcc2 internal prototype to avoid an error.  */
 
7196
#ifdef __cplusplus
 
7197
extern "C"
 
7198
{
 
7199
#endif
 
7200
/* We use char because int might match the return type of a gcc2
7929
7201
   builtin and then its argument prototype would still apply.  */
7930
 
#ifdef __cplusplus
7931
 
extern "C"
7932
 
#endif
7933
7202
char $ac_func ();
7934
7203
/* The GNU C library defines this for functions which it implements
7935
7204
    to always fail with ENOSYS.  Some functions are actually named
7936
7205
    something starting with __ and the normal name is an alias.  */
7937
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
7206
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7938
7207
choke me
 
7208
#else
 
7209
char (*f) () = $ac_func;
 
7210
#endif
 
7211
#ifdef __cplusplus
 
7212
}
7939
7213
#endif
7940
7214
 
7941
7215
int
7942
7216
main ()
7943
7217
{
7944
 
return $ac_func ();
 
7218
return f != $ac_func;
7945
7219
  ;
7946
7220
  return 0;
7947
7221
}
7948
7222
_ACEOF
7949
7223
rm -f conftest.$ac_objext conftest$ac_exeext
7950
 
if { (ac_try="$ac_link"
7951
 
case "(($ac_try" in
7952
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953
 
  *) ac_try_echo=$ac_try;;
7954
 
esac
7955
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956
 
  (eval "$ac_link") 2>conftest.er1
 
7224
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7225
  (eval $ac_link) 2>conftest.er1
7957
7226
  ac_status=$?
7958
7227
  grep -v '^ *+' conftest.er1 >conftest.err
7959
7228
  rm -f conftest.er1
7960
7229
  cat conftest.err >&5
7961
7230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962
7231
  (exit $ac_status); } &&
7963
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7964
 
  { (case "(($ac_try" in
7965
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966
 
  *) ac_try_echo=$ac_try;;
7967
 
esac
7968
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969
 
  (eval "$ac_try") 2>&5
 
7232
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7234
  (eval $ac_try) 2>&5
7970
7235
  ac_status=$?
7971
7236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972
7237
  (exit $ac_status); }; } &&
7973
7238
         { ac_try='test -s conftest$ac_exeext'
7974
 
  { (case "(($ac_try" in
7975
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976
 
  *) ac_try_echo=$ac_try;;
7977
 
esac
7978
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979
 
  (eval "$ac_try") 2>&5
 
7239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7240
  (eval $ac_try) 2>&5
7980
7241
  ac_status=$?
7981
7242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982
7243
  (exit $ac_status); }; }; then
7985
7246
  echo "$as_me: failed program was:" >&5
7986
7247
sed 's/^/| /' conftest.$ac_ext >&5
7987
7248
 
7988
 
        eval "$as_ac_var=no"
 
7249
eval "$as_ac_var=no"
7989
7250
fi
7990
 
 
7991
 
rm -f core conftest.err conftest.$ac_objext \
 
7251
rm -f conftest.err conftest.$ac_objext \
7992
7252
      conftest$ac_exeext conftest.$ac_ext
7993
7253
fi
7994
 
ac_res=`eval echo '${'$as_ac_var'}'`
7995
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7996
 
echo "${ECHO_T}$ac_res" >&6; }
 
7254
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7255
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7997
7256
if test `eval echo '${'$as_ac_var'}'` = yes; then
7998
7257
  cat >>confdefs.h <<_ACEOF
7999
7258
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8006
7265
for ac_func in atoll
8007
7266
do
8008
7267
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8009
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8010
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8011
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
7268
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7269
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7270
if eval "test \"\${$as_ac_var+set}\" = set"; then
8012
7271
  echo $ECHO_N "(cached) $ECHO_C" >&6
8013
7272
else
8014
7273
  cat >conftest.$ac_ext <<_ACEOF
8034
7293
 
8035
7294
#undef $ac_func
8036
7295
 
8037
 
/* Override any GCC internal prototype to avoid an error.
8038
 
   Use char because int might match the return type of a GCC
 
7296
/* Override any gcc2 internal prototype to avoid an error.  */
 
7297
#ifdef __cplusplus
 
7298
extern "C"
 
7299
{
 
7300
#endif
 
7301
/* We use char because int might match the return type of a gcc2
8039
7302
   builtin and then its argument prototype would still apply.  */
8040
 
#ifdef __cplusplus
8041
 
extern "C"
8042
 
#endif
8043
7303
char $ac_func ();
8044
7304
/* The GNU C library defines this for functions which it implements
8045
7305
    to always fail with ENOSYS.  Some functions are actually named
8046
7306
    something starting with __ and the normal name is an alias.  */
8047
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
7307
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8048
7308
choke me
 
7309
#else
 
7310
char (*f) () = $ac_func;
 
7311
#endif
 
7312
#ifdef __cplusplus
 
7313
}
8049
7314
#endif
8050
7315
 
8051
7316
int
8052
7317
main ()
8053
7318
{
8054
 
return $ac_func ();
 
7319
return f != $ac_func;
8055
7320
  ;
8056
7321
  return 0;
8057
7322
}
8058
7323
_ACEOF
8059
7324
rm -f conftest.$ac_objext conftest$ac_exeext
8060
 
if { (ac_try="$ac_link"
8061
 
case "(($ac_try" in
8062
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063
 
  *) ac_try_echo=$ac_try;;
8064
 
esac
8065
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066
 
  (eval "$ac_link") 2>conftest.er1
 
7325
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7326
  (eval $ac_link) 2>conftest.er1
8067
7327
  ac_status=$?
8068
7328
  grep -v '^ *+' conftest.er1 >conftest.err
8069
7329
  rm -f conftest.er1
8070
7330
  cat conftest.err >&5
8071
7331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072
7332
  (exit $ac_status); } &&
8073
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074
 
  { (case "(($ac_try" in
8075
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076
 
  *) ac_try_echo=$ac_try;;
8077
 
esac
8078
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079
 
  (eval "$ac_try") 2>&5
 
7333
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7335
  (eval $ac_try) 2>&5
8080
7336
  ac_status=$?
8081
7337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082
7338
  (exit $ac_status); }; } &&
8083
7339
         { ac_try='test -s conftest$ac_exeext'
8084
 
  { (case "(($ac_try" in
8085
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086
 
  *) ac_try_echo=$ac_try;;
8087
 
esac
8088
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089
 
  (eval "$ac_try") 2>&5
 
7340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7341
  (eval $ac_try) 2>&5
8090
7342
  ac_status=$?
8091
7343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092
7344
  (exit $ac_status); }; }; then
8095
7347
  echo "$as_me: failed program was:" >&5
8096
7348
sed 's/^/| /' conftest.$ac_ext >&5
8097
7349
 
8098
 
        eval "$as_ac_var=no"
 
7350
eval "$as_ac_var=no"
8099
7351
fi
8100
 
 
8101
 
rm -f core conftest.err conftest.$ac_objext \
 
7352
rm -f conftest.err conftest.$ac_objext \
8102
7353
      conftest$ac_exeext conftest.$ac_ext
8103
7354
fi
8104
 
ac_res=`eval echo '${'$as_ac_var'}'`
8105
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8106
 
echo "${ECHO_T}$ac_res" >&6; }
 
7355
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7356
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8107
7357
if test `eval echo '${'$as_ac_var'}'` = yes; then
8108
7358
  cat >>confdefs.h <<_ACEOF
8109
7359
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8116
7366
for ac_func in getopt_long
8117
7367
do
8118
7368
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8119
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8120
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8121
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
7369
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7370
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7371
if eval "test \"\${$as_ac_var+set}\" = set"; then
8122
7372
  echo $ECHO_N "(cached) $ECHO_C" >&6
8123
7373
else
8124
7374
  cat >conftest.$ac_ext <<_ACEOF
8144
7394
 
8145
7395
#undef $ac_func
8146
7396
 
8147
 
/* Override any GCC internal prototype to avoid an error.
8148
 
   Use char because int might match the return type of a GCC
 
7397
/* Override any gcc2 internal prototype to avoid an error.  */
 
7398
#ifdef __cplusplus
 
7399
extern "C"
 
7400
{
 
7401
#endif
 
7402
/* We use char because int might match the return type of a gcc2
8149
7403
   builtin and then its argument prototype would still apply.  */
8150
 
#ifdef __cplusplus
8151
 
extern "C"
8152
 
#endif
8153
7404
char $ac_func ();
8154
7405
/* The GNU C library defines this for functions which it implements
8155
7406
    to always fail with ENOSYS.  Some functions are actually named
8156
7407
    something starting with __ and the normal name is an alias.  */
8157
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
7408
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8158
7409
choke me
 
7410
#else
 
7411
char (*f) () = $ac_func;
 
7412
#endif
 
7413
#ifdef __cplusplus
 
7414
}
8159
7415
#endif
8160
7416
 
8161
7417
int
8162
7418
main ()
8163
7419
{
8164
 
return $ac_func ();
 
7420
return f != $ac_func;
8165
7421
  ;
8166
7422
  return 0;
8167
7423
}
8168
7424
_ACEOF
8169
7425
rm -f conftest.$ac_objext conftest$ac_exeext
8170
 
if { (ac_try="$ac_link"
8171
 
case "(($ac_try" in
8172
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173
 
  *) ac_try_echo=$ac_try;;
8174
 
esac
8175
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176
 
  (eval "$ac_link") 2>conftest.er1
 
7426
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7427
  (eval $ac_link) 2>conftest.er1
8177
7428
  ac_status=$?
8178
7429
  grep -v '^ *+' conftest.er1 >conftest.err
8179
7430
  rm -f conftest.er1
8180
7431
  cat conftest.err >&5
8181
7432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182
7433
  (exit $ac_status); } &&
8183
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8184
 
  { (case "(($ac_try" in
8185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186
 
  *) ac_try_echo=$ac_try;;
8187
 
esac
8188
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189
 
  (eval "$ac_try") 2>&5
 
7434
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7436
  (eval $ac_try) 2>&5
8190
7437
  ac_status=$?
8191
7438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192
7439
  (exit $ac_status); }; } &&
8193
7440
         { ac_try='test -s conftest$ac_exeext'
8194
 
  { (case "(($ac_try" in
8195
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196
 
  *) ac_try_echo=$ac_try;;
8197
 
esac
8198
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199
 
  (eval "$ac_try") 2>&5
 
7441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7442
  (eval $ac_try) 2>&5
8200
7443
  ac_status=$?
8201
7444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202
7445
  (exit $ac_status); }; }; then
8205
7448
  echo "$as_me: failed program was:" >&5
8206
7449
sed 's/^/| /' conftest.$ac_ext >&5
8207
7450
 
8208
 
        eval "$as_ac_var=no"
 
7451
eval "$as_ac_var=no"
8209
7452
fi
8210
 
 
8211
 
rm -f core conftest.err conftest.$ac_objext \
 
7453
rm -f conftest.err conftest.$ac_objext \
8212
7454
      conftest$ac_exeext conftest.$ac_ext
8213
7455
fi
8214
 
ac_res=`eval echo '${'$as_ac_var'}'`
8215
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8216
 
echo "${ECHO_T}$ac_res" >&6; }
 
7456
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7457
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8217
7458
if test `eval echo '${'$as_ac_var'}'` = yes; then
8218
7459
  cat >>confdefs.h <<_ACEOF
8219
7460
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8223
7464
done
8224
7465
 
8225
7466
 
8226
 
# Check whether --enable-static was given.
 
7467
# Check whether --enable-static or --disable-static was given.
8227
7468
if test "${enable_static+set}" = set; then
8228
 
  enableval=$enable_static;  LDFLAGS="${LDFLAGS} -static";
 
7469
  enableval="$enable_static"
 
7470
   LDFLAGS="${LDFLAGS} -static";
8229
7471
 enable_static=yes
8230
 
fi
8231
 
 
8232
 
 
8233
 
# Check whether --enable-server was given.
 
7472
fi;
 
7473
 
 
7474
# Check whether --enable-server or --disable-server was given.
8234
7475
if test "${enable_server+set}" = set; then
8235
 
  enableval=$enable_server; case "${enableval}" in
 
7476
  enableval="$enable_server"
 
7477
  case "${enableval}" in
8236
7478
  yes) server=yes ;;
8237
7479
  no)  server=no ;;
8238
7480
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-server" >&5
8241
7483
esac
8242
7484
else
8243
7485
  server=no
8244
 
fi
8245
 
 
 
7486
fi;
8246
7487
 
8247
7488
 
8248
7489
if test x$server = xyes; then
8254
7495
fi
8255
7496
 
8256
7497
 
8257
 
# Check whether --enable-agent was given.
 
7498
# Check whether --enable-agent or --disable-agent was given.
8258
7499
if test "${enable_agent+set}" = set; then
8259
 
  enableval=$enable_agent; case "${enableval}" in
 
7500
  enableval="$enable_agent"
 
7501
  case "${enableval}" in
8260
7502
  yes) agent=yes ;;
8261
7503
  no)  agent=no ;;
8262
7504
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-agent" >&5
8265
7507
esac
8266
7508
else
8267
7509
  agent=no
8268
 
fi
8269
 
 
 
7510
fi;
8270
7511
 
8271
7512
 
8272
7513
if test x$agent = xyes; then
8278
7519
fi
8279
7520
 
8280
7521
 
 
7522
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
7523
if test "${enable_ipv6+set}" = set; then
 
7524
  enableval="$enable_ipv6"
 
7525
  case "${enableval}" in
 
7526
  yes) ipv6=yes ;;
 
7527
  no)  ipv6=no ;;
 
7528
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ipv6" >&5
 
7529
echo "$as_me: error: bad value ${enableval} for --enable-ipv6" >&2;}
 
7530
   { (exit 1); exit 1; }; } ;;
 
7531
esac
 
7532
else
 
7533
  ipv6=no
 
7534
fi;
 
7535
 
8281
7536
have_db="no"
8282
7537
have_web_monitoring="no"
8283
7538
have_jabber="no"
8284
7539
have_snmp="no"
 
7540
have_ipv6="no"
 
7541
 
 
7542
if test "$ipv6" = "yes"; then
 
7543
 
 
7544
cat >>confdefs.h <<\_ACEOF
 
7545
#define HAVE_IPV6 1
 
7546
_ACEOF
 
7547
 
 
7548
        have_ipv6="yes"
 
7549
fi
8285
7550
 
8286
7551
if test "$server" = "yes"; then
8287
7552
 
8288
7553
 
8289
7554
 
8290
 
# Check whether --with-oracle was given.
 
7555
# Check whether --with-oracle or --without-oracle was given.
8291
7556
if test "${with_oracle+set}" = set; then
8292
 
  withval=$with_oracle;  if test "$withval" = "no"; then
 
7557
  withval="$with_oracle"
 
7558
   if test "$withval" = "no"; then
8293
7559
            want_sqlora8="no"
8294
7560
            _libsqlora8_with="no"
8295
7561
        elif test "$withval" = "yes"; then
8302
7568
 
8303
7569
else
8304
7570
  _libsqlora8_with=no
8305
 
fi
8306
 
 
 
7571
fi;
8307
7572
 
8308
7573
  if test "x$want_sqlora8" = "x" ; then
8309
7574
 
8310
 
# Check whether --with-sqlora8 was given.
 
7575
# Check whether --with-sqlora8 or --without-sqlora8 was given.
8311
7576
if test "${with_sqlora8+set}" = set; then
8312
 
  withval=$with_sqlora8;  if test "$withval" = "no"; then
 
7577
  withval="$with_sqlora8"
 
7578
   if test "$withval" = "no"; then
8313
7579
                    want_sqlora8="no"
8314
7580
                    _libsqlora8_with="no"
8315
7581
                elif test "$withval" = "yes"; then
8322
7588
 
8323
7589
else
8324
7590
  _libsqlora8_with=no
8325
 
fi
8326
 
 
 
7591
fi;
8327
7592
  fi
8328
7593
 
8329
7594
  if test "x$_libsqlora8_with" != x"no"; then
8330
 
        { echo "$as_me:$LINENO: checking for Oracle support" >&5
8331
 
echo $ECHO_N "checking for Oracle support... $ECHO_C" >&6; }
 
7595
        echo "$as_me:$LINENO: checking for Oracle support" >&5
 
7596
echo $ECHO_N "checking for Oracle support... $ECHO_C" >&6
8332
7597
 
8333
7598
        if test "$_libsqlora8_with" = "yes"; then
8334
7599
                if test -f /usr/include/sqlora.h; then
8345
7610
                        SQLORA8_LIBDIR=${SQLORA8_HOME}/lib
8346
7611
                else
8347
7612
                        found_sqlora8="no"
8348
 
                        { echo "$as_me:$LINENO: result: no" >&5
8349
 
echo "${ECHO_T}no" >&6; }
 
7613
                        echo "$as_me:$LINENO: result: no" >&5
 
7614
echo "${ECHO_T}no" >&6
8350
7615
                fi
8351
7616
        else
8352
7617
                if test -f $_libsqlora8_with/include/sqlora.h; then
8360
7625
                        SQLORA8_LIBDIR=$_libsqlora8_with
8361
7626
                else
8362
7627
                        found_sqlora8="no"
8363
 
                        { echo "$as_me:$LINENO: result: no" >&5
8364
 
echo "${ECHO_T}no" >&6; }
 
7628
                        echo "$as_me:$LINENO: result: no" >&5
 
7629
echo "${ECHO_T}no" >&6
8365
7630
                fi
8366
7631
        fi
8367
7632
 
8368
7633
        if test "x$found_sqlora8" != "xno" ; then
8369
7634
                found_sqlora8="yes"
8370
 
                { echo "$as_me:$LINENO: result: yes" >&5
8371
 
echo "${ECHO_T}yes" >&6; }
 
7635
                echo "$as_me:$LINENO: result: yes" >&5
 
7636
echo "${ECHO_T}yes" >&6
8372
7637
 
8373
7638
                SQLORA8_CPPFLAGS="-I$SQLORA8_INCDIR/include -I$SQLORA8_INCDIR/lib/libsqlora8/include"
8374
7639
                SQLORA8_LDFLAGS="-L$SQLORA8_LIBDIR -lsqlora8"
8416
7681
 
8417
7682
 
8418
7683
 
8419
 
# Check whether --with-sqlite3 was given.
 
7684
# Check whether --with-sqlite3 or --without-sqlite3 was given.
8420
7685
if test "${with_sqlite3+set}" = set; then
8421
 
  withval=$with_sqlite3;
 
7686
  withval="$with_sqlite3"
 
7687
 
8422
7688
        if test "$withval" = "no"; then
8423
7689
            WANT_SQLITE3="no"
8424
7690
        elif test "$withval" = "yes"; then
8432
7698
else
8433
7699
  WANT_SQLITE3="no"
8434
7700
 
8435
 
fi
8436
 
 
 
7701
fi;
8437
7702
 
8438
7703
    SQLITE3_CFLAGS=""
8439
7704
    SQLITE3_LDFLAGS=""
8456
7721
                                   \+ $sqlite3_version_req_minor \* 1000 \
8457
7722
                                   \+ $sqlite3_version_req_micro`
8458
7723
 
8459
 
        { echo "$as_me:$LINENO: checking for SQLite3 library >= $sqlite3_version_req" >&5
8460
 
echo $ECHO_N "checking for SQLite3 library >= $sqlite3_version_req... $ECHO_C" >&6; }
 
7724
        echo "$as_me:$LINENO: checking for SQLite3 library >= $sqlite3_version_req" >&5
 
7725
echo $ECHO_N "checking for SQLite3 library >= $sqlite3_version_req... $ECHO_C" >&6
8461
7726
 
8462
7727
        if test "$ac_sqlite3_path" != ""; then
8463
7728
            ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
8504
7769
 
8505
7770
_ACEOF
8506
7771
rm -f conftest.$ac_objext
8507
 
if { (ac_try="$ac_compile"
8508
 
case "(($ac_try" in
8509
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510
 
  *) ac_try_echo=$ac_try;;
8511
 
esac
8512
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513
 
  (eval "$ac_compile") 2>conftest.er1
 
7772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7773
  (eval $ac_compile) 2>conftest.er1
8514
7774
  ac_status=$?
8515
7775
  grep -v '^ *+' conftest.er1 >conftest.err
8516
7776
  rm -f conftest.er1
8517
7777
  cat conftest.err >&5
8518
7778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519
7779
  (exit $ac_status); } &&
8520
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8521
 
  { (case "(($ac_try" in
8522
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523
 
  *) ac_try_echo=$ac_try;;
8524
 
esac
8525
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526
 
  (eval "$ac_try") 2>&5
 
7780
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7782
  (eval $ac_try) 2>&5
8527
7783
  ac_status=$?
8528
7784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529
7785
  (exit $ac_status); }; } &&
8530
7786
         { ac_try='test -s conftest.$ac_objext'
8531
 
  { (case "(($ac_try" in
8532
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533
 
  *) ac_try_echo=$ac_try;;
8534
 
esac
8535
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536
 
  (eval "$ac_try") 2>&5
 
7787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7788
  (eval $ac_try) 2>&5
8537
7789
  ac_status=$?
8538
7790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539
7791
  (exit $ac_status); }; }; then
8540
7792
 
8541
7793
            found_sqlite3="yes"
8542
 
            { echo "$as_me:$LINENO: result: yes" >&5
8543
 
echo "${ECHO_T}yes" >&6; }
 
7794
            echo "$as_me:$LINENO: result: yes" >&5
 
7795
echo "${ECHO_T}yes" >&6
8544
7796
 
8545
7797
else
8546
7798
  echo "$as_me: failed program was:" >&5
8548
7800
 
8549
7801
 
8550
7802
            found_sqlite3="no"
8551
 
            { echo "$as_me:$LINENO: result: no" >&5
8552
 
echo "${ECHO_T}no" >&6; }
 
7803
            echo "$as_me:$LINENO: result: no" >&5
 
7804
echo "${ECHO_T}no" >&6
8553
7805
 
8554
7806
 
8555
7807
fi
8556
 
 
8557
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7808
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558
7809
 
8559
7810
        CPPFLAGS="$saved_CPPFLAGS"
8560
7811
 
8608
7859
    MYSQL_CONFIG="no"
8609
7860
 
8610
7861
 
8611
 
# Check whether --with-mysql was given.
 
7862
# Check whether --with-mysql or --without-mysql was given.
8612
7863
if test "${with_mysql+set}" = set; then
8613
 
  withval=$with_mysql;
 
7864
  withval="$with_mysql"
 
7865
 
8614
7866
        if test "$withval" = "no"; then
8615
7867
            want_mysql="no"
8616
7868
        elif test "$withval" = "yes"; then
8623
7875
else
8624
7876
  want_mysql="no"
8625
7877
 
8626
 
fi
8627
 
 
 
7878
fi;
8628
7879
 
8629
7880
    MYSQL_CFLAGS=""
8630
7881
    MYSQL_LDFLAGS=""
8637
7888
        if test -z "$MYSQL_CONFIG" -o test; then
8638
7889
            # Extract the first word of "mysql_config", so it can be a program name with args.
8639
7890
set dummy mysql_config; ac_word=$2
8640
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8641
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7891
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8642
7893
if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
8643
7894
  echo $ECHO_N "(cached) $ECHO_C" >&6
8644
7895
else
8653
7904
  IFS=$as_save_IFS
8654
7905
  test -z "$as_dir" && as_dir=.
8655
7906
  for ac_exec_ext in '' $ac_executable_extensions; do
8656
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7907
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657
7908
    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8658
7909
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659
7910
    break 2
8660
7911
  fi
8661
7912
done
8662
7913
done
8663
 
IFS=$as_save_IFS
8664
7914
 
8665
7915
  test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
8666
7916
  ;;
8667
7917
esac
8668
7918
fi
8669
7919
MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
 
7920
 
8670
7921
if test -n "$MYSQL_CONFIG"; then
8671
 
  { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
8672
 
echo "${ECHO_T}$MYSQL_CONFIG" >&6; }
 
7922
  echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
 
7923
echo "${ECHO_T}$MYSQL_CONFIG" >&6
8673
7924
else
8674
 
  { echo "$as_me:$LINENO: result: no" >&5
8675
 
echo "${ECHO_T}no" >&6; }
 
7925
  echo "$as_me:$LINENO: result: no" >&5
 
7926
echo "${ECHO_T}no" >&6
8676
7927
fi
8677
7928
 
8678
 
 
8679
7929
        fi
8680
7930
 
8681
7931
        if test -f "$MYSQL_CONFIG"; then
8703
7953
                      -l*)
8704
7954
                                _lib_name="`echo "$i" | cut -b3-`"
8705
7955
                                as_ac_Lib=`echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh`
8706
 
{ echo "$as_me:$LINENO: checking for main in -l$_lib_name " >&5
8707
 
echo $ECHO_N "checking for main in -l$_lib_name ... $ECHO_C" >&6; }
8708
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
7956
echo "$as_me:$LINENO: checking for main in -l$_lib_name " >&5
 
7957
echo $ECHO_N "checking for main in -l$_lib_name ... $ECHO_C" >&6
 
7958
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8709
7959
  echo $ECHO_N "(cached) $ECHO_C" >&6
8710
7960
else
8711
7961
  ac_check_lib_save_LIBS=$LIBS
8721
7971
int
8722
7972
main ()
8723
7973
{
8724
 
return main ();
 
7974
main ();
8725
7975
  ;
8726
7976
  return 0;
8727
7977
}
8728
7978
_ACEOF
8729
7979
rm -f conftest.$ac_objext conftest$ac_exeext
8730
 
if { (ac_try="$ac_link"
8731
 
case "(($ac_try" in
8732
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733
 
  *) ac_try_echo=$ac_try;;
8734
 
esac
8735
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736
 
  (eval "$ac_link") 2>conftest.er1
 
7980
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7981
  (eval $ac_link) 2>conftest.er1
8737
7982
  ac_status=$?
8738
7983
  grep -v '^ *+' conftest.er1 >conftest.err
8739
7984
  rm -f conftest.er1
8740
7985
  cat conftest.err >&5
8741
7986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742
7987
  (exit $ac_status); } &&
8743
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8744
 
  { (case "(($ac_try" in
8745
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746
 
  *) ac_try_echo=$ac_try;;
8747
 
esac
8748
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749
 
  (eval "$ac_try") 2>&5
 
7988
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7990
  (eval $ac_try) 2>&5
8750
7991
  ac_status=$?
8751
7992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752
7993
  (exit $ac_status); }; } &&
8753
7994
         { ac_try='test -s conftest$ac_exeext'
8754
 
  { (case "(($ac_try" in
8755
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756
 
  *) ac_try_echo=$ac_try;;
8757
 
esac
8758
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759
 
  (eval "$ac_try") 2>&5
 
7995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7996
  (eval $ac_try) 2>&5
8760
7997
  ac_status=$?
8761
7998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762
7999
  (exit $ac_status); }; }; then
8765
8002
  echo "$as_me: failed program was:" >&5
8766
8003
sed 's/^/| /' conftest.$ac_ext >&5
8767
8004
 
8768
 
        eval "$as_ac_Lib=no"
 
8005
eval "$as_ac_Lib=no"
8769
8006
fi
8770
 
 
8771
 
rm -f core conftest.err conftest.$ac_objext \
 
8007
rm -f conftest.err conftest.$ac_objext \
8772
8008
      conftest$ac_exeext conftest.$ac_ext
8773
8009
LIBS=$ac_check_lib_save_LIBS
8774
8010
fi
8775
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
8776
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8777
 
echo "${ECHO_T}$ac_res" >&6; }
 
8011
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
8012
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8778
8013
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8779
8014
 
8780
8015
                                                MYSQL_LIBS="$MYSQL_LIBS $i"
8799
8034
                LDFLAGS="${LDFLAGS} ${MYSQL_LDFLAGS}"
8800
8035
                CFLAGS="${CFLAGS} ${MYSQL_CFLAGS}"
8801
8036
 
8802
 
                { echo "$as_me:$LINENO: checking for main in -lmysqlclient " >&5
8803
 
echo $ECHO_N "checking for main in -lmysqlclient ... $ECHO_C" >&6; }
 
8037
                echo "$as_me:$LINENO: checking for main in -lmysqlclient " >&5
 
8038
echo $ECHO_N "checking for main in -lmysqlclient ... $ECHO_C" >&6
8804
8039
if test "${ac_cv_lib_mysqlclient__main+set}" = set; then
8805
8040
  echo $ECHO_N "(cached) $ECHO_C" >&6
8806
8041
else
8817
8052
int
8818
8053
main ()
8819
8054
{
8820
 
return main ();
 
8055
main ();
8821
8056
  ;
8822
8057
  return 0;
8823
8058
}
8824
8059
_ACEOF
8825
8060
rm -f conftest.$ac_objext conftest$ac_exeext
8826
 
if { (ac_try="$ac_link"
8827
 
case "(($ac_try" in
8828
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829
 
  *) ac_try_echo=$ac_try;;
8830
 
esac
8831
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832
 
  (eval "$ac_link") 2>conftest.er1
 
8061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8062
  (eval $ac_link) 2>conftest.er1
8833
8063
  ac_status=$?
8834
8064
  grep -v '^ *+' conftest.er1 >conftest.err
8835
8065
  rm -f conftest.er1
8836
8066
  cat conftest.err >&5
8837
8067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838
8068
  (exit $ac_status); } &&
8839
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840
 
  { (case "(($ac_try" in
8841
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842
 
  *) ac_try_echo=$ac_try;;
8843
 
esac
8844
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845
 
  (eval "$ac_try") 2>&5
 
8069
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8071
  (eval $ac_try) 2>&5
8846
8072
  ac_status=$?
8847
8073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848
8074
  (exit $ac_status); }; } &&
8849
8075
         { ac_try='test -s conftest$ac_exeext'
8850
 
  { (case "(($ac_try" in
8851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852
 
  *) ac_try_echo=$ac_try;;
8853
 
esac
8854
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855
 
  (eval "$ac_try") 2>&5
 
8076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8077
  (eval $ac_try) 2>&5
8856
8078
  ac_status=$?
8857
8079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858
8080
  (exit $ac_status); }; }; then
8861
8083
  echo "$as_me: failed program was:" >&5
8862
8084
sed 's/^/| /' conftest.$ac_ext >&5
8863
8085
 
8864
 
        ac_cv_lib_mysqlclient__main=no
 
8086
ac_cv_lib_mysqlclient__main=no
8865
8087
fi
8866
 
 
8867
 
rm -f core conftest.err conftest.$ac_objext \
 
8088
rm -f conftest.err conftest.$ac_objext \
8868
8089
      conftest$ac_exeext conftest.$ac_ext
8869
8090
LIBS=$ac_check_lib_save_LIBS
8870
8091
fi
8871
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient__main" >&5
8872
 
echo "${ECHO_T}$ac_cv_lib_mysqlclient__main" >&6; }
 
8092
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient__main" >&5
 
8093
echo "${ECHO_T}$ac_cv_lib_mysqlclient__main" >&6
8873
8094
if test $ac_cv_lib_mysqlclient__main = yes; then
8874
8095
 
8875
8096
                        MYSQL_LIBS="-lmysqlclient ${MYSQL_LIBS}"
8910
8131
 
8911
8132
    if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then
8912
8133
 
8913
 
        { echo "$as_me:$LINENO: checking if MySQL version is >= $mysql_version_req" >&5
8914
 
echo $ECHO_N "checking if MySQL version is >= $mysql_version_req... $ECHO_C" >&6; }
 
8134
        echo "$as_me:$LINENO: checking if MySQL version is >= $mysql_version_req" >&5
 
8135
echo $ECHO_N "checking if MySQL version is >= $mysql_version_req... $ECHO_C" >&6
8915
8136
 
8916
8137
                        mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'`
8917
8138
        mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'`
8937
8158
 
8938
8159
        mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number`
8939
8160
        if test "$mysql_version_check" = "1"; then
8940
 
            { echo "$as_me:$LINENO: result: yes" >&5
8941
 
echo "${ECHO_T}yes" >&6; }
 
8161
            echo "$as_me:$LINENO: result: yes" >&5
 
8162
echo "${ECHO_T}yes" >&6
8942
8163
        else
8943
 
            { echo "$as_me:$LINENO: result: no" >&5
8944
 
echo "${ECHO_T}no" >&6; }
 
8164
            echo "$as_me:$LINENO: result: no" >&5
 
8165
echo "${ECHO_T}no" >&6
8945
8166
        fi
8946
8167
    fi
8947
8168
 
8961
8182
 
8962
8183
                        have_db="MySQL"
8963
8184
 
8964
 
                                                { echo "$as_me:$LINENO: checking for mysql_autocommit in MySQL" >&5
8965
 
echo $ECHO_N "checking for mysql_autocommit in MySQL... $ECHO_C" >&6; }
 
8185
                                                echo "$as_me:$LINENO: checking for mysql_autocommit in MySQL" >&5
 
8186
echo $ECHO_N "checking for mysql_autocommit in MySQL... $ECHO_C" >&6
8966
8187
                        cat >conftest.$ac_ext <<_ACEOF
8967
8188
/* confdefs.h.  */
8968
8189
_ACEOF
8980
8201
}
8981
8202
_ACEOF
8982
8203
rm -f conftest.$ac_objext
8983
 
if { (ac_try="$ac_compile"
8984
 
case "(($ac_try" in
8985
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986
 
  *) ac_try_echo=$ac_try;;
8987
 
esac
8988
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989
 
  (eval "$ac_compile") 2>conftest.er1
 
8204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8205
  (eval $ac_compile) 2>conftest.er1
8990
8206
  ac_status=$?
8991
8207
  grep -v '^ *+' conftest.er1 >conftest.err
8992
8208
  rm -f conftest.er1
8993
8209
  cat conftest.err >&5
8994
8210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995
8211
  (exit $ac_status); } &&
8996
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8997
 
  { (case "(($ac_try" in
8998
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999
 
  *) ac_try_echo=$ac_try;;
9000
 
esac
9001
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002
 
  (eval "$ac_try") 2>&5
 
8212
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8214
  (eval $ac_try) 2>&5
9003
8215
  ac_status=$?
9004
8216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005
8217
  (exit $ac_status); }; } &&
9006
8218
         { ac_try='test -s conftest.$ac_objext'
9007
 
  { (case "(($ac_try" in
9008
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009
 
  *) ac_try_echo=$ac_try;;
9010
 
esac
9011
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9012
 
  (eval "$ac_try") 2>&5
 
8219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8220
  (eval $ac_try) 2>&5
9013
8221
  ac_status=$?
9014
8222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015
8223
  (exit $ac_status); }; }; then
9018
8226
#define HAVE_MYSQL_AUTOCOMMIT 1
9019
8227
_ACEOF
9020
8228
 
9021
 
                        { echo "$as_me:$LINENO: result: yes" >&5
9022
 
echo "${ECHO_T}yes" >&6; }
 
8229
                        echo "$as_me:$LINENO: result: yes" >&5
 
8230
echo "${ECHO_T}yes" >&6
9023
8231
else
9024
8232
  echo "$as_me: failed program was:" >&5
9025
8233
sed 's/^/| /' conftest.$ac_ext >&5
9026
8234
 
9027
 
        { echo "$as_me:$LINENO: result: no" >&5
9028
 
echo "${ECHO_T}no" >&6; }
 
8235
echo "$as_me:$LINENO: result: no" >&5
 
8236
echo "${ECHO_T}no" >&6
9029
8237
fi
9030
 
 
9031
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8238
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9032
8239
                else
9033
8240
                        { { echo "$as_me:$LINENO: error: Not found MySQL library" >&5
9034
8241
echo "$as_me: error: Not found MySQL library" >&2;}
9040
8247
    PG_CONFIG="no"
9041
8248
 
9042
8249
 
9043
 
# Check whether --with-pgsql was given.
 
8250
# Check whether --with-pgsql or --without-pgsql was given.
9044
8251
if test "${with_pgsql+set}" = set; then
9045
 
  withval=$with_pgsql;
 
8252
  withval="$with_pgsql"
 
8253
 
9046
8254
        if test "$withval" = "no"; then
9047
8255
            want_postgresql="no"
9048
8256
        elif test "$withval" = "yes"; then
9055
8263
else
9056
8264
  want_postgresql="no"
9057
8265
 
9058
 
fi
9059
 
 
 
8266
fi;
9060
8267
 
9061
8268
    POSTGRESQL_CPPFLAGS=""
9062
8269
    POSTGRESQL_LDFLAGS=""
9068
8275
        if test -z "$PG_CONFIG" -o test; then
9069
8276
            # Extract the first word of "pg_config", so it can be a program name with args.
9070
8277
set dummy pg_config; ac_word=$2
9071
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9072
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8278
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9073
8280
if test "${ac_cv_path_PG_CONFIG+set}" = set; then
9074
8281
  echo $ECHO_N "(cached) $ECHO_C" >&6
9075
8282
else
9084
8291
  IFS=$as_save_IFS
9085
8292
  test -z "$as_dir" && as_dir=.
9086
8293
  for ac_exec_ext in '' $ac_executable_extensions; do
9087
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8294
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088
8295
    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9089
8296
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090
8297
    break 2
9091
8298
  fi
9092
8299
done
9093
8300
done
9094
 
IFS=$as_save_IFS
9095
8301
 
9096
8302
  test -z "$ac_cv_path_PG_CONFIG" && ac_cv_path_PG_CONFIG="no"
9097
8303
  ;;
9098
8304
esac
9099
8305
fi
9100
8306
PG_CONFIG=$ac_cv_path_PG_CONFIG
 
8307
 
9101
8308
if test -n "$PG_CONFIG"; then
9102
 
  { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
9103
 
echo "${ECHO_T}$PG_CONFIG" >&6; }
 
8309
  echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
 
8310
echo "${ECHO_T}$PG_CONFIG" >&6
9104
8311
else
9105
 
  { echo "$as_me:$LINENO: result: no" >&5
9106
 
echo "${ECHO_T}no" >&6; }
 
8312
  echo "$as_me:$LINENO: result: no" >&5
 
8313
echo "${ECHO_T}no" >&6
9107
8314
fi
9108
8315
 
9109
 
 
9110
8316
        fi
9111
8317
 
9112
8318
        if test -f "$PG_CONFIG"; then
9113
 
            { echo "$as_me:$LINENO: checking for PostgreSQL libraries" >&5
9114
 
echo $ECHO_N "checking for PostgreSQL libraries... $ECHO_C" >&6; }
 
8319
            echo "$as_me:$LINENO: checking for PostgreSQL libraries" >&5
 
8320
echo $ECHO_N "checking for PostgreSQL libraries... $ECHO_C" >&6
9115
8321
 
9116
8322
            POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`"
9117
8323
            POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir` -lpq"
9125
8331
 
9126
8332
 
9127
8333
            found_postgresql="yes"
9128
 
            { echo "$as_me:$LINENO: result: yes" >&5
9129
 
echo "${ECHO_T}yes" >&6; }
 
8334
            echo "$as_me:$LINENO: result: yes" >&5
 
8335
echo "${ECHO_T}yes" >&6
9130
8336
        else
9131
8337
            found_postgresql="no"
9132
 
            { echo "$as_me:$LINENO: result: no" >&5
9133
 
echo "${ECHO_T}no" >&6; }
 
8338
            echo "$as_me:$LINENO: result: no" >&5
 
8339
echo "${ECHO_T}no" >&6
9134
8340
        fi
9135
8341
    fi
9136
8342
 
9140
8346
 
9141
8347
    if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
9142
8348
 
9143
 
        { echo "$as_me:$LINENO: checking if PostgreSQL version is >= $postgresql_version_req" >&5
9144
 
echo $ECHO_N "checking if PostgreSQL version is >= $postgresql_version_req... $ECHO_C" >&6; }
 
8349
        echo "$as_me:$LINENO: checking if PostgreSQL version is >= $postgresql_version_req" >&5
 
8350
echo $ECHO_N "checking if PostgreSQL version is >= $postgresql_version_req... $ECHO_C" >&6
9145
8351
 
9146
8352
                        postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'`
9147
8353
        postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'`
9167
8373
 
9168
8374
        postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
9169
8375
        if test "$postgresql_version_check" = "1"; then
9170
 
            { echo "$as_me:$LINENO: result: yes" >&5
9171
 
echo "${ECHO_T}yes" >&6; }
 
8376
            echo "$as_me:$LINENO: result: yes" >&5
 
8377
echo "${ECHO_T}yes" >&6
9172
8378
        else
9173
 
            { echo "$as_me:$LINENO: result: no" >&5
9174
 
echo "${ECHO_T}no" >&6; }
 
8379
            echo "$as_me:$LINENO: result: no" >&5
 
8380
echo "${ECHO_T}no" >&6
9175
8381
        fi
9176
8382
    fi
9177
8383
 
9197
8403
                fi
9198
8404
        fi
9199
8405
 
9200
 
        { echo "$as_me:$LINENO: checking for ZABBIX server database selection" >&5
9201
 
echo $ECHO_N "checking for ZABBIX server database selection... $ECHO_C" >&6; }
 
8406
        echo "$as_me:$LINENO: checking for ZABBIX server database selection" >&5
 
8407
echo $ECHO_N "checking for ZABBIX server database selection... $ECHO_C" >&6
9202
8408
        if test "x$have_db" = "xno"; then
9203
 
                { echo "$as_me:$LINENO: result: error" >&5
9204
 
echo "${ECHO_T}error" >&6; }
 
8409
                echo "$as_me:$LINENO: result: error" >&5
 
8410
echo "${ECHO_T}error" >&6
9205
8411
                { { echo "$as_me:$LINENO: error: No database selected for ZABBIX server. Use --with-mysql or --with-oracle or --with-pgsql or --with-sqlite3." >&5
9206
8412
echo "$as_me: error: No database selected for ZABBIX server. Use --with-mysql or --with-oracle or --with-pgsql or --with-sqlite3." >&2;}
9207
8413
   { (exit 1); exit 1; }; }
9208
8414
        else
9209
 
                { echo "$as_me:$LINENO: result: ok" >&5
9210
 
echo "${ECHO_T}ok" >&6; }
 
8415
                echo "$as_me:$LINENO: result: ok" >&5
 
8416
echo "${ECHO_T}ok" >&6
9211
8417
        fi
9212
8418
 
9213
8419
        DB_CPPFLAGS="$ORACLE_CPPFLAGS $SQLITE3_CPPFLAGS $MYSQL_CFLAGS $POSTGRESQL_CPPFLAGS"
9228
8434
        if test -n "$ac_tool_prefix"; then
9229
8435
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9230
8436
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9231
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9232
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8437
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9233
8439
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9234
8440
  echo $ECHO_N "(cached) $ECHO_C" >&6
9235
8441
else
9244
8450
  IFS=$as_save_IFS
9245
8451
  test -z "$as_dir" && as_dir=.
9246
8452
  for ac_exec_ext in '' $ac_executable_extensions; do
9247
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8453
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9248
8454
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9249
8455
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9250
8456
    break 2
9251
8457
  fi
9252
8458
done
9253
8459
done
9254
 
IFS=$as_save_IFS
9255
8460
 
9256
8461
  ;;
9257
8462
esac
9258
8463
fi
9259
8464
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
8465
 
9260
8466
if test -n "$PKG_CONFIG"; then
9261
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9262
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
8467
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
8468
echo "${ECHO_T}$PKG_CONFIG" >&6
9263
8469
else
9264
 
  { echo "$as_me:$LINENO: result: no" >&5
9265
 
echo "${ECHO_T}no" >&6; }
 
8470
  echo "$as_me:$LINENO: result: no" >&5
 
8471
echo "${ECHO_T}no" >&6
9266
8472
fi
9267
 
 
9268
8473
 
9269
8474
fi
9270
8475
if test -z "$ac_cv_path_PKG_CONFIG"; then
9271
8476
  ac_pt_PKG_CONFIG=$PKG_CONFIG
9272
8477
  # Extract the first word of "pkg-config", so it can be a program name with args.
9273
8478
set dummy pkg-config; ac_word=$2
9274
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9275
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8479
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8480
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9276
8481
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9277
8482
  echo $ECHO_N "(cached) $ECHO_C" >&6
9278
8483
else
9287
8492
  IFS=$as_save_IFS
9288
8493
  test -z "$as_dir" && as_dir=.
9289
8494
  for ac_exec_ext in '' $ac_executable_extensions; do
9290
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8495
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9291
8496
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9292
8497
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293
8498
    break 2
9294
8499
  fi
9295
8500
done
9296
8501
done
9297
 
IFS=$as_save_IFS
9298
8502
 
9299
8503
  ;;
9300
8504
esac
9301
8505
fi
9302
8506
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
8507
 
9303
8508
if test -n "$ac_pt_PKG_CONFIG"; then
9304
 
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9305
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
8509
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
8510
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
9306
8511
else
9307
 
  { echo "$as_me:$LINENO: result: no" >&5
9308
 
echo "${ECHO_T}no" >&6; }
 
8512
  echo "$as_me:$LINENO: result: no" >&5
 
8513
echo "${ECHO_T}no" >&6
9309
8514
fi
9310
8515
 
9311
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
9312
 
    PKG_CONFIG=""
9313
 
  else
9314
 
    case $cross_compiling:$ac_tool_warned in
9315
 
yes:)
9316
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9317
 
whose name does not start with the host triplet.  If you think this
9318
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
9319
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9320
 
whose name does not start with the host triplet.  If you think this
9321
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9322
 
ac_tool_warned=yes ;;
9323
 
esac
9324
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
9325
 
  fi
 
8516
  PKG_CONFIG=$ac_pt_PKG_CONFIG
9326
8517
else
9327
8518
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9328
8519
fi
9330
8521
fi
9331
8522
if test -n "$PKG_CONFIG"; then
9332
8523
        _pkg_min_version=0.9.0
9333
 
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9334
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
8524
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
8525
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
9335
8526
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9336
 
                { echo "$as_me:$LINENO: result: yes" >&5
9337
 
echo "${ECHO_T}yes" >&6; }
 
8527
                echo "$as_me:$LINENO: result: yes" >&5
 
8528
echo "${ECHO_T}yes" >&6
9338
8529
        else
9339
 
                { echo "$as_me:$LINENO: result: no" >&5
9340
 
echo "${ECHO_T}no" >&6; }
 
8530
                echo "$as_me:$LINENO: result: no" >&5
 
8531
echo "${ECHO_T}no" >&6
9341
8532
                PKG_CONFIG=""
9342
8533
        fi
9343
8534
 
9344
8535
fi
9345
8536
 
9346
8537
 
9347
 
# Check whether --with-jabber was given.
 
8538
# Check whether --with-jabber or --without-jabber was given.
9348
8539
if test "${with_jabber+set}" = set; then
9349
 
  withval=$with_jabber;
 
8540
  withval="$with_jabber"
 
8541
 
9350
8542
        if test "$withval" = "no"; then
9351
8543
            want_jabber="no"
9352
8544
            _libiksemel_with="no"
9360
8552
 
9361
8553
else
9362
8554
  _libiksemel_with=no
9363
 
fi
9364
 
 
 
8555
fi;
9365
8556
 
9366
8557
  if test "x$_libiksemel_with" != x"no"; then
9367
8558
       if test "$_libiksemel_with" = "yes"; then
9368
8559
 
9369
8560
pkg_failed=no
9370
 
{ echo "$as_me:$LINENO: checking for IKSEMEL" >&5
9371
 
echo $ECHO_N "checking for IKSEMEL... $ECHO_C" >&6; }
 
8561
echo "$as_me:$LINENO: checking for IKSEMEL" >&5
 
8562
echo $ECHO_N "checking for IKSEMEL... $ECHO_C" >&6
9372
8563
 
9373
8564
if test -n "$PKG_CONFIG"; then
9374
8565
    if test -n "$IKSEMEL_CFLAGS"; then
9436
8627
else
9437
8628
        IKSEMEL_CFLAGS=$pkg_cv_IKSEMEL_CFLAGS
9438
8629
        IKSEMEL_LIBS=$pkg_cv_IKSEMEL_LIBS
9439
 
        { echo "$as_me:$LINENO: result: yes" >&5
9440
 
echo "${ECHO_T}yes" >&6; }
 
8630
        echo "$as_me:$LINENO: result: yes" >&5
 
8631
echo "${ECHO_T}yes" >&6
9441
8632
 
9442
8633
                         JABBER_INCDIR=$IKSEMEL_CPPFLAGS
9443
8634
                         JABBER_LIBDIR=$IKSEMEL_LIBS
 
8635
                         JABBER_LIBS="-liksemel"
9444
8636
 
9445
8637
fi
9446
8638
       else
9447
 
               { echo "$as_me:$LINENO: checking for iksemel support" >&5
9448
 
echo $ECHO_N "checking for iksemel support... $ECHO_C" >&6; }
 
8639
               echo "$as_me:$LINENO: checking for iksemel support" >&5
 
8640
echo $ECHO_N "checking for iksemel support... $ECHO_C" >&6
9449
8641
 
9450
8642
               if test -f $_libiksemel_with/include/iksemel.h; then
9451
8643
                       JABBER_INCDIR=-I$_libiksemel_with/include
9452
8644
                       JABBER_LIBDIR=-L$_libiksemel_with/lib
9453
 
                       JABBER_LIBS=-liksemel
9454
 
                       { echo "$as_me:$LINENO: result: yes" >&5
9455
 
echo "${ECHO_T}yes" >&6; }
 
8645
                       JABBER_LIBS="-liksemel"
 
8646
                       echo "$as_me:$LINENO: result: yes" >&5
 
8647
echo "${ECHO_T}yes" >&6
9456
8648
               else
9457
8649
                       found_iksemel="no"
9458
8650
                       found_jabber="no"
9459
 
                       { echo "$as_me:$LINENO: result: no" >&5
9460
 
echo "${ECHO_T}no" >&6; }
 
8651
                       echo "$as_me:$LINENO: result: no" >&5
 
8652
echo "${ECHO_T}no" >&6
9461
8653
               fi
9462
8654
       fi
9463
8655
 
9467
8659
for ac_func in getaddrinfo
9468
8660
do
9469
8661
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9470
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9471
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9472
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8662
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8663
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
8664
if eval "test \"\${$as_ac_var+set}\" = set"; then
9473
8665
  echo $ECHO_N "(cached) $ECHO_C" >&6
9474
8666
else
9475
8667
  cat >conftest.$ac_ext <<_ACEOF
9495
8687
 
9496
8688
#undef $ac_func
9497
8689
 
9498
 
/* Override any GCC internal prototype to avoid an error.
9499
 
   Use char because int might match the return type of a GCC
 
8690
/* Override any gcc2 internal prototype to avoid an error.  */
 
8691
#ifdef __cplusplus
 
8692
extern "C"
 
8693
{
 
8694
#endif
 
8695
/* We use char because int might match the return type of a gcc2
9500
8696
   builtin and then its argument prototype would still apply.  */
9501
 
#ifdef __cplusplus
9502
 
extern "C"
9503
 
#endif
9504
8697
char $ac_func ();
9505
8698
/* The GNU C library defines this for functions which it implements
9506
8699
    to always fail with ENOSYS.  Some functions are actually named
9507
8700
    something starting with __ and the normal name is an alias.  */
9508
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8701
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9509
8702
choke me
 
8703
#else
 
8704
char (*f) () = $ac_func;
 
8705
#endif
 
8706
#ifdef __cplusplus
 
8707
}
9510
8708
#endif
9511
8709
 
9512
8710
int
9513
8711
main ()
9514
8712
{
9515
 
return $ac_func ();
 
8713
return f != $ac_func;
9516
8714
  ;
9517
8715
  return 0;
9518
8716
}
9519
8717
_ACEOF
9520
8718
rm -f conftest.$ac_objext conftest$ac_exeext
9521
 
if { (ac_try="$ac_link"
9522
 
case "(($ac_try" in
9523
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524
 
  *) ac_try_echo=$ac_try;;
9525
 
esac
9526
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527
 
  (eval "$ac_link") 2>conftest.er1
 
8719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8720
  (eval $ac_link) 2>conftest.er1
9528
8721
  ac_status=$?
9529
8722
  grep -v '^ *+' conftest.er1 >conftest.err
9530
8723
  rm -f conftest.er1
9531
8724
  cat conftest.err >&5
9532
8725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533
8726
  (exit $ac_status); } &&
9534
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9535
 
  { (case "(($ac_try" in
9536
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537
 
  *) ac_try_echo=$ac_try;;
9538
 
esac
9539
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540
 
  (eval "$ac_try") 2>&5
 
8727
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8729
  (eval $ac_try) 2>&5
9541
8730
  ac_status=$?
9542
8731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543
8732
  (exit $ac_status); }; } &&
9544
8733
         { ac_try='test -s conftest$ac_exeext'
9545
 
  { (case "(($ac_try" in
9546
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547
 
  *) ac_try_echo=$ac_try;;
9548
 
esac
9549
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550
 
  (eval "$ac_try") 2>&5
 
8734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8735
  (eval $ac_try) 2>&5
9551
8736
  ac_status=$?
9552
8737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553
8738
  (exit $ac_status); }; }; then
9556
8741
  echo "$as_me: failed program was:" >&5
9557
8742
sed 's/^/| /' conftest.$ac_ext >&5
9558
8743
 
9559
 
        eval "$as_ac_var=no"
 
8744
eval "$as_ac_var=no"
9560
8745
fi
9561
 
 
9562
 
rm -f core conftest.err conftest.$ac_objext \
 
8746
rm -f conftest.err conftest.$ac_objext \
9563
8747
      conftest$ac_exeext conftest.$ac_ext
9564
8748
fi
9565
 
ac_res=`eval echo '${'$as_ac_var'}'`
9566
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9567
 
echo "${ECHO_T}$ac_res" >&6; }
 
8749
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
8750
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9568
8751
if test `eval echo '${'$as_ac_var'}'` = yes; then
9569
8752
  cat >>confdefs.h <<_ACEOF
9570
8753
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9575
8758
 
9576
8759
 
9577
8760
               JABBER_CPPFLAGS=$JABBER_INCDIR
9578
 
               JABBER_LDFLAGS="$JABBER_LIBDIR $JABBER_LIBS"
 
8761
               JABBER_LDFLAGS="$JABBER_LIBDIR"
 
8762
 
 
8763
                if test "x$enable_static" = "xyes"; then
 
8764
                        for i in -liksemel -lgnutls -ltasn1 -lgcrypt -lgpg-error; do
 
8765
                                case $i in
 
8766
                                        -liksemel)
 
8767
                                ;;
 
8768
                                        -l*)
 
8769
                                                _lib_name=`echo "$i" | cut -b3-`
 
8770
                                                as_ac_Lib=`echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh`
 
8771
echo "$as_me:$LINENO: checking for main in -l$_lib_name " >&5
 
8772
echo $ECHO_N "checking for main in -l$_lib_name ... $ECHO_C" >&6
 
8773
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
8774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8775
else
 
8776
  ac_check_lib_save_LIBS=$LIBS
 
8777
LIBS="-l$_lib_name   $LIBS"
 
8778
cat >conftest.$ac_ext <<_ACEOF
 
8779
/* confdefs.h.  */
 
8780
_ACEOF
 
8781
cat confdefs.h >>conftest.$ac_ext
 
8782
cat >>conftest.$ac_ext <<_ACEOF
 
8783
/* end confdefs.h.  */
 
8784
 
 
8785
 
 
8786
int
 
8787
main ()
 
8788
{
 
8789
main ();
 
8790
  ;
 
8791
  return 0;
 
8792
}
 
8793
_ACEOF
 
8794
rm -f conftest.$ac_objext conftest$ac_exeext
 
8795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8796
  (eval $ac_link) 2>conftest.er1
 
8797
  ac_status=$?
 
8798
  grep -v '^ *+' conftest.er1 >conftest.err
 
8799
  rm -f conftest.er1
 
8800
  cat conftest.err >&5
 
8801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8802
  (exit $ac_status); } &&
 
8803
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8805
  (eval $ac_try) 2>&5
 
8806
  ac_status=$?
 
8807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8808
  (exit $ac_status); }; } &&
 
8809
         { ac_try='test -s conftest$ac_exeext'
 
8810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8811
  (eval $ac_try) 2>&5
 
8812
  ac_status=$?
 
8813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8814
  (exit $ac_status); }; }; then
 
8815
  eval "$as_ac_Lib=yes"
 
8816
else
 
8817
  echo "$as_me: failed program was:" >&5
 
8818
sed 's/^/| /' conftest.$ac_ext >&5
 
8819
 
 
8820
eval "$as_ac_Lib=no"
 
8821
fi
 
8822
rm -f conftest.err conftest.$ac_objext \
 
8823
      conftest$ac_exeext conftest.$ac_ext
 
8824
LIBS=$ac_check_lib_save_LIBS
 
8825
fi
 
8826
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
8827
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
8828
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
8829
 
 
8830
                                                        JABBER_LIBS="$JABBER_LIBS $i"
 
8831
 
 
8832
else
 
8833
 
 
8834
                                                        { { echo "$as_me:$LINENO: error: Not found $_lib_name library" >&5
 
8835
echo "$as_me: error: Not found $_lib_name library" >&2;}
 
8836
   { (exit 1); exit 1; }; }
 
8837
 
 
8838
fi
 
8839
 
 
8840
                                ;;
 
8841
                                esac
 
8842
                        done
 
8843
                fi
9579
8844
 
9580
8845
               found_iksemel="yes"
9581
8846
               found_jabber="yes"
9595
8860
 
9596
8861
 
9597
8862
 
 
8863
 
9598
8864
  unset _libiksemel_with
9599
8865
 
9600
8866
        if test "x$want_jabber" = "xyes"; then
9608
8874
        fi
9609
8875
        CFLAGS="${CFLAGS} ${JABBER_CPPFLAGS}"
9610
8876
        SERVER_LDFLAGS="${SERVER_LDFLAGS} ${JABBER_LDFLAGS}"
 
8877
        SERVER_LIBS="${SERVER_LIBS} ${JABBER_LIBS}"
9611
8878
 
9612
8879
 
9613
8880
 
9649
8916
  _libcurl_config="no"
9650
8917
 
9651
8918
 
9652
 
# Check whether --with-libcurl was given.
 
8919
# Check whether --with-libcurl or --without-libcurl was given.
9653
8920
if test "${with_libcurl+set}" = set; then
9654
 
  withval=$with_libcurl;
 
8921
  withval="$with_libcurl"
 
8922
 
9655
8923
        if test "$withval" = "no"; then
9656
8924
            want_curl="no"
9657
8925
        elif test "$withval" = "yes"; then
9663
8931
 
9664
8932
else
9665
8933
  want_curl=try
9666
 
fi
9667
 
 
 
8934
fi;
9668
8935
 
9669
8936
  if test "$want_curl" != "no" ; then
9670
8937
 
9672
8939
do
9673
8940
  # Extract the first word of "$ac_prog", so it can be a program name with args.
9674
8941
set dummy $ac_prog; ac_word=$2
9675
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9676
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8942
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8943
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9677
8944
if test "${ac_cv_prog_AWK+set}" = set; then
9678
8945
  echo $ECHO_N "(cached) $ECHO_C" >&6
9679
8946
else
9686
8953
  IFS=$as_save_IFS
9687
8954
  test -z "$as_dir" && as_dir=.
9688
8955
  for ac_exec_ext in '' $ac_executable_extensions; do
9689
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8956
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9690
8957
    ac_cv_prog_AWK="$ac_prog"
9691
8958
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9692
8959
    break 2
9693
8960
  fi
9694
8961
done
9695
8962
done
9696
 
IFS=$as_save_IFS
9697
8963
 
9698
8964
fi
9699
8965
fi
9700
8966
AWK=$ac_cv_prog_AWK
9701
8967
if test -n "$AWK"; then
9702
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
9703
 
echo "${ECHO_T}$AWK" >&6; }
 
8968
  echo "$as_me:$LINENO: result: $AWK" >&5
 
8969
echo "${ECHO_T}$AWK" >&6
9704
8970
else
9705
 
  { echo "$as_me:$LINENO: result: no" >&5
9706
 
echo "${ECHO_T}no" >&6; }
 
8971
  echo "$as_me:$LINENO: result: no" >&5
 
8972
echo "${ECHO_T}no" >&6
9707
8973
fi
9708
8974
 
9709
 
 
9710
8975
  test -n "$AWK" && break
9711
8976
done
9712
8977
 
9718
8983
     if test -z "$_libcurl_config" -o test; then
9719
8984
         # Extract the first word of "curl-config", so it can be a program name with args.
9720
8985
set dummy curl-config; ac_word=$2
9721
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9722
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8986
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8987
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9723
8988
if test "${ac_cv_path__libcurl_config+set}" = set; then
9724
8989
  echo $ECHO_N "(cached) $ECHO_C" >&6
9725
8990
else
9734
8999
  IFS=$as_save_IFS
9735
9000
  test -z "$as_dir" && as_dir=.
9736
9001
  for ac_exec_ext in '' $ac_executable_extensions; do
9737
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9002
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738
9003
    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
9739
9004
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9740
9005
    break 2
9741
9006
  fi
9742
9007
done
9743
9008
done
9744
 
IFS=$as_save_IFS
9745
9009
 
9746
9010
  test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config="no"
9747
9011
  ;;
9748
9012
esac
9749
9013
fi
9750
9014
_libcurl_config=$ac_cv_path__libcurl_config
 
9015
 
9751
9016
if test -n "$_libcurl_config"; then
9752
 
  { echo "$as_me:$LINENO: result: $_libcurl_config" >&5
9753
 
echo "${ECHO_T}$_libcurl_config" >&6; }
 
9017
  echo "$as_me:$LINENO: result: $_libcurl_config" >&5
 
9018
echo "${ECHO_T}$_libcurl_config" >&6
9754
9019
else
9755
 
  { echo "$as_me:$LINENO: result: no" >&5
9756
 
echo "${ECHO_T}no" >&6; }
 
9020
  echo "$as_me:$LINENO: result: no" >&5
 
9021
echo "${ECHO_T}no" >&6
9757
9022
fi
9758
9023
 
9759
 
 
9760
9024
     fi
9761
9025
 
9762
9026
     if test -f $_libcurl_config; then
9763
 
        { echo "$as_me:$LINENO: checking for the version of libcurl" >&5
9764
 
echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6; }
 
9027
        echo "$as_me:$LINENO: checking for the version of libcurl" >&5
 
9028
echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6
9765
9029
if test "${libcurl_cv_lib_curl_version+set}" = set; then
9766
9030
  echo $ECHO_N "(cached) $ECHO_C" >&6
9767
9031
else
9768
9032
  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
9769
9033
fi
9770
 
{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
9771
 
echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6; }
 
9034
echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
 
9035
echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6
9772
9036
 
9773
9037
        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
9774
9038
        _libcurl_wanted=`echo 7.13.1 | $_libcurl_version_parse`
9775
9039
 
9776
9040
        if test $_libcurl_wanted -gt 0 ; then
9777
 
           { echo "$as_me:$LINENO: checking for libcurl >= version 7.13.1" >&5
9778
 
echo $ECHO_N "checking for libcurl >= version 7.13.1... $ECHO_C" >&6; }
 
9041
           echo "$as_me:$LINENO: checking for libcurl >= version 7.13.1" >&5
 
9042
echo $ECHO_N "checking for libcurl >= version 7.13.1... $ECHO_C" >&6
9779
9043
if test "${libcurl_cv_lib_version_ok+set}" = set; then
9780
9044
  echo $ECHO_N "(cached) $ECHO_C" >&6
9781
9045
else
9787
9051
              fi
9788
9052
 
9789
9053
fi
9790
 
{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
9791
 
echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6; }
 
9054
echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
 
9055
echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6
9792
9056
        fi
9793
9057
 
9794
9058
        if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
9815
9079
                                        -l*)
9816
9080
                                                _lib_name=`echo "$i" | cut -b3-`
9817
9081
                                                as_ac_Lib=`echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh`
9818
 
{ echo "$as_me:$LINENO: checking for main in -l$_lib_name " >&5
9819
 
echo $ECHO_N "checking for main in -l$_lib_name ... $ECHO_C" >&6; }
9820
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
9082
echo "$as_me:$LINENO: checking for main in -l$_lib_name " >&5
 
9083
echo $ECHO_N "checking for main in -l$_lib_name ... $ECHO_C" >&6
 
9084
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9821
9085
  echo $ECHO_N "(cached) $ECHO_C" >&6
9822
9086
else
9823
9087
  ac_check_lib_save_LIBS=$LIBS
9833
9097
int
9834
9098
main ()
9835
9099
{
9836
 
return main ();
 
9100
main ();
9837
9101
  ;
9838
9102
  return 0;
9839
9103
}
9840
9104
_ACEOF
9841
9105
rm -f conftest.$ac_objext conftest$ac_exeext
9842
 
if { (ac_try="$ac_link"
9843
 
case "(($ac_try" in
9844
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845
 
  *) ac_try_echo=$ac_try;;
9846
 
esac
9847
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848
 
  (eval "$ac_link") 2>conftest.er1
 
9106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9107
  (eval $ac_link) 2>conftest.er1
9849
9108
  ac_status=$?
9850
9109
  grep -v '^ *+' conftest.er1 >conftest.err
9851
9110
  rm -f conftest.er1
9852
9111
  cat conftest.err >&5
9853
9112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854
9113
  (exit $ac_status); } &&
9855
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856
 
  { (case "(($ac_try" in
9857
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858
 
  *) ac_try_echo=$ac_try;;
9859
 
esac
9860
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861
 
  (eval "$ac_try") 2>&5
 
9114
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9116
  (eval $ac_try) 2>&5
9862
9117
  ac_status=$?
9863
9118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
9119
  (exit $ac_status); }; } &&
9865
9120
         { ac_try='test -s conftest$ac_exeext'
9866
 
  { (case "(($ac_try" in
9867
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868
 
  *) ac_try_echo=$ac_try;;
9869
 
esac
9870
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871
 
  (eval "$ac_try") 2>&5
 
9121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9122
  (eval $ac_try) 2>&5
9872
9123
  ac_status=$?
9873
9124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874
9125
  (exit $ac_status); }; }; then
9877
9128
  echo "$as_me: failed program was:" >&5
9878
9129
sed 's/^/| /' conftest.$ac_ext >&5
9879
9130
 
9880
 
        eval "$as_ac_Lib=no"
 
9131
eval "$as_ac_Lib=no"
9881
9132
fi
9882
 
 
9883
 
rm -f core conftest.err conftest.$ac_objext \
 
9133
rm -f conftest.err conftest.$ac_objext \
9884
9134
      conftest$ac_exeext conftest.$ac_ext
9885
9135
LIBS=$ac_check_lib_save_LIBS
9886
9136
fi
9887
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
9888
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9889
 
echo "${ECHO_T}$ac_res" >&6; }
 
9137
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
9138
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9890
9139
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9891
9140
 
9892
9141
                                                                LIBCURL_LIBS="$LIBCURL_LIBS $i"
9912
9161
                LDFLAGS="${LDFLAGS} ${LIBCURL_LDFLAGS}"
9913
9162
                CFLAGS="${CFLAGS} ${LIBCURL_CFLAGS}"
9914
9163
 
9915
 
                { echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9916
 
echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6; }
 
9164
                echo "$as_me:$LINENO: checking for main in -lcurl" >&5
 
9165
echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9917
9166
if test "${ac_cv_lib_curl_main+set}" = set; then
9918
9167
  echo $ECHO_N "(cached) $ECHO_C" >&6
9919
9168
else
9930
9179
int
9931
9180
main ()
9932
9181
{
9933
 
return main ();
 
9182
main ();
9934
9183
  ;
9935
9184
  return 0;
9936
9185
}
9937
9186
_ACEOF
9938
9187
rm -f conftest.$ac_objext conftest$ac_exeext
9939
 
if { (ac_try="$ac_link"
9940
 
case "(($ac_try" in
9941
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942
 
  *) ac_try_echo=$ac_try;;
9943
 
esac
9944
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945
 
  (eval "$ac_link") 2>conftest.er1
 
9188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9189
  (eval $ac_link) 2>conftest.er1
9946
9190
  ac_status=$?
9947
9191
  grep -v '^ *+' conftest.er1 >conftest.err
9948
9192
  rm -f conftest.er1
9949
9193
  cat conftest.err >&5
9950
9194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951
9195
  (exit $ac_status); } &&
9952
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953
 
  { (case "(($ac_try" in
9954
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955
 
  *) ac_try_echo=$ac_try;;
9956
 
esac
9957
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958
 
  (eval "$ac_try") 2>&5
 
9196
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9198
  (eval $ac_try) 2>&5
9959
9199
  ac_status=$?
9960
9200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961
9201
  (exit $ac_status); }; } &&
9962
9202
         { ac_try='test -s conftest$ac_exeext'
9963
 
  { (case "(($ac_try" in
9964
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965
 
  *) ac_try_echo=$ac_try;;
9966
 
esac
9967
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968
 
  (eval "$ac_try") 2>&5
 
9203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9204
  (eval $ac_try) 2>&5
9969
9205
  ac_status=$?
9970
9206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971
9207
  (exit $ac_status); }; }; then
9974
9210
  echo "$as_me: failed program was:" >&5
9975
9211
sed 's/^/| /' conftest.$ac_ext >&5
9976
9212
 
9977
 
        ac_cv_lib_curl_main=no
 
9213
ac_cv_lib_curl_main=no
9978
9214
fi
9979
 
 
9980
 
rm -f core conftest.err conftest.$ac_objext \
 
9215
rm -f conftest.err conftest.$ac_objext \
9981
9216
      conftest$ac_exeext conftest.$ac_ext
9982
9217
LIBS=$ac_check_lib_save_LIBS
9983
9218
fi
9984
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9985
 
echo "${ECHO_T}$ac_cv_lib_curl_main" >&6; }
 
9219
echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
 
9220
echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9986
9221
if test $ac_cv_lib_curl_main = yes; then
9987
9222
 
9988
9223
                                LIBCURL_LIBS="-lcurl $LIBCURL_LIBS"
10032
9267
        # link line (or failing that, "-lcurl") is enough.
10033
9268
        LIBCURL_LIBS=${LIBCURL_LIBS-"$_libcurl_libs -lcurl"}
10034
9269
 
10035
 
        { echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
10036
 
echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6; }
 
9270
        echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
 
9271
echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6
10037
9272
if test "${libcurl_cv_lib_curl_usable+set}" = set; then
10038
9273
  echo $ECHO_N "(cached) $ECHO_C" >&6
10039
9274
else
10040
9275
 
10041
 
           _libcurl_save_cppflags=$CPPFLAGS
10042
 
           CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
10043
 
           _libcurl_save_libs=$LIBS
10044
 
           LIBS="$LIBCURL_LIBS $LIBS"
 
9276
                _save_curl_libs="${LIBS}"
 
9277
                _save_curl_ldflags="${LDFLAGS}"
 
9278
                _save_curl_cflags="${CFLAGS}"
 
9279
                LIBS="${LIBS} ${LIBCURL_LIBS}"
 
9280
                LDFLAGS="${LDFLAGS} ${LIBCURL_LDFLAGS}"
 
9281
                CFLAGS="${CFLAGS} ${LIBCURL_CFLAGS}"
10045
9282
 
10046
9283
           cat >conftest.$ac_ext <<_ACEOF
10047
9284
/* confdefs.h.  */
10070
9307
}
10071
9308
_ACEOF
10072
9309
rm -f conftest.$ac_objext conftest$ac_exeext
10073
 
if { (ac_try="$ac_link"
10074
 
case "(($ac_try" in
10075
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076
 
  *) ac_try_echo=$ac_try;;
10077
 
esac
10078
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079
 
  (eval "$ac_link") 2>conftest.er1
 
9310
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9311
  (eval $ac_link) 2>conftest.er1
10080
9312
  ac_status=$?
10081
9313
  grep -v '^ *+' conftest.er1 >conftest.err
10082
9314
  rm -f conftest.er1
10083
9315
  cat conftest.err >&5
10084
9316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085
9317
  (exit $ac_status); } &&
10086
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10087
 
  { (case "(($ac_try" in
10088
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089
 
  *) ac_try_echo=$ac_try;;
10090
 
esac
10091
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092
 
  (eval "$ac_try") 2>&5
 
9318
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9320
  (eval $ac_try) 2>&5
10093
9321
  ac_status=$?
10094
9322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095
9323
  (exit $ac_status); }; } &&
10096
9324
         { ac_try='test -s conftest$ac_exeext'
10097
 
  { (case "(($ac_try" in
10098
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099
 
  *) ac_try_echo=$ac_try;;
10100
 
esac
10101
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102
 
  (eval "$ac_try") 2>&5
 
9325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9326
  (eval $ac_try) 2>&5
10103
9327
  ac_status=$?
10104
9328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105
9329
  (exit $ac_status); }; }; then
10108
9332
  echo "$as_me: failed program was:" >&5
10109
9333
sed 's/^/| /' conftest.$ac_ext >&5
10110
9334
 
10111
 
        libcurl_cv_lib_curl_usable=no
 
9335
libcurl_cv_lib_curl_usable=no
10112
9336
fi
10113
 
 
10114
 
rm -f core conftest.err conftest.$ac_objext \
 
9337
rm -f conftest.err conftest.$ac_objext \
10115
9338
      conftest$ac_exeext conftest.$ac_ext
10116
9339
 
10117
 
           CPPFLAGS=$_libcurl_save_cppflags
10118
 
           LIBS=$_libcurl_save_libs
10119
 
           unset _libcurl_save_cppflags
10120
 
           unset _libcurl_save_libs
 
9340
                LIBS="${_save_curl_libs}"
 
9341
                LDFLAGS="${_save_curl_ldflags}"
 
9342
                CFLAGS="${_save_curl_cflags}"
 
9343
                unset _save_curl_libs
 
9344
                unset _save_curl_ldflags
 
9345
                unset _save_curl_cflags
10121
9346
 
10122
9347
fi
10123
 
{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
10124
 
echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6; }
 
9348
echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
 
9349
echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6
10125
9350
 
10126
9351
        if test $libcurl_cv_lib_curl_usable = yes ; then
10127
9352
 
10128
9353
           # Does curl_free() exist in this version of libcurl?
10129
9354
           # If not, fake it with free()
10130
9355
 
10131
 
           _libcurl_save_cppflags=$CPPFLAGS
10132
 
           CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
10133
 
           _libcurl_save_libs=$LIBS
10134
 
           LIBS="$LIBS $LIBCURL_LIBS"
 
9356
                _save_curl_libs="${LIBS}"
 
9357
                _save_curl_ldflags="${LDFLAGS}"
 
9358
                _save_curl_cflags="${CFLAGS}"
 
9359
                LIBS="${LIBS} ${LIBCURL_LIBS}"
 
9360
                LDFLAGS="${LDFLAGS} ${LIBCURL_LDFLAGS}"
 
9361
                CFLAGS="${CFLAGS} ${LIBCURL_CFLAGS}"
10135
9362
 
10136
 
           { echo "$as_me:$LINENO: checking for curl_free" >&5
10137
 
echo $ECHO_N "checking for curl_free... $ECHO_C" >&6; }
 
9363
           echo "$as_me:$LINENO: checking for curl_free" >&5
 
9364
echo $ECHO_N "checking for curl_free... $ECHO_C" >&6
10138
9365
if test "${ac_cv_func_curl_free+set}" = set; then
10139
9366
  echo $ECHO_N "(cached) $ECHO_C" >&6
10140
9367
else
10161
9388
 
10162
9389
#undef curl_free
10163
9390
 
10164
 
/* Override any GCC internal prototype to avoid an error.
10165
 
   Use char because int might match the return type of a GCC
10166
 
   builtin and then its argument prototype would still apply.  */
 
9391
/* Override any gcc2 internal prototype to avoid an error.  */
10167
9392
#ifdef __cplusplus
10168
9393
extern "C"
 
9394
{
10169
9395
#endif
 
9396
/* We use char because int might match the return type of a gcc2
 
9397
   builtin and then its argument prototype would still apply.  */
10170
9398
char curl_free ();
10171
9399
/* The GNU C library defines this for functions which it implements
10172
9400
    to always fail with ENOSYS.  Some functions are actually named
10173
9401
    something starting with __ and the normal name is an alias.  */
10174
 
#if defined __stub_curl_free || defined __stub___curl_free
 
9402
#if defined (__stub_curl_free) || defined (__stub___curl_free)
10175
9403
choke me
 
9404
#else
 
9405
char (*f) () = curl_free;
 
9406
#endif
 
9407
#ifdef __cplusplus
 
9408
}
10176
9409
#endif
10177
9410
 
10178
9411
int
10179
9412
main ()
10180
9413
{
10181
 
return curl_free ();
 
9414
return f != curl_free;
10182
9415
  ;
10183
9416
  return 0;
10184
9417
}
10185
9418
_ACEOF
10186
9419
rm -f conftest.$ac_objext conftest$ac_exeext
10187
 
if { (ac_try="$ac_link"
10188
 
case "(($ac_try" in
10189
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190
 
  *) ac_try_echo=$ac_try;;
10191
 
esac
10192
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193
 
  (eval "$ac_link") 2>conftest.er1
 
9420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9421
  (eval $ac_link) 2>conftest.er1
10194
9422
  ac_status=$?
10195
9423
  grep -v '^ *+' conftest.er1 >conftest.err
10196
9424
  rm -f conftest.er1
10197
9425
  cat conftest.err >&5
10198
9426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199
9427
  (exit $ac_status); } &&
10200
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10201
 
  { (case "(($ac_try" in
10202
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203
 
  *) ac_try_echo=$ac_try;;
10204
 
esac
10205
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206
 
  (eval "$ac_try") 2>&5
 
9428
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9430
  (eval $ac_try) 2>&5
10207
9431
  ac_status=$?
10208
9432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209
9433
  (exit $ac_status); }; } &&
10210
9434
         { ac_try='test -s conftest$ac_exeext'
10211
 
  { (case "(($ac_try" in
10212
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213
 
  *) ac_try_echo=$ac_try;;
10214
 
esac
10215
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216
 
  (eval "$ac_try") 2>&5
 
9435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9436
  (eval $ac_try) 2>&5
10217
9437
  ac_status=$?
10218
9438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219
9439
  (exit $ac_status); }; }; then
10222
9442
  echo "$as_me: failed program was:" >&5
10223
9443
sed 's/^/| /' conftest.$ac_ext >&5
10224
9444
 
10225
 
        ac_cv_func_curl_free=no
 
9445
ac_cv_func_curl_free=no
10226
9446
fi
10227
 
 
10228
 
rm -f core conftest.err conftest.$ac_objext \
 
9447
rm -f conftest.err conftest.$ac_objext \
10229
9448
      conftest$ac_exeext conftest.$ac_ext
10230
9449
fi
10231
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
10232
 
echo "${ECHO_T}$ac_cv_func_curl_free" >&6; }
 
9450
echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
 
9451
echo "${ECHO_T}$ac_cv_func_curl_free" >&6
10233
9452
if test $ac_cv_func_curl_free = yes; then
10234
9453
  :
10235
9454
else
10241
9460
fi
10242
9461
 
10243
9462
 
10244
 
           CPPFLAGS=$_libcurl_save_cppflags
10245
 
           LIBS=$_libcurl_save_libs
10246
 
           unset _libcurl_save_cppflags
10247
 
           unset _libcurl_save_libs
 
9463
                LIBS="${_save_curl_libs}"
 
9464
                LDFLAGS="${_save_curl_ldflags}"
 
9465
                CFLAGS="${_save_curl_cflags}"
 
9466
                unset _save_curl_libs
 
9467
                unset _save_curl_ldflags
 
9468
                unset _save_curl_cflags
10248
9469
 
10249
9470
 
10250
9471
cat >>confdefs.h <<\_ACEOF
10333
9554
  _libnetsnmp_config="no"
10334
9555
 
10335
9556
 
10336
 
# Check whether --with-net-snmp was given.
 
9557
# Check whether --with-net-snmp or --without-net-snmp was given.
10337
9558
if test "${with_net_snmp+set}" = set; then
10338
 
  withval=$with_net_snmp;  if test "$withval" = "no"; then
 
9559
  withval="$with_net_snmp"
 
9560
   if test "$withval" = "no"; then
10339
9561
            want_netsnmp="no"
10340
9562
        elif test "$withval" = "yes"; then
10341
9563
            want_netsnmp="yes"
10346
9568
 
10347
9569
else
10348
9570
  want_netsnmp=no
10349
 
fi
10350
 
 
 
9571
fi;
10351
9572
 
10352
9573
  SNMP_CFLAGS=""
10353
9574
  SNMP_LDFLAGS=""
10358
9579
        if test -z "$_libnetsnmp_config" -o test; then
10359
9580
            # Extract the first word of "net-snmp-config", so it can be a program name with args.
10360
9581
set dummy net-snmp-config; ac_word=$2
10361
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10362
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9582
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9583
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10363
9584
if test "${ac_cv_path__libnetsnmp_config+set}" = set; then
10364
9585
  echo $ECHO_N "(cached) $ECHO_C" >&6
10365
9586
else
10374
9595
  IFS=$as_save_IFS
10375
9596
  test -z "$as_dir" && as_dir=.
10376
9597
  for ac_exec_ext in '' $ac_executable_extensions; do
10377
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9598
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378
9599
    ac_cv_path__libnetsnmp_config="$as_dir/$ac_word$ac_exec_ext"
10379
9600
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10380
9601
    break 2
10381
9602
  fi
10382
9603
done
10383
9604
done
10384
 
IFS=$as_save_IFS
10385
9605
 
10386
9606
  test -z "$ac_cv_path__libnetsnmp_config" && ac_cv_path__libnetsnmp_config="no"
10387
9607
  ;;
10388
9608
esac
10389
9609
fi
10390
9610
_libnetsnmp_config=$ac_cv_path__libnetsnmp_config
 
9611
 
10391
9612
if test -n "$_libnetsnmp_config"; then
10392
 
  { echo "$as_me:$LINENO: result: $_libnetsnmp_config" >&5
10393
 
echo "${ECHO_T}$_libnetsnmp_config" >&6; }
 
9613
  echo "$as_me:$LINENO: result: $_libnetsnmp_config" >&5
 
9614
echo "${ECHO_T}$_libnetsnmp_config" >&6
10394
9615
else
10395
 
  { echo "$as_me:$LINENO: result: no" >&5
10396
 
echo "${ECHO_T}no" >&6; }
 
9616
  echo "$as_me:$LINENO: result: no" >&5
 
9617
echo "${ECHO_T}no" >&6
10397
9618
fi
10398
9619
 
10399
 
 
10400
9620
        fi
10401
9621
 
10402
9622
        if test -f $_libnetsnmp_config; then
10428
9648
                                        -l*)
10429
9649
                                                _lib_name="`echo "$i" | cut -b3-`"
10430
9650
                                                as_ac_Lib=`echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh`
10431
 
{ echo "$as_me:$LINENO: checking for main in -l$_lib_name " >&5
10432
 
echo $ECHO_N "checking for main in -l$_lib_name ... $ECHO_C" >&6; }
10433
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
9651
echo "$as_me:$LINENO: checking for main in -l$_lib_name " >&5
 
9652
echo $ECHO_N "checking for main in -l$_lib_name ... $ECHO_C" >&6
 
9653
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10434
9654
  echo $ECHO_N "(cached) $ECHO_C" >&6
10435
9655
else
10436
9656
  ac_check_lib_save_LIBS=$LIBS
10446
9666
int
10447
9667
main ()
10448
9668
{
10449
 
return main ();
 
9669
main ();
10450
9670
  ;
10451
9671
  return 0;
10452
9672
}
10453
9673
_ACEOF
10454
9674
rm -f conftest.$ac_objext conftest$ac_exeext
10455
 
if { (ac_try="$ac_link"
10456
 
case "(($ac_try" in
10457
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458
 
  *) ac_try_echo=$ac_try;;
10459
 
esac
10460
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461
 
  (eval "$ac_link") 2>conftest.er1
 
9675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9676
  (eval $ac_link) 2>conftest.er1
10462
9677
  ac_status=$?
10463
9678
  grep -v '^ *+' conftest.er1 >conftest.err
10464
9679
  rm -f conftest.er1
10465
9680
  cat conftest.err >&5
10466
9681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467
9682
  (exit $ac_status); } &&
10468
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10469
 
  { (case "(($ac_try" in
10470
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471
 
  *) ac_try_echo=$ac_try;;
10472
 
esac
10473
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474
 
  (eval "$ac_try") 2>&5
 
9683
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9685
  (eval $ac_try) 2>&5
10475
9686
  ac_status=$?
10476
9687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477
9688
  (exit $ac_status); }; } &&
10478
9689
         { ac_try='test -s conftest$ac_exeext'
10479
 
  { (case "(($ac_try" in
10480
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481
 
  *) ac_try_echo=$ac_try;;
10482
 
esac
10483
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484
 
  (eval "$ac_try") 2>&5
 
9690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9691
  (eval $ac_try) 2>&5
10485
9692
  ac_status=$?
10486
9693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487
9694
  (exit $ac_status); }; }; then
10490
9697
  echo "$as_me: failed program was:" >&5
10491
9698
sed 's/^/| /' conftest.$ac_ext >&5
10492
9699
 
10493
 
        eval "$as_ac_Lib=no"
 
9700
eval "$as_ac_Lib=no"
10494
9701
fi
10495
 
 
10496
 
rm -f core conftest.err conftest.$ac_objext \
 
9702
rm -f conftest.err conftest.$ac_objext \
10497
9703
      conftest$ac_exeext conftest.$ac_ext
10498
9704
LIBS=$ac_check_lib_save_LIBS
10499
9705
fi
10500
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
10501
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
10502
 
echo "${ECHO_T}$ac_res" >&6; }
 
9706
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
9707
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10503
9708
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10504
9709
 
10505
9710
                                                                SNMP_LIBS="$SNMP_LIBS $i"
10525
9730
                LDFLAGS="${LDFLAGS} ${SNMP_LDFLAGS}"
10526
9731
                CFLAGS="${CFLAGS} ${SNMP_CFLAGS}"
10527
9732
 
10528
 
                { echo "$as_me:$LINENO: checking for main in -lnetsnmp " >&5
10529
 
echo $ECHO_N "checking for main in -lnetsnmp ... $ECHO_C" >&6; }
 
9733
                echo "$as_me:$LINENO: checking for main in -lnetsnmp " >&5
 
9734
echo $ECHO_N "checking for main in -lnetsnmp ... $ECHO_C" >&6
10530
9735
if test "${ac_cv_lib_netsnmp__main+set}" = set; then
10531
9736
  echo $ECHO_N "(cached) $ECHO_C" >&6
10532
9737
else
10543
9748
int
10544
9749
main ()
10545
9750
{
10546
 
return main ();
 
9751
main ();
10547
9752
  ;
10548
9753
  return 0;
10549
9754
}
10550
9755
_ACEOF
10551
9756
rm -f conftest.$ac_objext conftest$ac_exeext
10552
 
if { (ac_try="$ac_link"
10553
 
case "(($ac_try" in
10554
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555
 
  *) ac_try_echo=$ac_try;;
10556
 
esac
10557
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558
 
  (eval "$ac_link") 2>conftest.er1
 
9757
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9758
  (eval $ac_link) 2>conftest.er1
10559
9759
  ac_status=$?
10560
9760
  grep -v '^ *+' conftest.er1 >conftest.err
10561
9761
  rm -f conftest.er1
10562
9762
  cat conftest.err >&5
10563
9763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564
9764
  (exit $ac_status); } &&
10565
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10566
 
  { (case "(($ac_try" in
10567
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568
 
  *) ac_try_echo=$ac_try;;
10569
 
esac
10570
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571
 
  (eval "$ac_try") 2>&5
 
9765
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9767
  (eval $ac_try) 2>&5
10572
9768
  ac_status=$?
10573
9769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574
9770
  (exit $ac_status); }; } &&
10575
9771
         { ac_try='test -s conftest$ac_exeext'
10576
 
  { (case "(($ac_try" in
10577
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578
 
  *) ac_try_echo=$ac_try;;
10579
 
esac
10580
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581
 
  (eval "$ac_try") 2>&5
 
9772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9773
  (eval $ac_try) 2>&5
10582
9774
  ac_status=$?
10583
9775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584
9776
  (exit $ac_status); }; }; then
10587
9779
  echo "$as_me: failed program was:" >&5
10588
9780
sed 's/^/| /' conftest.$ac_ext >&5
10589
9781
 
10590
 
        ac_cv_lib_netsnmp__main=no
 
9782
ac_cv_lib_netsnmp__main=no
10591
9783
fi
10592
 
 
10593
 
rm -f core conftest.err conftest.$ac_objext \
 
9784
rm -f conftest.err conftest.$ac_objext \
10594
9785
      conftest$ac_exeext conftest.$ac_ext
10595
9786
LIBS=$ac_check_lib_save_LIBS
10596
9787
fi
10597
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp__main" >&5
10598
 
echo "${ECHO_T}$ac_cv_lib_netsnmp__main" >&6; }
 
9788
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp__main" >&5
 
9789
echo "${ECHO_T}$ac_cv_lib_netsnmp__main" >&6
10599
9790
if test $ac_cv_lib_netsnmp__main = yes; then
10600
9791
 
10601
9792
                        SNMP_LIBS="-lnetsnmp ${SNMP_LIBS}"
10653
9844
 
10654
9845
 
10655
9846
 
10656
 
# Check whether --with-ucd-snmp was given.
 
9847
# Check whether --with-ucd-snmp or --without-ucd-snmp was given.
10657
9848
if test "${with_ucd_snmp+set}" = set; then
10658
 
  withval=$with_ucd_snmp;  if test "$withval" = "no"; then
 
9849
  withval="$with_ucd_snmp"
 
9850
   if test "$withval" = "no"; then
10659
9851
            want_snmp="no"
10660
9852
            _libsnmp_with="no"
10661
9853
        elif test "$withval" = "yes"; then
10668
9860
 
10669
9861
else
10670
9862
  _libsnmp_with=no
10671
 
fi
10672
 
 
 
9863
fi;
10673
9864
 
10674
9865
  if test "x$_libsnmp_with" != x"no"; then
10675
 
       { echo "$as_me:$LINENO: checking for UCD-SNMP support" >&5
10676
 
echo $ECHO_N "checking for UCD-SNMP support... $ECHO_C" >&6; }
 
9866
       echo "$as_me:$LINENO: checking for UCD-SNMP support" >&5
 
9867
echo $ECHO_N "checking for UCD-SNMP support... $ECHO_C" >&6
10677
9868
 
10678
9869
        if test "$_libsnmp_with" = "yes"; then
10679
9870
                if test -f /usr/local/ucd-snmp/include/ucd-snmp-config.h; then
10693
9884
                        SNMP_LIBDIR=/usr/local/lib
10694
9885
                else
10695
9886
                        found_snmp="no"
10696
 
                        { echo "$as_me:$LINENO: result: no" >&5
10697
 
echo "${ECHO_T}no" >&6; }
 
9887
                        echo "$as_me:$LINENO: result: no" >&5
 
9888
echo "${ECHO_T}no" >&6
10698
9889
                fi
10699
9890
        else
10700
9891
                if test -f $withval/include/ucd-snmp/ucd-snmp-config.h; then
10705
9896
                        SNMP_LIBDIR=$withval/lib
10706
9897
                else
10707
9898
                        found_snmp="no"
10708
 
                        { echo "$as_me:$LINENO: result: no" >&5
10709
 
echo "${ECHO_T}no" >&6; }
 
9899
                        echo "$as_me:$LINENO: result: no" >&5
 
9900
echo "${ECHO_T}no" >&6
10710
9901
                fi
10711
9902
        fi
10712
9903
 
10713
9904
        if test "x$found_snmp" != "xno" ; then
10714
9905
                found_snmp="yes"
10715
 
                { echo "$as_me:$LINENO: result: yes" >&5
10716
 
echo "${ECHO_T}yes" >&6; }
 
9906
                echo "$as_me:$LINENO: result: yes" >&5
 
9907
echo "${ECHO_T}yes" >&6
10717
9908
 
10718
 
                { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
10719
 
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
 
9909
                echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
9910
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
10720
9911
if test "${ac_cv_lib_crypto_main+set}" = set; then
10721
9912
  echo $ECHO_N "(cached) $ECHO_C" >&6
10722
9913
else
10733
9924
int
10734
9925
main ()
10735
9926
{
10736
 
return main ();
 
9927
main ();
10737
9928
  ;
10738
9929
  return 0;
10739
9930
}
10740
9931
_ACEOF
10741
9932
rm -f conftest.$ac_objext conftest$ac_exeext
10742
 
if { (ac_try="$ac_link"
10743
 
case "(($ac_try" in
10744
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745
 
  *) ac_try_echo=$ac_try;;
10746
 
esac
10747
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748
 
  (eval "$ac_link") 2>conftest.er1
 
9933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9934
  (eval $ac_link) 2>conftest.er1
10749
9935
  ac_status=$?
10750
9936
  grep -v '^ *+' conftest.er1 >conftest.err
10751
9937
  rm -f conftest.er1
10752
9938
  cat conftest.err >&5
10753
9939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754
9940
  (exit $ac_status); } &&
10755
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756
 
  { (case "(($ac_try" in
10757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758
 
  *) ac_try_echo=$ac_try;;
10759
 
esac
10760
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761
 
  (eval "$ac_try") 2>&5
 
9941
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9943
  (eval $ac_try) 2>&5
10762
9944
  ac_status=$?
10763
9945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764
9946
  (exit $ac_status); }; } &&
10765
9947
         { ac_try='test -s conftest$ac_exeext'
10766
 
  { (case "(($ac_try" in
10767
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768
 
  *) ac_try_echo=$ac_try;;
10769
 
esac
10770
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771
 
  (eval "$ac_try") 2>&5
 
9948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9949
  (eval $ac_try) 2>&5
10772
9950
  ac_status=$?
10773
9951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774
9952
  (exit $ac_status); }; }; then
10777
9955
  echo "$as_me: failed program was:" >&5
10778
9956
sed 's/^/| /' conftest.$ac_ext >&5
10779
9957
 
10780
 
        ac_cv_lib_crypto_main=no
 
9958
ac_cv_lib_crypto_main=no
10781
9959
fi
10782
 
 
10783
 
rm -f core conftest.err conftest.$ac_objext \
 
9960
rm -f conftest.err conftest.$ac_objext \
10784
9961
      conftest$ac_exeext conftest.$ac_ext
10785
9962
LIBS=$ac_check_lib_save_LIBS
10786
9963
fi
10787
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
10788
 
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
 
9964
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
9965
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
10789
9966
if test $ac_cv_lib_crypto_main = yes; then
10790
9967
  SNMP_LIBS="$SNMP_LIBS -lcrypto"
10791
9968
fi
10849
10026
found_ldap="no"
10850
10027
 
10851
10028
 
10852
 
# Check whether --with-ldap was given.
 
10029
# Check whether --with-ldap or --without-ldap was given.
10853
10030
if test "${with_ldap+set}" = set; then
10854
 
  withval=$with_ldap;  if test "$withval" = "no"; then
 
10031
  withval="$with_ldap"
 
10032
   if test "$withval" = "no"; then
10855
10033
            want_ldap="no"
10856
10034
            _libldap_with="no"
10857
10035
        elif test "$withval" = "yes"; then
10864
10042
 
10865
10043
else
10866
10044
  _libldap_with=no
10867
 
fi
10868
 
 
 
10045
fi;
10869
10046
 
10870
10047
  if test "x$_libldap_with" != x"no"; then
10871
 
       { echo "$as_me:$LINENO: checking for LDAP support" >&5
10872
 
echo $ECHO_N "checking for LDAP support... $ECHO_C" >&6; }
 
10048
       echo "$as_me:$LINENO: checking for LDAP support" >&5
 
10049
echo $ECHO_N "checking for LDAP support... $ECHO_C" >&6
10873
10050
 
10874
10051
       if test "$_libldap_with" = "yes"; then
10875
10052
               if test -f /usr/local/openldap/include/ldap.h; then
10886
10063
                       found_ldap="yes"
10887
10064
               else
10888
10065
                       found_ldap="no"
10889
 
                       { echo "$as_me:$LINENO: result: no" >&5
10890
 
echo "${ECHO_T}no" >&6; }
 
10066
                       echo "$as_me:$LINENO: result: no" >&5
 
10067
echo "${ECHO_T}no" >&6
10891
10068
               fi
10892
10069
       else
10893
10070
               if test -f $_libldap_with/include/ldap.h; then
10896
10073
                       found_ldap="yes"
10897
10074
               else
10898
10075
                       found_ldap="no"
10899
 
                       { echo "$as_me:$LINENO: result: no" >&5
10900
 
echo "${ECHO_T}no" >&6; }
 
10076
                       echo "$as_me:$LINENO: result: no" >&5
 
10077
echo "${ECHO_T}no" >&6
10901
10078
               fi
10902
10079
       fi
10903
10080
 
10921
10098
#define LDAP_DEPRECATED 1
10922
10099
_ACEOF
10923
10100
 
10924
 
               { echo "$as_me:$LINENO: result: yes" >&5
10925
 
echo "${ECHO_T}yes" >&6; }
 
10101
               echo "$as_me:$LINENO: result: yes" >&5
 
10102
echo "${ECHO_T}yes" >&6
10926
10103
 
10927
10104
               if test "x$enable_static" = "xyes"; then
10928
10105
 
10929
 
{ echo "$as_me:$LINENO: checking for main in -llber" >&5
10930
 
echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6; }
 
10106
echo "$as_me:$LINENO: checking for main in -llber" >&5
 
10107
echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6
10931
10108
if test "${ac_cv_lib_lber_main+set}" = set; then
10932
10109
  echo $ECHO_N "(cached) $ECHO_C" >&6
10933
10110
else
10944
10121
int
10945
10122
main ()
10946
10123
{
10947
 
return main ();
 
10124
main ();
10948
10125
  ;
10949
10126
  return 0;
10950
10127
}
10951
10128
_ACEOF
10952
10129
rm -f conftest.$ac_objext conftest$ac_exeext
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
 
10130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10131
  (eval $ac_link) 2>conftest.er1
10960
10132
  ac_status=$?
10961
10133
  grep -v '^ *+' conftest.er1 >conftest.err
10962
10134
  rm -f conftest.er1
10963
10135
  cat conftest.err >&5
10964
10136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965
10137
  (exit $ac_status); } &&
10966
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10967
 
  { (case "(($ac_try" in
10968
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969
 
  *) ac_try_echo=$ac_try;;
10970
 
esac
10971
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972
 
  (eval "$ac_try") 2>&5
 
10138
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10140
  (eval $ac_try) 2>&5
10973
10141
  ac_status=$?
10974
10142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975
10143
  (exit $ac_status); }; } &&
10976
10144
         { ac_try='test -s conftest$ac_exeext'
10977
 
  { (case "(($ac_try" in
10978
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979
 
  *) ac_try_echo=$ac_try;;
10980
 
esac
10981
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982
 
  (eval "$ac_try") 2>&5
 
10145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10146
  (eval $ac_try) 2>&5
10983
10147
  ac_status=$?
10984
10148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985
10149
  (exit $ac_status); }; }; then
10988
10152
  echo "$as_me: failed program was:" >&5
10989
10153
sed 's/^/| /' conftest.$ac_ext >&5
10990
10154
 
10991
 
        ac_cv_lib_lber_main=no
 
10155
ac_cv_lib_lber_main=no
10992
10156
fi
10993
 
 
10994
 
rm -f core conftest.err conftest.$ac_objext \
 
10157
rm -f conftest.err conftest.$ac_objext \
10995
10158
      conftest$ac_exeext conftest.$ac_ext
10996
10159
LIBS=$ac_check_lib_save_LIBS
10997
10160
fi
10998
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
10999
 
echo "${ECHO_T}$ac_cv_lib_lber_main" >&6; }
 
10161
echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
 
10162
echo "${ECHO_T}$ac_cv_lib_lber_main" >&6
11000
10163
if test $ac_cv_lib_lber_main = yes; then
11001
10164
  cat >>confdefs.h <<_ACEOF
11002
10165
#define HAVE_LIBLBER 1
11011
10174
fi
11012
10175
 
11013
10176
 
11014
 
{ echo "$as_me:$LINENO: checking for main in -lgnutls" >&5
11015
 
echo $ECHO_N "checking for main in -lgnutls... $ECHO_C" >&6; }
 
10177
echo "$as_me:$LINENO: checking for main in -lgnutls" >&5
 
10178
echo $ECHO_N "checking for main in -lgnutls... $ECHO_C" >&6
11016
10179
if test "${ac_cv_lib_gnutls_main+set}" = set; then
11017
10180
  echo $ECHO_N "(cached) $ECHO_C" >&6
11018
10181
else
11029
10192
int
11030
10193
main ()
11031
10194
{
11032
 
return main ();
 
10195
main ();
11033
10196
  ;
11034
10197
  return 0;
11035
10198
}
11036
10199
_ACEOF
11037
10200
rm -f conftest.$ac_objext conftest$ac_exeext
11038
 
if { (ac_try="$ac_link"
11039
 
case "(($ac_try" in
11040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041
 
  *) ac_try_echo=$ac_try;;
11042
 
esac
11043
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044
 
  (eval "$ac_link") 2>conftest.er1
 
10201
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10202
  (eval $ac_link) 2>conftest.er1
11045
10203
  ac_status=$?
11046
10204
  grep -v '^ *+' conftest.er1 >conftest.err
11047
10205
  rm -f conftest.er1
11048
10206
  cat conftest.err >&5
11049
10207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050
10208
  (exit $ac_status); } &&
11051
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052
 
  { (case "(($ac_try" in
11053
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054
 
  *) ac_try_echo=$ac_try;;
11055
 
esac
11056
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057
 
  (eval "$ac_try") 2>&5
 
10209
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10211
  (eval $ac_try) 2>&5
11058
10212
  ac_status=$?
11059
10213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060
10214
  (exit $ac_status); }; } &&
11061
10215
         { ac_try='test -s conftest$ac_exeext'
11062
 
  { (case "(($ac_try" in
11063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064
 
  *) ac_try_echo=$ac_try;;
11065
 
esac
11066
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067
 
  (eval "$ac_try") 2>&5
 
10216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10217
  (eval $ac_try) 2>&5
11068
10218
  ac_status=$?
11069
10219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070
10220
  (exit $ac_status); }; }; then
11073
10223
  echo "$as_me: failed program was:" >&5
11074
10224
sed 's/^/| /' conftest.$ac_ext >&5
11075
10225
 
11076
 
        ac_cv_lib_gnutls_main=no
 
10226
ac_cv_lib_gnutls_main=no
11077
10227
fi
11078
 
 
11079
 
rm -f core conftest.err conftest.$ac_objext \
 
10228
rm -f conftest.err conftest.$ac_objext \
11080
10229
      conftest$ac_exeext conftest.$ac_ext
11081
10230
LIBS=$ac_check_lib_save_LIBS
11082
10231
fi
11083
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_main" >&5
11084
 
echo "${ECHO_T}$ac_cv_lib_gnutls_main" >&6; }
 
10232
echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_main" >&5
 
10233
echo "${ECHO_T}$ac_cv_lib_gnutls_main" >&6
11085
10234
if test $ac_cv_lib_gnutls_main = yes; then
11086
10235
  cat >>confdefs.h <<_ACEOF
11087
10236
#define HAVE_LIBGNUTLS 1
11096
10245
fi
11097
10246
 
11098
10247
 
11099
 
{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
11100
 
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
 
10248
echo "$as_me:$LINENO: checking for main in -lpthread" >&5
 
10249
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
11101
10250
if test "${ac_cv_lib_pthread_main+set}" = set; then
11102
10251
  echo $ECHO_N "(cached) $ECHO_C" >&6
11103
10252
else
11114
10263
int
11115
10264
main ()
11116
10265
{
11117
 
return main ();
 
10266
main ();
11118
10267
  ;
11119
10268
  return 0;
11120
10269
}
11121
10270
_ACEOF
11122
10271
rm -f conftest.$ac_objext conftest$ac_exeext
11123
 
if { (ac_try="$ac_link"
11124
 
case "(($ac_try" in
11125
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126
 
  *) ac_try_echo=$ac_try;;
11127
 
esac
11128
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129
 
  (eval "$ac_link") 2>conftest.er1
 
10272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10273
  (eval $ac_link) 2>conftest.er1
11130
10274
  ac_status=$?
11131
10275
  grep -v '^ *+' conftest.er1 >conftest.err
11132
10276
  rm -f conftest.er1
11133
10277
  cat conftest.err >&5
11134
10278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135
10279
  (exit $ac_status); } &&
11136
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11137
 
  { (case "(($ac_try" in
11138
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139
 
  *) ac_try_echo=$ac_try;;
11140
 
esac
11141
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142
 
  (eval "$ac_try") 2>&5
 
10280
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10282
  (eval $ac_try) 2>&5
11143
10283
  ac_status=$?
11144
10284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145
10285
  (exit $ac_status); }; } &&
11146
10286
         { ac_try='test -s conftest$ac_exeext'
11147
 
  { (case "(($ac_try" in
11148
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149
 
  *) ac_try_echo=$ac_try;;
11150
 
esac
11151
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152
 
  (eval "$ac_try") 2>&5
 
10287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10288
  (eval $ac_try) 2>&5
11153
10289
  ac_status=$?
11154
10290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155
10291
  (exit $ac_status); }; }; then
11158
10294
  echo "$as_me: failed program was:" >&5
11159
10295
sed 's/^/| /' conftest.$ac_ext >&5
11160
10296
 
11161
 
        ac_cv_lib_pthread_main=no
 
10297
ac_cv_lib_pthread_main=no
11162
10298
fi
11163
 
 
11164
 
rm -f core conftest.err conftest.$ac_objext \
 
10299
rm -f conftest.err conftest.$ac_objext \
11165
10300
      conftest$ac_exeext conftest.$ac_ext
11166
10301
LIBS=$ac_check_lib_save_LIBS
11167
10302
fi
11168
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
11169
 
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
 
10303
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
 
10304
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
11170
10305
if test $ac_cv_lib_pthread_main = yes; then
11171
10306
  cat >>confdefs.h <<_ACEOF
11172
10307
#define HAVE_LIBPTHREAD 1
11181
10316
fi
11182
10317
 
11183
10318
 
11184
 
{ echo "$as_me:$LINENO: checking for main in -lsasl2" >&5
11185
 
echo $ECHO_N "checking for main in -lsasl2... $ECHO_C" >&6; }
 
10319
echo "$as_me:$LINENO: checking for main in -lsasl2" >&5
 
10320
echo $ECHO_N "checking for main in -lsasl2... $ECHO_C" >&6
11186
10321
if test "${ac_cv_lib_sasl2_main+set}" = set; then
11187
10322
  echo $ECHO_N "(cached) $ECHO_C" >&6
11188
10323
else
11199
10334
int
11200
10335
main ()
11201
10336
{
11202
 
return main ();
 
10337
main ();
11203
10338
  ;
11204
10339
  return 0;
11205
10340
}
11206
10341
_ACEOF
11207
10342
rm -f conftest.$ac_objext conftest$ac_exeext
11208
 
if { (ac_try="$ac_link"
11209
 
case "(($ac_try" in
11210
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211
 
  *) ac_try_echo=$ac_try;;
11212
 
esac
11213
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214
 
  (eval "$ac_link") 2>conftest.er1
 
10343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10344
  (eval $ac_link) 2>conftest.er1
11215
10345
  ac_status=$?
11216
10346
  grep -v '^ *+' conftest.er1 >conftest.err
11217
10347
  rm -f conftest.er1
11218
10348
  cat conftest.err >&5
11219
10349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220
10350
  (exit $ac_status); } &&
11221
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11222
 
  { (case "(($ac_try" in
11223
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224
 
  *) ac_try_echo=$ac_try;;
11225
 
esac
11226
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227
 
  (eval "$ac_try") 2>&5
 
10351
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10353
  (eval $ac_try) 2>&5
11228
10354
  ac_status=$?
11229
10355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230
10356
  (exit $ac_status); }; } &&
11231
10357
         { ac_try='test -s conftest$ac_exeext'
11232
 
  { (case "(($ac_try" in
11233
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234
 
  *) ac_try_echo=$ac_try;;
11235
 
esac
11236
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237
 
  (eval "$ac_try") 2>&5
 
10358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10359
  (eval $ac_try) 2>&5
11238
10360
  ac_status=$?
11239
10361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240
10362
  (exit $ac_status); }; }; then
11243
10365
  echo "$as_me: failed program was:" >&5
11244
10366
sed 's/^/| /' conftest.$ac_ext >&5
11245
10367
 
11246
 
        ac_cv_lib_sasl2_main=no
 
10368
ac_cv_lib_sasl2_main=no
11247
10369
fi
11248
 
 
11249
 
rm -f core conftest.err conftest.$ac_objext \
 
10370
rm -f conftest.err conftest.$ac_objext \
11250
10371
      conftest$ac_exeext conftest.$ac_ext
11251
10372
LIBS=$ac_check_lib_save_LIBS
11252
10373
fi
11253
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_main" >&5
11254
 
echo "${ECHO_T}$ac_cv_lib_sasl2_main" >&6; }
 
10374
echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_main" >&5
 
10375
echo "${ECHO_T}$ac_cv_lib_sasl2_main" >&6
11255
10376
if test $ac_cv_lib_sasl2_main = yes; then
11256
10377
  cat >>confdefs.h <<_ACEOF
11257
10378
#define HAVE_LIBSASL2 1
11289
10410
 
11290
10411
 
11291
10412
 
11292
 
{ echo "$as_me:$LINENO: checking for architecture" >&5
11293
 
echo $ECHO_N "checking for architecture... $ECHO_C" >&6; }
 
10413
echo "$as_me:$LINENO: checking for architecture" >&5
 
10414
echo $ECHO_N "checking for architecture... $ECHO_C" >&6
11294
10415
 
11295
10416
# Cheks for host_os
11296
10417
case "$host_os" in
11297
10418
linux*)
11298
10419
        ARCH="linux"
11299
10420
 
11300
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11301
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10421
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10422
echo "${ECHO_T}ok (${host_os})" >&6
11302
10423
 
11303
10424
        # Ok, this is linux. Check the kernel version
11304
 
        { echo "$as_me:$LINENO: checking for the kernel version" >&5
11305
 
echo $ECHO_N "checking for the kernel version... $ECHO_C" >&6; }
 
10425
        echo "$as_me:$LINENO: checking for the kernel version" >&5
 
10426
echo $ECHO_N "checking for the kernel version... $ECHO_C" >&6
11306
10427
 
11307
10428
        kernel=`uname -r`
11308
10429
 
11309
10430
        case "${kernel}" in
11310
10431
             2.6.*)
11311
 
                    { echo "$as_me:$LINENO: result: 2.6 family (${kernel})" >&5
11312
 
echo "${ECHO_T}2.6 family (${kernel})" >&6; }
 
10432
                    echo "$as_me:$LINENO: result: 2.6 family (${kernel})" >&5
 
10433
echo "${ECHO_T}2.6 family (${kernel})" >&6
11313
10434
 
11314
10435
cat >>confdefs.h <<\_ACEOF
11315
10436
#define KERNEL_2_6 1
11318
10439
                    ;;
11319
10440
 
11320
10441
             2.4.*)
11321
 
                    { echo "$as_me:$LINENO: result: 2.4 family (${kernel})" >&5
11322
 
echo "${ECHO_T}2.4 family (${kernel})" >&6; }
 
10442
                    echo "$as_me:$LINENO: result: 2.4 family (${kernel})" >&5
 
10443
echo "${ECHO_T}2.4 family (${kernel})" >&6
11323
10444
 
11324
10445
cat >>confdefs.h <<\_ACEOF
11325
10446
#define KERNEL_2_4 1
11331
10452
aix*)
11332
10453
        ARCH="aix"
11333
10454
 
11334
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11335
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10455
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10456
echo "${ECHO_T}ok (${host_os})" >&6
11336
10457
;;
11337
10458
darwin*|rhapsody*)
11338
10459
        ARCH="osx"
11339
10460
 
11340
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11341
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10461
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10462
echo "${ECHO_T}ok (${host_os})" >&6
11342
10463
;;
11343
10464
*solaris*)
11344
10465
        ARCH="solaris"
11345
10466
 
11346
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11347
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10467
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10468
echo "${ECHO_T}ok (${host_os})" >&6
11348
10469
;;
11349
10470
hpux*)
11350
10471
        ARCH="hpux"
11351
10472
 
11352
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11353
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10473
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10474
echo "${ECHO_T}ok (${host_os})" >&6
11354
10475
;;
11355
10476
freebsd*)
11356
10477
        ARCH="freebsd"
11357
10478
 
11358
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11359
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10479
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10480
echo "${ECHO_T}ok (${host_os})" >&6
11360
10481
;;
11361
10482
netbsd*)
11362
10483
        ARCH="netbsd"
11363
10484
 
11364
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11365
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10485
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10486
echo "${ECHO_T}ok (${host_os})" >&6
11366
10487
;;
11367
10488
osf*)
11368
10489
        ARCH="osf"
11369
10490
 
11370
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11371
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10491
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10492
echo "${ECHO_T}ok (${host_os})" >&6
11372
10493
;;
11373
10494
openbsd*)
11374
10495
        ARCH="openbsd"
11375
10496
 
11376
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11377
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10497
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10498
echo "${ECHO_T}ok (${host_os})" >&6
11378
10499
;;
11379
10500
*)
11380
10501
        ARCH="unknown"
11381
10502
 
11382
 
        { echo "$as_me:$LINENO: result: ok (${host_os})" >&5
11383
 
echo "${ECHO_T}ok (${host_os})" >&6; }
 
10503
        echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 
10504
echo "${ECHO_T}ok (${host_os})" >&6
11384
10505
;;
11385
10506
esac
11386
10507
 
11391
10512
 
11392
10513
 
11393
10514
 
11394
 
ac_config_files="$ac_config_files Makefile create/Makefile create/schema/Makefile misc/Makefile src/Makefile src/libs/Makefile src/libs/zbxlog/Makefile src/libs/zbxcrypto/Makefile src/libs/zbxconf/Makefile src/libs/zbxdbhigh/Makefile src/libs/zbxemail/Makefile src/libs/zbxsysinfo/Makefile src/libs/zbxsms/Makefile src/libs/zbxjabber/Makefile src/libs/zbxcommon/Makefile src/libs/zbxsysinfo/common/Makefile src/libs/zbxsysinfo/simple/Makefile src/libs/zbxsysinfo/linux/Makefile src/libs/zbxsysinfo/aix/Makefile src/libs/zbxsysinfo/freebsd/Makefile src/libs/zbxsysinfo/hpux/Makefile src/libs/zbxsysinfo/openbsd/Makefile src/libs/zbxsysinfo/osx/Makefile src/libs/zbxsysinfo/solaris/Makefile src/libs/zbxsysinfo/osf/Makefile src/libs/zbxsysinfo/netbsd/Makefile src/libs/zbxsysinfo/unknown/Makefile src/libs/zbxnix/Makefile src/libs/zbxplugin/Makefile src/libs/zbxsys/Makefile src/libs/zbxcomms/Makefile src/libs/zbxdb/Makefile src/zabbix_agent/Makefile src/zabbix_get/Makefile src/zabbix_sender/Makefile src/zabbix_server/Makefile src/zabbix_server/alerter/Makefile src/zabbix_server/discoverer/Makefile src/zabbix_server/housekeeper/Makefile src/zabbix_server/httppoller/Makefile src/zabbix_server/nodewatcher/Makefile src/zabbix_server/pinger/Makefile src/zabbix_server/poller/Makefile src/zabbix_server/timer/Makefile src/zabbix_server/trapper/Makefile src/zabbix_server/utils/Makefile src/zabbix_server/watchdog/Makefile upgrades/Makefile"
11395
 
 
 
10515
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ac_config_files="$ac_config_files Makefile create/Makefile create/schema/Makefile misc/Makefile src/Makefile src/libs/Makefile src/libs/zbxlog/Makefile src/libs/zbxcrypto/Makefile src/libs/zbxconf/Makefile src/libs/zbxdbhigh/Makefile src/libs/zbxemail/Makefile src/libs/zbxsysinfo/Makefile src/libs/zbxsms/Makefile src/libs/zbxjabber/Makefile src/libs/zbxcommon/Makefile src/libs/zbxsysinfo/common/Makefile src/libs/zbxsysinfo/simple/Makefile src/libs/zbxsysinfo/linux/Makefile src/libs/zbxsysinfo/aix/Makefile src/libs/zbxsysinfo/freebsd/Makefile src/libs/zbxsysinfo/hpux/Makefile src/libs/zbxsysinfo/openbsd/Makefile src/libs/zbxsysinfo/osx/Makefile src/libs/zbxsysinfo/solaris/Makefile src/libs/zbxsysinfo/osf/Makefile src/libs/zbxsysinfo/netbsd/Makefile src/libs/zbxsysinfo/unknown/Makefile src/libs/zbxnix/Makefile src/libs/zbxplugin/Makefile src/libs/zbxsys/Makefile src/libs/zbxcomms/Makefile src/libs/zbxdb/Makefile src/zabbix_agent/Makefile src/zabbix_get/Makefile src/zabbix_sender/Makefile src/zabbix_server/Makefile src/zabbix_server/alerter/Makefile src/zabbix_server/discoverer/Makefile src/zabbix_server/housekeeper/Makefile src/zabbix_server/httppoller/Makefile src/zabbix_server/nodewatcher/Makefile src/zabbix_server/pinger/Makefile src/zabbix_server/poller/Makefile src/zabbix_server/timer/Makefile src/zabbix_server/trapper/Makefile src/zabbix_server/utils/Makefile src/zabbix_server/watchdog/Makefile upgrades/Makefile"
11396
10516
cat >confcache <<\_ACEOF
11397
10517
# This file is a shell script that caches the results of configure
11398
10518
# tests run on this system so they can be shared between configure
11411
10531
 
11412
10532
# The following way of writing the cache mishandles newlines in values,
11413
10533
# but we know of no workaround that is simple, portable, and efficient.
11414
 
# So, we kill variables containing newlines.
 
10534
# So, don't put newlines in cache variables' values.
11415
10535
# Ultrix sh set writes to stderr and can't be redirected directly,
11416
10536
# and sets the high bit in the cache file unless we assign to the vars.
11417
 
(
11418
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11419
 
    eval ac_val=\$$ac_var
11420
 
    case $ac_val in #(
11421
 
    *${as_nl}*)
11422
 
      case $ac_var in #(
11423
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11424
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11425
 
      esac
11426
 
      case $ac_var in #(
11427
 
      _ | IFS | as_nl) ;; #(
11428
 
      *) $as_unset $ac_var ;;
11429
 
      esac ;;
11430
 
    esac
11431
 
  done
11432
 
 
 
10537
{
11433
10538
  (set) 2>&1 |
11434
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11435
 
    *${as_nl}ac_space=\ *)
 
10539
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
10540
    *ac_space=\ *)
11436
10541
      # `set' does not quote correctly, so add quotes (double-quote
11437
10542
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11438
10543
      sed -n \
11439
10544
        "s/'/'\\\\''/g;
11440
10545
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11441
 
      ;; #(
 
10546
      ;;
11442
10547
    *)
11443
10548
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11444
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
10549
      sed -n \
 
10550
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11445
10551
      ;;
11446
 
    esac |
11447
 
    sort
11448
 
) |
 
10552
    esac;
 
10553
} |
11449
10554
  sed '
11450
 
     /^ac_cv_env_/b end
11451
10555
     t clear
11452
 
     :clear
 
10556
     : clear
11453
10557
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11454
10558
     t end
11455
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11456
 
     :end' >>confcache
11457
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11458
 
  if test -w "$cache_file"; then
11459
 
    test "x$cache_file" != "x/dev/null" &&
11460
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11461
 
echo "$as_me: updating cache $cache_file" >&6;}
 
10559
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
10560
     : end' >>confcache
 
10561
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
10562
  if test -w $cache_file; then
 
10563
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11462
10564
    cat confcache >$cache_file
11463
10565
  else
11464
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11465
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
10566
    echo "not updating unwritable cache $cache_file"
11466
10567
  fi
11467
10568
fi
11468
10569
rm -f confcache
11471
10572
# Let make expand exec_prefix.
11472
10573
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11473
10574
 
 
10575
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
10576
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
10577
# trailing colons and then remove the whole line if VPATH becomes empty
 
10578
# (actually we leave an empty line to preserve line numbers).
 
10579
if test "x$srcdir" = x.; then
 
10580
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
10581
s/:*\$(srcdir):*/:/;
 
10582
s/:*\${srcdir}:*/:/;
 
10583
s/:*@srcdir@:*/:/;
 
10584
s/^\([^=]*=[     ]*\):*/\1/;
 
10585
s/:*$//;
 
10586
s/^[^=]*=[       ]*$//;
 
10587
}'
 
10588
fi
 
10589
 
11474
10590
DEFS=-DHAVE_CONFIG_H
11475
10591
 
11476
10592
ac_libobjs=
11477
10593
ac_ltlibobjs=
11478
10594
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11479
10595
  # 1. Remove the extension, and $U if already installed.
11480
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11481
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
11482
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11483
 
  #    will be set to the directory where LIBOBJS objects are built.
11484
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11485
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
10596
  ac_i=`echo "$ac_i" |
 
10597
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
10598
  # 2. Add them.
 
10599
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
10600
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11486
10601
done
11487
10602
LIBOBJS=$ac_libobjs
11488
10603
 
11555
10670
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11556
10671
  # is contrary to our usage.  Disable this feature.
11557
10672
  alias -g '${1+"$@"}'='"$@"'
11558
 
  setopt NO_GLOB_SUBST
11559
 
else
11560
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
10673
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
10674
  set -o posix
11561
10675
fi
11562
 
BIN_SH=xpg4; export BIN_SH # for Tru64
11563
10676
DUALCASE=1; export DUALCASE # for MKS sh
11564
10677
 
11565
 
 
11566
 
# PATH needs CR
11567
 
# Avoid depending upon Character Ranges.
11568
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11569
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11570
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11571
 
as_cr_digits='0123456789'
11572
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
11573
 
 
11574
 
# The user is always right.
11575
 
if test "${PATH_SEPARATOR+set}" != set; then
11576
 
  echo "#! /bin/sh" >conf$$.sh
11577
 
  echo  "exit 0"   >>conf$$.sh
11578
 
  chmod +x conf$$.sh
11579
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11580
 
    PATH_SEPARATOR=';'
11581
 
  else
11582
 
    PATH_SEPARATOR=:
11583
 
  fi
11584
 
  rm -f conf$$.sh
11585
 
fi
11586
 
 
11587
10678
# Support unset when possible.
11588
10679
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11589
10680
  as_unset=unset
11592
10683
fi
11593
10684
 
11594
10685
 
11595
 
# IFS
11596
 
# We need space, tab and new line, in precisely that order.  Quoting is
11597
 
# there to prevent editors from complaining about space-tab.
11598
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11599
 
# splitting by setting IFS to empty value.)
11600
 
as_nl='
11601
 
'
11602
 
IFS=" ""        $as_nl"
11603
 
 
11604
 
# Find who we are.  Look in the path if we contain no directory separator.
11605
 
case $0 in
11606
 
  *[\\/]* ) as_myself=$0 ;;
11607
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608
 
for as_dir in $PATH
11609
 
do
11610
 
  IFS=$as_save_IFS
11611
 
  test -z "$as_dir" && as_dir=.
11612
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11613
 
done
11614
 
IFS=$as_save_IFS
11615
 
 
11616
 
     ;;
11617
 
esac
11618
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
11619
 
# in which case we are not to be found in the path.
11620
 
if test "x$as_myself" = x; then
11621
 
  as_myself=$0
11622
 
fi
11623
 
if test ! -f "$as_myself"; then
11624
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11625
 
  { (exit 1); exit 1; }
11626
 
fi
11627
 
 
11628
10686
# Work around bugs in pre-3.0 UWIN ksh.
11629
 
for as_var in ENV MAIL MAILPATH
11630
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11631
 
done
 
10687
$as_unset ENV MAIL MAILPATH
11632
10688
PS1='$ '
11633
10689
PS2='> '
11634
10690
PS4='+ '
11642
10698
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11643
10699
    eval $as_var=C; export $as_var
11644
10700
  else
11645
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
10701
    $as_unset $as_var
11646
10702
  fi
11647
10703
done
11648
10704
 
11649
10705
# Required to use basename.
11650
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
11651
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
10706
if expr a : '\(a\)' >/dev/null 2>&1; then
11652
10707
  as_expr=expr
11653
10708
else
11654
10709
  as_expr=false
11655
10710
fi
11656
10711
 
11657
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
10712
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11658
10713
  as_basename=basename
11659
10714
else
11660
10715
  as_basename=false
11662
10717
 
11663
10718
 
11664
10719
# Name of the executable.
11665
 
as_me=`$as_basename -- "$0" ||
 
10720
as_me=`$as_basename "$0" ||
11666
10721
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11667
10722
         X"$0" : 'X\(//\)$' \| \
11668
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
10723
         X"$0" : 'X\(/\)$' \| \
 
10724
         .     : '\(.\)' 2>/dev/null ||
11669
10725
echo X/"$0" |
11670
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11671
 
            s//\1/
11672
 
            q
11673
 
          }
11674
 
          /^X\/\(\/\/\)$/{
11675
 
            s//\1/
11676
 
            q
11677
 
          }
11678
 
          /^X\/\(\/\).*/{
11679
 
            s//\1/
11680
 
            q
11681
 
          }
11682
 
          s/.*/./; q'`
11683
 
 
11684
 
# CDPATH.
11685
 
$as_unset CDPATH
11686
 
 
11687
 
 
11688
 
 
11689
 
  as_lineno_1=$LINENO
11690
 
  as_lineno_2=$LINENO
11691
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11692
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
10726
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
10727
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
10728
          /^X\/\(\/\).*/{ s//\1/; q; }
 
10729
          s/.*/./; q'`
 
10730
 
 
10731
 
 
10732
# PATH needs CR, and LINENO needs CR and PATH.
 
10733
# Avoid depending upon Character Ranges.
 
10734
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
10735
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
10736
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
10737
as_cr_digits='0123456789'
 
10738
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
10739
 
 
10740
# The user is always right.
 
10741
if test "${PATH_SEPARATOR+set}" != set; then
 
10742
  echo "#! /bin/sh" >conf$$.sh
 
10743
  echo  "exit 0"   >>conf$$.sh
 
10744
  chmod +x conf$$.sh
 
10745
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
10746
    PATH_SEPARATOR=';'
 
10747
  else
 
10748
    PATH_SEPARATOR=:
 
10749
  fi
 
10750
  rm -f conf$$.sh
 
10751
fi
 
10752
 
 
10753
 
 
10754
  as_lineno_1=$LINENO
 
10755
  as_lineno_2=$LINENO
 
10756
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
10757
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
10758
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
10759
  # Find who we are.  Look in the path if we contain no path at all
 
10760
  # relative or not.
 
10761
  case $0 in
 
10762
    *[\\/]* ) as_myself=$0 ;;
 
10763
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10764
for as_dir in $PATH
 
10765
do
 
10766
  IFS=$as_save_IFS
 
10767
  test -z "$as_dir" && as_dir=.
 
10768
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
10769
done
 
10770
 
 
10771
       ;;
 
10772
  esac
 
10773
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
10774
  # in which case we are not to be found in the path.
 
10775
  if test "x$as_myself" = x; then
 
10776
    as_myself=$0
 
10777
  fi
 
10778
  if test ! -f "$as_myself"; then
 
10779
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
10780
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
10781
   { (exit 1); exit 1; }; }
 
10782
  fi
 
10783
  case $CONFIG_SHELL in
 
10784
  '')
 
10785
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10786
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
10787
do
 
10788
  IFS=$as_save_IFS
 
10789
  test -z "$as_dir" && as_dir=.
 
10790
  for as_base in sh bash ksh sh5; do
 
10791
         case $as_dir in
 
10792
         /*)
 
10793
           if ("$as_dir/$as_base" -c '
 
10794
  as_lineno_1=$LINENO
 
10795
  as_lineno_2=$LINENO
 
10796
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
10797
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
10798
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
10799
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
10800
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
10801
             CONFIG_SHELL=$as_dir/$as_base
 
10802
             export CONFIG_SHELL
 
10803
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
10804
           fi;;
 
10805
         esac
 
10806
       done
 
10807
done
 
10808
;;
 
10809
  esac
11693
10810
 
11694
10811
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11695
10812
  # uniformly replaced by the line number.  The first 'sed' inserts a
11696
 
  # line-number line after each line using $LINENO; the second 'sed'
11697
 
  # does the real work.  The second script uses 'N' to pair each
11698
 
  # line-number line with the line containing $LINENO, and appends
11699
 
  # trailing '-' during substitution so that $LINENO is not a special
11700
 
  # case at line end.
 
10813
  # line-number line before each line; the second 'sed' does the real
 
10814
  # work.  The second script uses 'N' to pair each line-number line
 
10815
  # with the numbered line, and appends trailing '-' during
 
10816
  # substitution so that $LINENO is not a special case at line end.
11701
10817
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11702
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11703
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
11704
 
  sed -n '
11705
 
    p
11706
 
    /[$]LINENO/=
11707
 
  ' <$as_myself |
 
10818
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
10819
  sed '=' <$as_myself |
11708
10820
    sed '
11709
 
      s/[$]LINENO.*/&-/
11710
 
      t lineno
11711
 
      b
11712
 
      :lineno
11713
10821
      N
11714
 
      :loop
11715
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
10822
      s,$,-,
 
10823
      : loop
 
10824
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11716
10825
      t loop
11717
 
      s/-\n.*//
 
10826
      s,-$,,
 
10827
      s,^['$as_cr_digits']*\n,,
11718
10828
    ' >$as_me.lineno &&
11719
 
  chmod +x "$as_me.lineno" ||
11720
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
10829
  chmod +x $as_me.lineno ||
 
10830
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
10831
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11721
10832
   { (exit 1); exit 1; }; }
11722
10833
 
11723
10834
  # Don't try to exec as it changes $[0], causing all sort of problems
11724
10835
  # (the dirname of $[0] is not the place where we might find the
11725
 
  # original and so on.  Autoconf is especially sensitive to this).
11726
 
  . "./$as_me.lineno"
 
10836
  # original and so on.  Autoconf is especially sensible to this).
 
10837
  . ./$as_me.lineno
11727
10838
  # Exit status is that of the last command.
11728
10839
  exit
11729
10840
}
11730
10841
 
11731
10842
 
11732
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11733
 
  as_dirname=dirname
11734
 
else
11735
 
  as_dirname=false
11736
 
fi
11737
 
 
11738
 
ECHO_C= ECHO_N= ECHO_T=
11739
 
case `echo -n x` in
11740
 
-n*)
11741
 
  case `echo 'x\c'` in
11742
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11743
 
  *)   ECHO_C='\c';;
11744
 
  esac;;
11745
 
*)
11746
 
  ECHO_N='-n';;
 
10843
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
10844
  *c*,-n*) ECHO_N= ECHO_C='
 
10845
' ECHO_T='      ' ;;
 
10846
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
10847
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11747
10848
esac
11748
10849
 
11749
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
11750
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
10850
if expr a : '\(a\)' >/dev/null 2>&1; then
11751
10851
  as_expr=expr
11752
10852
else
11753
10853
  as_expr=false
11754
10854
fi
11755
10855
 
11756
10856
rm -f conf$$ conf$$.exe conf$$.file
11757
 
if test -d conf$$.dir; then
11758
 
  rm -f conf$$.dir/conf$$.file
11759
 
else
11760
 
  rm -f conf$$.dir
11761
 
  mkdir conf$$.dir
11762
 
fi
11763
10857
echo >conf$$.file
11764
10858
if ln -s conf$$.file conf$$ 2>/dev/null; then
11765
 
  as_ln_s='ln -s'
11766
 
  # ... but there are two gotchas:
11767
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11768
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11769
 
  # In both cases, we have to default to `cp -p'.
11770
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
10859
  # We could just check for DJGPP; but this test a) works b) is more generic
 
10860
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
10861
  if test -f conf$$.exe; then
 
10862
    # Don't use ln at all; we don't have any links
11771
10863
    as_ln_s='cp -p'
 
10864
  else
 
10865
    as_ln_s='ln -s'
 
10866
  fi
11772
10867
elif ln conf$$.file conf$$ 2>/dev/null; then
11773
10868
  as_ln_s=ln
11774
10869
else
11775
10870
  as_ln_s='cp -p'
11776
10871
fi
11777
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11778
 
rmdir conf$$.dir 2>/dev/null
 
10872
rm -f conf$$ conf$$.exe conf$$.file
11779
10873
 
11780
10874
if mkdir -p . 2>/dev/null; then
11781
10875
  as_mkdir_p=:
11784
10878
  as_mkdir_p=false
11785
10879
fi
11786
10880
 
11787
 
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
11788
 
# systems may use methods other than mode bits to determine executability.
11789
 
cat >conf$$.file <<_ASEOF
11790
 
#! /bin/sh
11791
 
exit 0
11792
 
_ASEOF
11793
 
chmod +x conf$$.file
11794
 
if test -x conf$$.file >/dev/null 2>&1; then
11795
 
  as_executable_p="test -x"
11796
 
else
11797
 
  as_executable_p=:
11798
 
fi
11799
 
rm -f conf$$.file
 
10881
as_executable_p="test -f"
11800
10882
 
11801
10883
# Sed expression to map a string onto a valid CPP name.
11802
10884
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11805
10887
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11806
10888
 
11807
10889
 
 
10890
# IFS
 
10891
# We need space, tab and new line, in precisely that order.
 
10892
as_nl='
 
10893
'
 
10894
IFS="   $as_nl"
 
10895
 
 
10896
# CDPATH.
 
10897
$as_unset CDPATH
 
10898
 
11808
10899
exec 6>&1
11809
10900
 
11810
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
10901
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11811
10902
# report actual input values of CONFIG_FILES etc. instead of their
11812
 
# values after options handling.
11813
 
ac_log="
 
10903
# values after options handling.  Logging --version etc. is OK.
 
10904
exec 5>>config.log
 
10905
{
 
10906
  echo
 
10907
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
10908
## Running $as_me. ##
 
10909
_ASBOX
 
10910
} >&5
 
10911
cat >&5 <<_CSEOF
 
10912
 
11814
10913
This file was extended by $as_me, which was
11815
 
generated by GNU Autoconf 2.60.  Invocation command line was
 
10914
generated by GNU Autoconf 2.59.  Invocation command line was
11816
10915
 
11817
10916
  CONFIG_FILES    = $CONFIG_FILES
11818
10917
  CONFIG_HEADERS  = $CONFIG_HEADERS
11820
10919
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11821
10920
  $ $0 $@
11822
10921
 
11823
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11824
 
"
11825
 
 
 
10922
_CSEOF
 
10923
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
10924
echo >&5
11826
10925
_ACEOF
11827
10926
 
11828
 
cat >>$CONFIG_STATUS <<_ACEOF
11829
10927
# Files that config.status was made for.
11830
 
config_files="$ac_config_files"
11831
 
config_headers="$ac_config_headers"
11832
 
config_commands="$ac_config_commands"
11833
 
 
11834
 
_ACEOF
 
10928
if test -n "$ac_config_files"; then
 
10929
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
10930
fi
 
10931
 
 
10932
if test -n "$ac_config_headers"; then
 
10933
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
10934
fi
 
10935
 
 
10936
if test -n "$ac_config_links"; then
 
10937
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
10938
fi
 
10939
 
 
10940
if test -n "$ac_config_commands"; then
 
10941
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
10942
fi
11835
10943
 
11836
10944
cat >>$CONFIG_STATUS <<\_ACEOF
 
10945
 
11837
10946
ac_cs_usage="\
11838
10947
\`$as_me' instantiates files from templates according to the
11839
10948
current configuration.
11860
10969
$config_commands
11861
10970
 
11862
10971
Report bugs to <bug-autoconf@gnu.org>."
 
10972
_ACEOF
11863
10973
 
11864
 
_ACEOF
11865
10974
cat >>$CONFIG_STATUS <<_ACEOF
11866
10975
ac_cs_version="\\
11867
10976
config.status
11868
 
configured by $0, generated by GNU Autoconf 2.60,
11869
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
10977
configured by $0, generated by GNU Autoconf 2.59,
 
10978
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11870
10979
 
11871
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
10980
Copyright (C) 2003 Free Software Foundation, Inc.
11872
10981
This config.status script is free software; the Free Software Foundation
11873
10982
gives unlimited permission to copy, distribute and modify it."
11874
 
 
11875
 
ac_pwd='$ac_pwd'
11876
 
srcdir='$srcdir'
11877
 
INSTALL='$INSTALL'
 
10983
srcdir=$srcdir
 
10984
INSTALL="$INSTALL"
11878
10985
_ACEOF
11879
10986
 
11880
10987
cat >>$CONFIG_STATUS <<\_ACEOF
11885
10992
do
11886
10993
  case $1 in
11887
10994
  --*=*)
11888
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11889
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
10995
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
10996
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11890
10997
    ac_shift=:
11891
10998
    ;;
11892
 
  *)
 
10999
  -*)
11893
11000
    ac_option=$1
11894
11001
    ac_optarg=$2
11895
11002
    ac_shift=shift
11896
11003
    ;;
 
11004
  *) # This is not an option, so the user has probably given explicit
 
11005
     # arguments.
 
11006
     ac_option=$1
 
11007
     ac_need_defaults=false;;
11897
11008
  esac
11898
11009
 
11899
11010
  case $ac_option in
11900
11011
  # Handling of the options.
 
11012
_ACEOF
 
11013
cat >>$CONFIG_STATUS <<\_ACEOF
11901
11014
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11902
11015
    ac_cs_recheck=: ;;
11903
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11904
 
    echo "$ac_cs_version"; exit ;;
11905
 
  --debug | --debu | --deb | --de | --d | -d )
 
11016
  --version | --vers* | -V )
 
11017
    echo "$ac_cs_version"; exit 0 ;;
 
11018
  --he | --h)
 
11019
    # Conflict between --help and --header
 
11020
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
11021
Try \`$0 --help' for more information." >&5
 
11022
echo "$as_me: error: ambiguous option: $1
 
11023
Try \`$0 --help' for more information." >&2;}
 
11024
   { (exit 1); exit 1; }; };;
 
11025
  --help | --hel | -h )
 
11026
    echo "$ac_cs_usage"; exit 0 ;;
 
11027
  --debug | --d* | -d )
11906
11028
    debug=: ;;
11907
11029
  --file | --fil | --fi | --f )
11908
11030
    $ac_shift
11912
11034
    $ac_shift
11913
11035
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11914
11036
    ac_need_defaults=false;;
11915
 
  --he | --h)
11916
 
    # Conflict between --help and --header
11917
 
    { echo "$as_me: error: ambiguous option: $1
11918
 
Try \`$0 --help' for more information." >&2
11919
 
   { (exit 1); exit 1; }; };;
11920
 
  --help | --hel | -h )
11921
 
    echo "$ac_cs_usage"; exit ;;
11922
11037
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11923
11038
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11924
11039
    ac_cs_silent=: ;;
11925
11040
 
11926
11041
  # This is an error.
11927
 
  -*) { echo "$as_me: error: unrecognized option: $1
11928
 
Try \`$0 --help' for more information." >&2
 
11042
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
11043
Try \`$0 --help' for more information." >&5
 
11044
echo "$as_me: error: unrecognized option: $1
 
11045
Try \`$0 --help' for more information." >&2;}
11929
11046
   { (exit 1); exit 1; }; } ;;
11930
11047
 
11931
 
  *) ac_config_targets="$ac_config_targets $1"
11932
 
     ac_need_defaults=false ;;
 
11048
  *) ac_config_targets="$ac_config_targets $1" ;;
11933
11049
 
11934
11050
  esac
11935
11051
  shift
11945
11061
_ACEOF
11946
11062
cat >>$CONFIG_STATUS <<_ACEOF
11947
11063
if \$ac_cs_recheck; then
11948
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11949
 
  CONFIG_SHELL=$SHELL
11950
 
  export CONFIG_SHELL
11951
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
11064
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
11065
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11952
11066
fi
11953
11067
 
11954
11068
_ACEOF
11955
 
cat >>$CONFIG_STATUS <<\_ACEOF
11956
 
exec 5>>config.log
11957
 
{
11958
 
  echo
11959
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11960
 
## Running $as_me. ##
11961
 
_ASBOX
11962
 
  echo "$ac_log"
11963
 
} >&5
11964
11069
 
11965
 
_ACEOF
11966
11070
cat >>$CONFIG_STATUS <<_ACEOF
11967
11071
#
11968
 
# INIT-COMMANDS
 
11072
# INIT-COMMANDS section.
11969
11073
#
 
11074
 
11970
11075
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11971
11076
 
11972
11077
_ACEOF
11973
11078
 
 
11079
 
 
11080
 
11974
11081
cat >>$CONFIG_STATUS <<\_ACEOF
11975
 
 
11976
 
# Handling of arguments.
11977
11082
for ac_config_target in $ac_config_targets
11978
11083
do
11979
 
  case $ac_config_target in
11980
 
    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11981
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11982
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11983
 
    "create/Makefile") CONFIG_FILES="$CONFIG_FILES create/Makefile" ;;
11984
 
    "create/schema/Makefile") CONFIG_FILES="$CONFIG_FILES create/schema/Makefile" ;;
11985
 
    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
11986
 
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11987
 
    "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
11988
 
    "src/libs/zbxlog/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxlog/Makefile" ;;
11989
 
    "src/libs/zbxcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcrypto/Makefile" ;;
11990
 
    "src/libs/zbxconf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxconf/Makefile" ;;
11991
 
    "src/libs/zbxdbhigh/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbhigh/Makefile" ;;
11992
 
    "src/libs/zbxemail/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxemail/Makefile" ;;
11993
 
    "src/libs/zbxsysinfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/Makefile" ;;
11994
 
    "src/libs/zbxsms/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsms/Makefile" ;;
11995
 
    "src/libs/zbxjabber/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxjabber/Makefile" ;;
11996
 
    "src/libs/zbxcommon/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcommon/Makefile" ;;
11997
 
    "src/libs/zbxsysinfo/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/common/Makefile" ;;
11998
 
    "src/libs/zbxsysinfo/simple/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/simple/Makefile" ;;
11999
 
    "src/libs/zbxsysinfo/linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/linux/Makefile" ;;
12000
 
    "src/libs/zbxsysinfo/aix/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/aix/Makefile" ;;
12001
 
    "src/libs/zbxsysinfo/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/freebsd/Makefile" ;;
12002
 
    "src/libs/zbxsysinfo/hpux/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/hpux/Makefile" ;;
12003
 
    "src/libs/zbxsysinfo/openbsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/openbsd/Makefile" ;;
12004
 
    "src/libs/zbxsysinfo/osx/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osx/Makefile" ;;
12005
 
    "src/libs/zbxsysinfo/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/solaris/Makefile" ;;
12006
 
    "src/libs/zbxsysinfo/osf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osf/Makefile" ;;
12007
 
    "src/libs/zbxsysinfo/netbsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/netbsd/Makefile" ;;
12008
 
    "src/libs/zbxsysinfo/unknown/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/unknown/Makefile" ;;
12009
 
    "src/libs/zbxnix/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxnix/Makefile" ;;
12010
 
    "src/libs/zbxplugin/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxplugin/Makefile" ;;
12011
 
    "src/libs/zbxsys/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsys/Makefile" ;;
12012
 
    "src/libs/zbxcomms/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcomms/Makefile" ;;
12013
 
    "src/libs/zbxdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdb/Makefile" ;;
12014
 
    "src/zabbix_agent/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_agent/Makefile" ;;
12015
 
    "src/zabbix_get/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_get/Makefile" ;;
12016
 
    "src/zabbix_sender/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_sender/Makefile" ;;
12017
 
    "src/zabbix_server/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/Makefile" ;;
12018
 
    "src/zabbix_server/alerter/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/alerter/Makefile" ;;
12019
 
    "src/zabbix_server/discoverer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/discoverer/Makefile" ;;
12020
 
    "src/zabbix_server/housekeeper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/housekeeper/Makefile" ;;
12021
 
    "src/zabbix_server/httppoller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/httppoller/Makefile" ;;
12022
 
    "src/zabbix_server/nodewatcher/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/nodewatcher/Makefile" ;;
12023
 
    "src/zabbix_server/pinger/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/pinger/Makefile" ;;
12024
 
    "src/zabbix_server/poller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/poller/Makefile" ;;
12025
 
    "src/zabbix_server/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/timer/Makefile" ;;
12026
 
    "src/zabbix_server/trapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/trapper/Makefile" ;;
12027
 
    "src/zabbix_server/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/utils/Makefile" ;;
12028
 
    "src/zabbix_server/watchdog/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/watchdog/Makefile" ;;
12029
 
    "upgrades/Makefile") CONFIG_FILES="$CONFIG_FILES upgrades/Makefile" ;;
12030
 
 
 
11084
  case "$ac_config_target" in
 
11085
  # Handling of arguments.
 
11086
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
11087
  "create/Makefile" ) CONFIG_FILES="$CONFIG_FILES create/Makefile" ;;
 
11088
  "create/schema/Makefile" ) CONFIG_FILES="$CONFIG_FILES create/schema/Makefile" ;;
 
11089
  "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
 
11090
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
11091
  "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
 
11092
  "src/libs/zbxlog/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxlog/Makefile" ;;
 
11093
  "src/libs/zbxcrypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxcrypto/Makefile" ;;
 
11094
  "src/libs/zbxconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxconf/Makefile" ;;
 
11095
  "src/libs/zbxdbhigh/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbhigh/Makefile" ;;
 
11096
  "src/libs/zbxemail/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxemail/Makefile" ;;
 
11097
  "src/libs/zbxsysinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/Makefile" ;;
 
11098
  "src/libs/zbxsms/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsms/Makefile" ;;
 
11099
  "src/libs/zbxjabber/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxjabber/Makefile" ;;
 
11100
  "src/libs/zbxcommon/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxcommon/Makefile" ;;
 
11101
  "src/libs/zbxsysinfo/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/common/Makefile" ;;
 
11102
  "src/libs/zbxsysinfo/simple/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/simple/Makefile" ;;
 
11103
  "src/libs/zbxsysinfo/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/linux/Makefile" ;;
 
11104
  "src/libs/zbxsysinfo/aix/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/aix/Makefile" ;;
 
11105
  "src/libs/zbxsysinfo/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/freebsd/Makefile" ;;
 
11106
  "src/libs/zbxsysinfo/hpux/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/hpux/Makefile" ;;
 
11107
  "src/libs/zbxsysinfo/openbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/openbsd/Makefile" ;;
 
11108
  "src/libs/zbxsysinfo/osx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osx/Makefile" ;;
 
11109
  "src/libs/zbxsysinfo/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/solaris/Makefile" ;;
 
11110
  "src/libs/zbxsysinfo/osf/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osf/Makefile" ;;
 
11111
  "src/libs/zbxsysinfo/netbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/netbsd/Makefile" ;;
 
11112
  "src/libs/zbxsysinfo/unknown/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/unknown/Makefile" ;;
 
11113
  "src/libs/zbxnix/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxnix/Makefile" ;;
 
11114
  "src/libs/zbxplugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxplugin/Makefile" ;;
 
11115
  "src/libs/zbxsys/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxsys/Makefile" ;;
 
11116
  "src/libs/zbxcomms/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxcomms/Makefile" ;;
 
11117
  "src/libs/zbxdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/zbxdb/Makefile" ;;
 
11118
  "src/zabbix_agent/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_agent/Makefile" ;;
 
11119
  "src/zabbix_get/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_get/Makefile" ;;
 
11120
  "src/zabbix_sender/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_sender/Makefile" ;;
 
11121
  "src/zabbix_server/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/Makefile" ;;
 
11122
  "src/zabbix_server/alerter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/alerter/Makefile" ;;
 
11123
  "src/zabbix_server/discoverer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/discoverer/Makefile" ;;
 
11124
  "src/zabbix_server/housekeeper/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/housekeeper/Makefile" ;;
 
11125
  "src/zabbix_server/httppoller/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/httppoller/Makefile" ;;
 
11126
  "src/zabbix_server/nodewatcher/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/nodewatcher/Makefile" ;;
 
11127
  "src/zabbix_server/pinger/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/pinger/Makefile" ;;
 
11128
  "src/zabbix_server/poller/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/poller/Makefile" ;;
 
11129
  "src/zabbix_server/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/timer/Makefile" ;;
 
11130
  "src/zabbix_server/trapper/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/trapper/Makefile" ;;
 
11131
  "src/zabbix_server/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/utils/Makefile" ;;
 
11132
  "src/zabbix_server/watchdog/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/zabbix_server/watchdog/Makefile" ;;
 
11133
  "upgrades/Makefile" ) CONFIG_FILES="$CONFIG_FILES upgrades/Makefile" ;;
 
11134
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
11135
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
12031
11136
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12032
11137
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12033
11138
   { (exit 1); exit 1; }; };;
12034
11139
  esac
12035
11140
done
12036
11141
 
12037
 
 
12038
11142
# If the user did not use the arguments to specify the items to instantiate,
12039
11143
# then the envvar interface is used.  Set only those that are not.
12040
11144
# We use the long form for the default assignment because of an extremely
12046
11150
fi
12047
11151
 
12048
11152
# Have a temporary directory for convenience.  Make it in the build tree
12049
 
# simply because there is no reason against having it here, and in addition,
 
11153
# simply because there is no reason to put it here, and in addition,
12050
11154
# creating and moving files from /tmp can sometimes cause problems.
12051
 
# Hook for its removal unless debugging.
12052
 
# Note that there is a small window in which the directory will not be cleaned:
12053
 
# after its creation but before its name has been assigned to `$tmp'.
 
11155
# Create a temporary directory, and hook for its removal unless debugging.
12054
11156
$debug ||
12055
11157
{
12056
 
  tmp=
12057
 
  trap 'exit_status=$?
12058
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12059
 
' 0
 
11158
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12060
11159
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12061
11160
}
 
11161
 
12062
11162
# Create a (secure) tmp directory for tmp files.
12063
11163
 
12064
11164
{
12065
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
11165
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12066
11166
  test -n "$tmp" && test -d "$tmp"
12067
11167
}  ||
12068
11168
{
12069
 
  tmp=./conf$$-$RANDOM
12070
 
  (umask 077 && mkdir "$tmp")
 
11169
  tmp=./confstat$$-$RANDOM
 
11170
  (umask 077 && mkdir $tmp)
12071
11171
} ||
12072
11172
{
12073
11173
   echo "$me: cannot create a temporary directory in ." >&2
12074
11174
   { (exit 1); exit 1; }
12075
11175
}
12076
11176
 
 
11177
_ACEOF
 
11178
 
 
11179
cat >>$CONFIG_STATUS <<_ACEOF
 
11180
 
12077
11181
#
12078
 
# Set up the sed scripts for CONFIG_FILES section.
 
11182
# CONFIG_FILES section.
12079
11183
#
12080
11184
 
12081
11185
# No need to generate the scripts if there are no CONFIG_FILES.
12082
11186
# This happens for instance when ./config.status config.h
12083
 
if test -n "$CONFIG_FILES"; then
12084
 
 
12085
 
_ACEOF
12086
 
 
12087
 
 
12088
 
 
12089
 
ac_delim='%!_!# '
12090
 
for ac_last_try in false false false false false :; do
12091
 
  cat >conf$$subs.sed <<_ACEOF
12092
 
SHELL!$SHELL$ac_delim
12093
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12094
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12095
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12096
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12097
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12098
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12099
 
exec_prefix!$exec_prefix$ac_delim
12100
 
prefix!$prefix$ac_delim
12101
 
program_transform_name!$program_transform_name$ac_delim
12102
 
bindir!$bindir$ac_delim
12103
 
sbindir!$sbindir$ac_delim
12104
 
libexecdir!$libexecdir$ac_delim
12105
 
datarootdir!$datarootdir$ac_delim
12106
 
datadir!$datadir$ac_delim
12107
 
sysconfdir!$sysconfdir$ac_delim
12108
 
sharedstatedir!$sharedstatedir$ac_delim
12109
 
localstatedir!$localstatedir$ac_delim
12110
 
includedir!$includedir$ac_delim
12111
 
oldincludedir!$oldincludedir$ac_delim
12112
 
docdir!$docdir$ac_delim
12113
 
infodir!$infodir$ac_delim
12114
 
htmldir!$htmldir$ac_delim
12115
 
dvidir!$dvidir$ac_delim
12116
 
pdfdir!$pdfdir$ac_delim
12117
 
psdir!$psdir$ac_delim
12118
 
libdir!$libdir$ac_delim
12119
 
localedir!$localedir$ac_delim
12120
 
mandir!$mandir$ac_delim
12121
 
DEFS!$DEFS$ac_delim
12122
 
ECHO_C!$ECHO_C$ac_delim
12123
 
ECHO_N!$ECHO_N$ac_delim
12124
 
ECHO_T!$ECHO_T$ac_delim
12125
 
LIBS!$LIBS$ac_delim
12126
 
build_alias!$build_alias$ac_delim
12127
 
host_alias!$host_alias$ac_delim
12128
 
target_alias!$target_alias$ac_delim
12129
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12130
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12131
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
12132
 
CYGPATH_W!$CYGPATH_W$ac_delim
12133
 
PACKAGE!$PACKAGE$ac_delim
12134
 
VERSION!$VERSION$ac_delim
12135
 
ACLOCAL!$ACLOCAL$ac_delim
12136
 
AUTOCONF!$AUTOCONF$ac_delim
12137
 
AUTOMAKE!$AUTOMAKE$ac_delim
12138
 
AUTOHEADER!$AUTOHEADER$ac_delim
12139
 
MAKEINFO!$MAKEINFO$ac_delim
12140
 
install_sh!$install_sh$ac_delim
12141
 
STRIP!$STRIP$ac_delim
12142
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12143
 
mkdir_p!$mkdir_p$ac_delim
12144
 
AWK!$AWK$ac_delim
12145
 
SET_MAKE!$SET_MAKE$ac_delim
12146
 
am__leading_dot!$am__leading_dot$ac_delim
12147
 
AMTAR!$AMTAR$ac_delim
12148
 
am__tar!$am__tar$ac_delim
12149
 
am__untar!$am__untar$ac_delim
12150
 
build!$build$ac_delim
12151
 
build_cpu!$build_cpu$ac_delim
12152
 
build_vendor!$build_vendor$ac_delim
12153
 
build_os!$build_os$ac_delim
12154
 
host!$host$ac_delim
12155
 
host_cpu!$host_cpu$ac_delim
12156
 
host_vendor!$host_vendor$ac_delim
12157
 
host_os!$host_os$ac_delim
12158
 
CC!$CC$ac_delim
12159
 
CFLAGS!$CFLAGS$ac_delim
12160
 
LDFLAGS!$LDFLAGS$ac_delim
12161
 
CPPFLAGS!$CPPFLAGS$ac_delim
12162
 
ac_ct_CC!$ac_ct_CC$ac_delim
12163
 
EXEEXT!$EXEEXT$ac_delim
12164
 
OBJEXT!$OBJEXT$ac_delim
12165
 
DEPDIR!$DEPDIR$ac_delim
12166
 
am__include!$am__include$ac_delim
12167
 
am__quote!$am__quote$ac_delim
12168
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12169
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12170
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12171
 
CCDEPMODE!$CCDEPMODE$ac_delim
12172
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12173
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12174
 
CPP!$CPP$ac_delim
12175
 
GREP!$GREP$ac_delim
12176
 
EGREP!$EGREP$ac_delim
12177
 
LIBOBJS!$LIBOBJS$ac_delim
12178
 
SERVER_TRUE!$SERVER_TRUE$ac_delim
12179
 
SERVER_FALSE!$SERVER_FALSE$ac_delim
12180
 
AGENT_TRUE!$AGENT_TRUE$ac_delim
12181
 
AGENT_FALSE!$AGENT_FALSE$ac_delim
12182
 
SQLORA8_CPPFLAGS!$SQLORA8_CPPFLAGS$ac_delim
12183
 
SQLORA8_LDFLAGS!$SQLORA8_LDFLAGS$ac_delim
12184
 
ORACLE_CPPFLAGS!$ORACLE_CPPFLAGS$ac_delim
12185
 
ORACLE_LDFLAGS!$ORACLE_LDFLAGS$ac_delim
12186
 
SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
12187
 
SQLITE3_LDFLAGS!$SQLITE3_LDFLAGS$ac_delim
12188
 
SQLITE3_VERSION!$SQLITE3_VERSION$ac_delim
12189
 
_ACEOF
12190
 
 
12191
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12192
 
    break
12193
 
  elif $ac_last_try; then
12194
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12195
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12196
 
   { (exit 1); exit 1; }; }
12197
 
  else
12198
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12199
 
  fi
12200
 
done
12201
 
 
12202
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12203
 
if test -n "$ac_eof"; then
12204
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12205
 
  ac_eof=`expr $ac_eof + 1`
12206
 
fi
12207
 
 
12208
 
cat >>$CONFIG_STATUS <<_ACEOF
12209
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12210
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12211
 
_ACEOF
12212
 
sed '
12213
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12214
 
s/^/s,@/; s/!/@,|#_!!_#|/
12215
 
:n
12216
 
t n
12217
 
s/'"$ac_delim"'$/,g/; t
12218
 
s/$/\\/; p
12219
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12220
 
' >>$CONFIG_STATUS <conf$$subs.sed
12221
 
rm -f conf$$subs.sed
12222
 
cat >>$CONFIG_STATUS <<_ACEOF
12223
 
CEOF$ac_eof
12224
 
_ACEOF
12225
 
 
12226
 
 
12227
 
ac_delim='%!_!# '
12228
 
for ac_last_try in false false false false false :; do
12229
 
  cat >conf$$subs.sed <<_ACEOF
12230
 
MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
12231
 
MYSQL_VERSION!$MYSQL_VERSION$ac_delim
12232
 
MYSQL_CFLAGS!$MYSQL_CFLAGS$ac_delim
12233
 
MYSQL_LDFLAGS!$MYSQL_LDFLAGS$ac_delim
12234
 
MYSQL_LIBS!$MYSQL_LIBS$ac_delim
12235
 
PG_CONFIG!$PG_CONFIG$ac_delim
12236
 
POSTGRESQL_VERSION!$POSTGRESQL_VERSION$ac_delim
12237
 
POSTGRESQL_CPPFLAGS!$POSTGRESQL_CPPFLAGS$ac_delim
12238
 
POSTGRESQL_LDFLAGS!$POSTGRESQL_LDFLAGS$ac_delim
12239
 
DB_CPPFLAGS!$DB_CPPFLAGS$ac_delim
12240
 
DB_LDFLAGS!$DB_LDFLAGS$ac_delim
12241
 
DB_LIBS!$DB_LIBS$ac_delim
12242
 
PKG_CONFIG!$PKG_CONFIG$ac_delim
12243
 
IKSEMEL_CFLAGS!$IKSEMEL_CFLAGS$ac_delim
12244
 
IKSEMEL_LIBS!$IKSEMEL_LIBS$ac_delim
12245
 
JABBER_CPPFLAGS!$JABBER_CPPFLAGS$ac_delim
12246
 
JABBER_LDFLAGS!$JABBER_LDFLAGS$ac_delim
12247
 
_libcurl_config!$_libcurl_config$ac_delim
12248
 
LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim
12249
 
LIBCURL_LDFLAGS!$LIBCURL_LDFLAGS$ac_delim
12250
 
LIBCURL_LIBS!$LIBCURL_LIBS$ac_delim
12251
 
_libnetsnmp_config!$_libnetsnmp_config$ac_delim
12252
 
SNMP_CFLAGS!$SNMP_CFLAGS$ac_delim
12253
 
SNMP_LDFLAGS!$SNMP_LDFLAGS$ac_delim
12254
 
SNMP_LIBS!$SNMP_LIBS$ac_delim
12255
 
SNMP_CPPFLAGS!$SNMP_CPPFLAGS$ac_delim
12256
 
SERVER_LDFLAGS!$SERVER_LDFLAGS$ac_delim
12257
 
SERVER_LIBS!$SERVER_LIBS$ac_delim
12258
 
JABBER_TRUE!$JABBER_TRUE$ac_delim
12259
 
JABBER_FALSE!$JABBER_FALSE$ac_delim
12260
 
LDAP_CPPFLAGS!$LDAP_CPPFLAGS$ac_delim
12261
 
LDAP_LDFLAGS!$LDAP_LDFLAGS$ac_delim
12262
 
RANLIB!$RANLIB$ac_delim
12263
 
ARCH!$ARCH$ac_delim
12264
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
12265
 
_ACEOF
12266
 
 
12267
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
12268
 
    break
12269
 
  elif $ac_last_try; then
12270
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12271
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12272
 
   { (exit 1); exit 1; }; }
12273
 
  else
12274
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12275
 
  fi
12276
 
done
12277
 
 
12278
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12279
 
if test -n "$ac_eof"; then
12280
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12281
 
  ac_eof=`expr $ac_eof + 1`
12282
 
fi
12283
 
 
12284
 
cat >>$CONFIG_STATUS <<_ACEOF
12285
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12286
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12287
 
_ACEOF
12288
 
sed '
12289
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12290
 
s/^/s,@/; s/!/@,|#_!!_#|/
12291
 
:n
12292
 
t n
12293
 
s/'"$ac_delim"'$/,g/; t
12294
 
s/$/\\/; p
12295
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12296
 
' >>$CONFIG_STATUS <conf$$subs.sed
12297
 
rm -f conf$$subs.sed
12298
 
cat >>$CONFIG_STATUS <<_ACEOF
12299
 
:end
12300
 
s/|#_!!_#|//g
12301
 
CEOF$ac_eof
12302
 
_ACEOF
12303
 
 
12304
 
 
12305
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12306
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12307
 
# trailing colons and then remove the whole line if VPATH becomes empty
12308
 
# (actually we leave an empty line to preserve line numbers).
12309
 
if test "x$srcdir" = x.; then
12310
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12311
 
s/:*\$(srcdir):*/:/
12312
 
s/:*\${srcdir}:*/:/
12313
 
s/:*@srcdir@:*/:/
12314
 
s/^\([^=]*=[     ]*\):*/\1/
12315
 
s/:*$//
12316
 
s/^[^=]*=[       ]*$//
12317
 
}'
12318
 
fi
12319
 
 
12320
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
11187
if test -n "\$CONFIG_FILES"; then
 
11188
  # Protect against being on the right side of a sed subst in config.status.
 
11189
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
11190
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
11191
s,@SHELL@,$SHELL,;t t
 
11192
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
11193
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
11194
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
11195
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
11196
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
11197
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
11198
s,@exec_prefix@,$exec_prefix,;t t
 
11199
s,@prefix@,$prefix,;t t
 
11200
s,@program_transform_name@,$program_transform_name,;t t
 
11201
s,@bindir@,$bindir,;t t
 
11202
s,@sbindir@,$sbindir,;t t
 
11203
s,@libexecdir@,$libexecdir,;t t
 
11204
s,@datadir@,$datadir,;t t
 
11205
s,@sysconfdir@,$sysconfdir,;t t
 
11206
s,@sharedstatedir@,$sharedstatedir,;t t
 
11207
s,@localstatedir@,$localstatedir,;t t
 
11208
s,@libdir@,$libdir,;t t
 
11209
s,@includedir@,$includedir,;t t
 
11210
s,@oldincludedir@,$oldincludedir,;t t
 
11211
s,@infodir@,$infodir,;t t
 
11212
s,@mandir@,$mandir,;t t
 
11213
s,@build_alias@,$build_alias,;t t
 
11214
s,@host_alias@,$host_alias,;t t
 
11215
s,@target_alias@,$target_alias,;t t
 
11216
s,@DEFS@,$DEFS,;t t
 
11217
s,@ECHO_C@,$ECHO_C,;t t
 
11218
s,@ECHO_N@,$ECHO_N,;t t
 
11219
s,@ECHO_T@,$ECHO_T,;t t
 
11220
s,@LIBS@,$LIBS,;t t
 
11221
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
11222
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
11223
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
11224
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
11225
s,@PACKAGE@,$PACKAGE,;t t
 
11226
s,@VERSION@,$VERSION,;t t
 
11227
s,@ACLOCAL@,$ACLOCAL,;t t
 
11228
s,@AUTOCONF@,$AUTOCONF,;t t
 
11229
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
11230
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
11231
s,@MAKEINFO@,$MAKEINFO,;t t
 
11232
s,@install_sh@,$install_sh,;t t
 
11233
s,@STRIP@,$STRIP,;t t
 
11234
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
11235
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
11236
s,@mkdir_p@,$mkdir_p,;t t
 
11237
s,@AWK@,$AWK,;t t
 
11238
s,@SET_MAKE@,$SET_MAKE,;t t
 
11239
s,@am__leading_dot@,$am__leading_dot,;t t
 
11240
s,@AMTAR@,$AMTAR,;t t
 
11241
s,@am__tar@,$am__tar,;t t
 
11242
s,@am__untar@,$am__untar,;t t
 
11243
s,@build@,$build,;t t
 
11244
s,@build_cpu@,$build_cpu,;t t
 
11245
s,@build_vendor@,$build_vendor,;t t
 
11246
s,@build_os@,$build_os,;t t
 
11247
s,@host@,$host,;t t
 
11248
s,@host_cpu@,$host_cpu,;t t
 
11249
s,@host_vendor@,$host_vendor,;t t
 
11250
s,@host_os@,$host_os,;t t
 
11251
s,@CC@,$CC,;t t
 
11252
s,@CFLAGS@,$CFLAGS,;t t
 
11253
s,@LDFLAGS@,$LDFLAGS,;t t
 
11254
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
11255
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
11256
s,@EXEEXT@,$EXEEXT,;t t
 
11257
s,@OBJEXT@,$OBJEXT,;t t
 
11258
s,@DEPDIR@,$DEPDIR,;t t
 
11259
s,@am__include@,$am__include,;t t
 
11260
s,@am__quote@,$am__quote,;t t
 
11261
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
11262
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
11263
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
11264
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
11265
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
11266
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
11267
s,@CPP@,$CPP,;t t
 
11268
s,@EGREP@,$EGREP,;t t
 
11269
s,@LIBOBJS@,$LIBOBJS,;t t
 
11270
s,@SERVER_TRUE@,$SERVER_TRUE,;t t
 
11271
s,@SERVER_FALSE@,$SERVER_FALSE,;t t
 
11272
s,@AGENT_TRUE@,$AGENT_TRUE,;t t
 
11273
s,@AGENT_FALSE@,$AGENT_FALSE,;t t
 
11274
s,@SQLORA8_CPPFLAGS@,$SQLORA8_CPPFLAGS,;t t
 
11275
s,@SQLORA8_LDFLAGS@,$SQLORA8_LDFLAGS,;t t
 
11276
s,@ORACLE_CPPFLAGS@,$ORACLE_CPPFLAGS,;t t
 
11277
s,@ORACLE_LDFLAGS@,$ORACLE_LDFLAGS,;t t
 
11278
s,@SQLITE3_CPPFLAGS@,$SQLITE3_CPPFLAGS,;t t
 
11279
s,@SQLITE3_LDFLAGS@,$SQLITE3_LDFLAGS,;t t
 
11280
s,@SQLITE3_VERSION@,$SQLITE3_VERSION,;t t
 
11281
s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
 
11282
s,@MYSQL_VERSION@,$MYSQL_VERSION,;t t
 
11283
s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
 
11284
s,@MYSQL_LDFLAGS@,$MYSQL_LDFLAGS,;t t
 
11285
s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
 
11286
s,@PG_CONFIG@,$PG_CONFIG,;t t
 
11287
s,@POSTGRESQL_VERSION@,$POSTGRESQL_VERSION,;t t
 
11288
s,@POSTGRESQL_CPPFLAGS@,$POSTGRESQL_CPPFLAGS,;t t
 
11289
s,@POSTGRESQL_LDFLAGS@,$POSTGRESQL_LDFLAGS,;t t
 
11290
s,@DB_CPPFLAGS@,$DB_CPPFLAGS,;t t
 
11291
s,@DB_LDFLAGS@,$DB_LDFLAGS,;t t
 
11292
s,@DB_LIBS@,$DB_LIBS,;t t
 
11293
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
11294
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
 
11295
s,@IKSEMEL_CFLAGS@,$IKSEMEL_CFLAGS,;t t
 
11296
s,@IKSEMEL_LIBS@,$IKSEMEL_LIBS,;t t
 
11297
s,@JABBER_CPPFLAGS@,$JABBER_CPPFLAGS,;t t
 
11298
s,@JABBER_LDFLAGS@,$JABBER_LDFLAGS,;t t
 
11299
s,@JABBER_LIBS@,$JABBER_LIBS,;t t
 
11300
s,@_libcurl_config@,$_libcurl_config,;t t
 
11301
s,@LIBCURL_CPPFLAGS@,$LIBCURL_CPPFLAGS,;t t
 
11302
s,@LIBCURL_LDFLAGS@,$LIBCURL_LDFLAGS,;t t
 
11303
s,@LIBCURL_LIBS@,$LIBCURL_LIBS,;t t
 
11304
s,@_libnetsnmp_config@,$_libnetsnmp_config,;t t
 
11305
s,@SNMP_CFLAGS@,$SNMP_CFLAGS,;t t
 
11306
s,@SNMP_LDFLAGS@,$SNMP_LDFLAGS,;t t
 
11307
s,@SNMP_LIBS@,$SNMP_LIBS,;t t
 
11308
s,@SNMP_CPPFLAGS@,$SNMP_CPPFLAGS,;t t
 
11309
s,@SERVER_LDFLAGS@,$SERVER_LDFLAGS,;t t
 
11310
s,@SERVER_LIBS@,$SERVER_LIBS,;t t
 
11311
s,@JABBER_TRUE@,$JABBER_TRUE,;t t
 
11312
s,@JABBER_FALSE@,$JABBER_FALSE,;t t
 
11313
s,@LDAP_CPPFLAGS@,$LDAP_CPPFLAGS,;t t
 
11314
s,@LDAP_LDFLAGS@,$LDAP_LDFLAGS,;t t
 
11315
s,@RANLIB@,$RANLIB,;t t
 
11316
s,@ARCH@,$ARCH,;t t
 
11317
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
11318
CEOF
 
11319
 
 
11320
_ACEOF
 
11321
 
 
11322
  cat >>$CONFIG_STATUS <<\_ACEOF
 
11323
  # Split the substitutions into bite-sized pieces for seds with
 
11324
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
11325
  ac_max_sed_lines=48
 
11326
  ac_sed_frag=1 # Number of current file.
 
11327
  ac_beg=1 # First line for current file.
 
11328
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
11329
  ac_more_lines=:
 
11330
  ac_sed_cmds=
 
11331
  while $ac_more_lines; do
 
11332
    if test $ac_beg -gt 1; then
 
11333
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
11334
    else
 
11335
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
11336
    fi
 
11337
    if test ! -s $tmp/subs.frag; then
 
11338
      ac_more_lines=false
 
11339
    else
 
11340
      # The purpose of the label and of the branching condition is to
 
11341
      # speed up the sed processing (if there are no `@' at all, there
 
11342
      # is no need to browse any of the substitutions).
 
11343
      # These are the two extra sed commands mentioned above.
 
11344
      (echo ':t
 
11345
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
11346
      if test -z "$ac_sed_cmds"; then
 
11347
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
11348
      else
 
11349
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
11350
      fi
 
11351
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
11352
      ac_beg=$ac_end
 
11353
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
11354
    fi
 
11355
  done
 
11356
  if test -z "$ac_sed_cmds"; then
 
11357
    ac_sed_cmds=cat
 
11358
  fi
12321
11359
fi # test -n "$CONFIG_FILES"
12322
11360
 
12323
 
 
12324
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12325
 
do
12326
 
  case $ac_tag in
12327
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
12328
 
  esac
12329
 
  case $ac_mode$ac_tag in
12330
 
  :[FHL]*:*);;
12331
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12332
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12333
 
   { (exit 1); exit 1; }; };;
12334
 
  :[FH]-) ac_tag=-:-;;
12335
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12336
 
  esac
12337
 
  ac_save_IFS=$IFS
12338
 
  IFS=:
12339
 
  set x $ac_tag
12340
 
  IFS=$ac_save_IFS
12341
 
  shift
12342
 
  ac_file=$1
12343
 
  shift
12344
 
 
12345
 
  case $ac_mode in
12346
 
  :L) ac_source=$1;;
12347
 
  :[FH])
12348
 
    ac_file_inputs=
12349
 
    for ac_f
12350
 
    do
12351
 
      case $ac_f in
12352
 
      -) ac_f="$tmp/stdin";;
12353
 
      *) # Look for the file first in the build tree, then in the source tree
12354
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12355
 
         # because $ac_f cannot contain `:'.
12356
 
         test -f "$ac_f" ||
12357
 
           case $ac_f in
12358
 
           [\\/$]*) false;;
12359
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12360
 
           esac ||
12361
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12362
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12363
 
   { (exit 1); exit 1; }; };;
12364
 
      esac
12365
 
      ac_file_inputs="$ac_file_inputs $ac_f"
12366
 
    done
12367
 
 
12368
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12369
 
    # use $as_me), people would be surprised to read:
12370
 
    #    /* config.h.  Generated by config.status.  */
12371
 
    configure_input="Generated from "`IFS=:
12372
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12373
 
    if test x"$ac_file" != x-; then
12374
 
      configure_input="$ac_file.  $configure_input"
12375
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
12376
 
echo "$as_me: creating $ac_file" >&6;}
12377
 
    fi
12378
 
 
12379
 
    case $ac_tag in
12380
 
    *:-:* | *:-) cat >"$tmp/stdin";;
12381
 
    esac
12382
 
    ;;
12383
 
  esac
12384
 
 
12385
 
  ac_dir=`$as_dirname -- "$ac_file" ||
 
11361
_ACEOF
 
11362
cat >>$CONFIG_STATUS <<\_ACEOF
 
11363
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
11364
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
11365
  case $ac_file in
 
11366
  - | *:- | *:-:* ) # input from stdin
 
11367
        cat >$tmp/stdin
 
11368
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11369
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
11370
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11371
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
11372
  * )   ac_file_in=$ac_file.in ;;
 
11373
  esac
 
11374
 
 
11375
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
11376
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12386
11377
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12387
11378
         X"$ac_file" : 'X\(//\)[^/]' \| \
12388
11379
         X"$ac_file" : 'X\(//\)$' \| \
12389
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
11380
         X"$ac_file" : 'X\(/\)' \| \
 
11381
         .     : '\(.\)' 2>/dev/null ||
12390
11382
echo X"$ac_file" |
12391
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12392
 
            s//\1/
12393
 
            q
12394
 
          }
12395
 
          /^X\(\/\/\)[^/].*/{
12396
 
            s//\1/
12397
 
            q
12398
 
          }
12399
 
          /^X\(\/\/\)$/{
12400
 
            s//\1/
12401
 
            q
12402
 
          }
12403
 
          /^X\(\/\).*/{
12404
 
            s//\1/
12405
 
            q
12406
 
          }
12407
 
          s/.*/./; q'`
12408
 
  { as_dir="$ac_dir"
12409
 
  case $as_dir in #(
12410
 
  -*) as_dir=./$as_dir;;
12411
 
  esac
12412
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
11383
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11384
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11385
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11386
          /^X\(\/\).*/{ s//\1/; q; }
 
11387
          s/.*/./; q'`
 
11388
  { if $as_mkdir_p; then
 
11389
    mkdir -p "$ac_dir"
 
11390
  else
 
11391
    as_dir="$ac_dir"
12413
11392
    as_dirs=
12414
 
    while :; do
12415
 
      case $as_dir in #(
12416
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12417
 
      *) as_qdir=$as_dir;;
12418
 
      esac
12419
 
      as_dirs="'$as_qdir' $as_dirs"
12420
 
      as_dir=`$as_dirname -- "$as_dir" ||
 
11393
    while test ! -d "$as_dir"; do
 
11394
      as_dirs="$as_dir $as_dirs"
 
11395
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12421
11396
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12422
11397
         X"$as_dir" : 'X\(//\)[^/]' \| \
12423
11398
         X"$as_dir" : 'X\(//\)$' \| \
12424
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
11399
         X"$as_dir" : 'X\(/\)' \| \
 
11400
         .     : '\(.\)' 2>/dev/null ||
12425
11401
echo X"$as_dir" |
12426
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12427
 
            s//\1/
12428
 
            q
12429
 
          }
12430
 
          /^X\(\/\/\)[^/].*/{
12431
 
            s//\1/
12432
 
            q
12433
 
          }
12434
 
          /^X\(\/\/\)$/{
12435
 
            s//\1/
12436
 
            q
12437
 
          }
12438
 
          /^X\(\/\).*/{
12439
 
            s//\1/
12440
 
            q
12441
 
          }
12442
 
          s/.*/./; q'`
12443
 
      test -d "$as_dir" && break
 
11402
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11403
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11404
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11405
          /^X\(\/\).*/{ s//\1/; q; }
 
11406
          s/.*/./; q'`
12444
11407
    done
12445
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12446
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12447
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
11408
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11409
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
11410
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12448
11411
   { (exit 1); exit 1; }; }; }
 
11412
 
12449
11413
  ac_builddir=.
12450
11414
 
12451
 
case "$ac_dir" in
12452
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12453
 
*)
 
11415
if test "$ac_dir" != .; then
12454
11416
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12455
 
  # A ".." for each directory in $ac_dir_suffix.
12456
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12457
 
  case $ac_top_builddir_sub in
12458
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12459
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12460
 
  esac ;;
12461
 
esac
12462
 
ac_abs_top_builddir=$ac_pwd
12463
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12464
 
# for backward compatibility:
12465
 
ac_top_builddir=$ac_top_build_prefix
 
11417
  # A "../" for each directory in $ac_dir_suffix.
 
11418
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
11419
else
 
11420
  ac_dir_suffix= ac_top_builddir=
 
11421
fi
12466
11422
 
12467
11423
case $srcdir in
12468
 
  .)  # We are building in place.
 
11424
  .)  # No --srcdir option.  We are building in place.
12469
11425
    ac_srcdir=.
12470
 
    ac_top_srcdir=$ac_top_builddir_sub
12471
 
    ac_abs_top_srcdir=$ac_pwd ;;
12472
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
11426
    if test -z "$ac_top_builddir"; then
 
11427
       ac_top_srcdir=.
 
11428
    else
 
11429
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
11430
    fi ;;
 
11431
  [\\/]* | ?:[\\/]* )  # Absolute path.
12473
11432
    ac_srcdir=$srcdir$ac_dir_suffix;
12474
 
    ac_top_srcdir=$srcdir
12475
 
    ac_abs_top_srcdir=$srcdir ;;
12476
 
  *) # Relative name.
12477
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12478
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12479
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12480
 
esac
12481
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12482
 
 
12483
 
 
12484
 
  case $ac_mode in
12485
 
  :F)
12486
 
  #
12487
 
  # CONFIG_FILE
12488
 
  #
 
11433
    ac_top_srcdir=$srcdir ;;
 
11434
  *) # Relative path.
 
11435
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
11436
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
11437
esac
 
11438
 
 
11439
# Do not use `cd foo && pwd` to compute absolute paths, because
 
11440
# the directories may not exist.
 
11441
case `pwd` in
 
11442
.) ac_abs_builddir="$ac_dir";;
 
11443
*)
 
11444
  case "$ac_dir" in
 
11445
  .) ac_abs_builddir=`pwd`;;
 
11446
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
11447
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
11448
  esac;;
 
11449
esac
 
11450
case $ac_abs_builddir in
 
11451
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11452
*)
 
11453
  case ${ac_top_builddir}. in
 
11454
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
11455
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11456
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
11457
  esac;;
 
11458
esac
 
11459
case $ac_abs_builddir in
 
11460
.) ac_abs_srcdir=$ac_srcdir;;
 
11461
*)
 
11462
  case $ac_srcdir in
 
11463
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
11464
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
11465
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
11466
  esac;;
 
11467
esac
 
11468
case $ac_abs_builddir in
 
11469
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11470
*)
 
11471
  case $ac_top_srcdir in
 
11472
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
11473
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11474
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
11475
  esac;;
 
11476
esac
 
11477
 
12489
11478
 
12490
11479
  case $INSTALL in
12491
11480
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12492
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
11481
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12493
11482
  esac
12494
 
_ACEOF
12495
 
 
12496
 
cat >>$CONFIG_STATUS <<\_ACEOF
12497
 
# If the template does not know about datarootdir, expand it.
12498
 
# FIXME: This hack should be removed a few years after 2.60.
12499
 
ac_datarootdir_hack=; ac_datarootdir_seen=
12500
 
 
12501
 
case `sed -n '/datarootdir/ {
12502
 
  p
12503
 
  q
12504
 
}
12505
 
/@datadir@/p
12506
 
/@docdir@/p
12507
 
/@infodir@/p
12508
 
/@localedir@/p
12509
 
/@mandir@/p
12510
 
' $ac_file_inputs` in
12511
 
*datarootdir*) ac_datarootdir_seen=yes;;
12512
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12513
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12514
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12515
 
_ACEOF
12516
 
cat >>$CONFIG_STATUS <<_ACEOF
12517
 
  ac_datarootdir_hack='
12518
 
  s&@datadir@&$datadir&g
12519
 
  s&@docdir@&$docdir&g
12520
 
  s&@infodir@&$infodir&g
12521
 
  s&@localedir@&$localedir&g
12522
 
  s&@mandir@&$mandir&g
12523
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
12524
 
esac
12525
 
_ACEOF
12526
 
 
12527
 
# Neutralize VPATH when `$srcdir' = `.'.
12528
 
# Shell code in configure.ac might set extrasub.
12529
 
# FIXME: do we really want to maintain this feature?
 
11483
 
 
11484
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
11485
  # use $as_me), people would be surprised to read:
 
11486
  #    /* config.h.  Generated by config.status.  */
 
11487
  if test x"$ac_file" = x-; then
 
11488
    configure_input=
 
11489
  else
 
11490
    configure_input="$ac_file.  "
 
11491
  fi
 
11492
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
11493
                                     sed 's,.*/,,'` by configure."
 
11494
 
 
11495
  # First look for the input files in the build tree, otherwise in the
 
11496
  # src tree.
 
11497
  ac_file_inputs=`IFS=:
 
11498
    for f in $ac_file_in; do
 
11499
      case $f in
 
11500
      -) echo $tmp/stdin ;;
 
11501
      [\\/$]*)
 
11502
         # Absolute (can't be DOS-style, as IFS=:)
 
11503
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11504
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11505
   { (exit 1); exit 1; }; }
 
11506
         echo "$f";;
 
11507
      *) # Relative
 
11508
         if test -f "$f"; then
 
11509
           # Build tree
 
11510
           echo "$f"
 
11511
         elif test -f "$srcdir/$f"; then
 
11512
           # Source tree
 
11513
           echo "$srcdir/$f"
 
11514
         else
 
11515
           # /dev/null tree
 
11516
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11517
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11518
   { (exit 1); exit 1; }; }
 
11519
         fi;;
 
11520
      esac
 
11521
    done` || { (exit 1); exit 1; }
 
11522
 
 
11523
  if test x"$ac_file" != x-; then
 
11524
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
11525
echo "$as_me: creating $ac_file" >&6;}
 
11526
    rm -f "$ac_file"
 
11527
  fi
 
11528
_ACEOF
12530
11529
cat >>$CONFIG_STATUS <<_ACEOF
12531
11530
  sed "$ac_vpsub
12532
11531
$extrasub
12534
11533
cat >>$CONFIG_STATUS <<\_ACEOF
12535
11534
:t
12536
11535
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12537
 
s&@configure_input@&$configure_input&;t t
12538
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
12539
 
s&@srcdir@&$ac_srcdir&;t t
12540
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12541
 
s&@top_srcdir@&$ac_top_srcdir&;t t
12542
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12543
 
s&@builddir@&$ac_builddir&;t t
12544
 
s&@abs_builddir@&$ac_abs_builddir&;t t
12545
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12546
 
s&@INSTALL@&$ac_INSTALL&;t t
12547
 
$ac_datarootdir_hack
12548
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12549
 
 
12550
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12551
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12552
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12553
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12554
 
which seems to be undefined.  Please make sure it is defined." >&5
12555
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12556
 
which seems to be undefined.  Please make sure it is defined." >&2;}
12557
 
 
12558
 
  rm -f "$tmp/stdin"
12559
 
  case $ac_file in
12560
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
12561
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12562
 
  esac
12563
 
 ;;
12564
 
  :H)
12565
 
  #
12566
 
  # CONFIG_HEADER
12567
 
  #
 
11536
s,@configure_input@,$configure_input,;t t
 
11537
s,@srcdir@,$ac_srcdir,;t t
 
11538
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
11539
s,@top_srcdir@,$ac_top_srcdir,;t t
 
11540
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
11541
s,@builddir@,$ac_builddir,;t t
 
11542
s,@abs_builddir@,$ac_abs_builddir,;t t
 
11543
s,@top_builddir@,$ac_top_builddir,;t t
 
11544
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
11545
s,@INSTALL@,$ac_INSTALL,;t t
 
11546
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
11547
  rm -f $tmp/stdin
 
11548
  if test x"$ac_file" != x-; then
 
11549
    mv $tmp/out $ac_file
 
11550
  else
 
11551
    cat $tmp/out
 
11552
    rm -f $tmp/out
 
11553
  fi
 
11554
 
 
11555
done
12568
11556
_ACEOF
12569
 
 
12570
 
# Transform confdefs.h into a sed script `conftest.defines', that
12571
 
# substitutes the proper values into config.h.in to produce config.h.
12572
 
rm -f conftest.defines conftest.tail
12573
 
# First, append a space to every undef/define line, to ease matching.
12574
 
echo 's/$/ /' >conftest.defines
12575
 
# Then, protect against being on the right side of a sed subst, or in
12576
 
# an unquoted here document, in config.status.  If some macros were
12577
 
# called several times there might be several #defines for the same
12578
 
# symbol, which is useless.  But do not sort them, since the last
12579
 
# AC_DEFINE must be honored.
12580
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12581
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12582
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
12583
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
12584
 
# just an empty string.
12585
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12586
 
ac_dB='\\)[      (].*,\\1define\\2'
 
11557
cat >>$CONFIG_STATUS <<\_ACEOF
 
11558
 
 
11559
#
 
11560
# CONFIG_HEADER section.
 
11561
#
 
11562
 
 
11563
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
11564
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
11565
#
 
11566
# ac_d sets the value in "#define NAME VALUE" lines.
 
11567
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
11568
ac_dB='[         ].*$,\1#\2'
12587
11569
ac_dC=' '
12588
 
ac_dD=' ,'
12589
 
 
12590
 
uniq confdefs.h |
12591
 
  sed -n '
12592
 
        t rset
12593
 
        :rset
12594
 
        s/^[     ]*#[    ]*define[       ][      ]*//
12595
 
        t ok
12596
 
        d
12597
 
        :ok
12598
 
        s/[\\&,]/\\&/g
12599
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12600
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12601
 
  ' >>conftest.defines
12602
 
 
12603
 
# Remove the space that was appended to ease matching.
12604
 
# Then replace #undef with comments.  This is necessary, for
 
11570
ac_dD=',;t'
 
11571
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
11572
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
11573
ac_uB='$,\1#\2define\3'
 
11574
ac_uC=' '
 
11575
ac_uD=',;t'
 
11576
 
 
11577
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
11578
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
11579
  case $ac_file in
 
11580
  - | *:- | *:-:* ) # input from stdin
 
11581
        cat >$tmp/stdin
 
11582
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11583
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
11584
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11585
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
11586
  * )   ac_file_in=$ac_file.in ;;
 
11587
  esac
 
11588
 
 
11589
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
11590
echo "$as_me: creating $ac_file" >&6;}
 
11591
 
 
11592
  # First look for the input files in the build tree, otherwise in the
 
11593
  # src tree.
 
11594
  ac_file_inputs=`IFS=:
 
11595
    for f in $ac_file_in; do
 
11596
      case $f in
 
11597
      -) echo $tmp/stdin ;;
 
11598
      [\\/$]*)
 
11599
         # Absolute (can't be DOS-style, as IFS=:)
 
11600
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11601
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11602
   { (exit 1); exit 1; }; }
 
11603
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
11604
         echo "$f";;
 
11605
      *) # Relative
 
11606
         if test -f "$f"; then
 
11607
           # Build tree
 
11608
           echo "$f"
 
11609
         elif test -f "$srcdir/$f"; then
 
11610
           # Source tree
 
11611
           echo "$srcdir/$f"
 
11612
         else
 
11613
           # /dev/null tree
 
11614
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11615
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11616
   { (exit 1); exit 1; }; }
 
11617
         fi;;
 
11618
      esac
 
11619
    done` || { (exit 1); exit 1; }
 
11620
  # Remove the trailing spaces.
 
11621
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
11622
 
 
11623
_ACEOF
 
11624
 
 
11625
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
11626
# `conftest.undefs', that substitutes the proper values into
 
11627
# config.h.in to produce config.h.  The first handles `#define'
 
11628
# templates, and the second `#undef' templates.
 
11629
# And first: Protect against being on the right side of a sed subst in
 
11630
# config.status.  Protect against being in an unquoted here document
 
11631
# in config.status.
 
11632
rm -f conftest.defines conftest.undefs
 
11633
# Using a here document instead of a string reduces the quoting nightmare.
 
11634
# Putting comments in sed scripts is not portable.
 
11635
#
 
11636
# `end' is used to avoid that the second main sed command (meant for
 
11637
# 0-ary CPP macros) applies to n-ary macro definitions.
 
11638
# See the Autoconf documentation for `clear'.
 
11639
cat >confdef2sed.sed <<\_ACEOF
 
11640
s/[\\&,]/\\&/g
 
11641
s,[\\$`],\\&,g
 
11642
t clear
 
11643
: clear
 
11644
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
11645
t end
 
11646
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
11647
: end
 
11648
_ACEOF
 
11649
# If some macros were called several times there might be several times
 
11650
# the same #defines, which is useless.  Nevertheless, we may not want to
 
11651
# sort them, since we want the *last* AC-DEFINE to be honored.
 
11652
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
11653
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
11654
rm -f confdef2sed.sed
 
11655
 
 
11656
# This sed command replaces #undef with comments.  This is necessary, for
12605
11657
# example, in the case of _POSIX_SOURCE, which is predefined and required
12606
11658
# on some systems where configure will not decide to define it.
12607
 
# (The regexp can be short, since the line contains either #define or #undef.)
12608
 
echo 's/ $//
12609
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
12610
 
 
12611
 
# Break up conftest.defines:
12612
 
ac_max_sed_lines=50
12613
 
 
12614
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12615
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12616
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12617
 
# et cetera.
12618
 
ac_in='$ac_file_inputs'
12619
 
ac_out='"$tmp/out1"'
12620
 
ac_nxt='"$tmp/out2"'
12621
 
 
12622
 
while :
 
11659
cat >>conftest.undefs <<\_ACEOF
 
11660
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
11661
_ACEOF
 
11662
 
 
11663
# Break up conftest.defines because some shells have a limit on the size
 
11664
# of here documents, and old seds have small limits too (100 cmds).
 
11665
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
11666
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
11667
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
11668
echo '  :' >>$CONFIG_STATUS
 
11669
rm -f conftest.tail
 
11670
while grep . conftest.defines >/dev/null
12623
11671
do
12624
 
  # Write a here document:
12625
 
    cat >>$CONFIG_STATUS <<_ACEOF
12626
 
    # First, check the format of the line:
12627
 
    cat >"\$tmp/defines.sed" <<\\CEOF
12628
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12629
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12630
 
b
12631
 
:def
12632
 
_ACEOF
12633
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
11672
  # Write a limited-size here document to $tmp/defines.sed.
 
11673
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
11674
  # Speed up: don't consider the non `#define' lines.
 
11675
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
11676
  # Work around the forget-to-reset-the-flag bug.
 
11677
  echo 't clr' >>$CONFIG_STATUS
 
11678
  echo ': clr' >>$CONFIG_STATUS
 
11679
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12634
11680
  echo 'CEOF
12635
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12636
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12637
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12638
 
  grep . conftest.tail >/dev/null || break
 
11681
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
11682
  rm -f $tmp/in
 
11683
  mv $tmp/out $tmp/in
 
11684
' >>$CONFIG_STATUS
 
11685
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12639
11686
  rm -f conftest.defines
12640
11687
  mv conftest.tail conftest.defines
12641
11688
done
12642
 
rm -f conftest.defines conftest.tail
12643
 
 
12644
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
11689
rm -f conftest.defines
 
11690
echo '  fi # grep' >>$CONFIG_STATUS
 
11691
echo >>$CONFIG_STATUS
 
11692
 
 
11693
# Break up conftest.undefs because some shells have a limit on the size
 
11694
# of here documents, and old seds have small limits too (100 cmds).
 
11695
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
11696
rm -f conftest.tail
 
11697
while grep . conftest.undefs >/dev/null
 
11698
do
 
11699
  # Write a limited-size here document to $tmp/undefs.sed.
 
11700
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
11701
  # Speed up: don't consider the non `#undef'
 
11702
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
11703
  # Work around the forget-to-reset-the-flag bug.
 
11704
  echo 't clr' >>$CONFIG_STATUS
 
11705
  echo ': clr' >>$CONFIG_STATUS
 
11706
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
11707
  echo 'CEOF
 
11708
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
11709
  rm -f $tmp/in
 
11710
  mv $tmp/out $tmp/in
 
11711
' >>$CONFIG_STATUS
 
11712
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
11713
  rm -f conftest.undefs
 
11714
  mv conftest.tail conftest.undefs
 
11715
done
 
11716
rm -f conftest.undefs
 
11717
 
12645
11718
cat >>$CONFIG_STATUS <<\_ACEOF
 
11719
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
11720
  # use $as_me), people would be surprised to read:
 
11721
  #    /* config.h.  Generated by config.status.  */
 
11722
  if test x"$ac_file" = x-; then
 
11723
    echo "/* Generated by configure.  */" >$tmp/config.h
 
11724
  else
 
11725
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
11726
  fi
 
11727
  cat $tmp/in >>$tmp/config.h
 
11728
  rm -f $tmp/in
12646
11729
  if test x"$ac_file" != x-; then
12647
 
    echo "/* $configure_input  */" >"$tmp/config.h"
12648
 
    cat "$ac_result" >>"$tmp/config.h"
12649
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
11730
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12650
11731
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12651
11732
echo "$as_me: $ac_file is unchanged" >&6;}
12652
11733
    else
 
11734
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
11735
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11736
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
11737
         X"$ac_file" : 'X\(//\)$' \| \
 
11738
         X"$ac_file" : 'X\(/\)' \| \
 
11739
         .     : '\(.\)' 2>/dev/null ||
 
11740
echo X"$ac_file" |
 
11741
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11742
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11743
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11744
          /^X\(\/\).*/{ s//\1/; q; }
 
11745
          s/.*/./; q'`
 
11746
      { if $as_mkdir_p; then
 
11747
    mkdir -p "$ac_dir"
 
11748
  else
 
11749
    as_dir="$ac_dir"
 
11750
    as_dirs=
 
11751
    while test ! -d "$as_dir"; do
 
11752
      as_dirs="$as_dir $as_dirs"
 
11753
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
11754
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11755
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
11756
         X"$as_dir" : 'X\(//\)$' \| \
 
11757
         X"$as_dir" : 'X\(/\)' \| \
 
11758
         .     : '\(.\)' 2>/dev/null ||
 
11759
echo X"$as_dir" |
 
11760
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11761
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11762
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11763
          /^X\(\/\).*/{ s//\1/; q; }
 
11764
          s/.*/./; q'`
 
11765
    done
 
11766
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11767
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
11768
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
11769
   { (exit 1); exit 1; }; }; }
 
11770
 
12653
11771
      rm -f $ac_file
12654
 
      mv "$tmp/config.h" $ac_file
 
11772
      mv $tmp/config.h $ac_file
12655
11773
    fi
12656
11774
  else
12657
 
    echo "/* $configure_input  */"
12658
 
    cat "$ac_result"
 
11775
    cat $tmp/config.h
 
11776
    rm -f $tmp/config.h
12659
11777
  fi
12660
 
  rm -f "$tmp/out12"
12661
11778
# Compute $ac_file's index in $config_headers.
12662
11779
_am_stamp_count=1
12663
11780
for _am_header in $config_headers :; do
12668
11785
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12669
11786
  esac
12670
11787
done
12671
 
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
11788
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12672
11789
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673
11790
         X$ac_file : 'X\(//\)[^/]' \| \
12674
11791
         X$ac_file : 'X\(//\)$' \| \
12675
 
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
11792
         X$ac_file : 'X\(/\)' \| \
 
11793
         .     : '\(.\)' 2>/dev/null ||
12676
11794
echo X$ac_file |
12677
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12678
 
            s//\1/
12679
 
            q
12680
 
          }
12681
 
          /^X\(\/\/\)[^/].*/{
12682
 
            s//\1/
12683
 
            q
12684
 
          }
12685
 
          /^X\(\/\/\)$/{
12686
 
            s//\1/
12687
 
            q
12688
 
          }
12689
 
          /^X\(\/\).*/{
12690
 
            s//\1/
12691
 
            q
12692
 
          }
12693
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
12694
 
 ;;
12695
 
 
12696
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12697
 
echo "$as_me: executing $ac_file commands" >&6;}
12698
 
 ;;
12699
 
  esac
12700
 
 
12701
 
 
12702
 
  case $ac_file$ac_mode in
12703
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
11795
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11796
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11797
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11798
          /^X\(\/\).*/{ s//\1/; q; }
 
11799
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
11800
done
 
11801
_ACEOF
 
11802
cat >>$CONFIG_STATUS <<\_ACEOF
 
11803
 
 
11804
#
 
11805
# CONFIG_COMMANDS section.
 
11806
#
 
11807
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
11808
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
11809
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11810
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
11811
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11812
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
11813
         X"$ac_dest" : 'X\(//\)$' \| \
 
11814
         X"$ac_dest" : 'X\(/\)' \| \
 
11815
         .     : '\(.\)' 2>/dev/null ||
 
11816
echo X"$ac_dest" |
 
11817
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11818
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11819
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11820
          /^X\(\/\).*/{ s//\1/; q; }
 
11821
          s/.*/./; q'`
 
11822
  { if $as_mkdir_p; then
 
11823
    mkdir -p "$ac_dir"
 
11824
  else
 
11825
    as_dir="$ac_dir"
 
11826
    as_dirs=
 
11827
    while test ! -d "$as_dir"; do
 
11828
      as_dirs="$as_dir $as_dirs"
 
11829
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
11830
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11831
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
11832
         X"$as_dir" : 'X\(//\)$' \| \
 
11833
         X"$as_dir" : 'X\(/\)' \| \
 
11834
         .     : '\(.\)' 2>/dev/null ||
 
11835
echo X"$as_dir" |
 
11836
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11837
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11838
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11839
          /^X\(\/\).*/{ s//\1/; q; }
 
11840
          s/.*/./; q'`
 
11841
    done
 
11842
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11843
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
11844
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
11845
   { (exit 1); exit 1; }; }; }
 
11846
 
 
11847
  ac_builddir=.
 
11848
 
 
11849
if test "$ac_dir" != .; then
 
11850
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
11851
  # A "../" for each directory in $ac_dir_suffix.
 
11852
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
11853
else
 
11854
  ac_dir_suffix= ac_top_builddir=
 
11855
fi
 
11856
 
 
11857
case $srcdir in
 
11858
  .)  # No --srcdir option.  We are building in place.
 
11859
    ac_srcdir=.
 
11860
    if test -z "$ac_top_builddir"; then
 
11861
       ac_top_srcdir=.
 
11862
    else
 
11863
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
11864
    fi ;;
 
11865
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
11866
    ac_srcdir=$srcdir$ac_dir_suffix;
 
11867
    ac_top_srcdir=$srcdir ;;
 
11868
  *) # Relative path.
 
11869
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
11870
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
11871
esac
 
11872
 
 
11873
# Do not use `cd foo && pwd` to compute absolute paths, because
 
11874
# the directories may not exist.
 
11875
case `pwd` in
 
11876
.) ac_abs_builddir="$ac_dir";;
 
11877
*)
 
11878
  case "$ac_dir" in
 
11879
  .) ac_abs_builddir=`pwd`;;
 
11880
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
11881
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
11882
  esac;;
 
11883
esac
 
11884
case $ac_abs_builddir in
 
11885
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11886
*)
 
11887
  case ${ac_top_builddir}. in
 
11888
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
11889
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11890
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
11891
  esac;;
 
11892
esac
 
11893
case $ac_abs_builddir in
 
11894
.) ac_abs_srcdir=$ac_srcdir;;
 
11895
*)
 
11896
  case $ac_srcdir in
 
11897
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
11898
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
11899
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
11900
  esac;;
 
11901
esac
 
11902
case $ac_abs_builddir in
 
11903
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11904
*)
 
11905
  case $ac_top_srcdir in
 
11906
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
11907
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11908
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
11909
  esac;;
 
11910
esac
 
11911
 
 
11912
 
 
11913
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
11914
echo "$as_me: executing $ac_dest commands" >&6;}
 
11915
  case $ac_dest in
 
11916
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12704
11917
  # Strip MF so we end up with the name of the file.
12705
11918
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12706
11919
  # Check whether this is an Automake generated Makefile or not.
12710
11923
  # each Makefile.in and add a new line on top of each file to say so.
12711
11924
  # So let's grep whole file.
12712
11925
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12713
 
    dirpart=`$as_dirname -- "$mf" ||
 
11926
    dirpart=`(dirname "$mf") 2>/dev/null ||
12714
11927
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12715
11928
         X"$mf" : 'X\(//\)[^/]' \| \
12716
11929
         X"$mf" : 'X\(//\)$' \| \
12717
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
11930
         X"$mf" : 'X\(/\)' \| \
 
11931
         .     : '\(.\)' 2>/dev/null ||
12718
11932
echo X"$mf" |
12719
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12720
 
            s//\1/
12721
 
            q
12722
 
          }
12723
 
          /^X\(\/\/\)[^/].*/{
12724
 
            s//\1/
12725
 
            q
12726
 
          }
12727
 
          /^X\(\/\/\)$/{
12728
 
            s//\1/
12729
 
            q
12730
 
          }
12731
 
          /^X\(\/\).*/{
12732
 
            s//\1/
12733
 
            q
12734
 
          }
12735
 
          s/.*/./; q'`
 
11933
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11934
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11935
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11936
          /^X\(\/\).*/{ s//\1/; q; }
 
11937
          s/.*/./; q'`
12736
11938
  else
12737
11939
    continue
12738
11940
  fi
12754
11956
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12755
11957
    # Make sure the directory exists.
12756
11958
    test -f "$dirpart/$file" && continue
12757
 
    fdir=`$as_dirname -- "$file" ||
 
11959
    fdir=`(dirname "$file") 2>/dev/null ||
12758
11960
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12759
11961
         X"$file" : 'X\(//\)[^/]' \| \
12760
11962
         X"$file" : 'X\(//\)$' \| \
12761
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
11963
         X"$file" : 'X\(/\)' \| \
 
11964
         .     : '\(.\)' 2>/dev/null ||
12762
11965
echo X"$file" |
12763
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12764
 
            s//\1/
12765
 
            q
12766
 
          }
12767
 
          /^X\(\/\/\)[^/].*/{
12768
 
            s//\1/
12769
 
            q
12770
 
          }
12771
 
          /^X\(\/\/\)$/{
12772
 
            s//\1/
12773
 
            q
12774
 
          }
12775
 
          /^X\(\/\).*/{
12776
 
            s//\1/
12777
 
            q
12778
 
          }
12779
 
          s/.*/./; q'`
12780
 
    { as_dir=$dirpart/$fdir
12781
 
  case $as_dir in #(
12782
 
  -*) as_dir=./$as_dir;;
12783
 
  esac
12784
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
11966
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11967
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11968
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11969
          /^X\(\/\).*/{ s//\1/; q; }
 
11970
          s/.*/./; q'`
 
11971
    { if $as_mkdir_p; then
 
11972
    mkdir -p $dirpart/$fdir
 
11973
  else
 
11974
    as_dir=$dirpart/$fdir
12785
11975
    as_dirs=
12786
 
    while :; do
12787
 
      case $as_dir in #(
12788
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12789
 
      *) as_qdir=$as_dir;;
12790
 
      esac
12791
 
      as_dirs="'$as_qdir' $as_dirs"
12792
 
      as_dir=`$as_dirname -- "$as_dir" ||
 
11976
    while test ! -d "$as_dir"; do
 
11977
      as_dirs="$as_dir $as_dirs"
 
11978
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12793
11979
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12794
11980
         X"$as_dir" : 'X\(//\)[^/]' \| \
12795
11981
         X"$as_dir" : 'X\(//\)$' \| \
12796
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
11982
         X"$as_dir" : 'X\(/\)' \| \
 
11983
         .     : '\(.\)' 2>/dev/null ||
12797
11984
echo X"$as_dir" |
12798
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12799
 
            s//\1/
12800
 
            q
12801
 
          }
12802
 
          /^X\(\/\/\)[^/].*/{
12803
 
            s//\1/
12804
 
            q
12805
 
          }
12806
 
          /^X\(\/\/\)$/{
12807
 
            s//\1/
12808
 
            q
12809
 
          }
12810
 
          /^X\(\/\).*/{
12811
 
            s//\1/
12812
 
            q
12813
 
          }
12814
 
          s/.*/./; q'`
12815
 
      test -d "$as_dir" && break
 
11985
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11986
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11987
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11988
          /^X\(\/\).*/{ s//\1/; q; }
 
11989
          s/.*/./; q'`
12816
11990
    done
12817
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12818
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12819
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
11991
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11992
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
11993
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12820
11994
   { (exit 1); exit 1; }; }; }
 
11995
 
12821
11996
    # echo "creating $dirpart/$file"
12822
11997
    echo '# dummy' > "$dirpart/$file"
12823
11998
  done
12824
11999
done
12825
12000
 ;;
12826
 
 
12827
12001
  esac
12828
 
done # for ac_tag
 
12002
done
 
12003
_ACEOF
12829
12004
 
 
12005
cat >>$CONFIG_STATUS <<\_ACEOF
12830
12006
 
12831
12007
{ (exit 0); exit 0; }
12832
12008
_ACEOF
12875
12051
  WEB Monitoring via: ${have_web_monitoring}
12876
12052
  Native Jabber:      ${have_jabber}
12877
12053
  SNMP:               ${have_snmp}
 
12054
  IPv6:               ${have_ipv6}
12878
12055
  Linker flags:       ${LDFLAGS} ${SERVER_LDFLAGS}
12879
12056
  Libraries:          ${LIBS} ${SERVER_LIBS}"
12880
12057