~ubuntu-branches/ubuntu/trusty/monit/trusty

« back to all changes in this revision

Viewing changes to .pc/09_pid_in_rundir.patch/configure

  • Committer: Package Import Robot
  • Author(s): Sergey B Kirpichev
  • Date: 2012-12-09 17:42:20 UTC
  • Revision ID: package-import@ubuntu.com-20121209174220-9tzq5vbxr1izvmjv
Tags: 1:5.5-2
* Show error while doing an attempt to stop daemon as non-root user
  (LP: #877667)
* Use /run as pidfile location, patch 09 was added
* Drop support for "startup" option and /etc/monit/monit_delay
* Update patch 08 from upstream
* Drop monit_check_config (monitrc now non-empty by default)
* Cleanup restart target in monit.init
* Drop -c $CONFIG argument from monit options in monit.init
* Drop multiarch workarround for libssl in debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.65 for monit 5.5.
 
4
#
 
5
# Report bugs to <monit-general@nongnu.org>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
 
125
PS1='$ '
 
126
PS2='> '
 
127
PS4='+ '
 
128
 
 
129
# NLS nuisances.
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
 
178
  as_have_required=yes
 
179
else
 
180
  as_have_required=no
 
181
fi
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
 
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
188
do
 
189
  IFS=$as_save_IFS
 
190
  test -z "$as_dir" && as_dir=.
 
191
  as_found=:
 
192
  case $as_dir in #(
 
193
         /*)
 
194
           for as_base in sh bash ksh sh5; do
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
 
204
           done;;
 
205
       esac
 
206
  as_found=false
 
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
 
212
IFS=$as_save_IFS
 
213
 
 
214
 
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
224
fi
 
225
 
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
232
  else
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
234
$0: monit-general@nongnu.org about your system, including
 
235
$0: any error possibly output before this message. Then
 
236
$0: install a modern shell, or manually run the script
 
237
$0: under such a shell if you do have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error ERROR [LINENO LOG_FD]
 
363
# ---------------------------------
 
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
366
# script with status $?, using 1 if that was 0.
 
367
as_fn_error ()
 
368
{
 
369
  as_status=$?; test $as_status -eq 0 && as_status=1
 
370
  if test "$3"; then
 
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
373
  fi
 
374
  $as_echo "$as_me: error: $1" >&2
 
375
  as_fn_exit $as_status
 
376
} # as_fn_error
 
377
 
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
380
  as_expr=expr
 
381
else
 
382
  as_expr=false
 
383
fi
 
384
 
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
386
  as_basename=basename
 
387
else
 
388
  as_basename=false
 
389
fi
 
390
 
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
392
  as_dirname=dirname
 
393
else
 
394
  as_dirname=false
 
395
fi
 
396
 
 
397
as_me=`$as_basename -- "$0" ||
 
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
399
         X"$0" : 'X\(//\)$' \| \
 
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
401
$as_echo X/"$0" |
 
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
403
            s//\1/
 
404
            q
 
405
          }
 
406
          /^X\/\(\/\/\)$/{
 
407
            s//\1/
 
408
            q
 
409
          }
 
410
          /^X\/\(\/\).*/{
 
411
            s//\1/
 
412
            q
 
413
          }
 
414
          s/.*/./; q'`
 
415
 
 
416
# Avoid depending upon Character Ranges.
 
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
420
as_cr_digits='0123456789'
 
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
429
  sed -n '
 
430
    p
 
431
    /[$]LINENO/=
 
432
  ' <$as_myself |
 
433
    sed '
 
434
      s/[$]LINENO.*/&-/
 
435
      t lineno
 
436
      b
 
437
      :lineno
 
438
      N
 
439
      :loop
 
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
441
      t loop
 
442
      s/-\n.*//
 
443
    ' >$as_me.lineno &&
 
444
  chmod +x "$as_me.lineno" ||
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
446
 
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
 
448
  # (the dirname of $[0] is not the place where we might find the
 
449
  # original and so on.  Autoconf is especially sensitive to this).
 
450
  . "./$as_me.lineno"
 
451
  # Exit status is that of the last command.
 
452
  exit
 
453
}
 
454
 
 
455
ECHO_C= ECHO_N= ECHO_T=
 
456
case `echo -n x` in #(((((
 
457
-n*)
 
458
  case `echo 'xy\c'` in
 
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
 
463
  esac;;
 
464
*)
 
465
  ECHO_N='-n';;
 
466
esac
 
467
 
 
468
rm -f conf$$ conf$$.exe conf$$.file
 
469
if test -d conf$$.dir; then
 
470
  rm -f conf$$.dir/conf$$.file
 
471
else
 
472
  rm -f conf$$.dir
 
473
  mkdir conf$$.dir 2>/dev/null
 
474
fi
 
475
if (echo >conf$$.file) 2>/dev/null; then
 
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
477
    as_ln_s='ln -s'
 
478
    # ... but there are two gotchas:
 
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
481
    # In both cases, we have to default to `cp -p'.
 
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
483
      as_ln_s='cp -p'
 
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
485
    as_ln_s=ln
 
486
  else
 
487
    as_ln_s='cp -p'
 
488
  fi
 
489
else
 
490
  as_ln_s='cp -p'
 
491
fi
 
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
493
rmdir conf$$.dir 2>/dev/null
 
494
 
 
495
if mkdir -p . 2>/dev/null; then
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
 
497
else
 
498
  test -d ./-p && rmdir ./-p
 
499
  as_mkdir_p=false
 
500
fi
 
501
 
 
502
if test -x / >/dev/null 2>&1; then
 
503
  as_test_x='test -x'
 
504
else
 
505
  if ls -dL / >/dev/null 2>&1; then
 
506
    as_ls_L_option=L
 
507
  else
 
508
    as_ls_L_option=
 
509
  fi
 
510
  as_test_x='
 
511
    eval sh -c '\''
 
512
      if test -d "$1"; then
 
513
        test -d "$1/.";
 
514
      else
 
515
        case $1 in #(
 
516
        -*)set "./$1";;
 
517
        esac;
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
519
        ???[sx]*):;;*)false;;esac;fi
 
520
    '\'' sh
 
521
  '
 
522
fi
 
523
as_executable_p=$as_test_x
 
524
 
 
525
# Sed expression to map a string onto a valid CPP name.
 
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
# Sed expression to map a string onto a valid variable name.
 
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
530
 
 
531
 
 
532
 
 
533
# Check that we are running under the correct shell.
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
 
535
 
 
536
case X$lt_ECHO in
 
537
X*--fallback-echo)
 
538
  # Remove one level of quotation (which was required for Make).
 
539
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
540
  ;;
 
541
esac
 
542
 
 
543
ECHO=${lt_ECHO-echo}
 
544
if test "X$1" = X--no-reexec; then
 
545
  # Discard the --no-reexec flag, and continue.
 
546
  shift
 
547
elif test "X$1" = X--fallback-echo; then
 
548
  # Avoid inline document here, it may be left over
 
549
  :
 
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
551
  # Yippee, $ECHO works!
 
552
  :
 
553
else
 
554
  # Restart under the correct shell.
 
555
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
556
fi
 
557
 
 
558
if test "X$1" = X--fallback-echo; then
 
559
  # used as fallback echo
 
560
  shift
 
561
  cat <<_LT_EOF
 
562
$*
 
563
_LT_EOF
 
564
  exit 0
 
565
fi
 
566
 
 
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
568
# if CDPATH is set.
 
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
570
 
 
571
if test -z "$lt_ECHO"; then
 
572
  if test "X${echo_test_string+set}" != Xset; then
 
573
    # find a string as large as possible, as long as the shell can cope with it
 
574
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
575
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
576
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
577
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
578
      then
 
579
        break
 
580
      fi
 
581
    done
 
582
  fi
 
583
 
 
584
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
585
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
586
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
587
    :
 
588
  else
 
589
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
590
    # backslashes.  This makes it impossible to quote backslashes using
 
591
    #   echo "$something" | sed 's/\\/\\\\/g'
 
592
    #
 
593
    # So, first we look for a working echo in the user's PATH.
 
594
 
 
595
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
596
    for dir in $PATH /usr/ucb; do
 
597
      IFS="$lt_save_ifs"
 
598
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
599
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
600
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
601
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
602
        ECHO="$dir/echo"
 
603
        break
 
604
      fi
 
605
    done
 
606
    IFS="$lt_save_ifs"
 
607
 
 
608
    if test "X$ECHO" = Xecho; then
 
609
      # We didn't find a better echo, so look for alternatives.
 
610
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
611
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
612
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
613
        # This shell has a builtin print -r that does the trick.
 
614
        ECHO='print -r'
 
615
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
616
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
617
        # If we have ksh, try running configure again with it.
 
618
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
619
        export ORIGINAL_CONFIG_SHELL
 
620
        CONFIG_SHELL=/bin/ksh
 
621
        export CONFIG_SHELL
 
622
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
623
      else
 
624
        # Try using printf.
 
625
        ECHO='printf %s\n'
 
626
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
627
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
628
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
629
          # Cool, printf works
 
630
          :
 
631
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = 'X\t' &&
 
633
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
634
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
636
          export CONFIG_SHELL
 
637
          SHELL="$CONFIG_SHELL"
 
638
          export SHELL
 
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
640
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = 'X\t' &&
 
642
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
643
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
644
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
645
        else
 
646
          # maybe with a smaller string...
 
647
          prev=:
 
648
 
 
649
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
650
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
651
            then
 
652
              break
 
653
            fi
 
654
            prev="$cmd"
 
655
          done
 
656
 
 
657
          if test "$prev" != 'sed 50q "$0"'; then
 
658
            echo_test_string=`eval $prev`
 
659
            export echo_test_string
 
660
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
661
          else
 
662
            # Oops.  We lost completely, so just stick with echo.
 
663
            ECHO=echo
 
664
          fi
 
665
        fi
 
666
      fi
 
667
    fi
 
668
  fi
 
669
fi
 
670
 
 
671
# Copy echo and quote the copy suitably for passing to libtool from
 
672
# the Makefile, instead of quoting the original, which is used later.
 
673
lt_ECHO=$ECHO
 
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
675
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
676
fi
 
677
 
 
678
 
 
679
 
 
680
 
 
681
test -n "$DJDIR" || exec 7<&0 </dev/null
 
682
exec 6>&1
 
683
 
 
684
# Name of the host.
 
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
686
# so uname gets run too.
 
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
688
 
 
689
#
 
690
# Initializations.
 
691
#
 
692
ac_default_prefix=/usr/local
 
693
ac_clean_files=
 
694
ac_config_libobj_dir=.
 
695
LIBOBJS=
 
696
cross_compiling=no
 
697
subdirs=
 
698
MFLAGS=
 
699
MAKEFLAGS=
 
700
 
 
701
# Identity of this package.
 
702
PACKAGE_NAME='monit'
 
703
PACKAGE_TARNAME='monit'
 
704
PACKAGE_VERSION='5.5'
 
705
PACKAGE_STRING='monit 5.5'
 
706
PACKAGE_BUGREPORT='monit-general@nongnu.org'
 
707
PACKAGE_URL=''
 
708
 
 
709
ac_unique_file="src/monit.c"
 
710
enable_option_checking=no
 
711
# Factoring default headers for most tests.
 
712
ac_includes_default="\
 
713
#include <stdio.h>
 
714
#ifdef HAVE_SYS_TYPES_H
 
715
# include <sys/types.h>
 
716
#endif
 
717
#ifdef HAVE_SYS_STAT_H
 
718
# include <sys/stat.h>
 
719
#endif
 
720
#ifdef STDC_HEADERS
 
721
# include <stdlib.h>
 
722
# include <stddef.h>
 
723
#else
 
724
# ifdef HAVE_STDLIB_H
 
725
#  include <stdlib.h>
 
726
# endif
 
727
#endif
 
728
#ifdef HAVE_STRING_H
 
729
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
730
#  include <memory.h>
 
731
# endif
 
732
# include <string.h>
 
733
#endif
 
734
#ifdef HAVE_STRINGS_H
 
735
# include <strings.h>
 
736
#endif
 
737
#ifdef HAVE_INTTYPES_H
 
738
# include <inttypes.h>
 
739
#endif
 
740
#ifdef HAVE_STDINT_H
 
741
# include <stdint.h>
 
742
#endif
 
743
#ifdef HAVE_UNISTD_H
 
744
# include <unistd.h>
 
745
#endif"
 
746
 
 
747
ac_subst_vars='am__EXEEXT_FALSE
 
748
am__EXEEXT_TRUE
 
749
LTLIBOBJS
 
750
ssllibdir
 
751
sslincldir
 
752
ARCH
 
753
LIBOBJS
 
754
CPP
 
755
OTOOL64
 
756
OTOOL
 
757
LIPO
 
758
NMEDIT
 
759
DSYMUTIL
 
760
lt_ECHO
 
761
RANLIB
 
762
AR
 
763
OBJDUMP
 
764
LN_S
 
765
NM
 
766
ac_ct_DUMPBIN
 
767
DUMPBIN
 
768
LD
 
769
FGREP
 
770
EGREP
 
771
GREP
 
772
SED
 
773
host_os
 
774
host_vendor
 
775
host_cpu
 
776
host
 
777
build_os
 
778
build_vendor
 
779
build_cpu
 
780
build
 
781
LIBTOOL
 
782
POD2MANFLAGS
 
783
POD2MAN
 
784
FLEX
 
785
YACC
 
786
am__fastdepCC_FALSE
 
787
am__fastdepCC_TRUE
 
788
CCDEPMODE
 
789
AMDEPBACKSLASH
 
790
AMDEP_FALSE
 
791
AMDEP_TRUE
 
792
am__quote
 
793
am__include
 
794
DEPDIR
 
795
OBJEXT
 
796
EXEEXT
 
797
ac_ct_CC
 
798
CPPFLAGS
 
799
LDFLAGS
 
800
CFLAGS
 
801
CC
 
802
subdirs
 
803
am__untar
 
804
am__tar
 
805
AMTAR
 
806
am__leading_dot
 
807
SET_MAKE
 
808
AWK
 
809
mkdir_p
 
810
MKDIR_P
 
811
INSTALL_STRIP_PROGRAM
 
812
STRIP
 
813
install_sh
 
814
MAKEINFO
 
815
AUTOHEADER
 
816
AUTOMAKE
 
817
AUTOCONF
 
818
ACLOCAL
 
819
VERSION
 
820
PACKAGE
 
821
CYGPATH_W
 
822
am__isrc
 
823
INSTALL_DATA
 
824
INSTALL_SCRIPT
 
825
INSTALL_PROGRAM
 
826
target_alias
 
827
host_alias
 
828
build_alias
 
829
LIBS
 
830
ECHO_T
 
831
ECHO_N
 
832
ECHO_C
 
833
DEFS
 
834
mandir
 
835
localedir
 
836
libdir
 
837
psdir
 
838
pdfdir
 
839
dvidir
 
840
htmldir
 
841
infodir
 
842
docdir
 
843
oldincludedir
 
844
includedir
 
845
localstatedir
 
846
sharedstatedir
 
847
sysconfdir
 
848
datadir
 
849
datarootdir
 
850
libexecdir
 
851
sbindir
 
852
bindir
 
853
program_transform_name
 
854
prefix
 
855
exec_prefix
 
856
PACKAGE_URL
 
857
PACKAGE_BUGREPORT
 
858
PACKAGE_STRING
 
859
PACKAGE_VERSION
 
860
PACKAGE_TARNAME
 
861
PACKAGE_NAME
 
862
PATH_SEPARATOR
 
863
SHELL'
 
864
ac_subst_files=''
 
865
ac_user_opts='
 
866
enable_option_checking
 
867
enable_dependency_tracking
 
868
enable_static
 
869
enable_shared
 
870
with_pic
 
871
enable_fast_install
 
872
with_gnu_ld
 
873
enable_libtool_lock
 
874
enable_optimized
 
875
with_largefiles
 
876
enable_largefile
 
877
with_pam
 
878
with_ssl_static
 
879
with_ssl
 
880
with_ssl_dir
 
881
with_ssl_incl_dir
 
882
with_ssl_lib_dir
 
883
'
 
884
      ac_precious_vars='build_alias
 
885
host_alias
 
886
target_alias
 
887
CC
 
888
CFLAGS
 
889
LDFLAGS
 
890
LIBS
 
891
CPPFLAGS
 
892
CPP'
 
893
ac_subdirs_all='libmonit'
 
894
 
 
895
# Initialize some variables set by options.
 
896
ac_init_help=
 
897
ac_init_version=false
 
898
ac_unrecognized_opts=
 
899
ac_unrecognized_sep=
 
900
# The variables have the same names as the options, with
 
901
# dashes changed to underlines.
 
902
cache_file=/dev/null
 
903
exec_prefix=NONE
 
904
no_create=
 
905
no_recursion=
 
906
prefix=NONE
 
907
program_prefix=NONE
 
908
program_suffix=NONE
 
909
program_transform_name=s,x,x,
 
910
silent=
 
911
site=
 
912
srcdir=
 
913
verbose=
 
914
x_includes=NONE
 
915
x_libraries=NONE
 
916
 
 
917
# Installation directory options.
 
918
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
919
# and all the variables that are supposed to be based on exec_prefix
 
920
# by default will actually change.
 
921
# Use braces instead of parens because sh, perl, etc. also accept them.
 
922
# (The list follows the same order as the GNU Coding Standards.)
 
923
bindir='${exec_prefix}/bin'
 
924
sbindir='${exec_prefix}/sbin'
 
925
libexecdir='${exec_prefix}/libexec'
 
926
datarootdir='${prefix}/share'
 
927
datadir='${datarootdir}'
 
928
sysconfdir='${prefix}/etc'
 
929
sharedstatedir='${prefix}/com'
 
930
localstatedir='${prefix}/var'
 
931
includedir='${prefix}/include'
 
932
oldincludedir='/usr/include'
 
933
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
934
infodir='${datarootdir}/info'
 
935
htmldir='${docdir}'
 
936
dvidir='${docdir}'
 
937
pdfdir='${docdir}'
 
938
psdir='${docdir}'
 
939
libdir='${exec_prefix}/lib'
 
940
localedir='${datarootdir}/locale'
 
941
mandir='${datarootdir}/man'
 
942
 
 
943
ac_prev=
 
944
ac_dashdash=
 
945
for ac_option
 
946
do
 
947
  # If the previous option needs an argument, assign it.
 
948
  if test -n "$ac_prev"; then
 
949
    eval $ac_prev=\$ac_option
 
950
    ac_prev=
 
951
    continue
 
952
  fi
 
953
 
 
954
  case $ac_option in
 
955
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
956
  *)    ac_optarg=yes ;;
 
957
  esac
 
958
 
 
959
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
960
 
 
961
  case $ac_dashdash$ac_option in
 
962
  --)
 
963
    ac_dashdash=yes ;;
 
964
 
 
965
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
966
    ac_prev=bindir ;;
 
967
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
968
    bindir=$ac_optarg ;;
 
969
 
 
970
  -build | --build | --buil | --bui | --bu)
 
971
    ac_prev=build_alias ;;
 
972
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
973
    build_alias=$ac_optarg ;;
 
974
 
 
975
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
976
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
977
    ac_prev=cache_file ;;
 
978
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
979
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
980
    cache_file=$ac_optarg ;;
 
981
 
 
982
  --config-cache | -C)
 
983
    cache_file=config.cache ;;
 
984
 
 
985
  -datadir | --datadir | --datadi | --datad)
 
986
    ac_prev=datadir ;;
 
987
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
988
    datadir=$ac_optarg ;;
 
989
 
 
990
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
991
  | --dataroo | --dataro | --datar)
 
992
    ac_prev=datarootdir ;;
 
993
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
994
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
995
    datarootdir=$ac_optarg ;;
 
996
 
 
997
  -disable-* | --disable-*)
 
998
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
999
    # Reject names that are not valid shell variable names.
 
1000
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1001
      as_fn_error "invalid feature name: $ac_useropt"
 
1002
    ac_useropt_orig=$ac_useropt
 
1003
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1004
    case $ac_user_opts in
 
1005
      *"
 
1006
"enable_$ac_useropt"
 
1007
"*) ;;
 
1008
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1009
         ac_unrecognized_sep=', ';;
 
1010
    esac
 
1011
    eval enable_$ac_useropt=no ;;
 
1012
 
 
1013
  -docdir | --docdir | --docdi | --doc | --do)
 
1014
    ac_prev=docdir ;;
 
1015
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1016
    docdir=$ac_optarg ;;
 
1017
 
 
1018
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1019
    ac_prev=dvidir ;;
 
1020
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1021
    dvidir=$ac_optarg ;;
 
1022
 
 
1023
  -enable-* | --enable-*)
 
1024
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1025
    # Reject names that are not valid shell variable names.
 
1026
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1027
      as_fn_error "invalid feature name: $ac_useropt"
 
1028
    ac_useropt_orig=$ac_useropt
 
1029
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1030
    case $ac_user_opts in
 
1031
      *"
 
1032
"enable_$ac_useropt"
 
1033
"*) ;;
 
1034
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1035
         ac_unrecognized_sep=', ';;
 
1036
    esac
 
1037
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1038
 
 
1039
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1040
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1041
  | --exec | --exe | --ex)
 
1042
    ac_prev=exec_prefix ;;
 
1043
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1044
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1045
  | --exec=* | --exe=* | --ex=*)
 
1046
    exec_prefix=$ac_optarg ;;
 
1047
 
 
1048
  -gas | --gas | --ga | --g)
 
1049
    # Obsolete; use --with-gas.
 
1050
    with_gas=yes ;;
 
1051
 
 
1052
  -help | --help | --hel | --he | -h)
 
1053
    ac_init_help=long ;;
 
1054
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1055
    ac_init_help=recursive ;;
 
1056
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1057
    ac_init_help=short ;;
 
1058
 
 
1059
  -host | --host | --hos | --ho)
 
1060
    ac_prev=host_alias ;;
 
1061
  -host=* | --host=* | --hos=* | --ho=*)
 
1062
    host_alias=$ac_optarg ;;
 
1063
 
 
1064
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1065
    ac_prev=htmldir ;;
 
1066
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1067
  | --ht=*)
 
1068
    htmldir=$ac_optarg ;;
 
1069
 
 
1070
  -includedir | --includedir | --includedi | --included | --include \
 
1071
  | --includ | --inclu | --incl | --inc)
 
1072
    ac_prev=includedir ;;
 
1073
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1074
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1075
    includedir=$ac_optarg ;;
 
1076
 
 
1077
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1078
    ac_prev=infodir ;;
 
1079
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1080
    infodir=$ac_optarg ;;
 
1081
 
 
1082
  -libdir | --libdir | --libdi | --libd)
 
1083
    ac_prev=libdir ;;
 
1084
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1085
    libdir=$ac_optarg ;;
 
1086
 
 
1087
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1088
  | --libexe | --libex | --libe)
 
1089
    ac_prev=libexecdir ;;
 
1090
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1091
  | --libexe=* | --libex=* | --libe=*)
 
1092
    libexecdir=$ac_optarg ;;
 
1093
 
 
1094
  -localedir | --localedir | --localedi | --localed | --locale)
 
1095
    ac_prev=localedir ;;
 
1096
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1097
    localedir=$ac_optarg ;;
 
1098
 
 
1099
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1100
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1101
    ac_prev=localstatedir ;;
 
1102
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1103
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1104
    localstatedir=$ac_optarg ;;
 
1105
 
 
1106
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1107
    ac_prev=mandir ;;
 
1108
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1109
    mandir=$ac_optarg ;;
 
1110
 
 
1111
  -nfp | --nfp | --nf)
 
1112
    # Obsolete; use --without-fp.
 
1113
    with_fp=no ;;
 
1114
 
 
1115
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1116
  | --no-cr | --no-c | -n)
 
1117
    no_create=yes ;;
 
1118
 
 
1119
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1120
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1121
    no_recursion=yes ;;
 
1122
 
 
1123
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1124
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1125
  | --oldin | --oldi | --old | --ol | --o)
 
1126
    ac_prev=oldincludedir ;;
 
1127
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1128
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1129
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1130
    oldincludedir=$ac_optarg ;;
 
1131
 
 
1132
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1133
    ac_prev=prefix ;;
 
1134
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1135
    prefix=$ac_optarg ;;
 
1136
 
 
1137
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1138
  | --program-pre | --program-pr | --program-p)
 
1139
    ac_prev=program_prefix ;;
 
1140
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1141
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1142
    program_prefix=$ac_optarg ;;
 
1143
 
 
1144
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1145
  | --program-suf | --program-su | --program-s)
 
1146
    ac_prev=program_suffix ;;
 
1147
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1148
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1149
    program_suffix=$ac_optarg ;;
 
1150
 
 
1151
  -program-transform-name | --program-transform-name \
 
1152
  | --program-transform-nam | --program-transform-na \
 
1153
  | --program-transform-n | --program-transform- \
 
1154
  | --program-transform | --program-transfor \
 
1155
  | --program-transfo | --program-transf \
 
1156
  | --program-trans | --program-tran \
 
1157
  | --progr-tra | --program-tr | --program-t)
 
1158
    ac_prev=program_transform_name ;;
 
1159
  -program-transform-name=* | --program-transform-name=* \
 
1160
  | --program-transform-nam=* | --program-transform-na=* \
 
1161
  | --program-transform-n=* | --program-transform-=* \
 
1162
  | --program-transform=* | --program-transfor=* \
 
1163
  | --program-transfo=* | --program-transf=* \
 
1164
  | --program-trans=* | --program-tran=* \
 
1165
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1166
    program_transform_name=$ac_optarg ;;
 
1167
 
 
1168
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1169
    ac_prev=pdfdir ;;
 
1170
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1171
    pdfdir=$ac_optarg ;;
 
1172
 
 
1173
  -psdir | --psdir | --psdi | --psd | --ps)
 
1174
    ac_prev=psdir ;;
 
1175
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1176
    psdir=$ac_optarg ;;
 
1177
 
 
1178
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1179
  | -silent | --silent | --silen | --sile | --sil)
 
1180
    silent=yes ;;
 
1181
 
 
1182
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1183
    ac_prev=sbindir ;;
 
1184
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1185
  | --sbi=* | --sb=*)
 
1186
    sbindir=$ac_optarg ;;
 
1187
 
 
1188
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1189
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1190
  | --sharedst | --shareds | --shared | --share | --shar \
 
1191
  | --sha | --sh)
 
1192
    ac_prev=sharedstatedir ;;
 
1193
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1194
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1195
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1196
  | --sha=* | --sh=*)
 
1197
    sharedstatedir=$ac_optarg ;;
 
1198
 
 
1199
  -site | --site | --sit)
 
1200
    ac_prev=site ;;
 
1201
  -site=* | --site=* | --sit=*)
 
1202
    site=$ac_optarg ;;
 
1203
 
 
1204
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1205
    ac_prev=srcdir ;;
 
1206
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1207
    srcdir=$ac_optarg ;;
 
1208
 
 
1209
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1210
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1211
    ac_prev=sysconfdir ;;
 
1212
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1213
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1214
    sysconfdir=$ac_optarg ;;
 
1215
 
 
1216
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1217
    ac_prev=target_alias ;;
 
1218
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1219
    target_alias=$ac_optarg ;;
 
1220
 
 
1221
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1222
    verbose=yes ;;
 
1223
 
 
1224
  -version | --version | --versio | --versi | --vers | -V)
 
1225
    ac_init_version=: ;;
 
1226
 
 
1227
  -with-* | --with-*)
 
1228
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1229
    # Reject names that are not valid shell variable names.
 
1230
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1231
      as_fn_error "invalid package name: $ac_useropt"
 
1232
    ac_useropt_orig=$ac_useropt
 
1233
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1234
    case $ac_user_opts in
 
1235
      *"
 
1236
"with_$ac_useropt"
 
1237
"*) ;;
 
1238
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1239
         ac_unrecognized_sep=', ';;
 
1240
    esac
 
1241
    eval with_$ac_useropt=\$ac_optarg ;;
 
1242
 
 
1243
  -without-* | --without-*)
 
1244
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1245
    # Reject names that are not valid shell variable names.
 
1246
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1247
      as_fn_error "invalid package name: $ac_useropt"
 
1248
    ac_useropt_orig=$ac_useropt
 
1249
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1250
    case $ac_user_opts in
 
1251
      *"
 
1252
"with_$ac_useropt"
 
1253
"*) ;;
 
1254
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1255
         ac_unrecognized_sep=', ';;
 
1256
    esac
 
1257
    eval with_$ac_useropt=no ;;
 
1258
 
 
1259
  --x)
 
1260
    # Obsolete; use --with-x.
 
1261
    with_x=yes ;;
 
1262
 
 
1263
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1264
  | --x-incl | --x-inc | --x-in | --x-i)
 
1265
    ac_prev=x_includes ;;
 
1266
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1267
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1268
    x_includes=$ac_optarg ;;
 
1269
 
 
1270
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1271
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1272
    ac_prev=x_libraries ;;
 
1273
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1274
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1275
    x_libraries=$ac_optarg ;;
 
1276
 
 
1277
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1278
Try \`$0 --help' for more information."
 
1279
    ;;
 
1280
 
 
1281
  *=*)
 
1282
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1283
    # Reject names that are not valid shell variable names.
 
1284
    case $ac_envvar in #(
 
1285
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1286
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1287
    esac
 
1288
    eval $ac_envvar=\$ac_optarg
 
1289
    export $ac_envvar ;;
 
1290
 
 
1291
  *)
 
1292
    # FIXME: should be removed in autoconf 3.0.
 
1293
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1294
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1295
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1296
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1297
    ;;
 
1298
 
 
1299
  esac
 
1300
done
 
1301
 
 
1302
if test -n "$ac_prev"; then
 
1303
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1304
  as_fn_error "missing argument to $ac_option"
 
1305
fi
 
1306
 
 
1307
if test -n "$ac_unrecognized_opts"; then
 
1308
  case $enable_option_checking in
 
1309
    no) ;;
 
1310
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1311
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1312
  esac
 
1313
fi
 
1314
 
 
1315
# Check all directory arguments for consistency.
 
1316
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1317
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1318
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1319
                libdir localedir mandir
 
1320
do
 
1321
  eval ac_val=\$$ac_var
 
1322
  # Remove trailing slashes.
 
1323
  case $ac_val in
 
1324
    */ )
 
1325
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1326
      eval $ac_var=\$ac_val;;
 
1327
  esac
 
1328
  # Be sure to have absolute directory names.
 
1329
  case $ac_val in
 
1330
    [\\/$]* | ?:[\\/]* )  continue;;
 
1331
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1332
  esac
 
1333
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1334
done
 
1335
 
 
1336
# There might be people who depend on the old broken behavior: `$host'
 
1337
# used to hold the argument of --host etc.
 
1338
# FIXME: To remove some day.
 
1339
build=$build_alias
 
1340
host=$host_alias
 
1341
target=$target_alias
 
1342
 
 
1343
# FIXME: To remove some day.
 
1344
if test "x$host_alias" != x; then
 
1345
  if test "x$build_alias" = x; then
 
1346
    cross_compiling=maybe
 
1347
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1348
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1349
  elif test "x$build_alias" != "x$host_alias"; then
 
1350
    cross_compiling=yes
 
1351
  fi
 
1352
fi
 
1353
 
 
1354
ac_tool_prefix=
 
1355
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1356
 
 
1357
test "$silent" = yes && exec 6>/dev/null
 
1358
 
 
1359
 
 
1360
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1361
ac_ls_di=`ls -di .` &&
 
1362
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1363
  as_fn_error "working directory cannot be determined"
 
1364
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1365
  as_fn_error "pwd does not report name of working directory"
 
1366
 
 
1367
 
 
1368
# Find the source files, if location was not specified.
 
1369
if test -z "$srcdir"; then
 
1370
  ac_srcdir_defaulted=yes
 
1371
  # Try the directory containing this script, then the parent directory.
 
1372
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1373
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1374
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1375
         X"$as_myself" : 'X\(//\)$' \| \
 
1376
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1377
$as_echo X"$as_myself" |
 
1378
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1379
            s//\1/
 
1380
            q
 
1381
          }
 
1382
          /^X\(\/\/\)[^/].*/{
 
1383
            s//\1/
 
1384
            q
 
1385
          }
 
1386
          /^X\(\/\/\)$/{
 
1387
            s//\1/
 
1388
            q
 
1389
          }
 
1390
          /^X\(\/\).*/{
 
1391
            s//\1/
 
1392
            q
 
1393
          }
 
1394
          s/.*/./; q'`
 
1395
  srcdir=$ac_confdir
 
1396
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1397
    srcdir=..
 
1398
  fi
 
1399
else
 
1400
  ac_srcdir_defaulted=no
 
1401
fi
 
1402
if test ! -r "$srcdir/$ac_unique_file"; then
 
1403
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1404
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1405
fi
 
1406
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1407
ac_abs_confdir=`(
 
1408
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1409
        pwd)`
 
1410
# When building in place, set srcdir=.
 
1411
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1412
  srcdir=.
 
1413
fi
 
1414
# Remove unnecessary trailing slashes from srcdir.
 
1415
# Double slashes in file names in object file debugging info
 
1416
# mess up M-x gdb in Emacs.
 
1417
case $srcdir in
 
1418
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1419
esac
 
1420
for ac_var in $ac_precious_vars; do
 
1421
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1422
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1423
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1424
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1425
done
 
1426
 
 
1427
#
 
1428
# Report the --help message.
 
1429
#
 
1430
if test "$ac_init_help" = "long"; then
 
1431
  # Omit some internal or obsolete options to make the list less imposing.
 
1432
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1433
  cat <<_ACEOF
 
1434
\`configure' configures monit 5.5 to adapt to many kinds of systems.
 
1435
 
 
1436
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1437
 
 
1438
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1439
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1440
 
 
1441
Defaults for the options are specified in brackets.
 
1442
 
 
1443
Configuration:
 
1444
  -h, --help              display this help and exit
 
1445
      --help=short        display options specific to this package
 
1446
      --help=recursive    display the short help of all the included packages
 
1447
  -V, --version           display version information and exit
 
1448
  -q, --quiet, --silent   do not print \`checking...' messages
 
1449
      --cache-file=FILE   cache test results in FILE [disabled]
 
1450
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1451
  -n, --no-create         do not create output files
 
1452
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1453
 
 
1454
Installation directories:
 
1455
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1456
                          [$ac_default_prefix]
 
1457
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1458
                          [PREFIX]
 
1459
 
 
1460
By default, \`make install' will install all the files in
 
1461
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1462
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1463
for instance \`--prefix=\$HOME'.
 
1464
 
 
1465
For better control, use the options below.
 
1466
 
 
1467
Fine tuning of the installation directories:
 
1468
  --bindir=DIR            user executables [EPREFIX/bin]
 
1469
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1470
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1471
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1472
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1473
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1474
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1475
  --includedir=DIR        C header files [PREFIX/include]
 
1476
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1477
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1478
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1479
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1480
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1481
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1482
  --docdir=DIR            documentation root [DATAROOTDIR/doc/monit]
 
1483
  --htmldir=DIR           html documentation [DOCDIR]
 
1484
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1485
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1486
  --psdir=DIR             ps documentation [DOCDIR]
 
1487
_ACEOF
 
1488
 
 
1489
  cat <<\_ACEOF
 
1490
 
 
1491
Program names:
 
1492
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1493
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1494
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1495
 
 
1496
System types:
 
1497
  --build=BUILD     configure for building on BUILD [guessed]
 
1498
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1499
_ACEOF
 
1500
fi
 
1501
 
 
1502
if test -n "$ac_init_help"; then
 
1503
  case $ac_init_help in
 
1504
     short | recursive ) echo "Configuration of monit 5.5:";;
 
1505
   esac
 
1506
  cat <<\_ACEOF
 
1507
 
 
1508
Optional Features:
 
1509
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1510
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1511
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1512
  --disable-dependency-tracking  speeds up one-time build
 
1513
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1514
  --enable-static[=PKGS]  build static libraries [default=no]
 
1515
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1516
  --enable-fast-install[=PKGS]
 
1517
                          optimize for fast installation [default=yes]
 
1518
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1519
  --enable-optimized      Build software optimized
 
1520
  --disable-largefile     omit support for large files
 
1521
 
 
1522
Optional Packages:
 
1523
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1524
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1525
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1526
                          both]
 
1527
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1528
  --without-largefiles    disable large files support (default: enabled)
 
1529
  --without-pam           disable the use of pam (default: enabled)
 
1530
  --with-ssl-static=DIR       location of SSL installation
 
1531
  --without-ssl           disable the use of ssl (default: enabled)
 
1532
  --with-ssl-dir=DIR       location of SSL installation
 
1533
  --with-ssl-incl-dir=DIR  location of installed SSL include files
 
1534
  --with-ssl-lib-dir=DIR   location of installed SSL library files
 
1535
 
 
1536
Some influential environment variables:
 
1537
  CC          C compiler command
 
1538
  CFLAGS      C compiler flags
 
1539
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1540
              nonstandard directory <lib dir>
 
1541
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1542
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1543
              you have headers in a nonstandard directory <include dir>
 
1544
  CPP         C preprocessor
 
1545
 
 
1546
Use these variables to override the choices made by `configure' or to help
 
1547
it to find libraries and programs with nonstandard names/locations.
 
1548
 
 
1549
Report bugs to <monit-general@nongnu.org>.
 
1550
_ACEOF
 
1551
ac_status=$?
 
1552
fi
 
1553
 
 
1554
if test "$ac_init_help" = "recursive"; then
 
1555
  # If there are subdirs, report their specific --help.
 
1556
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1557
    test -d "$ac_dir" ||
 
1558
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1559
      continue
 
1560
    ac_builddir=.
 
1561
 
 
1562
case "$ac_dir" in
 
1563
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1564
*)
 
1565
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1566
  # A ".." for each directory in $ac_dir_suffix.
 
1567
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1568
  case $ac_top_builddir_sub in
 
1569
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1570
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1571
  esac ;;
 
1572
esac
 
1573
ac_abs_top_builddir=$ac_pwd
 
1574
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1575
# for backward compatibility:
 
1576
ac_top_builddir=$ac_top_build_prefix
 
1577
 
 
1578
case $srcdir in
 
1579
  .)  # We are building in place.
 
1580
    ac_srcdir=.
 
1581
    ac_top_srcdir=$ac_top_builddir_sub
 
1582
    ac_abs_top_srcdir=$ac_pwd ;;
 
1583
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1584
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1585
    ac_top_srcdir=$srcdir
 
1586
    ac_abs_top_srcdir=$srcdir ;;
 
1587
  *) # Relative name.
 
1588
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1589
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1590
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1591
esac
 
1592
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1593
 
 
1594
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1595
    # Check for guested configure.
 
1596
    if test -f "$ac_srcdir/configure.gnu"; then
 
1597
      echo &&
 
1598
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1599
    elif test -f "$ac_srcdir/configure"; then
 
1600
      echo &&
 
1601
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1602
    else
 
1603
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1604
    fi || ac_status=$?
 
1605
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1606
  done
 
1607
fi
 
1608
 
 
1609
test -n "$ac_init_help" && exit $ac_status
 
1610
if $ac_init_version; then
 
1611
  cat <<\_ACEOF
 
1612
monit configure 5.5
 
1613
generated by GNU Autoconf 2.65
 
1614
 
 
1615
Copyright (C) 2009 Free Software Foundation, Inc.
 
1616
This configure script is free software; the Free Software Foundation
 
1617
gives unlimited permission to copy, distribute and modify it.
 
1618
_ACEOF
 
1619
  exit
 
1620
fi
 
1621
 
 
1622
## ------------------------ ##
 
1623
## Autoconf initialization. ##
 
1624
## ------------------------ ##
 
1625
 
 
1626
# ac_fn_c_try_compile LINENO
 
1627
# --------------------------
 
1628
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1629
ac_fn_c_try_compile ()
 
1630
{
 
1631
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1632
  rm -f conftest.$ac_objext
 
1633
  if { { ac_try="$ac_compile"
 
1634
case "(($ac_try" in
 
1635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1636
  *) ac_try_echo=$ac_try;;
 
1637
esac
 
1638
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1639
$as_echo "$ac_try_echo"; } >&5
 
1640
  (eval "$ac_compile") 2>conftest.err
 
1641
  ac_status=$?
 
1642
  if test -s conftest.err; then
 
1643
    grep -v '^ *+' conftest.err >conftest.er1
 
1644
    cat conftest.er1 >&5
 
1645
    mv -f conftest.er1 conftest.err
 
1646
  fi
 
1647
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1648
  test $ac_status = 0; } && {
 
1649
         test -z "$ac_c_werror_flag" ||
 
1650
         test ! -s conftest.err
 
1651
       } && test -s conftest.$ac_objext; then :
 
1652
  ac_retval=0
 
1653
else
 
1654
  $as_echo "$as_me: failed program was:" >&5
 
1655
sed 's/^/| /' conftest.$ac_ext >&5
 
1656
 
 
1657
        ac_retval=1
 
1658
fi
 
1659
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1660
  as_fn_set_status $ac_retval
 
1661
 
 
1662
} # ac_fn_c_try_compile
 
1663
 
 
1664
# ac_fn_c_try_link LINENO
 
1665
# -----------------------
 
1666
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1667
ac_fn_c_try_link ()
 
1668
{
 
1669
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1670
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1671
  if { { ac_try="$ac_link"
 
1672
case "(($ac_try" in
 
1673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1674
  *) ac_try_echo=$ac_try;;
 
1675
esac
 
1676
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1677
$as_echo "$ac_try_echo"; } >&5
 
1678
  (eval "$ac_link") 2>conftest.err
 
1679
  ac_status=$?
 
1680
  if test -s conftest.err; then
 
1681
    grep -v '^ *+' conftest.err >conftest.er1
 
1682
    cat conftest.er1 >&5
 
1683
    mv -f conftest.er1 conftest.err
 
1684
  fi
 
1685
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1686
  test $ac_status = 0; } && {
 
1687
         test -z "$ac_c_werror_flag" ||
 
1688
         test ! -s conftest.err
 
1689
       } && test -s conftest$ac_exeext && {
 
1690
         test "$cross_compiling" = yes ||
 
1691
         $as_test_x conftest$ac_exeext
 
1692
       }; then :
 
1693
  ac_retval=0
 
1694
else
 
1695
  $as_echo "$as_me: failed program was:" >&5
 
1696
sed 's/^/| /' conftest.$ac_ext >&5
 
1697
 
 
1698
        ac_retval=1
 
1699
fi
 
1700
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1701
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1702
  # interfere with the next link command; also delete a directory that is
 
1703
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1704
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1705
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1706
  as_fn_set_status $ac_retval
 
1707
 
 
1708
} # ac_fn_c_try_link
 
1709
 
 
1710
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1711
# -------------------------------------------------------
 
1712
# Tests whether HEADER exists and can be compiled using the include files in
 
1713
# INCLUDES, setting the cache variable VAR accordingly.
 
1714
ac_fn_c_check_header_compile ()
 
1715
{
 
1716
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1717
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1718
$as_echo_n "checking for $2... " >&6; }
 
1719
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1720
  $as_echo_n "(cached) " >&6
 
1721
else
 
1722
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1723
/* end confdefs.h.  */
 
1724
$4
 
1725
#include <$2>
 
1726
_ACEOF
 
1727
if ac_fn_c_try_compile "$LINENO"; then :
 
1728
  eval "$3=yes"
 
1729
else
 
1730
  eval "$3=no"
 
1731
fi
 
1732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1733
fi
 
1734
eval ac_res=\$$3
 
1735
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1736
$as_echo "$ac_res" >&6; }
 
1737
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1738
 
 
1739
} # ac_fn_c_check_header_compile
 
1740
 
 
1741
# ac_fn_c_try_cpp LINENO
 
1742
# ----------------------
 
1743
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1744
ac_fn_c_try_cpp ()
 
1745
{
 
1746
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1747
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1748
case "(($ac_try" in
 
1749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1750
  *) ac_try_echo=$ac_try;;
 
1751
esac
 
1752
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1753
$as_echo "$ac_try_echo"; } >&5
 
1754
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1755
  ac_status=$?
 
1756
  if test -s conftest.err; then
 
1757
    grep -v '^ *+' conftest.err >conftest.er1
 
1758
    cat conftest.er1 >&5
 
1759
    mv -f conftest.er1 conftest.err
 
1760
  fi
 
1761
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1762
  test $ac_status = 0; } >/dev/null && {
 
1763
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1764
         test ! -s conftest.err
 
1765
       }; then :
 
1766
  ac_retval=0
 
1767
else
 
1768
  $as_echo "$as_me: failed program was:" >&5
 
1769
sed 's/^/| /' conftest.$ac_ext >&5
 
1770
 
 
1771
    ac_retval=1
 
1772
fi
 
1773
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1774
  as_fn_set_status $ac_retval
 
1775
 
 
1776
} # ac_fn_c_try_cpp
 
1777
 
 
1778
# ac_fn_c_try_run LINENO
 
1779
# ----------------------
 
1780
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1781
# that executables *can* be run.
 
1782
ac_fn_c_try_run ()
 
1783
{
 
1784
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1785
  if { { ac_try="$ac_link"
 
1786
case "(($ac_try" in
 
1787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1788
  *) ac_try_echo=$ac_try;;
 
1789
esac
 
1790
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1791
$as_echo "$ac_try_echo"; } >&5
 
1792
  (eval "$ac_link") 2>&5
 
1793
  ac_status=$?
 
1794
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1795
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1796
  { { case "(($ac_try" in
 
1797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1798
  *) ac_try_echo=$ac_try;;
 
1799
esac
 
1800
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1801
$as_echo "$ac_try_echo"; } >&5
 
1802
  (eval "$ac_try") 2>&5
 
1803
  ac_status=$?
 
1804
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1805
  test $ac_status = 0; }; }; then :
 
1806
  ac_retval=0
 
1807
else
 
1808
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1809
       $as_echo "$as_me: failed program was:" >&5
 
1810
sed 's/^/| /' conftest.$ac_ext >&5
 
1811
 
 
1812
       ac_retval=$ac_status
 
1813
fi
 
1814
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1815
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1816
  as_fn_set_status $ac_retval
 
1817
 
 
1818
} # ac_fn_c_try_run
 
1819
 
 
1820
# ac_fn_c_check_func LINENO FUNC VAR
 
1821
# ----------------------------------
 
1822
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1823
ac_fn_c_check_func ()
 
1824
{
 
1825
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1826
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1827
$as_echo_n "checking for $2... " >&6; }
 
1828
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1829
  $as_echo_n "(cached) " >&6
 
1830
else
 
1831
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1832
/* end confdefs.h.  */
 
1833
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1834
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1835
#define $2 innocuous_$2
 
1836
 
 
1837
/* System header to define __stub macros and hopefully few prototypes,
 
1838
    which can conflict with char $2 (); below.
 
1839
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1840
    <limits.h> exists even on freestanding compilers.  */
 
1841
 
 
1842
#ifdef __STDC__
 
1843
# include <limits.h>
 
1844
#else
 
1845
# include <assert.h>
 
1846
#endif
 
1847
 
 
1848
#undef $2
 
1849
 
 
1850
/* Override any GCC internal prototype to avoid an error.
 
1851
   Use char because int might match the return type of a GCC
 
1852
   builtin and then its argument prototype would still apply.  */
 
1853
#ifdef __cplusplus
 
1854
extern "C"
 
1855
#endif
 
1856
char $2 ();
 
1857
/* The GNU C library defines this for functions which it implements
 
1858
    to always fail with ENOSYS.  Some functions are actually named
 
1859
    something starting with __ and the normal name is an alias.  */
 
1860
#if defined __stub_$2 || defined __stub___$2
 
1861
choke me
 
1862
#endif
 
1863
 
 
1864
int
 
1865
main ()
 
1866
{
 
1867
return $2 ();
 
1868
  ;
 
1869
  return 0;
 
1870
}
 
1871
_ACEOF
 
1872
if ac_fn_c_try_link "$LINENO"; then :
 
1873
  eval "$3=yes"
 
1874
else
 
1875
  eval "$3=no"
 
1876
fi
 
1877
rm -f core conftest.err conftest.$ac_objext \
 
1878
    conftest$ac_exeext conftest.$ac_ext
 
1879
fi
 
1880
eval ac_res=\$$3
 
1881
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1882
$as_echo "$ac_res" >&6; }
 
1883
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1884
 
 
1885
} # ac_fn_c_check_func
 
1886
 
 
1887
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1888
# -------------------------------------------------------
 
1889
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1890
# the include files in INCLUDES and setting the cache variable VAR
 
1891
# accordingly.
 
1892
ac_fn_c_check_header_mongrel ()
 
1893
{
 
1894
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1895
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1896
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1897
$as_echo_n "checking for $2... " >&6; }
 
1898
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1899
  $as_echo_n "(cached) " >&6
 
1900
fi
 
1901
eval ac_res=\$$3
 
1902
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1903
$as_echo "$ac_res" >&6; }
 
1904
else
 
1905
  # Is the header compilable?
 
1906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1907
$as_echo_n "checking $2 usability... " >&6; }
 
1908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1909
/* end confdefs.h.  */
 
1910
$4
 
1911
#include <$2>
 
1912
_ACEOF
 
1913
if ac_fn_c_try_compile "$LINENO"; then :
 
1914
  ac_header_compiler=yes
 
1915
else
 
1916
  ac_header_compiler=no
 
1917
fi
 
1918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1920
$as_echo "$ac_header_compiler" >&6; }
 
1921
 
 
1922
# Is the header present?
 
1923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1924
$as_echo_n "checking $2 presence... " >&6; }
 
1925
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1926
/* end confdefs.h.  */
 
1927
#include <$2>
 
1928
_ACEOF
 
1929
if ac_fn_c_try_cpp "$LINENO"; then :
 
1930
  ac_header_preproc=yes
 
1931
else
 
1932
  ac_header_preproc=no
 
1933
fi
 
1934
rm -f conftest.err conftest.$ac_ext
 
1935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1936
$as_echo "$ac_header_preproc" >&6; }
 
1937
 
 
1938
# So?  What about this header?
 
1939
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1940
  yes:no: )
 
1941
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1942
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1943
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1944
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1945
    ;;
 
1946
  no:yes:* )
 
1947
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1948
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1949
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1950
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1951
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1952
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1953
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1954
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1955
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1956
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1957
( cat <<\_ASBOX
 
1958
## --------------------------------------- ##
 
1959
## Report this to monit-general@nongnu.org ##
 
1960
## --------------------------------------- ##
 
1961
_ASBOX
 
1962
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1963
    ;;
 
1964
esac
 
1965
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1966
$as_echo_n "checking for $2... " >&6; }
 
1967
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1968
  $as_echo_n "(cached) " >&6
 
1969
else
 
1970
  eval "$3=\$ac_header_compiler"
 
1971
fi
 
1972
eval ac_res=\$$3
 
1973
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1974
$as_echo "$ac_res" >&6; }
 
1975
fi
 
1976
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1977
 
 
1978
} # ac_fn_c_check_header_mongrel
 
1979
 
 
1980
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1981
# -------------------------------------------
 
1982
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1983
# variable VAR accordingly.
 
1984
ac_fn_c_check_type ()
 
1985
{
 
1986
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1987
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1988
$as_echo_n "checking for $2... " >&6; }
 
1989
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1990
  $as_echo_n "(cached) " >&6
 
1991
else
 
1992
  eval "$3=no"
 
1993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1994
/* end confdefs.h.  */
 
1995
$4
 
1996
int
 
1997
main ()
 
1998
{
 
1999
if (sizeof ($2))
 
2000
         return 0;
 
2001
  ;
 
2002
  return 0;
 
2003
}
 
2004
_ACEOF
 
2005
if ac_fn_c_try_compile "$LINENO"; then :
 
2006
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2007
/* end confdefs.h.  */
 
2008
$4
 
2009
int
 
2010
main ()
 
2011
{
 
2012
if (sizeof (($2)))
 
2013
            return 0;
 
2014
  ;
 
2015
  return 0;
 
2016
}
 
2017
_ACEOF
 
2018
if ac_fn_c_try_compile "$LINENO"; then :
 
2019
 
 
2020
else
 
2021
  eval "$3=yes"
 
2022
fi
 
2023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2024
fi
 
2025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2026
fi
 
2027
eval ac_res=\$$3
 
2028
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2029
$as_echo "$ac_res" >&6; }
 
2030
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2031
 
 
2032
} # ac_fn_c_check_type
 
2033
 
 
2034
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2035
# ----------------------------------------------------
 
2036
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2037
# INCLUDES, setting cache variable VAR accordingly.
 
2038
ac_fn_c_check_member ()
 
2039
{
 
2040
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2041
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2042
$as_echo_n "checking for $2.$3... " >&6; }
 
2043
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2044
  $as_echo_n "(cached) " >&6
 
2045
else
 
2046
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2047
/* end confdefs.h.  */
 
2048
$5
 
2049
int
 
2050
main ()
 
2051
{
 
2052
static $2 ac_aggr;
 
2053
if (ac_aggr.$3)
 
2054
return 0;
 
2055
  ;
 
2056
  return 0;
 
2057
}
 
2058
_ACEOF
 
2059
if ac_fn_c_try_compile "$LINENO"; then :
 
2060
  eval "$4=yes"
 
2061
else
 
2062
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2063
/* end confdefs.h.  */
 
2064
$5
 
2065
int
 
2066
main ()
 
2067
{
 
2068
static $2 ac_aggr;
 
2069
if (sizeof ac_aggr.$3)
 
2070
return 0;
 
2071
  ;
 
2072
  return 0;
 
2073
}
 
2074
_ACEOF
 
2075
if ac_fn_c_try_compile "$LINENO"; then :
 
2076
  eval "$4=yes"
 
2077
else
 
2078
  eval "$4=no"
 
2079
fi
 
2080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2081
fi
 
2082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2083
fi
 
2084
eval ac_res=\$$4
 
2085
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2086
$as_echo "$ac_res" >&6; }
 
2087
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2088
 
 
2089
} # ac_fn_c_check_member
 
2090
cat >config.log <<_ACEOF
 
2091
This file contains any messages produced by compilers while
 
2092
running configure, to aid debugging if configure makes a mistake.
 
2093
 
 
2094
It was created by monit $as_me 5.5, which was
 
2095
generated by GNU Autoconf 2.65.  Invocation command line was
 
2096
 
 
2097
  $ $0 $@
 
2098
 
 
2099
_ACEOF
 
2100
exec 5>>config.log
 
2101
{
 
2102
cat <<_ASUNAME
 
2103
## --------- ##
 
2104
## Platform. ##
 
2105
## --------- ##
 
2106
 
 
2107
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2108
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2109
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2110
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2111
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2112
 
 
2113
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2114
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2115
 
 
2116
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2117
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2118
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2119
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2120
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2121
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2122
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2123
 
 
2124
_ASUNAME
 
2125
 
 
2126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2127
for as_dir in $PATH
 
2128
do
 
2129
  IFS=$as_save_IFS
 
2130
  test -z "$as_dir" && as_dir=.
 
2131
    $as_echo "PATH: $as_dir"
 
2132
  done
 
2133
IFS=$as_save_IFS
 
2134
 
 
2135
} >&5
 
2136
 
 
2137
cat >&5 <<_ACEOF
 
2138
 
 
2139
 
 
2140
## ----------- ##
 
2141
## Core tests. ##
 
2142
## ----------- ##
 
2143
 
 
2144
_ACEOF
 
2145
 
 
2146
 
 
2147
# Keep a trace of the command line.
 
2148
# Strip out --no-create and --no-recursion so they do not pile up.
 
2149
# Strip out --silent because we don't want to record it for future runs.
 
2150
# Also quote any args containing shell meta-characters.
 
2151
# Make two passes to allow for proper duplicate-argument suppression.
 
2152
ac_configure_args=
 
2153
ac_configure_args0=
 
2154
ac_configure_args1=
 
2155
ac_must_keep_next=false
 
2156
for ac_pass in 1 2
 
2157
do
 
2158
  for ac_arg
 
2159
  do
 
2160
    case $ac_arg in
 
2161
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2162
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2163
    | -silent | --silent | --silen | --sile | --sil)
 
2164
      continue ;;
 
2165
    *\'*)
 
2166
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2167
    esac
 
2168
    case $ac_pass in
 
2169
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2170
    2)
 
2171
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2172
      if test $ac_must_keep_next = true; then
 
2173
        ac_must_keep_next=false # Got value, back to normal.
 
2174
      else
 
2175
        case $ac_arg in
 
2176
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2177
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2178
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2179
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2180
            case "$ac_configure_args0 " in
 
2181
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2182
            esac
 
2183
            ;;
 
2184
          -* ) ac_must_keep_next=true ;;
 
2185
        esac
 
2186
      fi
 
2187
      as_fn_append ac_configure_args " '$ac_arg'"
 
2188
      ;;
 
2189
    esac
 
2190
  done
 
2191
done
 
2192
{ ac_configure_args0=; unset ac_configure_args0;}
 
2193
{ ac_configure_args1=; unset ac_configure_args1;}
 
2194
 
 
2195
# When interrupted or exit'd, cleanup temporary files, and complete
 
2196
# config.log.  We remove comments because anyway the quotes in there
 
2197
# would cause problems or look ugly.
 
2198
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2199
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2200
trap 'exit_status=$?
 
2201
  # Save into config.log some information that might help in debugging.
 
2202
  {
 
2203
    echo
 
2204
 
 
2205
    cat <<\_ASBOX
 
2206
## ---------------- ##
 
2207
## Cache variables. ##
 
2208
## ---------------- ##
 
2209
_ASBOX
 
2210
    echo
 
2211
    # The following way of writing the cache mishandles newlines in values,
 
2212
(
 
2213
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2214
    eval ac_val=\$$ac_var
 
2215
    case $ac_val in #(
 
2216
    *${as_nl}*)
 
2217
      case $ac_var in #(
 
2218
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2219
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2220
      esac
 
2221
      case $ac_var in #(
 
2222
      _ | IFS | as_nl) ;; #(
 
2223
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2224
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2225
      esac ;;
 
2226
    esac
 
2227
  done
 
2228
  (set) 2>&1 |
 
2229
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2230
    *${as_nl}ac_space=\ *)
 
2231
      sed -n \
 
2232
        "s/'\''/'\''\\\\'\'''\''/g;
 
2233
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2234
      ;; #(
 
2235
    *)
 
2236
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2237
      ;;
 
2238
    esac |
 
2239
    sort
 
2240
)
 
2241
    echo
 
2242
 
 
2243
    cat <<\_ASBOX
 
2244
## ----------------- ##
 
2245
## Output variables. ##
 
2246
## ----------------- ##
 
2247
_ASBOX
 
2248
    echo
 
2249
    for ac_var in $ac_subst_vars
 
2250
    do
 
2251
      eval ac_val=\$$ac_var
 
2252
      case $ac_val in
 
2253
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2254
      esac
 
2255
      $as_echo "$ac_var='\''$ac_val'\''"
 
2256
    done | sort
 
2257
    echo
 
2258
 
 
2259
    if test -n "$ac_subst_files"; then
 
2260
      cat <<\_ASBOX
 
2261
## ------------------- ##
 
2262
## File substitutions. ##
 
2263
## ------------------- ##
 
2264
_ASBOX
 
2265
      echo
 
2266
      for ac_var in $ac_subst_files
 
2267
      do
 
2268
        eval ac_val=\$$ac_var
 
2269
        case $ac_val in
 
2270
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2271
        esac
 
2272
        $as_echo "$ac_var='\''$ac_val'\''"
 
2273
      done | sort
 
2274
      echo
 
2275
    fi
 
2276
 
 
2277
    if test -s confdefs.h; then
 
2278
      cat <<\_ASBOX
 
2279
## ----------- ##
 
2280
## confdefs.h. ##
 
2281
## ----------- ##
 
2282
_ASBOX
 
2283
      echo
 
2284
      cat confdefs.h
 
2285
      echo
 
2286
    fi
 
2287
    test "$ac_signal" != 0 &&
 
2288
      $as_echo "$as_me: caught signal $ac_signal"
 
2289
    $as_echo "$as_me: exit $exit_status"
 
2290
  } >&5
 
2291
  rm -f core *.core core.conftest.* &&
 
2292
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2293
    exit $exit_status
 
2294
' 0
 
2295
for ac_signal in 1 2 13 15; do
 
2296
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2297
done
 
2298
ac_signal=0
 
2299
 
 
2300
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2301
rm -f -r conftest* confdefs.h
 
2302
 
 
2303
$as_echo "/* confdefs.h */" > confdefs.h
 
2304
 
 
2305
# Predefined preprocessor variables.
 
2306
 
 
2307
cat >>confdefs.h <<_ACEOF
 
2308
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2309
_ACEOF
 
2310
 
 
2311
cat >>confdefs.h <<_ACEOF
 
2312
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2313
_ACEOF
 
2314
 
 
2315
cat >>confdefs.h <<_ACEOF
 
2316
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2317
_ACEOF
 
2318
 
 
2319
cat >>confdefs.h <<_ACEOF
 
2320
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2321
_ACEOF
 
2322
 
 
2323
cat >>confdefs.h <<_ACEOF
 
2324
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2325
_ACEOF
 
2326
 
 
2327
cat >>confdefs.h <<_ACEOF
 
2328
#define PACKAGE_URL "$PACKAGE_URL"
 
2329
_ACEOF
 
2330
 
 
2331
 
 
2332
# Let the site file select an alternate cache file if it wants to.
 
2333
# Prefer an explicitly selected file to automatically selected ones.
 
2334
ac_site_file1=NONE
 
2335
ac_site_file2=NONE
 
2336
if test -n "$CONFIG_SITE"; then
 
2337
  ac_site_file1=$CONFIG_SITE
 
2338
elif test "x$prefix" != xNONE; then
 
2339
  ac_site_file1=$prefix/share/config.site
 
2340
  ac_site_file2=$prefix/etc/config.site
 
2341
else
 
2342
  ac_site_file1=$ac_default_prefix/share/config.site
 
2343
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2344
fi
 
2345
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2346
do
 
2347
  test "x$ac_site_file" = xNONE && continue
 
2348
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2349
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2350
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2351
    sed 's/^/| /' "$ac_site_file" >&5
 
2352
    . "$ac_site_file"
 
2353
  fi
 
2354
done
 
2355
 
 
2356
if test -r "$cache_file"; then
 
2357
  # Some versions of bash will fail to source /dev/null (special files
 
2358
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2359
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2360
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2361
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2362
    case $cache_file in
 
2363
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2364
      *)                      . "./$cache_file";;
 
2365
    esac
 
2366
  fi
 
2367
else
 
2368
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2369
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2370
  >$cache_file
 
2371
fi
 
2372
 
 
2373
# Check that the precious variables saved in the cache have kept the same
 
2374
# value.
 
2375
ac_cache_corrupted=false
 
2376
for ac_var in $ac_precious_vars; do
 
2377
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2378
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2379
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2380
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2381
  case $ac_old_set,$ac_new_set in
 
2382
    set,)
 
2383
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2384
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2385
      ac_cache_corrupted=: ;;
 
2386
    ,set)
 
2387
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2388
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2389
      ac_cache_corrupted=: ;;
 
2390
    ,);;
 
2391
    *)
 
2392
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2393
        # differences in whitespace do not lead to failure.
 
2394
        ac_old_val_w=`echo x $ac_old_val`
 
2395
        ac_new_val_w=`echo x $ac_new_val`
 
2396
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2397
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2398
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2399
          ac_cache_corrupted=:
 
2400
        else
 
2401
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2402
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2403
          eval $ac_var=\$ac_old_val
 
2404
        fi
 
2405
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2406
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2407
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2408
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2409
      fi;;
 
2410
  esac
 
2411
  # Pass precious variables to config.status.
 
2412
  if test "$ac_new_set" = set; then
 
2413
    case $ac_new_val in
 
2414
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2415
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2416
    esac
 
2417
    case " $ac_configure_args " in
 
2418
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2419
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2420
    esac
 
2421
  fi
 
2422
done
 
2423
if $ac_cache_corrupted; then
 
2424
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2425
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2426
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2427
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2428
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2429
fi
 
2430
## -------------------- ##
 
2431
## Main body of script. ##
 
2432
## -------------------- ##
 
2433
 
 
2434
ac_ext=c
 
2435
ac_cpp='$CPP $CPPFLAGS'
 
2436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2439
 
 
2440
 
 
2441
ac_aux_dir=
 
2442
for ac_dir in config "$srcdir"/config; do
 
2443
  for ac_t in install-sh install.sh shtool; do
 
2444
    if test -f "$ac_dir/$ac_t"; then
 
2445
      ac_aux_dir=$ac_dir
 
2446
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2447
      break 2
 
2448
    fi
 
2449
  done
 
2450
done
 
2451
if test -z "$ac_aux_dir"; then
 
2452
  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
 
2453
fi
 
2454
 
 
2455
# These three variables are undocumented and unsupported,
 
2456
# and are intended to be withdrawn in a future Autoconf release.
 
2457
# They can cause serious problems if a builder's source tree is in a directory
 
2458
# whose full name contains unusual characters.
 
2459
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2460
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2461
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2462
 
 
2463
 
 
2464
 
 
2465
am__api_version='1.11'
 
2466
 
 
2467
# Find a good install program.  We prefer a C program (faster),
 
2468
# so one script is as good as another.  But avoid the broken or
 
2469
# incompatible versions:
 
2470
# SysV /etc/install, /usr/sbin/install
 
2471
# SunOS /usr/etc/install
 
2472
# IRIX /sbin/install
 
2473
# AIX /bin/install
 
2474
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2475
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2476
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2477
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2478
# OS/2's system install, which has a completely different semantic
 
2479
# ./install, which can be erroneously created by make from ./install.sh.
 
2480
# Reject install programs that cannot install multiple files.
 
2481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2482
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2483
if test -z "$INSTALL"; then
 
2484
if test "${ac_cv_path_install+set}" = set; then :
 
2485
  $as_echo_n "(cached) " >&6
 
2486
else
 
2487
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2488
for as_dir in $PATH
 
2489
do
 
2490
  IFS=$as_save_IFS
 
2491
  test -z "$as_dir" && as_dir=.
 
2492
    # Account for people who put trailing slashes in PATH elements.
 
2493
case $as_dir/ in #((
 
2494
  ./ | .// | /[cC]/* | \
 
2495
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2496
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2497
  /usr/ucb/* ) ;;
 
2498
  *)
 
2499
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2500
    # Don't use installbsd from OSF since it installs stuff as root
 
2501
    # by default.
 
2502
    for ac_prog in ginstall scoinst install; do
 
2503
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2504
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2505
          if test $ac_prog = install &&
 
2506
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2507
            # AIX install.  It has an incompatible calling convention.
 
2508
            :
 
2509
          elif test $ac_prog = install &&
 
2510
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2511
            # program-specific install script used by HP pwplus--don't use.
 
2512
            :
 
2513
          else
 
2514
            rm -rf conftest.one conftest.two conftest.dir
 
2515
            echo one > conftest.one
 
2516
            echo two > conftest.two
 
2517
            mkdir conftest.dir
 
2518
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2519
              test -s conftest.one && test -s conftest.two &&
 
2520
              test -s conftest.dir/conftest.one &&
 
2521
              test -s conftest.dir/conftest.two
 
2522
            then
 
2523
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2524
              break 3
 
2525
            fi
 
2526
          fi
 
2527
        fi
 
2528
      done
 
2529
    done
 
2530
    ;;
 
2531
esac
 
2532
 
 
2533
  done
 
2534
IFS=$as_save_IFS
 
2535
 
 
2536
rm -rf conftest.one conftest.two conftest.dir
 
2537
 
 
2538
fi
 
2539
  if test "${ac_cv_path_install+set}" = set; then
 
2540
    INSTALL=$ac_cv_path_install
 
2541
  else
 
2542
    # As a last resort, use the slow shell script.  Don't cache a
 
2543
    # value for INSTALL within a source directory, because that will
 
2544
    # break other packages using the cache if that directory is
 
2545
    # removed, or if the value is a relative name.
 
2546
    INSTALL=$ac_install_sh
 
2547
  fi
 
2548
fi
 
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2550
$as_echo "$INSTALL" >&6; }
 
2551
 
 
2552
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2553
# It thinks the first close brace ends the variable substitution.
 
2554
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2555
 
 
2556
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2557
 
 
2558
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2559
 
 
2560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2561
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2562
# Just in case
 
2563
sleep 1
 
2564
echo timestamp > conftest.file
 
2565
# Reject unsafe characters in $srcdir or the absolute working directory
 
2566
# name.  Accept space and tab only in the latter.
 
2567
am_lf='
 
2568
'
 
2569
case `pwd` in
 
2570
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2571
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2572
esac
 
2573
case $srcdir in
 
2574
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2575
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2576
esac
 
2577
 
 
2578
# Do `set' in a subshell so we don't clobber the current shell's
 
2579
# arguments.  Must try -L first in case configure is actually a
 
2580
# symlink; some systems play weird games with the mod time of symlinks
 
2581
# (eg FreeBSD returns the mod time of the symlink's containing
 
2582
# directory).
 
2583
if (
 
2584
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2585
   if test "$*" = "X"; then
 
2586
      # -L didn't work.
 
2587
      set X `ls -t "$srcdir/configure" conftest.file`
 
2588
   fi
 
2589
   rm -f conftest.file
 
2590
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2591
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2592
 
 
2593
      # If neither matched, then we have a broken ls.  This can happen
 
2594
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2595
      # broken ls alias from the environment.  This has actually
 
2596
      # happened.  Such a system could not be considered "sane".
 
2597
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2598
alias in your environment" "$LINENO" 5
 
2599
   fi
 
2600
 
 
2601
   test "$2" = conftest.file
 
2602
   )
 
2603
then
 
2604
   # Ok.
 
2605
   :
 
2606
else
 
2607
   as_fn_error "newly created file is older than distributed files!
 
2608
Check your system clock" "$LINENO" 5
 
2609
fi
 
2610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2611
$as_echo "yes" >&6; }
 
2612
test "$program_prefix" != NONE &&
 
2613
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2614
# Use a double $ so make ignores it.
 
2615
test "$program_suffix" != NONE &&
 
2616
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2617
# Double any \ or $.
 
2618
# By default was `s,x,x', remove it if useless.
 
2619
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2620
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2621
 
 
2622
# expand $ac_aux_dir to an absolute path
 
2623
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2624
 
 
2625
if test x"${MISSING+set}" != xset; then
 
2626
  case $am_aux_dir in
 
2627
  *\ * | *\     *)
 
2628
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2629
  *)
 
2630
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2631
  esac
 
2632
fi
 
2633
# Use eval to expand $SHELL
 
2634
if eval "$MISSING --run true"; then
 
2635
  am_missing_run="$MISSING --run "
 
2636
else
 
2637
  am_missing_run=
 
2638
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2639
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2640
fi
 
2641
 
 
2642
if test x"${install_sh}" != xset; then
 
2643
  case $am_aux_dir in
 
2644
  *\ * | *\     *)
 
2645
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2646
  *)
 
2647
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2648
  esac
 
2649
fi
 
2650
 
 
2651
# Installed binaries are usually stripped using `strip' when the user
 
2652
# run `make install-strip'.  However `strip' might not be the right
 
2653
# tool to use in cross-compilation environments, therefore Automake
 
2654
# will honor the `STRIP' environment variable to overrule this program.
 
2655
if test "$cross_compiling" != no; then
 
2656
  if test -n "$ac_tool_prefix"; then
 
2657
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2658
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2660
$as_echo_n "checking for $ac_word... " >&6; }
 
2661
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2662
  $as_echo_n "(cached) " >&6
 
2663
else
 
2664
  if test -n "$STRIP"; then
 
2665
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2666
else
 
2667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2668
for as_dir in $PATH
 
2669
do
 
2670
  IFS=$as_save_IFS
 
2671
  test -z "$as_dir" && as_dir=.
 
2672
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2673
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2674
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2675
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2676
    break 2
 
2677
  fi
 
2678
done
 
2679
  done
 
2680
IFS=$as_save_IFS
 
2681
 
 
2682
fi
 
2683
fi
 
2684
STRIP=$ac_cv_prog_STRIP
 
2685
if test -n "$STRIP"; then
 
2686
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2687
$as_echo "$STRIP" >&6; }
 
2688
else
 
2689
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2690
$as_echo "no" >&6; }
 
2691
fi
 
2692
 
 
2693
 
 
2694
fi
 
2695
if test -z "$ac_cv_prog_STRIP"; then
 
2696
  ac_ct_STRIP=$STRIP
 
2697
  # Extract the first word of "strip", so it can be a program name with args.
 
2698
set dummy strip; ac_word=$2
 
2699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2700
$as_echo_n "checking for $ac_word... " >&6; }
 
2701
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2702
  $as_echo_n "(cached) " >&6
 
2703
else
 
2704
  if test -n "$ac_ct_STRIP"; then
 
2705
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2706
else
 
2707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2708
for as_dir in $PATH
 
2709
do
 
2710
  IFS=$as_save_IFS
 
2711
  test -z "$as_dir" && as_dir=.
 
2712
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2713
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2714
    ac_cv_prog_ac_ct_STRIP="strip"
 
2715
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2716
    break 2
 
2717
  fi
 
2718
done
 
2719
  done
 
2720
IFS=$as_save_IFS
 
2721
 
 
2722
fi
 
2723
fi
 
2724
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2725
if test -n "$ac_ct_STRIP"; then
 
2726
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2727
$as_echo "$ac_ct_STRIP" >&6; }
 
2728
else
 
2729
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2730
$as_echo "no" >&6; }
 
2731
fi
 
2732
 
 
2733
  if test "x$ac_ct_STRIP" = x; then
 
2734
    STRIP=":"
 
2735
  else
 
2736
    case $cross_compiling:$ac_tool_warned in
 
2737
yes:)
 
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2739
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2740
ac_tool_warned=yes ;;
 
2741
esac
 
2742
    STRIP=$ac_ct_STRIP
 
2743
  fi
 
2744
else
 
2745
  STRIP="$ac_cv_prog_STRIP"
 
2746
fi
 
2747
 
 
2748
fi
 
2749
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2750
 
 
2751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2752
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2753
if test -z "$MKDIR_P"; then
 
2754
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2755
  $as_echo_n "(cached) " >&6
 
2756
else
 
2757
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2758
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2759
do
 
2760
  IFS=$as_save_IFS
 
2761
  test -z "$as_dir" && as_dir=.
 
2762
    for ac_prog in mkdir gmkdir; do
 
2763
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2764
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2765
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2766
             'mkdir (GNU coreutils) '* | \
 
2767
             'mkdir (coreutils) '* | \
 
2768
             'mkdir (fileutils) '4.1*)
 
2769
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2770
               break 3;;
 
2771
           esac
 
2772
         done
 
2773
       done
 
2774
  done
 
2775
IFS=$as_save_IFS
 
2776
 
 
2777
fi
 
2778
 
 
2779
  test -d ./--version && rmdir ./--version
 
2780
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2781
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2782
  else
 
2783
    # As a last resort, use the slow shell script.  Don't cache a
 
2784
    # value for MKDIR_P within a source directory, because that will
 
2785
    # break other packages using the cache if that directory is
 
2786
    # removed, or if the value is a relative name.
 
2787
    MKDIR_P="$ac_install_sh -d"
 
2788
  fi
 
2789
fi
 
2790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2791
$as_echo "$MKDIR_P" >&6; }
 
2792
 
 
2793
mkdir_p="$MKDIR_P"
 
2794
case $mkdir_p in
 
2795
  [\\/$]* | ?:[\\/]*) ;;
 
2796
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2797
esac
 
2798
 
 
2799
for ac_prog in gawk mawk nawk awk
 
2800
do
 
2801
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2802
set dummy $ac_prog; ac_word=$2
 
2803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2804
$as_echo_n "checking for $ac_word... " >&6; }
 
2805
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2806
  $as_echo_n "(cached) " >&6
 
2807
else
 
2808
  if test -n "$AWK"; then
 
2809
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2810
else
 
2811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2812
for as_dir in $PATH
 
2813
do
 
2814
  IFS=$as_save_IFS
 
2815
  test -z "$as_dir" && as_dir=.
 
2816
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2817
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2818
    ac_cv_prog_AWK="$ac_prog"
 
2819
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2820
    break 2
 
2821
  fi
 
2822
done
 
2823
  done
 
2824
IFS=$as_save_IFS
 
2825
 
 
2826
fi
 
2827
fi
 
2828
AWK=$ac_cv_prog_AWK
 
2829
if test -n "$AWK"; then
 
2830
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2831
$as_echo "$AWK" >&6; }
 
2832
else
 
2833
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2834
$as_echo "no" >&6; }
 
2835
fi
 
2836
 
 
2837
 
 
2838
  test -n "$AWK" && break
 
2839
done
 
2840
 
 
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2842
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2843
set x ${MAKE-make}
 
2844
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2845
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2846
  $as_echo_n "(cached) " >&6
 
2847
else
 
2848
  cat >conftest.make <<\_ACEOF
 
2849
SHELL = /bin/sh
 
2850
all:
 
2851
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2852
_ACEOF
 
2853
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2854
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2855
  *@@@%%%=?*=@@@%%%*)
 
2856
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2857
  *)
 
2858
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2859
esac
 
2860
rm -f conftest.make
 
2861
fi
 
2862
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2864
$as_echo "yes" >&6; }
 
2865
  SET_MAKE=
 
2866
else
 
2867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2868
$as_echo "no" >&6; }
 
2869
  SET_MAKE="MAKE=${MAKE-make}"
 
2870
fi
 
2871
 
 
2872
rm -rf .tst 2>/dev/null
 
2873
mkdir .tst 2>/dev/null
 
2874
if test -d .tst; then
 
2875
  am__leading_dot=.
 
2876
else
 
2877
  am__leading_dot=_
 
2878
fi
 
2879
rmdir .tst 2>/dev/null
 
2880
 
 
2881
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2882
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2883
  # is not polluted with repeated "-I."
 
2884
  am__isrc=' -I$(srcdir)'
 
2885
  # test to see if srcdir already configured
 
2886
  if test -f $srcdir/config.status; then
 
2887
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2888
  fi
 
2889
fi
 
2890
 
 
2891
# test whether we have cygpath
 
2892
if test -z "$CYGPATH_W"; then
 
2893
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2894
    CYGPATH_W='cygpath -w'
 
2895
  else
 
2896
    CYGPATH_W=echo
 
2897
  fi
 
2898
fi
 
2899
 
 
2900
 
 
2901
# Define the identity of the package.
 
2902
 PACKAGE='monit'
 
2903
 VERSION='5.5'
 
2904
 
 
2905
 
 
2906
cat >>confdefs.h <<_ACEOF
 
2907
#define PACKAGE "$PACKAGE"
 
2908
_ACEOF
 
2909
 
 
2910
 
 
2911
cat >>confdefs.h <<_ACEOF
 
2912
#define VERSION "$VERSION"
 
2913
_ACEOF
 
2914
 
 
2915
# Some tools Automake needs.
 
2916
 
 
2917
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2918
 
 
2919
 
 
2920
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2921
 
 
2922
 
 
2923
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2924
 
 
2925
 
 
2926
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2927
 
 
2928
 
 
2929
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2930
 
 
2931
# We need awk for the "check" target.  The system "awk" is bad on
 
2932
# some platforms.
 
2933
# Always define AMTAR for backward compatibility.
 
2934
 
 
2935
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2936
 
 
2937
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2938
 
 
2939
 
 
2940
 
 
2941
 
 
2942
 
 
2943
 
 
2944
 
 
2945
 
 
2946
subdirs="$subdirs libmonit"
 
2947
 
 
2948
ac_config_commands="$ac_config_commands libtool_patch"
 
2949
 
 
2950
 
 
2951
 
 
2952
# ------------------------------------------------------------------------
 
2953
# Programs
 
2954
# ------------------------------------------------------------------------
 
2955
 
 
2956
ac_ext=c
 
2957
ac_cpp='$CPP $CPPFLAGS'
 
2958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2961
if test -n "$ac_tool_prefix"; then
 
2962
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2963
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2965
$as_echo_n "checking for $ac_word... " >&6; }
 
2966
if test "${ac_cv_prog_CC+set}" = set; then :
 
2967
  $as_echo_n "(cached) " >&6
 
2968
else
 
2969
  if test -n "$CC"; then
 
2970
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2971
else
 
2972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2973
for as_dir in $PATH
 
2974
do
 
2975
  IFS=$as_save_IFS
 
2976
  test -z "$as_dir" && as_dir=.
 
2977
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2978
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2979
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2980
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2981
    break 2
 
2982
  fi
 
2983
done
 
2984
  done
 
2985
IFS=$as_save_IFS
 
2986
 
 
2987
fi
 
2988
fi
 
2989
CC=$ac_cv_prog_CC
 
2990
if test -n "$CC"; then
 
2991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2992
$as_echo "$CC" >&6; }
 
2993
else
 
2994
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2995
$as_echo "no" >&6; }
 
2996
fi
 
2997
 
 
2998
 
 
2999
fi
 
3000
if test -z "$ac_cv_prog_CC"; then
 
3001
  ac_ct_CC=$CC
 
3002
  # Extract the first word of "gcc", so it can be a program name with args.
 
3003
set dummy gcc; ac_word=$2
 
3004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3005
$as_echo_n "checking for $ac_word... " >&6; }
 
3006
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3007
  $as_echo_n "(cached) " >&6
 
3008
else
 
3009
  if test -n "$ac_ct_CC"; then
 
3010
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3011
else
 
3012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3013
for as_dir in $PATH
 
3014
do
 
3015
  IFS=$as_save_IFS
 
3016
  test -z "$as_dir" && as_dir=.
 
3017
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3018
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3019
    ac_cv_prog_ac_ct_CC="gcc"
 
3020
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3021
    break 2
 
3022
  fi
 
3023
done
 
3024
  done
 
3025
IFS=$as_save_IFS
 
3026
 
 
3027
fi
 
3028
fi
 
3029
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3030
if test -n "$ac_ct_CC"; then
 
3031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3032
$as_echo "$ac_ct_CC" >&6; }
 
3033
else
 
3034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3035
$as_echo "no" >&6; }
 
3036
fi
 
3037
 
 
3038
  if test "x$ac_ct_CC" = x; then
 
3039
    CC=""
 
3040
  else
 
3041
    case $cross_compiling:$ac_tool_warned in
 
3042
yes:)
 
3043
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3044
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3045
ac_tool_warned=yes ;;
 
3046
esac
 
3047
    CC=$ac_ct_CC
 
3048
  fi
 
3049
else
 
3050
  CC="$ac_cv_prog_CC"
 
3051
fi
 
3052
 
 
3053
if test -z "$CC"; then
 
3054
          if test -n "$ac_tool_prefix"; then
 
3055
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3056
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3058
$as_echo_n "checking for $ac_word... " >&6; }
 
3059
if test "${ac_cv_prog_CC+set}" = set; then :
 
3060
  $as_echo_n "(cached) " >&6
 
3061
else
 
3062
  if test -n "$CC"; then
 
3063
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3064
else
 
3065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3066
for as_dir in $PATH
 
3067
do
 
3068
  IFS=$as_save_IFS
 
3069
  test -z "$as_dir" && as_dir=.
 
3070
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3071
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3072
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3073
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3074
    break 2
 
3075
  fi
 
3076
done
 
3077
  done
 
3078
IFS=$as_save_IFS
 
3079
 
 
3080
fi
 
3081
fi
 
3082
CC=$ac_cv_prog_CC
 
3083
if test -n "$CC"; then
 
3084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3085
$as_echo "$CC" >&6; }
 
3086
else
 
3087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3088
$as_echo "no" >&6; }
 
3089
fi
 
3090
 
 
3091
 
 
3092
  fi
 
3093
fi
 
3094
if test -z "$CC"; then
 
3095
  # Extract the first word of "cc", so it can be a program name with args.
 
3096
set dummy cc; ac_word=$2
 
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3098
$as_echo_n "checking for $ac_word... " >&6; }
 
3099
if test "${ac_cv_prog_CC+set}" = set; then :
 
3100
  $as_echo_n "(cached) " >&6
 
3101
else
 
3102
  if test -n "$CC"; then
 
3103
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3104
else
 
3105
  ac_prog_rejected=no
 
3106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3107
for as_dir in $PATH
 
3108
do
 
3109
  IFS=$as_save_IFS
 
3110
  test -z "$as_dir" && as_dir=.
 
3111
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3112
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3113
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3114
       ac_prog_rejected=yes
 
3115
       continue
 
3116
     fi
 
3117
    ac_cv_prog_CC="cc"
 
3118
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3119
    break 2
 
3120
  fi
 
3121
done
 
3122
  done
 
3123
IFS=$as_save_IFS
 
3124
 
 
3125
if test $ac_prog_rejected = yes; then
 
3126
  # We found a bogon in the path, so make sure we never use it.
 
3127
  set dummy $ac_cv_prog_CC
 
3128
  shift
 
3129
  if test $# != 0; then
 
3130
    # We chose a different compiler from the bogus one.
 
3131
    # However, it has the same basename, so the bogon will be chosen
 
3132
    # first if we set CC to just the basename; use the full file name.
 
3133
    shift
 
3134
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3135
  fi
 
3136
fi
 
3137
fi
 
3138
fi
 
3139
CC=$ac_cv_prog_CC
 
3140
if test -n "$CC"; then
 
3141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3142
$as_echo "$CC" >&6; }
 
3143
else
 
3144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3145
$as_echo "no" >&6; }
 
3146
fi
 
3147
 
 
3148
 
 
3149
fi
 
3150
if test -z "$CC"; then
 
3151
  if test -n "$ac_tool_prefix"; then
 
3152
  for ac_prog in cl.exe
 
3153
  do
 
3154
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3155
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3157
$as_echo_n "checking for $ac_word... " >&6; }
 
3158
if test "${ac_cv_prog_CC+set}" = set; then :
 
3159
  $as_echo_n "(cached) " >&6
 
3160
else
 
3161
  if test -n "$CC"; then
 
3162
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3163
else
 
3164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3165
for as_dir in $PATH
 
3166
do
 
3167
  IFS=$as_save_IFS
 
3168
  test -z "$as_dir" && as_dir=.
 
3169
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3171
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3172
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3173
    break 2
 
3174
  fi
 
3175
done
 
3176
  done
 
3177
IFS=$as_save_IFS
 
3178
 
 
3179
fi
 
3180
fi
 
3181
CC=$ac_cv_prog_CC
 
3182
if test -n "$CC"; then
 
3183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3184
$as_echo "$CC" >&6; }
 
3185
else
 
3186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3187
$as_echo "no" >&6; }
 
3188
fi
 
3189
 
 
3190
 
 
3191
    test -n "$CC" && break
 
3192
  done
 
3193
fi
 
3194
if test -z "$CC"; then
 
3195
  ac_ct_CC=$CC
 
3196
  for ac_prog in cl.exe
 
3197
do
 
3198
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3199
set dummy $ac_prog; ac_word=$2
 
3200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3201
$as_echo_n "checking for $ac_word... " >&6; }
 
3202
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3203
  $as_echo_n "(cached) " >&6
 
3204
else
 
3205
  if test -n "$ac_ct_CC"; then
 
3206
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3207
else
 
3208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3209
for as_dir in $PATH
 
3210
do
 
3211
  IFS=$as_save_IFS
 
3212
  test -z "$as_dir" && as_dir=.
 
3213
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3214
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3215
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3216
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3217
    break 2
 
3218
  fi
 
3219
done
 
3220
  done
 
3221
IFS=$as_save_IFS
 
3222
 
 
3223
fi
 
3224
fi
 
3225
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3226
if test -n "$ac_ct_CC"; then
 
3227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3228
$as_echo "$ac_ct_CC" >&6; }
 
3229
else
 
3230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3231
$as_echo "no" >&6; }
 
3232
fi
 
3233
 
 
3234
 
 
3235
  test -n "$ac_ct_CC" && break
 
3236
done
 
3237
 
 
3238
  if test "x$ac_ct_CC" = x; then
 
3239
    CC=""
 
3240
  else
 
3241
    case $cross_compiling:$ac_tool_warned in
 
3242
yes:)
 
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3244
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3245
ac_tool_warned=yes ;;
 
3246
esac
 
3247
    CC=$ac_ct_CC
 
3248
  fi
 
3249
fi
 
3250
 
 
3251
fi
 
3252
 
 
3253
 
 
3254
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3255
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3256
as_fn_error "no acceptable C compiler found in \$PATH
 
3257
See \`config.log' for more details." "$LINENO" 5; }
 
3258
 
 
3259
# Provide some information about the compiler.
 
3260
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3261
set X $ac_compile
 
3262
ac_compiler=$2
 
3263
for ac_option in --version -v -V -qversion; do
 
3264
  { { ac_try="$ac_compiler $ac_option >&5"
 
3265
case "(($ac_try" in
 
3266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3267
  *) ac_try_echo=$ac_try;;
 
3268
esac
 
3269
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3270
$as_echo "$ac_try_echo"; } >&5
 
3271
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3272
  ac_status=$?
 
3273
  if test -s conftest.err; then
 
3274
    sed '10a\
 
3275
... rest of stderr output deleted ...
 
3276
         10q' conftest.err >conftest.er1
 
3277
    cat conftest.er1 >&5
 
3278
  fi
 
3279
  rm -f conftest.er1 conftest.err
 
3280
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3281
  test $ac_status = 0; }
 
3282
done
 
3283
 
 
3284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3285
/* end confdefs.h.  */
 
3286
 
 
3287
int
 
3288
main ()
 
3289
{
 
3290
 
 
3291
  ;
 
3292
  return 0;
 
3293
}
 
3294
_ACEOF
 
3295
ac_clean_files_save=$ac_clean_files
 
3296
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3297
# Try to create an executable without -o first, disregard a.out.
 
3298
# It will help us diagnose broken compilers, and finding out an intuition
 
3299
# of exeext.
 
3300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3301
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3302
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3303
 
 
3304
# The possible output files:
 
3305
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3306
 
 
3307
ac_rmfiles=
 
3308
for ac_file in $ac_files
 
3309
do
 
3310
  case $ac_file in
 
3311
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3312
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3313
  esac
 
3314
done
 
3315
rm -f $ac_rmfiles
 
3316
 
 
3317
if { { ac_try="$ac_link_default"
 
3318
case "(($ac_try" in
 
3319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3320
  *) ac_try_echo=$ac_try;;
 
3321
esac
 
3322
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3323
$as_echo "$ac_try_echo"; } >&5
 
3324
  (eval "$ac_link_default") 2>&5
 
3325
  ac_status=$?
 
3326
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3327
  test $ac_status = 0; }; then :
 
3328
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3329
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3330
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3331
# so that the user can short-circuit this test for compilers unknown to
 
3332
# Autoconf.
 
3333
for ac_file in $ac_files ''
 
3334
do
 
3335
  test -f "$ac_file" || continue
 
3336
  case $ac_file in
 
3337
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3338
        ;;
 
3339
    [ab].out )
 
3340
        # We found the default executable, but exeext='' is most
 
3341
        # certainly right.
 
3342
        break;;
 
3343
    *.* )
 
3344
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3345
        then :; else
 
3346
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3347
        fi
 
3348
        # We set ac_cv_exeext here because the later test for it is not
 
3349
        # safe: cross compilers may not add the suffix if given an `-o'
 
3350
        # argument, so we may need to know it at that point already.
 
3351
        # Even if this section looks crufty: it has the advantage of
 
3352
        # actually working.
 
3353
        break;;
 
3354
    * )
 
3355
        break;;
 
3356
  esac
 
3357
done
 
3358
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3359
 
 
3360
else
 
3361
  ac_file=''
 
3362
fi
 
3363
if test -z "$ac_file"; then :
 
3364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3365
$as_echo "no" >&6; }
 
3366
$as_echo "$as_me: failed program was:" >&5
 
3367
sed 's/^/| /' conftest.$ac_ext >&5
 
3368
 
 
3369
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3370
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3371
{ as_fn_set_status 77
 
3372
as_fn_error "C compiler cannot create executables
 
3373
See \`config.log' for more details." "$LINENO" 5; }; }
 
3374
else
 
3375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3376
$as_echo "yes" >&6; }
 
3377
fi
 
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3379
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3381
$as_echo "$ac_file" >&6; }
 
3382
ac_exeext=$ac_cv_exeext
 
3383
 
 
3384
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3385
ac_clean_files=$ac_clean_files_save
 
3386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3387
$as_echo_n "checking for suffix of executables... " >&6; }
 
3388
if { { ac_try="$ac_link"
 
3389
case "(($ac_try" in
 
3390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3391
  *) ac_try_echo=$ac_try;;
 
3392
esac
 
3393
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3394
$as_echo "$ac_try_echo"; } >&5
 
3395
  (eval "$ac_link") 2>&5
 
3396
  ac_status=$?
 
3397
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3398
  test $ac_status = 0; }; then :
 
3399
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3400
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3401
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3402
# `rm'.
 
3403
for ac_file in conftest.exe conftest conftest.*; do
 
3404
  test -f "$ac_file" || continue
 
3405
  case $ac_file in
 
3406
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3407
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3408
          break;;
 
3409
    * ) break;;
 
3410
  esac
 
3411
done
 
3412
else
 
3413
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3414
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3415
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3416
See \`config.log' for more details." "$LINENO" 5; }
 
3417
fi
 
3418
rm -f conftest conftest$ac_cv_exeext
 
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3420
$as_echo "$ac_cv_exeext" >&6; }
 
3421
 
 
3422
rm -f conftest.$ac_ext
 
3423
EXEEXT=$ac_cv_exeext
 
3424
ac_exeext=$EXEEXT
 
3425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3426
/* end confdefs.h.  */
 
3427
#include <stdio.h>
 
3428
int
 
3429
main ()
 
3430
{
 
3431
FILE *f = fopen ("conftest.out", "w");
 
3432
 return ferror (f) || fclose (f) != 0;
 
3433
 
 
3434
  ;
 
3435
  return 0;
 
3436
}
 
3437
_ACEOF
 
3438
ac_clean_files="$ac_clean_files conftest.out"
 
3439
# Check that the compiler produces executables we can run.  If not, either
 
3440
# the compiler is broken, or we cross compile.
 
3441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3442
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3443
if test "$cross_compiling" != yes; then
 
3444
  { { ac_try="$ac_link"
 
3445
case "(($ac_try" in
 
3446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3447
  *) ac_try_echo=$ac_try;;
 
3448
esac
 
3449
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3450
$as_echo "$ac_try_echo"; } >&5
 
3451
  (eval "$ac_link") 2>&5
 
3452
  ac_status=$?
 
3453
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3454
  test $ac_status = 0; }
 
3455
  if { ac_try='./conftest$ac_cv_exeext'
 
3456
  { { case "(($ac_try" in
 
3457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3458
  *) ac_try_echo=$ac_try;;
 
3459
esac
 
3460
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3461
$as_echo "$ac_try_echo"; } >&5
 
3462
  (eval "$ac_try") 2>&5
 
3463
  ac_status=$?
 
3464
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3465
  test $ac_status = 0; }; }; then
 
3466
    cross_compiling=no
 
3467
  else
 
3468
    if test "$cross_compiling" = maybe; then
 
3469
        cross_compiling=yes
 
3470
    else
 
3471
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3472
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3473
as_fn_error "cannot run C compiled programs.
 
3474
If you meant to cross compile, use \`--host'.
 
3475
See \`config.log' for more details." "$LINENO" 5; }
 
3476
    fi
 
3477
  fi
 
3478
fi
 
3479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3480
$as_echo "$cross_compiling" >&6; }
 
3481
 
 
3482
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3483
ac_clean_files=$ac_clean_files_save
 
3484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3485
$as_echo_n "checking for suffix of object files... " >&6; }
 
3486
if test "${ac_cv_objext+set}" = set; then :
 
3487
  $as_echo_n "(cached) " >&6
 
3488
else
 
3489
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3490
/* end confdefs.h.  */
 
3491
 
 
3492
int
 
3493
main ()
 
3494
{
 
3495
 
 
3496
  ;
 
3497
  return 0;
 
3498
}
 
3499
_ACEOF
 
3500
rm -f conftest.o conftest.obj
 
3501
if { { ac_try="$ac_compile"
 
3502
case "(($ac_try" in
 
3503
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3504
  *) ac_try_echo=$ac_try;;
 
3505
esac
 
3506
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3507
$as_echo "$ac_try_echo"; } >&5
 
3508
  (eval "$ac_compile") 2>&5
 
3509
  ac_status=$?
 
3510
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3511
  test $ac_status = 0; }; then :
 
3512
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3513
  test -f "$ac_file" || continue;
 
3514
  case $ac_file in
 
3515
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3516
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3517
       break;;
 
3518
  esac
 
3519
done
 
3520
else
 
3521
  $as_echo "$as_me: failed program was:" >&5
 
3522
sed 's/^/| /' conftest.$ac_ext >&5
 
3523
 
 
3524
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3525
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3526
as_fn_error "cannot compute suffix of object files: cannot compile
 
3527
See \`config.log' for more details." "$LINENO" 5; }
 
3528
fi
 
3529
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3530
fi
 
3531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3532
$as_echo "$ac_cv_objext" >&6; }
 
3533
OBJEXT=$ac_cv_objext
 
3534
ac_objext=$OBJEXT
 
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3536
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3537
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3538
  $as_echo_n "(cached) " >&6
 
3539
else
 
3540
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3541
/* end confdefs.h.  */
 
3542
 
 
3543
int
 
3544
main ()
 
3545
{
 
3546
#ifndef __GNUC__
 
3547
       choke me
 
3548
#endif
 
3549
 
 
3550
  ;
 
3551
  return 0;
 
3552
}
 
3553
_ACEOF
 
3554
if ac_fn_c_try_compile "$LINENO"; then :
 
3555
  ac_compiler_gnu=yes
 
3556
else
 
3557
  ac_compiler_gnu=no
 
3558
fi
 
3559
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3560
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3561
 
 
3562
fi
 
3563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3564
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3565
if test $ac_compiler_gnu = yes; then
 
3566
  GCC=yes
 
3567
else
 
3568
  GCC=
 
3569
fi
 
3570
ac_test_CFLAGS=${CFLAGS+set}
 
3571
ac_save_CFLAGS=$CFLAGS
 
3572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3573
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3574
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3575
  $as_echo_n "(cached) " >&6
 
3576
else
 
3577
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3578
   ac_c_werror_flag=yes
 
3579
   ac_cv_prog_cc_g=no
 
3580
   CFLAGS="-g"
 
3581
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3582
/* end confdefs.h.  */
 
3583
 
 
3584
int
 
3585
main ()
 
3586
{
 
3587
 
 
3588
  ;
 
3589
  return 0;
 
3590
}
 
3591
_ACEOF
 
3592
if ac_fn_c_try_compile "$LINENO"; then :
 
3593
  ac_cv_prog_cc_g=yes
 
3594
else
 
3595
  CFLAGS=""
 
3596
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3597
/* end confdefs.h.  */
 
3598
 
 
3599
int
 
3600
main ()
 
3601
{
 
3602
 
 
3603
  ;
 
3604
  return 0;
 
3605
}
 
3606
_ACEOF
 
3607
if ac_fn_c_try_compile "$LINENO"; then :
 
3608
 
 
3609
else
 
3610
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3611
         CFLAGS="-g"
 
3612
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3613
/* end confdefs.h.  */
 
3614
 
 
3615
int
 
3616
main ()
 
3617
{
 
3618
 
 
3619
  ;
 
3620
  return 0;
 
3621
}
 
3622
_ACEOF
 
3623
if ac_fn_c_try_compile "$LINENO"; then :
 
3624
  ac_cv_prog_cc_g=yes
 
3625
fi
 
3626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3627
fi
 
3628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3629
fi
 
3630
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3631
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3632
fi
 
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3634
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3635
if test "$ac_test_CFLAGS" = set; then
 
3636
  CFLAGS=$ac_save_CFLAGS
 
3637
elif test $ac_cv_prog_cc_g = yes; then
 
3638
  if test "$GCC" = yes; then
 
3639
    CFLAGS="-g -O2"
 
3640
  else
 
3641
    CFLAGS="-g"
 
3642
  fi
 
3643
else
 
3644
  if test "$GCC" = yes; then
 
3645
    CFLAGS="-O2"
 
3646
  else
 
3647
    CFLAGS=
 
3648
  fi
 
3649
fi
 
3650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3651
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3652
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3653
  $as_echo_n "(cached) " >&6
 
3654
else
 
3655
  ac_cv_prog_cc_c89=no
 
3656
ac_save_CC=$CC
 
3657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3658
/* end confdefs.h.  */
 
3659
#include <stdarg.h>
 
3660
#include <stdio.h>
 
3661
#include <sys/types.h>
 
3662
#include <sys/stat.h>
 
3663
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3664
struct buf { int x; };
 
3665
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3666
static char *e (p, i)
 
3667
     char **p;
 
3668
     int i;
 
3669
{
 
3670
  return p[i];
 
3671
}
 
3672
static char *f (char * (*g) (char **, int), char **p, ...)
 
3673
{
 
3674
  char *s;
 
3675
  va_list v;
 
3676
  va_start (v,p);
 
3677
  s = g (p, va_arg (v,int));
 
3678
  va_end (v);
 
3679
  return s;
 
3680
}
 
3681
 
 
3682
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3683
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3684
   These don't provoke an error unfortunately, instead are silently treated
 
3685
   as 'x'.  The following induces an error, until -std is added to get
 
3686
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3687
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3688
   that's true only with -std.  */
 
3689
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3690
 
 
3691
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3692
   inside strings and character constants.  */
 
3693
#define FOO(x) 'x'
 
3694
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3695
 
 
3696
int test (int i, double x);
 
3697
struct s1 {int (*f) (int a);};
 
3698
struct s2 {int (*f) (double a);};
 
3699
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3700
int argc;
 
3701
char **argv;
 
3702
int
 
3703
main ()
 
3704
{
 
3705
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3706
  ;
 
3707
  return 0;
 
3708
}
 
3709
_ACEOF
 
3710
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3711
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3712
do
 
3713
  CC="$ac_save_CC $ac_arg"
 
3714
  if ac_fn_c_try_compile "$LINENO"; then :
 
3715
  ac_cv_prog_cc_c89=$ac_arg
 
3716
fi
 
3717
rm -f core conftest.err conftest.$ac_objext
 
3718
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3719
done
 
3720
rm -f conftest.$ac_ext
 
3721
CC=$ac_save_CC
 
3722
 
 
3723
fi
 
3724
# AC_CACHE_VAL
 
3725
case "x$ac_cv_prog_cc_c89" in
 
3726
  x)
 
3727
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3728
$as_echo "none needed" >&6; } ;;
 
3729
  xno)
 
3730
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3731
$as_echo "unsupported" >&6; } ;;
 
3732
  *)
 
3733
    CC="$CC $ac_cv_prog_cc_c89"
 
3734
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3735
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3736
esac
 
3737
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3738
 
 
3739
fi
 
3740
 
 
3741
ac_ext=c
 
3742
ac_cpp='$CPP $CPPFLAGS'
 
3743
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3744
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3745
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3746
DEPDIR="${am__leading_dot}deps"
 
3747
 
 
3748
ac_config_commands="$ac_config_commands depfiles"
 
3749
 
 
3750
 
 
3751
am_make=${MAKE-make}
 
3752
cat > confinc << 'END'
 
3753
am__doit:
 
3754
        @echo this is the am__doit target
 
3755
.PHONY: am__doit
 
3756
END
 
3757
# If we don't find an include directive, just comment out the code.
 
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3759
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3760
am__include="#"
 
3761
am__quote=
 
3762
_am_result=none
 
3763
# First try GNU make style include.
 
3764
echo "include confinc" > confmf
 
3765
# Ignore all kinds of additional output from `make'.
 
3766
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3767
*the\ am__doit\ target*)
 
3768
  am__include=include
 
3769
  am__quote=
 
3770
  _am_result=GNU
 
3771
  ;;
 
3772
esac
 
3773
# Now try BSD make style include.
 
3774
if test "$am__include" = "#"; then
 
3775
   echo '.include "confinc"' > confmf
 
3776
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3777
   *the\ am__doit\ target*)
 
3778
     am__include=.include
 
3779
     am__quote="\""
 
3780
     _am_result=BSD
 
3781
     ;;
 
3782
   esac
 
3783
fi
 
3784
 
 
3785
 
 
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3787
$as_echo "$_am_result" >&6; }
 
3788
rm -f confinc confmf
 
3789
 
 
3790
# Check whether --enable-dependency-tracking was given.
 
3791
if test "${enable_dependency_tracking+set}" = set; then :
 
3792
  enableval=$enable_dependency_tracking;
 
3793
fi
 
3794
 
 
3795
if test "x$enable_dependency_tracking" != xno; then
 
3796
  am_depcomp="$ac_aux_dir/depcomp"
 
3797
  AMDEPBACKSLASH='\'
 
3798
fi
 
3799
 if test "x$enable_dependency_tracking" != xno; then
 
3800
  AMDEP_TRUE=
 
3801
  AMDEP_FALSE='#'
 
3802
else
 
3803
  AMDEP_TRUE='#'
 
3804
  AMDEP_FALSE=
 
3805
fi
 
3806
 
 
3807
 
 
3808
 
 
3809
depcc="$CC"   am_compiler_list=
 
3810
 
 
3811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3812
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3813
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3814
  $as_echo_n "(cached) " >&6
 
3815
else
 
3816
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3817
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3818
  # making bogus files that we don't know about and never remove.  For
 
3819
  # instance it was reported that on HP-UX the gcc test will end up
 
3820
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3821
  # in D'.
 
3822
  mkdir conftest.dir
 
3823
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3824
  # using a relative directory.
 
3825
  cp "$am_depcomp" conftest.dir
 
3826
  cd conftest.dir
 
3827
  # We will build objects and dependencies in a subdirectory because
 
3828
  # it helps to detect inapplicable dependency modes.  For instance
 
3829
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3830
  # side effect of compilation, but ICC will put the dependencies in
 
3831
  # the current directory while Tru64 will put them in the object
 
3832
  # directory.
 
3833
  mkdir sub
 
3834
 
 
3835
  am_cv_CC_dependencies_compiler_type=none
 
3836
  if test "$am_compiler_list" = ""; then
 
3837
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3838
  fi
 
3839
  am__universal=false
 
3840
  case " $depcc " in #(
 
3841
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3842
     esac
 
3843
 
 
3844
  for depmode in $am_compiler_list; do
 
3845
    # Setup a source with many dependencies, because some compilers
 
3846
    # like to wrap large dependency lists on column 80 (with \), and
 
3847
    # we should not choose a depcomp mode which is confused by this.
 
3848
    #
 
3849
    # We need to recreate these files for each test, as the compiler may
 
3850
    # overwrite some of them when testing with obscure command lines.
 
3851
    # This happens at least with the AIX C compiler.
 
3852
    : > sub/conftest.c
 
3853
    for i in 1 2 3 4 5 6; do
 
3854
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3855
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3856
      # Solaris 8's {/usr,}/bin/sh.
 
3857
      touch sub/conftst$i.h
 
3858
    done
 
3859
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3860
 
 
3861
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3862
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3863
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3864
    # versions had trouble with output in subdirs
 
3865
    am__obj=sub/conftest.${OBJEXT-o}
 
3866
    am__minus_obj="-o $am__obj"
 
3867
    case $depmode in
 
3868
    gcc)
 
3869
      # This depmode causes a compiler race in universal mode.
 
3870
      test "$am__universal" = false || continue
 
3871
      ;;
 
3872
    nosideeffect)
 
3873
      # after this tag, mechanisms are not by side-effect, so they'll
 
3874
      # only be used when explicitly requested
 
3875
      if test "x$enable_dependency_tracking" = xyes; then
 
3876
        continue
 
3877
      else
 
3878
        break
 
3879
      fi
 
3880
      ;;
 
3881
    msvisualcpp | msvcmsys)
 
3882
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3883
      # not run yet.  These depmodes are late enough in the game, and
 
3884
      # so weak that their functioning should not be impacted.
 
3885
      am__obj=conftest.${OBJEXT-o}
 
3886
      am__minus_obj=
 
3887
      ;;
 
3888
    none) break ;;
 
3889
    esac
 
3890
    if depmode=$depmode \
 
3891
       source=sub/conftest.c object=$am__obj \
 
3892
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3893
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3894
         >/dev/null 2>conftest.err &&
 
3895
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3896
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3897
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3898
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3899
      # icc doesn't choke on unknown options, it will just issue warnings
 
3900
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3901
      # that says an option was ignored or not supported.
 
3902
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3903
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3904
      # The diagnosis changed in icc 8.0:
 
3905
      #   icc: Command line remark: option '-MP' not supported
 
3906
      if (grep 'ignoring option' conftest.err ||
 
3907
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3908
        am_cv_CC_dependencies_compiler_type=$depmode
 
3909
        break
 
3910
      fi
 
3911
    fi
 
3912
  done
 
3913
 
 
3914
  cd ..
 
3915
  rm -rf conftest.dir
 
3916
else
 
3917
  am_cv_CC_dependencies_compiler_type=none
 
3918
fi
 
3919
 
 
3920
fi
 
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3922
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3923
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3924
 
 
3925
 if
 
3926
  test "x$enable_dependency_tracking" != xno \
 
3927
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3928
  am__fastdepCC_TRUE=
 
3929
  am__fastdepCC_FALSE='#'
 
3930
else
 
3931
  am__fastdepCC_TRUE='#'
 
3932
  am__fastdepCC_FALSE=
 
3933
fi
 
3934
 
 
3935
 
 
3936
 
 
3937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3938
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3939
set x ${MAKE-make}
 
3940
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3941
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3942
  $as_echo_n "(cached) " >&6
 
3943
else
 
3944
  cat >conftest.make <<\_ACEOF
 
3945
SHELL = /bin/sh
 
3946
all:
 
3947
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3948
_ACEOF
 
3949
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3950
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3951
  *@@@%%%=?*=@@@%%%*)
 
3952
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3953
  *)
 
3954
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3955
esac
 
3956
rm -f conftest.make
 
3957
fi
 
3958
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3960
$as_echo "yes" >&6; }
 
3961
  SET_MAKE=
 
3962
else
 
3963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3964
$as_echo "no" >&6; }
 
3965
  SET_MAKE="MAKE=${MAKE-make}"
 
3966
fi
 
3967
 
 
3968
for ac_prog in 'bison -y' byacc yacc
 
3969
do
 
3970
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3971
set dummy $ac_prog; ac_word=$2
 
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3973
$as_echo_n "checking for $ac_word... " >&6; }
 
3974
if test "${ac_cv_prog_YACC+set}" = set; then :
 
3975
  $as_echo_n "(cached) " >&6
 
3976
else
 
3977
  if test -n "$YACC"; then
 
3978
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
3979
else
 
3980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3981
as_dummy="$PATH:/usr/local/bin:/usr/bin"
 
3982
for as_dir in $as_dummy
 
3983
do
 
3984
  IFS=$as_save_IFS
 
3985
  test -z "$as_dir" && as_dir=.
 
3986
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3987
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3988
    ac_cv_prog_YACC="$ac_prog"
 
3989
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3990
    break 2
 
3991
  fi
 
3992
done
 
3993
  done
 
3994
IFS=$as_save_IFS
 
3995
 
 
3996
fi
 
3997
fi
 
3998
YACC=$ac_cv_prog_YACC
 
3999
if test -n "$YACC"; then
 
4000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 
4001
$as_echo "$YACC" >&6; }
 
4002
else
 
4003
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4004
$as_echo "no" >&6; }
 
4005
fi
 
4006
 
 
4007
 
 
4008
  test -n "$YACC" && break
 
4009
done
 
4010
test -n "$YACC" || YACC="no"
 
4011
 
 
4012
if test "x$YACC" = "xno"; then
 
4013
        # Require bison unless y.tab.c already is built
 
4014
        if test ! -f src/y.tab.c; then
 
4015
                as_fn_error "Monit require bison, byacc or yacc. Download bison from http://www.gnu.org/software/bison/" "$LINENO" 5
 
4016
        fi
 
4017
fi
 
4018
# Extract the first word of "flex", so it can be a program name with args.
 
4019
set dummy flex; ac_word=$2
 
4020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4021
$as_echo_n "checking for $ac_word... " >&6; }
 
4022
if test "${ac_cv_path_FLEX+set}" = set; then :
 
4023
  $as_echo_n "(cached) " >&6
 
4024
else
 
4025
  case $FLEX in
 
4026
  [\\/]* | ?:[\\/]*)
 
4027
  ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
 
4028
  ;;
 
4029
  *)
 
4030
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4031
as_dummy="$PATH:/usr/local/bin:/usr/bin"
 
4032
for as_dir in $as_dummy
 
4033
do
 
4034
  IFS=$as_save_IFS
 
4035
  test -z "$as_dir" && as_dir=.
 
4036
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4037
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4038
    ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
 
4039
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4040
    break 2
 
4041
  fi
 
4042
done
 
4043
  done
 
4044
IFS=$as_save_IFS
 
4045
 
 
4046
  test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="no"
 
4047
  ;;
 
4048
esac
 
4049
fi
 
4050
FLEX=$ac_cv_path_FLEX
 
4051
if test -n "$FLEX"; then
 
4052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
 
4053
$as_echo "$FLEX" >&6; }
 
4054
else
 
4055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4056
$as_echo "no" >&6; }
 
4057
fi
 
4058
 
 
4059
 
 
4060
if test "x$FLEX" = "xno"; then
 
4061
        # Require flex unless lex.yy.c already is built
 
4062
        if test ! -f src/lex.yy.c; then
 
4063
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: flex is required. Download from http://www.gnu.org/software/flex/" >&5
 
4064
$as_echo "flex is required. Download from http://www.gnu.org/software/flex/" >&6; }
 
4065
        fi
 
4066
fi
 
4067
# Extract the first word of "pod2man", so it can be a program name with args.
 
4068
set dummy pod2man; ac_word=$2
 
4069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4070
$as_echo_n "checking for $ac_word... " >&6; }
 
4071
if test "${ac_cv_path_POD2MAN+set}" = set; then :
 
4072
  $as_echo_n "(cached) " >&6
 
4073
else
 
4074
  case $POD2MAN in
 
4075
  [\\/]* | ?:[\\/]*)
 
4076
  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
 
4077
  ;;
 
4078
  *)
 
4079
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4080
as_dummy="$PATH:/usr/local/bin:/usr/bin"
 
4081
for as_dir in $as_dummy
 
4082
do
 
4083
  IFS=$as_save_IFS
 
4084
  test -z "$as_dir" && as_dir=.
 
4085
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4086
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4087
    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
 
4088
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4089
    break 2
 
4090
  fi
 
4091
done
 
4092
  done
 
4093
IFS=$as_save_IFS
 
4094
 
 
4095
  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
 
4096
  ;;
 
4097
esac
 
4098
fi
 
4099
POD2MAN=$ac_cv_path_POD2MAN
 
4100
if test -n "$POD2MAN"; then
 
4101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
 
4102
$as_echo "$POD2MAN" >&6; }
 
4103
else
 
4104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4105
$as_echo "no" >&6; }
 
4106
fi
 
4107
 
 
4108
 
 
4109
if test "x$POD2MAN" = "xno"; then
 
4110
        # Require pod2man unless monit.1 already is built
 
4111
        if test ! -f monit.1; then
 
4112
                as_fn_error "pod2man is required to build the monit.1 man file." "$LINENO" 5
 
4113
        fi
 
4114
else
 
4115
        d=`date  '+%B %d. %Y'`
 
4116
        POD2MANFLAGS="--center 'User Commands' --release '${d}' --date='www.mmonit.com' --lax"
 
4117
 
 
4118
fi
 
4119
 
 
4120
 
 
4121
# ------------------------------------------------------------------------
 
4122
# Libtool
 
4123
# ------------------------------------------------------------------------
 
4124
 
 
4125
# Check whether --enable-static was given.
 
4126
if test "${enable_static+set}" = set; then :
 
4127
  enableval=$enable_static; p=${PACKAGE-default}
 
4128
    case $enableval in
 
4129
    yes) enable_static=yes ;;
 
4130
    no) enable_static=no ;;
 
4131
    *)
 
4132
     enable_static=no
 
4133
      # Look at the argument we got.  We use all the common list separators.
 
4134
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4135
      for pkg in $enableval; do
 
4136
        IFS="$lt_save_ifs"
 
4137
        if test "X$pkg" = "X$p"; then
 
4138
          enable_static=yes
 
4139
        fi
 
4140
      done
 
4141
      IFS="$lt_save_ifs"
 
4142
      ;;
 
4143
    esac
 
4144
else
 
4145
  enable_static=no
 
4146
fi
 
4147
 
 
4148
 
 
4149
 
 
4150
 
 
4151
 
 
4152
 
 
4153
 
 
4154
 
 
4155
 
 
4156
case `pwd` in
 
4157
  *\ * | *\     *)
 
4158
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4159
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4160
esac
 
4161
 
 
4162
 
 
4163
 
 
4164
macro_version='2.2.6b'
 
4165
macro_revision='1.3017'
 
4166
 
 
4167
 
 
4168
 
 
4169
 
 
4170
 
 
4171
 
 
4172
 
 
4173
 
 
4174
 
 
4175
 
 
4176
 
 
4177
 
 
4178
 
 
4179
ltmain="$ac_aux_dir/ltmain.sh"
 
4180
 
 
4181
# Make sure we can run config.sub.
 
4182
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4183
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4184
 
 
4185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4186
$as_echo_n "checking build system type... " >&6; }
 
4187
if test "${ac_cv_build+set}" = set; then :
 
4188
  $as_echo_n "(cached) " >&6
 
4189
else
 
4190
  ac_build_alias=$build_alias
 
4191
test "x$ac_build_alias" = x &&
 
4192
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4193
test "x$ac_build_alias" = x &&
 
4194
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
4195
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4196
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4197
 
 
4198
fi
 
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4200
$as_echo "$ac_cv_build" >&6; }
 
4201
case $ac_cv_build in
 
4202
*-*-*) ;;
 
4203
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
4204
esac
 
4205
build=$ac_cv_build
 
4206
ac_save_IFS=$IFS; IFS='-'
 
4207
set x $ac_cv_build
 
4208
shift
 
4209
build_cpu=$1
 
4210
build_vendor=$2
 
4211
shift; shift
 
4212
# Remember, the first character of IFS is used to create $*,
 
4213
# except with old shells:
 
4214
build_os=$*
 
4215
IFS=$ac_save_IFS
 
4216
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4217
 
 
4218
 
 
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4220
$as_echo_n "checking host system type... " >&6; }
 
4221
if test "${ac_cv_host+set}" = set; then :
 
4222
  $as_echo_n "(cached) " >&6
 
4223
else
 
4224
  if test "x$host_alias" = x; then
 
4225
  ac_cv_host=$ac_cv_build
 
4226
else
 
4227
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4228
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4229
fi
 
4230
 
 
4231
fi
 
4232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4233
$as_echo "$ac_cv_host" >&6; }
 
4234
case $ac_cv_host in
 
4235
*-*-*) ;;
 
4236
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
4237
esac
 
4238
host=$ac_cv_host
 
4239
ac_save_IFS=$IFS; IFS='-'
 
4240
set x $ac_cv_host
 
4241
shift
 
4242
host_cpu=$1
 
4243
host_vendor=$2
 
4244
shift; shift
 
4245
# Remember, the first character of IFS is used to create $*,
 
4246
# except with old shells:
 
4247
host_os=$*
 
4248
IFS=$ac_save_IFS
 
4249
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4250
 
 
4251
 
 
4252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4253
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4254
if test "${ac_cv_path_SED+set}" = set; then :
 
4255
  $as_echo_n "(cached) " >&6
 
4256
else
 
4257
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4258
     for ac_i in 1 2 3 4 5 6 7; do
 
4259
       ac_script="$ac_script$as_nl$ac_script"
 
4260
     done
 
4261
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4262
     { ac_script=; unset ac_script;}
 
4263
     if test -z "$SED"; then
 
4264
  ac_path_SED_found=false
 
4265
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4266
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4267
for as_dir in $PATH
 
4268
do
 
4269
  IFS=$as_save_IFS
 
4270
  test -z "$as_dir" && as_dir=.
 
4271
    for ac_prog in sed gsed; do
 
4272
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4273
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4274
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4275
# Check for GNU ac_path_SED and select it if it is found.
 
4276
  # Check for GNU $ac_path_SED
 
4277
case `"$ac_path_SED" --version 2>&1` in
 
4278
*GNU*)
 
4279
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4280
*)
 
4281
  ac_count=0
 
4282
  $as_echo_n 0123456789 >"conftest.in"
 
4283
  while :
 
4284
  do
 
4285
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4286
    mv "conftest.tmp" "conftest.in"
 
4287
    cp "conftest.in" "conftest.nl"
 
4288
    $as_echo '' >> "conftest.nl"
 
4289
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4290
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4291
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4292
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4293
      # Best one so far, save it but keep looking for a better one
 
4294
      ac_cv_path_SED="$ac_path_SED"
 
4295
      ac_path_SED_max=$ac_count
 
4296
    fi
 
4297
    # 10*(2^10) chars as input seems more than enough
 
4298
    test $ac_count -gt 10 && break
 
4299
  done
 
4300
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4301
esac
 
4302
 
 
4303
      $ac_path_SED_found && break 3
 
4304
    done
 
4305
  done
 
4306
  done
 
4307
IFS=$as_save_IFS
 
4308
  if test -z "$ac_cv_path_SED"; then
 
4309
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4310
  fi
 
4311
else
 
4312
  ac_cv_path_SED=$SED
 
4313
fi
 
4314
 
 
4315
fi
 
4316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4317
$as_echo "$ac_cv_path_SED" >&6; }
 
4318
 SED="$ac_cv_path_SED"
 
4319
  rm -f conftest.sed
 
4320
 
 
4321
test -z "$SED" && SED=sed
 
4322
Xsed="$SED -e 1s/^X//"
 
4323
 
 
4324
 
 
4325
 
 
4326
 
 
4327
 
 
4328
 
 
4329
 
 
4330
 
 
4331
 
 
4332
 
 
4333
 
 
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4335
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4336
if test "${ac_cv_path_GREP+set}" = set; then :
 
4337
  $as_echo_n "(cached) " >&6
 
4338
else
 
4339
  if test -z "$GREP"; then
 
4340
  ac_path_GREP_found=false
 
4341
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4342
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4343
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4344
do
 
4345
  IFS=$as_save_IFS
 
4346
  test -z "$as_dir" && as_dir=.
 
4347
    for ac_prog in grep ggrep; do
 
4348
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4349
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4350
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4351
# Check for GNU ac_path_GREP and select it if it is found.
 
4352
  # Check for GNU $ac_path_GREP
 
4353
case `"$ac_path_GREP" --version 2>&1` in
 
4354
*GNU*)
 
4355
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4356
*)
 
4357
  ac_count=0
 
4358
  $as_echo_n 0123456789 >"conftest.in"
 
4359
  while :
 
4360
  do
 
4361
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4362
    mv "conftest.tmp" "conftest.in"
 
4363
    cp "conftest.in" "conftest.nl"
 
4364
    $as_echo 'GREP' >> "conftest.nl"
 
4365
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4366
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4367
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4368
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4369
      # Best one so far, save it but keep looking for a better one
 
4370
      ac_cv_path_GREP="$ac_path_GREP"
 
4371
      ac_path_GREP_max=$ac_count
 
4372
    fi
 
4373
    # 10*(2^10) chars as input seems more than enough
 
4374
    test $ac_count -gt 10 && break
 
4375
  done
 
4376
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4377
esac
 
4378
 
 
4379
      $ac_path_GREP_found && break 3
 
4380
    done
 
4381
  done
 
4382
  done
 
4383
IFS=$as_save_IFS
 
4384
  if test -z "$ac_cv_path_GREP"; then
 
4385
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4386
  fi
 
4387
else
 
4388
  ac_cv_path_GREP=$GREP
 
4389
fi
 
4390
 
 
4391
fi
 
4392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4393
$as_echo "$ac_cv_path_GREP" >&6; }
 
4394
 GREP="$ac_cv_path_GREP"
 
4395
 
 
4396
 
 
4397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4398
$as_echo_n "checking for egrep... " >&6; }
 
4399
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4400
  $as_echo_n "(cached) " >&6
 
4401
else
 
4402
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4403
   then ac_cv_path_EGREP="$GREP -E"
 
4404
   else
 
4405
     if test -z "$EGREP"; then
 
4406
  ac_path_EGREP_found=false
 
4407
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4408
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4409
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4410
do
 
4411
  IFS=$as_save_IFS
 
4412
  test -z "$as_dir" && as_dir=.
 
4413
    for ac_prog in egrep; do
 
4414
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4415
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4416
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4417
# Check for GNU ac_path_EGREP and select it if it is found.
 
4418
  # Check for GNU $ac_path_EGREP
 
4419
case `"$ac_path_EGREP" --version 2>&1` in
 
4420
*GNU*)
 
4421
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4422
*)
 
4423
  ac_count=0
 
4424
  $as_echo_n 0123456789 >"conftest.in"
 
4425
  while :
 
4426
  do
 
4427
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4428
    mv "conftest.tmp" "conftest.in"
 
4429
    cp "conftest.in" "conftest.nl"
 
4430
    $as_echo 'EGREP' >> "conftest.nl"
 
4431
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4432
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4433
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4434
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4435
      # Best one so far, save it but keep looking for a better one
 
4436
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4437
      ac_path_EGREP_max=$ac_count
 
4438
    fi
 
4439
    # 10*(2^10) chars as input seems more than enough
 
4440
    test $ac_count -gt 10 && break
 
4441
  done
 
4442
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4443
esac
 
4444
 
 
4445
      $ac_path_EGREP_found && break 3
 
4446
    done
 
4447
  done
 
4448
  done
 
4449
IFS=$as_save_IFS
 
4450
  if test -z "$ac_cv_path_EGREP"; then
 
4451
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4452
  fi
 
4453
else
 
4454
  ac_cv_path_EGREP=$EGREP
 
4455
fi
 
4456
 
 
4457
   fi
 
4458
fi
 
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4460
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4461
 EGREP="$ac_cv_path_EGREP"
 
4462
 
 
4463
 
 
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4465
$as_echo_n "checking for fgrep... " >&6; }
 
4466
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4467
  $as_echo_n "(cached) " >&6
 
4468
else
 
4469
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4470
   then ac_cv_path_FGREP="$GREP -F"
 
4471
   else
 
4472
     if test -z "$FGREP"; then
 
4473
  ac_path_FGREP_found=false
 
4474
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4475
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4476
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4477
do
 
4478
  IFS=$as_save_IFS
 
4479
  test -z "$as_dir" && as_dir=.
 
4480
    for ac_prog in fgrep; do
 
4481
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4482
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4483
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4484
# Check for GNU ac_path_FGREP and select it if it is found.
 
4485
  # Check for GNU $ac_path_FGREP
 
4486
case `"$ac_path_FGREP" --version 2>&1` in
 
4487
*GNU*)
 
4488
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4489
*)
 
4490
  ac_count=0
 
4491
  $as_echo_n 0123456789 >"conftest.in"
 
4492
  while :
 
4493
  do
 
4494
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4495
    mv "conftest.tmp" "conftest.in"
 
4496
    cp "conftest.in" "conftest.nl"
 
4497
    $as_echo 'FGREP' >> "conftest.nl"
 
4498
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4499
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4500
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4501
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4502
      # Best one so far, save it but keep looking for a better one
 
4503
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4504
      ac_path_FGREP_max=$ac_count
 
4505
    fi
 
4506
    # 10*(2^10) chars as input seems more than enough
 
4507
    test $ac_count -gt 10 && break
 
4508
  done
 
4509
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4510
esac
 
4511
 
 
4512
      $ac_path_FGREP_found && break 3
 
4513
    done
 
4514
  done
 
4515
  done
 
4516
IFS=$as_save_IFS
 
4517
  if test -z "$ac_cv_path_FGREP"; then
 
4518
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4519
  fi
 
4520
else
 
4521
  ac_cv_path_FGREP=$FGREP
 
4522
fi
 
4523
 
 
4524
   fi
 
4525
fi
 
4526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4527
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4528
 FGREP="$ac_cv_path_FGREP"
 
4529
 
 
4530
 
 
4531
test -z "$GREP" && GREP=grep
 
4532
 
 
4533
 
 
4534
 
 
4535
 
 
4536
 
 
4537
 
 
4538
 
 
4539
 
 
4540
 
 
4541
 
 
4542
 
 
4543
 
 
4544
 
 
4545
 
 
4546
 
 
4547
 
 
4548
 
 
4549
 
 
4550
 
 
4551
# Check whether --with-gnu-ld was given.
 
4552
if test "${with_gnu_ld+set}" = set; then :
 
4553
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4554
else
 
4555
  with_gnu_ld=no
 
4556
fi
 
4557
 
 
4558
ac_prog=ld
 
4559
if test "$GCC" = yes; then
 
4560
  # Check if gcc -print-prog-name=ld gives a path.
 
4561
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4562
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4563
  case $host in
 
4564
  *-*-mingw*)
 
4565
    # gcc leaves a trailing carriage return which upsets mingw
 
4566
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4567
  *)
 
4568
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4569
  esac
 
4570
  case $ac_prog in
 
4571
    # Accept absolute paths.
 
4572
    [\\/]* | ?:[\\/]*)
 
4573
      re_direlt='/[^/][^/]*/\.\./'
 
4574
      # Canonicalize the pathname of ld
 
4575
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4576
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4577
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4578
      done
 
4579
      test -z "$LD" && LD="$ac_prog"
 
4580
      ;;
 
4581
  "")
 
4582
    # If it fails, then pretend we aren't using GCC.
 
4583
    ac_prog=ld
 
4584
    ;;
 
4585
  *)
 
4586
    # If it is relative, then search for the first ld in PATH.
 
4587
    with_gnu_ld=unknown
 
4588
    ;;
 
4589
  esac
 
4590
elif test "$with_gnu_ld" = yes; then
 
4591
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4592
$as_echo_n "checking for GNU ld... " >&6; }
 
4593
else
 
4594
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4595
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4596
fi
 
4597
if test "${lt_cv_path_LD+set}" = set; then :
 
4598
  $as_echo_n "(cached) " >&6
 
4599
else
 
4600
  if test -z "$LD"; then
 
4601
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4602
  for ac_dir in $PATH; do
 
4603
    IFS="$lt_save_ifs"
 
4604
    test -z "$ac_dir" && ac_dir=.
 
4605
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4606
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4607
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4608
      # but apparently some variants of GNU ld only accept -v.
 
4609
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4610
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4611
      *GNU* | *'with BFD'*)
 
4612
        test "$with_gnu_ld" != no && break
 
4613
        ;;
 
4614
      *)
 
4615
        test "$with_gnu_ld" != yes && break
 
4616
        ;;
 
4617
      esac
 
4618
    fi
 
4619
  done
 
4620
  IFS="$lt_save_ifs"
 
4621
else
 
4622
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4623
fi
 
4624
fi
 
4625
 
 
4626
LD="$lt_cv_path_LD"
 
4627
if test -n "$LD"; then
 
4628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4629
$as_echo "$LD" >&6; }
 
4630
else
 
4631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4632
$as_echo "no" >&6; }
 
4633
fi
 
4634
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4636
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4637
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4638
  $as_echo_n "(cached) " >&6
 
4639
else
 
4640
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4641
case `$LD -v 2>&1 </dev/null` in
 
4642
*GNU* | *'with BFD'*)
 
4643
  lt_cv_prog_gnu_ld=yes
 
4644
  ;;
 
4645
*)
 
4646
  lt_cv_prog_gnu_ld=no
 
4647
  ;;
 
4648
esac
 
4649
fi
 
4650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4651
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4652
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4653
 
 
4654
 
 
4655
 
 
4656
 
 
4657
 
 
4658
 
 
4659
 
 
4660
 
 
4661
 
 
4662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4663
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4664
if test "${lt_cv_path_NM+set}" = set; then :
 
4665
  $as_echo_n "(cached) " >&6
 
4666
else
 
4667
  if test -n "$NM"; then
 
4668
  # Let the user override the test.
 
4669
  lt_cv_path_NM="$NM"
 
4670
else
 
4671
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4672
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4673
    lt_nm_to_check="$lt_nm_to_check nm"
 
4674
  fi
 
4675
  for lt_tmp_nm in $lt_nm_to_check; do
 
4676
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4677
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4678
      IFS="$lt_save_ifs"
 
4679
      test -z "$ac_dir" && ac_dir=.
 
4680
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4681
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4682
        # Check to see if the nm accepts a BSD-compat flag.
 
4683
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4684
        #   nm: unknown option "B" ignored
 
4685
        # Tru64's nm complains that /dev/null is an invalid object file
 
4686
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4687
        */dev/null* | *'Invalid file or object type'*)
 
4688
          lt_cv_path_NM="$tmp_nm -B"
 
4689
          break
 
4690
          ;;
 
4691
        *)
 
4692
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4693
          */dev/null*)
 
4694
            lt_cv_path_NM="$tmp_nm -p"
 
4695
            break
 
4696
            ;;
 
4697
          *)
 
4698
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4699
            continue # so that we can try to find one that supports BSD flags
 
4700
            ;;
 
4701
          esac
 
4702
          ;;
 
4703
        esac
 
4704
      fi
 
4705
    done
 
4706
    IFS="$lt_save_ifs"
 
4707
  done
 
4708
  : ${lt_cv_path_NM=no}
 
4709
fi
 
4710
fi
 
4711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4712
$as_echo "$lt_cv_path_NM" >&6; }
 
4713
if test "$lt_cv_path_NM" != "no"; then
 
4714
  NM="$lt_cv_path_NM"
 
4715
else
 
4716
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4717
  if test -n "$ac_tool_prefix"; then
 
4718
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4719
  do
 
4720
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4721
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4723
$as_echo_n "checking for $ac_word... " >&6; }
 
4724
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
4725
  $as_echo_n "(cached) " >&6
 
4726
else
 
4727
  if test -n "$DUMPBIN"; then
 
4728
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4729
else
 
4730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4731
for as_dir in $PATH
 
4732
do
 
4733
  IFS=$as_save_IFS
 
4734
  test -z "$as_dir" && as_dir=.
 
4735
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4736
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4737
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4738
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4739
    break 2
 
4740
  fi
 
4741
done
 
4742
  done
 
4743
IFS=$as_save_IFS
 
4744
 
 
4745
fi
 
4746
fi
 
4747
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4748
if test -n "$DUMPBIN"; then
 
4749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4750
$as_echo "$DUMPBIN" >&6; }
 
4751
else
 
4752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4753
$as_echo "no" >&6; }
 
4754
fi
 
4755
 
 
4756
 
 
4757
    test -n "$DUMPBIN" && break
 
4758
  done
 
4759
fi
 
4760
if test -z "$DUMPBIN"; then
 
4761
  ac_ct_DUMPBIN=$DUMPBIN
 
4762
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4763
do
 
4764
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4765
set dummy $ac_prog; ac_word=$2
 
4766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4767
$as_echo_n "checking for $ac_word... " >&6; }
 
4768
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
4769
  $as_echo_n "(cached) " >&6
 
4770
else
 
4771
  if test -n "$ac_ct_DUMPBIN"; then
 
4772
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4773
else
 
4774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4775
for as_dir in $PATH
 
4776
do
 
4777
  IFS=$as_save_IFS
 
4778
  test -z "$as_dir" && as_dir=.
 
4779
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4780
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4781
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4782
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4783
    break 2
 
4784
  fi
 
4785
done
 
4786
  done
 
4787
IFS=$as_save_IFS
 
4788
 
 
4789
fi
 
4790
fi
 
4791
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4792
if test -n "$ac_ct_DUMPBIN"; then
 
4793
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4794
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4795
else
 
4796
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4797
$as_echo "no" >&6; }
 
4798
fi
 
4799
 
 
4800
 
 
4801
  test -n "$ac_ct_DUMPBIN" && break
 
4802
done
 
4803
 
 
4804
  if test "x$ac_ct_DUMPBIN" = x; then
 
4805
    DUMPBIN=":"
 
4806
  else
 
4807
    case $cross_compiling:$ac_tool_warned in
 
4808
yes:)
 
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4810
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4811
ac_tool_warned=yes ;;
 
4812
esac
 
4813
    DUMPBIN=$ac_ct_DUMPBIN
 
4814
  fi
 
4815
fi
 
4816
 
 
4817
 
 
4818
  if test "$DUMPBIN" != ":"; then
 
4819
    NM="$DUMPBIN"
 
4820
  fi
 
4821
fi
 
4822
test -z "$NM" && NM=nm
 
4823
 
 
4824
 
 
4825
 
 
4826
 
 
4827
 
 
4828
 
 
4829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4830
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4831
if test "${lt_cv_nm_interface+set}" = set; then :
 
4832
  $as_echo_n "(cached) " >&6
 
4833
else
 
4834
  lt_cv_nm_interface="BSD nm"
 
4835
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4836
  (eval echo "\"\$as_me:4836: $ac_compile\"" >&5)
 
4837
  (eval "$ac_compile" 2>conftest.err)
 
4838
  cat conftest.err >&5
 
4839
  (eval echo "\"\$as_me:4839: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4840
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4841
  cat conftest.err >&5
 
4842
  (eval echo "\"\$as_me:4842: output\"" >&5)
 
4843
  cat conftest.out >&5
 
4844
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4845
    lt_cv_nm_interface="MS dumpbin"
 
4846
  fi
 
4847
  rm -f conftest*
 
4848
fi
 
4849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4850
$as_echo "$lt_cv_nm_interface" >&6; }
 
4851
 
 
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4853
$as_echo_n "checking whether ln -s works... " >&6; }
 
4854
LN_S=$as_ln_s
 
4855
if test "$LN_S" = "ln -s"; then
 
4856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4857
$as_echo "yes" >&6; }
 
4858
else
 
4859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4860
$as_echo "no, using $LN_S" >&6; }
 
4861
fi
 
4862
 
 
4863
# find the maximum length of command line arguments
 
4864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4865
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4866
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
4867
  $as_echo_n "(cached) " >&6
 
4868
else
 
4869
    i=0
 
4870
  teststring="ABCD"
 
4871
 
 
4872
  case $build_os in
 
4873
  msdosdjgpp*)
 
4874
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4875
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4876
    # during glob expansion).  Even if it were fixed, the result of this
 
4877
    # check would be larger than it should be.
 
4878
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4879
    ;;
 
4880
 
 
4881
  gnu*)
 
4882
    # Under GNU Hurd, this test is not required because there is
 
4883
    # no limit to the length of command line arguments.
 
4884
    # Libtool will interpret -1 as no limit whatsoever
 
4885
    lt_cv_sys_max_cmd_len=-1;
 
4886
    ;;
 
4887
 
 
4888
  cygwin* | mingw* | cegcc*)
 
4889
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4890
    # about 5 minutes as the teststring grows exponentially.
 
4891
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4892
    # you end up with a "frozen" computer, even though with patience
 
4893
    # the test eventually succeeds (with a max line length of 256k).
 
4894
    # Instead, let's just punt: use the minimum linelength reported by
 
4895
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4896
    lt_cv_sys_max_cmd_len=8192;
 
4897
    ;;
 
4898
 
 
4899
  amigaos*)
 
4900
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4901
    # So we just punt and use a minimum line length of 8192.
 
4902
    lt_cv_sys_max_cmd_len=8192;
 
4903
    ;;
 
4904
 
 
4905
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4906
    # This has been around since 386BSD, at least.  Likely further.
 
4907
    if test -x /sbin/sysctl; then
 
4908
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4909
    elif test -x /usr/sbin/sysctl; then
 
4910
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4911
    else
 
4912
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4913
    fi
 
4914
    # And add a safety zone
 
4915
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4916
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4917
    ;;
 
4918
 
 
4919
  interix*)
 
4920
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4921
    lt_cv_sys_max_cmd_len=196608
 
4922
    ;;
 
4923
 
 
4924
  osf*)
 
4925
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4926
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4927
    # nice to cause kernel panics so lets avoid the loop below.
 
4928
    # First set a reasonable default.
 
4929
    lt_cv_sys_max_cmd_len=16384
 
4930
    #
 
4931
    if test -x /sbin/sysconfig; then
 
4932
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4933
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4934
      esac
 
4935
    fi
 
4936
    ;;
 
4937
  sco3.2v5*)
 
4938
    lt_cv_sys_max_cmd_len=102400
 
4939
    ;;
 
4940
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4941
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4942
    if test -n "$kargmax"; then
 
4943
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4944
    else
 
4945
      lt_cv_sys_max_cmd_len=32768
 
4946
    fi
 
4947
    ;;
 
4948
  *)
 
4949
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4950
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4951
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4952
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4953
    else
 
4954
      # Make teststring a little bigger before we do anything with it.
 
4955
      # a 1K string should be a reasonable start.
 
4956
      for i in 1 2 3 4 5 6 7 8 ; do
 
4957
        teststring=$teststring$teststring
 
4958
      done
 
4959
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4960
      # If test is not a shell built-in, we'll probably end up computing a
 
4961
      # maximum length that is only half of the actual maximum length, but
 
4962
      # we can't tell.
 
4963
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4964
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4965
              test $i != 17 # 1/2 MB should be enough
 
4966
      do
 
4967
        i=`expr $i + 1`
 
4968
        teststring=$teststring$teststring
 
4969
      done
 
4970
      # Only check the string length outside the loop.
 
4971
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4972
      teststring=
 
4973
      # Add a significant safety factor because C++ compilers can tack on
 
4974
      # massive amounts of additional arguments before passing them to the
 
4975
      # linker.  It appears as though 1/2 is a usable value.
 
4976
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4977
    fi
 
4978
    ;;
 
4979
  esac
 
4980
 
 
4981
fi
 
4982
 
 
4983
if test -n $lt_cv_sys_max_cmd_len ; then
 
4984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4985
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4986
else
 
4987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4988
$as_echo "none" >&6; }
 
4989
fi
 
4990
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4991
 
 
4992
 
 
4993
 
 
4994
 
 
4995
 
 
4996
 
 
4997
: ${CP="cp -f"}
 
4998
: ${MV="mv -f"}
 
4999
: ${RM="rm -f"}
 
5000
 
 
5001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5002
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5003
# Try some XSI features
 
5004
xsi_shell=no
 
5005
( _lt_dummy="a/b/c"
 
5006
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5007
      = c,a/b,, \
 
5008
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5009
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5010
  && xsi_shell=yes
 
5011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5012
$as_echo "$xsi_shell" >&6; }
 
5013
 
 
5014
 
 
5015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5016
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5017
lt_shell_append=no
 
5018
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5019
    >/dev/null 2>&1 \
 
5020
  && lt_shell_append=yes
 
5021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5022
$as_echo "$lt_shell_append" >&6; }
 
5023
 
 
5024
 
 
5025
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5026
  lt_unset=unset
 
5027
else
 
5028
  lt_unset=false
 
5029
fi
 
5030
 
 
5031
 
 
5032
 
 
5033
 
 
5034
 
 
5035
# test EBCDIC or ASCII
 
5036
case `echo X|tr X '\101'` in
 
5037
 A) # ASCII based system
 
5038
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5039
  lt_SP2NL='tr \040 \012'
 
5040
  lt_NL2SP='tr \015\012 \040\040'
 
5041
  ;;
 
5042
 *) # EBCDIC based system
 
5043
  lt_SP2NL='tr \100 \n'
 
5044
  lt_NL2SP='tr \r\n \100\100'
 
5045
  ;;
 
5046
esac
 
5047
 
 
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
 
 
5053
 
 
5054
 
 
5055
 
 
5056
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5057
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5058
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5059
  $as_echo_n "(cached) " >&6
 
5060
else
 
5061
  lt_cv_ld_reload_flag='-r'
 
5062
fi
 
5063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5064
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5065
reload_flag=$lt_cv_ld_reload_flag
 
5066
case $reload_flag in
 
5067
"" | " "*) ;;
 
5068
*) reload_flag=" $reload_flag" ;;
 
5069
esac
 
5070
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5071
case $host_os in
 
5072
  darwin*)
 
5073
    if test "$GCC" = yes; then
 
5074
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5075
    else
 
5076
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5077
    fi
 
5078
    ;;
 
5079
esac
 
5080
 
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
if test -n "$ac_tool_prefix"; then
 
5090
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5091
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5093
$as_echo_n "checking for $ac_word... " >&6; }
 
5094
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5095
  $as_echo_n "(cached) " >&6
 
5096
else
 
5097
  if test -n "$OBJDUMP"; then
 
5098
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5099
else
 
5100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5101
for as_dir in $PATH
 
5102
do
 
5103
  IFS=$as_save_IFS
 
5104
  test -z "$as_dir" && as_dir=.
 
5105
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5106
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5107
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5108
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5109
    break 2
 
5110
  fi
 
5111
done
 
5112
  done
 
5113
IFS=$as_save_IFS
 
5114
 
 
5115
fi
 
5116
fi
 
5117
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5118
if test -n "$OBJDUMP"; then
 
5119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5120
$as_echo "$OBJDUMP" >&6; }
 
5121
else
 
5122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5123
$as_echo "no" >&6; }
 
5124
fi
 
5125
 
 
5126
 
 
5127
fi
 
5128
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5129
  ac_ct_OBJDUMP=$OBJDUMP
 
5130
  # Extract the first word of "objdump", so it can be a program name with args.
 
5131
set dummy objdump; ac_word=$2
 
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5133
$as_echo_n "checking for $ac_word... " >&6; }
 
5134
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5135
  $as_echo_n "(cached) " >&6
 
5136
else
 
5137
  if test -n "$ac_ct_OBJDUMP"; then
 
5138
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5139
else
 
5140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5141
for as_dir in $PATH
 
5142
do
 
5143
  IFS=$as_save_IFS
 
5144
  test -z "$as_dir" && as_dir=.
 
5145
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5146
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5147
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5148
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5149
    break 2
 
5150
  fi
 
5151
done
 
5152
  done
 
5153
IFS=$as_save_IFS
 
5154
 
 
5155
fi
 
5156
fi
 
5157
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5158
if test -n "$ac_ct_OBJDUMP"; then
 
5159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5160
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5161
else
 
5162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5163
$as_echo "no" >&6; }
 
5164
fi
 
5165
 
 
5166
  if test "x$ac_ct_OBJDUMP" = x; then
 
5167
    OBJDUMP="false"
 
5168
  else
 
5169
    case $cross_compiling:$ac_tool_warned in
 
5170
yes:)
 
5171
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5172
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5173
ac_tool_warned=yes ;;
 
5174
esac
 
5175
    OBJDUMP=$ac_ct_OBJDUMP
 
5176
  fi
 
5177
else
 
5178
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5179
fi
 
5180
 
 
5181
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5182
 
 
5183
 
 
5184
 
 
5185
 
 
5186
 
 
5187
 
 
5188
 
 
5189
 
 
5190
 
 
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5192
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5193
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5194
  $as_echo_n "(cached) " >&6
 
5195
else
 
5196
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5197
lt_cv_file_magic_test_file=
 
5198
lt_cv_deplibs_check_method='unknown'
 
5199
# Need to set the preceding variable on all platforms that support
 
5200
# interlibrary dependencies.
 
5201
# 'none' -- dependencies not supported.
 
5202
# `unknown' -- same as none, but documents that we really don't know.
 
5203
# 'pass_all' -- all dependencies passed with no checks.
 
5204
# 'test_compile' -- check by making test program.
 
5205
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5206
# which responds to the $file_magic_cmd with a given extended regex.
 
5207
# If you have `file' or equivalent on your system and you're not sure
 
5208
# whether `pass_all' will *always* work, you probably want this one.
 
5209
 
 
5210
case $host_os in
 
5211
aix[4-9]*)
 
5212
  lt_cv_deplibs_check_method=pass_all
 
5213
  ;;
 
5214
 
 
5215
beos*)
 
5216
  lt_cv_deplibs_check_method=pass_all
 
5217
  ;;
 
5218
 
 
5219
bsdi[45]*)
 
5220
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5221
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5222
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5223
  ;;
 
5224
 
 
5225
cygwin*)
 
5226
  # func_win32_libid is a shell function defined in ltmain.sh
 
5227
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5228
  lt_cv_file_magic_cmd='func_win32_libid'
 
5229
  ;;
 
5230
 
 
5231
mingw* | pw32*)
 
5232
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5233
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5234
  # unless we find 'file', for example because we are cross-compiling.
 
5235
  if ( file / ) >/dev/null 2>&1; then
 
5236
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5237
    lt_cv_file_magic_cmd='func_win32_libid'
 
5238
  else
 
5239
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5240
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5241
  fi
 
5242
  ;;
 
5243
 
 
5244
cegcc)
 
5245
  # use the weaker test based on 'objdump'. See mingw*.
 
5246
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5247
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5248
  ;;
 
5249
 
 
5250
darwin* | rhapsody*)
 
5251
  lt_cv_deplibs_check_method=pass_all
 
5252
  ;;
 
5253
 
 
5254
freebsd* | dragonfly*)
 
5255
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5256
    case $host_cpu in
 
5257
    i*86 )
 
5258
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5259
      # Let's accept both of them until this is cleared up.
 
5260
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5261
      lt_cv_file_magic_cmd=/usr/bin/file
 
5262
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5263
      ;;
 
5264
    esac
 
5265
  else
 
5266
    lt_cv_deplibs_check_method=pass_all
 
5267
  fi
 
5268
  ;;
 
5269
 
 
5270
gnu*)
 
5271
  lt_cv_deplibs_check_method=pass_all
 
5272
  ;;
 
5273
 
 
5274
hpux10.20* | hpux11*)
 
5275
  lt_cv_file_magic_cmd=/usr/bin/file
 
5276
  case $host_cpu in
 
5277
  ia64*)
 
5278
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5279
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5280
    ;;
 
5281
  hppa*64*)
 
5282
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5283
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5284
    ;;
 
5285
  *)
 
5286
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5287
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5288
    ;;
 
5289
  esac
 
5290
  ;;
 
5291
 
 
5292
interix[3-9]*)
 
5293
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5294
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5295
  ;;
 
5296
 
 
5297
irix5* | irix6* | nonstopux*)
 
5298
  case $LD in
 
5299
  *-32|*"-32 ") libmagic=32-bit;;
 
5300
  *-n32|*"-n32 ") libmagic=N32;;
 
5301
  *-64|*"-64 ") libmagic=64-bit;;
 
5302
  *) libmagic=never-match;;
 
5303
  esac
 
5304
  lt_cv_deplibs_check_method=pass_all
 
5305
  ;;
 
5306
 
 
5307
# This must be Linux ELF.
 
5308
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5309
  lt_cv_deplibs_check_method=pass_all
 
5310
  ;;
 
5311
 
 
5312
netbsd* | netbsdelf*-gnu)
 
5313
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5314
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5315
  else
 
5316
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5317
  fi
 
5318
  ;;
 
5319
 
 
5320
newos6*)
 
5321
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5322
  lt_cv_file_magic_cmd=/usr/bin/file
 
5323
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5324
  ;;
 
5325
 
 
5326
*nto* | *qnx*)
 
5327
  lt_cv_deplibs_check_method=pass_all
 
5328
  ;;
 
5329
 
 
5330
openbsd*)
 
5331
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5332
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5333
  else
 
5334
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5335
  fi
 
5336
  ;;
 
5337
 
 
5338
osf3* | osf4* | osf5*)
 
5339
  lt_cv_deplibs_check_method=pass_all
 
5340
  ;;
 
5341
 
 
5342
rdos*)
 
5343
  lt_cv_deplibs_check_method=pass_all
 
5344
  ;;
 
5345
 
 
5346
solaris*)
 
5347
  lt_cv_deplibs_check_method=pass_all
 
5348
  ;;
 
5349
 
 
5350
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5351
  lt_cv_deplibs_check_method=pass_all
 
5352
  ;;
 
5353
 
 
5354
sysv4 | sysv4.3*)
 
5355
  case $host_vendor in
 
5356
  motorola)
 
5357
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
5358
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5359
    ;;
 
5360
  ncr)
 
5361
    lt_cv_deplibs_check_method=pass_all
 
5362
    ;;
 
5363
  sequent)
 
5364
    lt_cv_file_magic_cmd='/bin/file'
 
5365
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5366
    ;;
 
5367
  sni)
 
5368
    lt_cv_file_magic_cmd='/bin/file'
 
5369
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5370
    lt_cv_file_magic_test_file=/lib/libc.so
 
5371
    ;;
 
5372
  siemens)
 
5373
    lt_cv_deplibs_check_method=pass_all
 
5374
    ;;
 
5375
  pc)
 
5376
    lt_cv_deplibs_check_method=pass_all
 
5377
    ;;
 
5378
  esac
 
5379
  ;;
 
5380
 
 
5381
tpf*)
 
5382
  lt_cv_deplibs_check_method=pass_all
 
5383
  ;;
 
5384
esac
 
5385
 
 
5386
fi
 
5387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5388
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5389
file_magic_cmd=$lt_cv_file_magic_cmd
 
5390
deplibs_check_method=$lt_cv_deplibs_check_method
 
5391
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5392
 
 
5393
 
 
5394
 
 
5395
 
 
5396
 
 
5397
 
 
5398
 
 
5399
 
 
5400
 
 
5401
 
 
5402
 
 
5403
 
 
5404
if test -n "$ac_tool_prefix"; then
 
5405
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5406
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5408
$as_echo_n "checking for $ac_word... " >&6; }
 
5409
if test "${ac_cv_prog_AR+set}" = set; then :
 
5410
  $as_echo_n "(cached) " >&6
 
5411
else
 
5412
  if test -n "$AR"; then
 
5413
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5414
else
 
5415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5416
for as_dir in $PATH
 
5417
do
 
5418
  IFS=$as_save_IFS
 
5419
  test -z "$as_dir" && as_dir=.
 
5420
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5422
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5423
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5424
    break 2
 
5425
  fi
 
5426
done
 
5427
  done
 
5428
IFS=$as_save_IFS
 
5429
 
 
5430
fi
 
5431
fi
 
5432
AR=$ac_cv_prog_AR
 
5433
if test -n "$AR"; then
 
5434
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5435
$as_echo "$AR" >&6; }
 
5436
else
 
5437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5438
$as_echo "no" >&6; }
 
5439
fi
 
5440
 
 
5441
 
 
5442
fi
 
5443
if test -z "$ac_cv_prog_AR"; then
 
5444
  ac_ct_AR=$AR
 
5445
  # Extract the first word of "ar", so it can be a program name with args.
 
5446
set dummy ar; ac_word=$2
 
5447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5448
$as_echo_n "checking for $ac_word... " >&6; }
 
5449
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5450
  $as_echo_n "(cached) " >&6
 
5451
else
 
5452
  if test -n "$ac_ct_AR"; then
 
5453
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5454
else
 
5455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5456
for as_dir in $PATH
 
5457
do
 
5458
  IFS=$as_save_IFS
 
5459
  test -z "$as_dir" && as_dir=.
 
5460
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5461
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5462
    ac_cv_prog_ac_ct_AR="ar"
 
5463
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5464
    break 2
 
5465
  fi
 
5466
done
 
5467
  done
 
5468
IFS=$as_save_IFS
 
5469
 
 
5470
fi
 
5471
fi
 
5472
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5473
if test -n "$ac_ct_AR"; then
 
5474
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5475
$as_echo "$ac_ct_AR" >&6; }
 
5476
else
 
5477
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5478
$as_echo "no" >&6; }
 
5479
fi
 
5480
 
 
5481
  if test "x$ac_ct_AR" = x; then
 
5482
    AR="false"
 
5483
  else
 
5484
    case $cross_compiling:$ac_tool_warned in
 
5485
yes:)
 
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5487
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5488
ac_tool_warned=yes ;;
 
5489
esac
 
5490
    AR=$ac_ct_AR
 
5491
  fi
 
5492
else
 
5493
  AR="$ac_cv_prog_AR"
 
5494
fi
 
5495
 
 
5496
test -z "$AR" && AR=ar
 
5497
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5498
 
 
5499
 
 
5500
 
 
5501
 
 
5502
 
 
5503
 
 
5504
 
 
5505
 
 
5506
 
 
5507
 
 
5508
 
 
5509
if test -n "$ac_tool_prefix"; then
 
5510
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5511
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5513
$as_echo_n "checking for $ac_word... " >&6; }
 
5514
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5515
  $as_echo_n "(cached) " >&6
 
5516
else
 
5517
  if test -n "$STRIP"; then
 
5518
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5519
else
 
5520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5521
for as_dir in $PATH
 
5522
do
 
5523
  IFS=$as_save_IFS
 
5524
  test -z "$as_dir" && as_dir=.
 
5525
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5526
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5527
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5528
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5529
    break 2
 
5530
  fi
 
5531
done
 
5532
  done
 
5533
IFS=$as_save_IFS
 
5534
 
 
5535
fi
 
5536
fi
 
5537
STRIP=$ac_cv_prog_STRIP
 
5538
if test -n "$STRIP"; then
 
5539
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5540
$as_echo "$STRIP" >&6; }
 
5541
else
 
5542
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5543
$as_echo "no" >&6; }
 
5544
fi
 
5545
 
 
5546
 
 
5547
fi
 
5548
if test -z "$ac_cv_prog_STRIP"; then
 
5549
  ac_ct_STRIP=$STRIP
 
5550
  # Extract the first word of "strip", so it can be a program name with args.
 
5551
set dummy strip; ac_word=$2
 
5552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5553
$as_echo_n "checking for $ac_word... " >&6; }
 
5554
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5555
  $as_echo_n "(cached) " >&6
 
5556
else
 
5557
  if test -n "$ac_ct_STRIP"; then
 
5558
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5559
else
 
5560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5561
for as_dir in $PATH
 
5562
do
 
5563
  IFS=$as_save_IFS
 
5564
  test -z "$as_dir" && as_dir=.
 
5565
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5566
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5567
    ac_cv_prog_ac_ct_STRIP="strip"
 
5568
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5569
    break 2
 
5570
  fi
 
5571
done
 
5572
  done
 
5573
IFS=$as_save_IFS
 
5574
 
 
5575
fi
 
5576
fi
 
5577
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5578
if test -n "$ac_ct_STRIP"; then
 
5579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5580
$as_echo "$ac_ct_STRIP" >&6; }
 
5581
else
 
5582
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5583
$as_echo "no" >&6; }
 
5584
fi
 
5585
 
 
5586
  if test "x$ac_ct_STRIP" = x; then
 
5587
    STRIP=":"
 
5588
  else
 
5589
    case $cross_compiling:$ac_tool_warned in
 
5590
yes:)
 
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5592
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5593
ac_tool_warned=yes ;;
 
5594
esac
 
5595
    STRIP=$ac_ct_STRIP
 
5596
  fi
 
5597
else
 
5598
  STRIP="$ac_cv_prog_STRIP"
 
5599
fi
 
5600
 
 
5601
test -z "$STRIP" && STRIP=:
 
5602
 
 
5603
 
 
5604
 
 
5605
 
 
5606
 
 
5607
 
 
5608
if test -n "$ac_tool_prefix"; then
 
5609
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5610
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5612
$as_echo_n "checking for $ac_word... " >&6; }
 
5613
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
5614
  $as_echo_n "(cached) " >&6
 
5615
else
 
5616
  if test -n "$RANLIB"; then
 
5617
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5618
else
 
5619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5620
for as_dir in $PATH
 
5621
do
 
5622
  IFS=$as_save_IFS
 
5623
  test -z "$as_dir" && as_dir=.
 
5624
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5625
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5626
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5627
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5628
    break 2
 
5629
  fi
 
5630
done
 
5631
  done
 
5632
IFS=$as_save_IFS
 
5633
 
 
5634
fi
 
5635
fi
 
5636
RANLIB=$ac_cv_prog_RANLIB
 
5637
if test -n "$RANLIB"; then
 
5638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5639
$as_echo "$RANLIB" >&6; }
 
5640
else
 
5641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5642
$as_echo "no" >&6; }
 
5643
fi
 
5644
 
 
5645
 
 
5646
fi
 
5647
if test -z "$ac_cv_prog_RANLIB"; then
 
5648
  ac_ct_RANLIB=$RANLIB
 
5649
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5650
set dummy ranlib; ac_word=$2
 
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5652
$as_echo_n "checking for $ac_word... " >&6; }
 
5653
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
5654
  $as_echo_n "(cached) " >&6
 
5655
else
 
5656
  if test -n "$ac_ct_RANLIB"; then
 
5657
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5658
else
 
5659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5660
for as_dir in $PATH
 
5661
do
 
5662
  IFS=$as_save_IFS
 
5663
  test -z "$as_dir" && as_dir=.
 
5664
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5665
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5666
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5667
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5668
    break 2
 
5669
  fi
 
5670
done
 
5671
  done
 
5672
IFS=$as_save_IFS
 
5673
 
 
5674
fi
 
5675
fi
 
5676
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5677
if test -n "$ac_ct_RANLIB"; then
 
5678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5679
$as_echo "$ac_ct_RANLIB" >&6; }
 
5680
else
 
5681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5682
$as_echo "no" >&6; }
 
5683
fi
 
5684
 
 
5685
  if test "x$ac_ct_RANLIB" = x; then
 
5686
    RANLIB=":"
 
5687
  else
 
5688
    case $cross_compiling:$ac_tool_warned in
 
5689
yes:)
 
5690
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5692
ac_tool_warned=yes ;;
 
5693
esac
 
5694
    RANLIB=$ac_ct_RANLIB
 
5695
  fi
 
5696
else
 
5697
  RANLIB="$ac_cv_prog_RANLIB"
 
5698
fi
 
5699
 
 
5700
test -z "$RANLIB" && RANLIB=:
 
5701
 
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
# Determine commands to create old-style static archives.
 
5708
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5709
old_postinstall_cmds='chmod 644 $oldlib'
 
5710
old_postuninstall_cmds=
 
5711
 
 
5712
if test -n "$RANLIB"; then
 
5713
  case $host_os in
 
5714
  openbsd*)
 
5715
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5716
    ;;
 
5717
  *)
 
5718
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5719
    ;;
 
5720
  esac
 
5721
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5722
fi
 
5723
 
 
5724
 
 
5725
 
 
5726
 
 
5727
 
 
5728
 
 
5729
 
 
5730
 
 
5731
 
 
5732
 
 
5733
 
 
5734
 
 
5735
 
 
5736
 
 
5737
 
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
 
 
5744
 
 
5745
 
 
5746
 
 
5747
 
 
5748
 
 
5749
 
 
5750
 
 
5751
 
 
5752
 
 
5753
 
 
5754
 
 
5755
 
 
5756
 
 
5757
# If no C compiler was specified, use CC.
 
5758
LTCC=${LTCC-"$CC"}
 
5759
 
 
5760
# If no C compiler flags were specified, use CFLAGS.
 
5761
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5762
 
 
5763
# Allow CC to be a program name with arguments.
 
5764
compiler=$CC
 
5765
 
 
5766
 
 
5767
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5769
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5770
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
5771
  $as_echo_n "(cached) " >&6
 
5772
else
 
5773
 
 
5774
# These are sane defaults that work on at least a few old systems.
 
5775
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5776
 
 
5777
# Character class describing NM global symbol codes.
 
5778
symcode='[BCDEGRST]'
 
5779
 
 
5780
# Regexp to match symbols that can be accessed directly from C.
 
5781
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5782
 
 
5783
# Define system-specific variables.
 
5784
case $host_os in
 
5785
aix*)
 
5786
  symcode='[BCDT]'
 
5787
  ;;
 
5788
cygwin* | mingw* | pw32* | cegcc*)
 
5789
  symcode='[ABCDGISTW]'
 
5790
  ;;
 
5791
hpux*)
 
5792
  if test "$host_cpu" = ia64; then
 
5793
    symcode='[ABCDEGRST]'
 
5794
  fi
 
5795
  ;;
 
5796
irix* | nonstopux*)
 
5797
  symcode='[BCDEGRST]'
 
5798
  ;;
 
5799
osf*)
 
5800
  symcode='[BCDEGQRST]'
 
5801
  ;;
 
5802
solaris*)
 
5803
  symcode='[BDRT]'
 
5804
  ;;
 
5805
sco3.2v5*)
 
5806
  symcode='[DT]'
 
5807
  ;;
 
5808
sysv4.2uw2*)
 
5809
  symcode='[DT]'
 
5810
  ;;
 
5811
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5812
  symcode='[ABDT]'
 
5813
  ;;
 
5814
sysv4)
 
5815
  symcode='[DFNSTU]'
 
5816
  ;;
 
5817
esac
 
5818
 
 
5819
# If we're using GNU nm, then use its standard symbol codes.
 
5820
case `$NM -V 2>&1` in
 
5821
*GNU* | *'with BFD'*)
 
5822
  symcode='[ABCDGIRSTW]' ;;
 
5823
esac
 
5824
 
 
5825
# Transform an extracted symbol line into a proper C declaration.
 
5826
# Some systems (esp. on ia64) link data and code symbols differently,
 
5827
# so use this general approach.
 
5828
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5829
 
 
5830
# Transform an extracted symbol line into symbol name and symbol address
 
5831
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5832
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5833
 
 
5834
# Handle CRLF in mingw tool chain
 
5835
opt_cr=
 
5836
case $build_os in
 
5837
mingw*)
 
5838
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5839
  ;;
 
5840
esac
 
5841
 
 
5842
# Try without a prefix underscore, then with it.
 
5843
for ac_symprfx in "" "_"; do
 
5844
 
 
5845
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5846
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5847
 
 
5848
  # Write the raw and C identifiers.
 
5849
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5850
    # Fake it for dumpbin and say T for any non-static function
 
5851
    # and D for any global variable.
 
5852
    # Also find C++ and __fastcall symbols from MSVC++,
 
5853
    # which start with @ or ?.
 
5854
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5855
"     {last_section=section; section=\$ 3};"\
 
5856
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5857
"     \$ 0!~/External *\|/{next};"\
 
5858
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5859
"     {if(hide[section]) next};"\
 
5860
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5861
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5862
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5863
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5864
"     ' prfx=^$ac_symprfx"
 
5865
  else
 
5866
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5867
  fi
 
5868
 
 
5869
  # Check to see that the pipe works correctly.
 
5870
  pipe_works=no
 
5871
 
 
5872
  rm -f conftest*
 
5873
  cat > conftest.$ac_ext <<_LT_EOF
 
5874
#ifdef __cplusplus
 
5875
extern "C" {
 
5876
#endif
 
5877
char nm_test_var;
 
5878
void nm_test_func(void);
 
5879
void nm_test_func(void){}
 
5880
#ifdef __cplusplus
 
5881
}
 
5882
#endif
 
5883
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5884
_LT_EOF
 
5885
 
 
5886
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5887
  (eval $ac_compile) 2>&5
 
5888
  ac_status=$?
 
5889
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5890
  test $ac_status = 0; }; then
 
5891
    # Now try to grab the symbols.
 
5892
    nlist=conftest.nm
 
5893
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
5894
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5895
  ac_status=$?
 
5896
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5897
  test $ac_status = 0; } && test -s "$nlist"; then
 
5898
      # Try sorting and uniquifying the output.
 
5899
      if sort "$nlist" | uniq > "$nlist"T; then
 
5900
        mv -f "$nlist"T "$nlist"
 
5901
      else
 
5902
        rm -f "$nlist"T
 
5903
      fi
 
5904
 
 
5905
      # Make sure that we snagged all the symbols we need.
 
5906
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5907
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5908
          cat <<_LT_EOF > conftest.$ac_ext
 
5909
#ifdef __cplusplus
 
5910
extern "C" {
 
5911
#endif
 
5912
 
 
5913
_LT_EOF
 
5914
          # Now generate the symbol file.
 
5915
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5916
 
 
5917
          cat <<_LT_EOF >> conftest.$ac_ext
 
5918
 
 
5919
/* The mapping between symbol names and symbols.  */
 
5920
const struct {
 
5921
  const char *name;
 
5922
  void       *address;
 
5923
}
 
5924
lt__PROGRAM__LTX_preloaded_symbols[] =
 
5925
{
 
5926
  { "@PROGRAM@", (void *) 0 },
 
5927
_LT_EOF
 
5928
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5929
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5930
  {0, (void *) 0}
 
5931
};
 
5932
 
 
5933
/* This works around a problem in FreeBSD linker */
 
5934
#ifdef FREEBSD_WORKAROUND
 
5935
static const void *lt_preloaded_setup() {
 
5936
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5937
}
 
5938
#endif
 
5939
 
 
5940
#ifdef __cplusplus
 
5941
}
 
5942
#endif
 
5943
_LT_EOF
 
5944
          # Now try linking the two files.
 
5945
          mv conftest.$ac_objext conftstm.$ac_objext
 
5946
          lt_save_LIBS="$LIBS"
 
5947
          lt_save_CFLAGS="$CFLAGS"
 
5948
          LIBS="conftstm.$ac_objext"
 
5949
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5950
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
5951
  (eval $ac_link) 2>&5
 
5952
  ac_status=$?
 
5953
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5954
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
5955
            pipe_works=yes
 
5956
          fi
 
5957
          LIBS="$lt_save_LIBS"
 
5958
          CFLAGS="$lt_save_CFLAGS"
 
5959
        else
 
5960
          echo "cannot find nm_test_func in $nlist" >&5
 
5961
        fi
 
5962
      else
 
5963
        echo "cannot find nm_test_var in $nlist" >&5
 
5964
      fi
 
5965
    else
 
5966
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5967
    fi
 
5968
  else
 
5969
    echo "$progname: failed program was:" >&5
 
5970
    cat conftest.$ac_ext >&5
 
5971
  fi
 
5972
  rm -rf conftest* conftst*
 
5973
 
 
5974
  # Do not use the global_symbol_pipe unless it works.
 
5975
  if test "$pipe_works" = yes; then
 
5976
    break
 
5977
  else
 
5978
    lt_cv_sys_global_symbol_pipe=
 
5979
  fi
 
5980
done
 
5981
 
 
5982
fi
 
5983
 
 
5984
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5985
  lt_cv_sys_global_symbol_to_cdecl=
 
5986
fi
 
5987
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
5989
$as_echo "failed" >&6; }
 
5990
else
 
5991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
5992
$as_echo "ok" >&6; }
 
5993
fi
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
 
 
6000
 
 
6001
 
 
6002
 
 
6003
 
 
6004
 
 
6005
 
 
6006
 
 
6007
 
 
6008
 
 
6009
 
 
6010
 
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
 
 
6016
 
 
6017
# Check whether --enable-libtool-lock was given.
 
6018
if test "${enable_libtool_lock+set}" = set; then :
 
6019
  enableval=$enable_libtool_lock;
 
6020
fi
 
6021
 
 
6022
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6023
 
 
6024
# Some flags need to be propagated to the compiler or linker for good
 
6025
# libtool support.
 
6026
case $host in
 
6027
ia64-*-hpux*)
 
6028
  # Find out which ABI we are using.
 
6029
  echo 'int i;' > conftest.$ac_ext
 
6030
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6031
  (eval $ac_compile) 2>&5
 
6032
  ac_status=$?
 
6033
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6034
  test $ac_status = 0; }; then
 
6035
    case `/usr/bin/file conftest.$ac_objext` in
 
6036
      *ELF-32*)
 
6037
        HPUX_IA64_MODE="32"
 
6038
        ;;
 
6039
      *ELF-64*)
 
6040
        HPUX_IA64_MODE="64"
 
6041
        ;;
 
6042
    esac
 
6043
  fi
 
6044
  rm -rf conftest*
 
6045
  ;;
 
6046
*-*-irix6*)
 
6047
  # Find out which ABI we are using.
 
6048
  echo '#line 6048 "configure"' > conftest.$ac_ext
 
6049
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6050
  (eval $ac_compile) 2>&5
 
6051
  ac_status=$?
 
6052
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6053
  test $ac_status = 0; }; then
 
6054
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6055
      case `/usr/bin/file conftest.$ac_objext` in
 
6056
        *32-bit*)
 
6057
          LD="${LD-ld} -melf32bsmip"
 
6058
          ;;
 
6059
        *N32*)
 
6060
          LD="${LD-ld} -melf32bmipn32"
 
6061
          ;;
 
6062
        *64-bit*)
 
6063
          LD="${LD-ld} -melf64bmip"
 
6064
        ;;
 
6065
      esac
 
6066
    else
 
6067
      case `/usr/bin/file conftest.$ac_objext` in
 
6068
        *32-bit*)
 
6069
          LD="${LD-ld} -32"
 
6070
          ;;
 
6071
        *N32*)
 
6072
          LD="${LD-ld} -n32"
 
6073
          ;;
 
6074
        *64-bit*)
 
6075
          LD="${LD-ld} -64"
 
6076
          ;;
 
6077
      esac
 
6078
    fi
 
6079
  fi
 
6080
  rm -rf conftest*
 
6081
  ;;
 
6082
 
 
6083
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6084
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6085
  # Find out which ABI we are using.
 
6086
  echo 'int i;' > conftest.$ac_ext
 
6087
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6088
  (eval $ac_compile) 2>&5
 
6089
  ac_status=$?
 
6090
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6091
  test $ac_status = 0; }; then
 
6092
    case `/usr/bin/file conftest.o` in
 
6093
      *32-bit*)
 
6094
        case $host in
 
6095
          x86_64-*kfreebsd*-gnu)
 
6096
            LD="${LD-ld} -m elf_i386_fbsd"
 
6097
            ;;
 
6098
          x86_64-*linux*)
 
6099
            LD="${LD-ld} -m elf_i386"
 
6100
            ;;
 
6101
          ppc64-*linux*|powerpc64-*linux*)
 
6102
            LD="${LD-ld} -m elf32ppclinux"
 
6103
            ;;
 
6104
          s390x-*linux*)
 
6105
            LD="${LD-ld} -m elf_s390"
 
6106
            ;;
 
6107
          sparc64-*linux*)
 
6108
            LD="${LD-ld} -m elf32_sparc"
 
6109
            ;;
 
6110
        esac
 
6111
        ;;
 
6112
      *64-bit*)
 
6113
        case $host in
 
6114
          x86_64-*kfreebsd*-gnu)
 
6115
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6116
            ;;
 
6117
          x86_64-*linux*)
 
6118
            LD="${LD-ld} -m elf_x86_64"
 
6119
            ;;
 
6120
          ppc*-*linux*|powerpc*-*linux*)
 
6121
            LD="${LD-ld} -m elf64ppc"
 
6122
            ;;
 
6123
          s390*-*linux*|s390*-*tpf*)
 
6124
            LD="${LD-ld} -m elf64_s390"
 
6125
            ;;
 
6126
          sparc*-*linux*)
 
6127
            LD="${LD-ld} -m elf64_sparc"
 
6128
            ;;
 
6129
        esac
 
6130
        ;;
 
6131
    esac
 
6132
  fi
 
6133
  rm -rf conftest*
 
6134
  ;;
 
6135
 
 
6136
*-*-sco3.2v5*)
 
6137
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6138
  SAVE_CFLAGS="$CFLAGS"
 
6139
  CFLAGS="$CFLAGS -belf"
 
6140
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6141
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6142
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6143
  $as_echo_n "(cached) " >&6
 
6144
else
 
6145
  ac_ext=c
 
6146
ac_cpp='$CPP $CPPFLAGS'
 
6147
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6148
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6149
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6150
 
 
6151
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6152
/* end confdefs.h.  */
 
6153
 
 
6154
int
 
6155
main ()
 
6156
{
 
6157
 
 
6158
  ;
 
6159
  return 0;
 
6160
}
 
6161
_ACEOF
 
6162
if ac_fn_c_try_link "$LINENO"; then :
 
6163
  lt_cv_cc_needs_belf=yes
 
6164
else
 
6165
  lt_cv_cc_needs_belf=no
 
6166
fi
 
6167
rm -f core conftest.err conftest.$ac_objext \
 
6168
    conftest$ac_exeext conftest.$ac_ext
 
6169
     ac_ext=c
 
6170
ac_cpp='$CPP $CPPFLAGS'
 
6171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6174
 
 
6175
fi
 
6176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6177
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6178
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6179
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6180
    CFLAGS="$SAVE_CFLAGS"
 
6181
  fi
 
6182
  ;;
 
6183
sparc*-*solaris*)
 
6184
  # Find out which ABI we are using.
 
6185
  echo 'int i;' > conftest.$ac_ext
 
6186
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6187
  (eval $ac_compile) 2>&5
 
6188
  ac_status=$?
 
6189
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6190
  test $ac_status = 0; }; then
 
6191
    case `/usr/bin/file conftest.o` in
 
6192
    *64-bit*)
 
6193
      case $lt_cv_prog_gnu_ld in
 
6194
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6195
      *)
 
6196
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6197
          LD="${LD-ld} -64"
 
6198
        fi
 
6199
        ;;
 
6200
      esac
 
6201
      ;;
 
6202
    esac
 
6203
  fi
 
6204
  rm -rf conftest*
 
6205
  ;;
 
6206
esac
 
6207
 
 
6208
need_locks="$enable_libtool_lock"
 
6209
 
 
6210
 
 
6211
  case $host_os in
 
6212
    rhapsody* | darwin*)
 
6213
    if test -n "$ac_tool_prefix"; then
 
6214
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6215
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6217
$as_echo_n "checking for $ac_word... " >&6; }
 
6218
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6219
  $as_echo_n "(cached) " >&6
 
6220
else
 
6221
  if test -n "$DSYMUTIL"; then
 
6222
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6223
else
 
6224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6225
for as_dir in $PATH
 
6226
do
 
6227
  IFS=$as_save_IFS
 
6228
  test -z "$as_dir" && as_dir=.
 
6229
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6230
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6231
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6232
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6233
    break 2
 
6234
  fi
 
6235
done
 
6236
  done
 
6237
IFS=$as_save_IFS
 
6238
 
 
6239
fi
 
6240
fi
 
6241
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6242
if test -n "$DSYMUTIL"; then
 
6243
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6244
$as_echo "$DSYMUTIL" >&6; }
 
6245
else
 
6246
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6247
$as_echo "no" >&6; }
 
6248
fi
 
6249
 
 
6250
 
 
6251
fi
 
6252
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6253
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6254
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6255
set dummy dsymutil; ac_word=$2
 
6256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6257
$as_echo_n "checking for $ac_word... " >&6; }
 
6258
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6259
  $as_echo_n "(cached) " >&6
 
6260
else
 
6261
  if test -n "$ac_ct_DSYMUTIL"; then
 
6262
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6263
else
 
6264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6265
for as_dir in $PATH
 
6266
do
 
6267
  IFS=$as_save_IFS
 
6268
  test -z "$as_dir" && as_dir=.
 
6269
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6270
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6271
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6272
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6273
    break 2
 
6274
  fi
 
6275
done
 
6276
  done
 
6277
IFS=$as_save_IFS
 
6278
 
 
6279
fi
 
6280
fi
 
6281
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6282
if test -n "$ac_ct_DSYMUTIL"; then
 
6283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6284
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6285
else
 
6286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6287
$as_echo "no" >&6; }
 
6288
fi
 
6289
 
 
6290
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6291
    DSYMUTIL=":"
 
6292
  else
 
6293
    case $cross_compiling:$ac_tool_warned in
 
6294
yes:)
 
6295
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6296
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6297
ac_tool_warned=yes ;;
 
6298
esac
 
6299
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6300
  fi
 
6301
else
 
6302
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6303
fi
 
6304
 
 
6305
    if test -n "$ac_tool_prefix"; then
 
6306
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6307
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6309
$as_echo_n "checking for $ac_word... " >&6; }
 
6310
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6311
  $as_echo_n "(cached) " >&6
 
6312
else
 
6313
  if test -n "$NMEDIT"; then
 
6314
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6315
else
 
6316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6317
for as_dir in $PATH
 
6318
do
 
6319
  IFS=$as_save_IFS
 
6320
  test -z "$as_dir" && as_dir=.
 
6321
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6322
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6323
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6324
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6325
    break 2
 
6326
  fi
 
6327
done
 
6328
  done
 
6329
IFS=$as_save_IFS
 
6330
 
 
6331
fi
 
6332
fi
 
6333
NMEDIT=$ac_cv_prog_NMEDIT
 
6334
if test -n "$NMEDIT"; then
 
6335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6336
$as_echo "$NMEDIT" >&6; }
 
6337
else
 
6338
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6339
$as_echo "no" >&6; }
 
6340
fi
 
6341
 
 
6342
 
 
6343
fi
 
6344
if test -z "$ac_cv_prog_NMEDIT"; then
 
6345
  ac_ct_NMEDIT=$NMEDIT
 
6346
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6347
set dummy nmedit; ac_word=$2
 
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6349
$as_echo_n "checking for $ac_word... " >&6; }
 
6350
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6351
  $as_echo_n "(cached) " >&6
 
6352
else
 
6353
  if test -n "$ac_ct_NMEDIT"; then
 
6354
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6355
else
 
6356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6357
for as_dir in $PATH
 
6358
do
 
6359
  IFS=$as_save_IFS
 
6360
  test -z "$as_dir" && as_dir=.
 
6361
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6362
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6363
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6364
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6365
    break 2
 
6366
  fi
 
6367
done
 
6368
  done
 
6369
IFS=$as_save_IFS
 
6370
 
 
6371
fi
 
6372
fi
 
6373
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6374
if test -n "$ac_ct_NMEDIT"; then
 
6375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6376
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6377
else
 
6378
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6379
$as_echo "no" >&6; }
 
6380
fi
 
6381
 
 
6382
  if test "x$ac_ct_NMEDIT" = x; then
 
6383
    NMEDIT=":"
 
6384
  else
 
6385
    case $cross_compiling:$ac_tool_warned in
 
6386
yes:)
 
6387
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6388
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6389
ac_tool_warned=yes ;;
 
6390
esac
 
6391
    NMEDIT=$ac_ct_NMEDIT
 
6392
  fi
 
6393
else
 
6394
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6395
fi
 
6396
 
 
6397
    if test -n "$ac_tool_prefix"; then
 
6398
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6399
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6401
$as_echo_n "checking for $ac_word... " >&6; }
 
6402
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
6403
  $as_echo_n "(cached) " >&6
 
6404
else
 
6405
  if test -n "$LIPO"; then
 
6406
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6407
else
 
6408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6409
for as_dir in $PATH
 
6410
do
 
6411
  IFS=$as_save_IFS
 
6412
  test -z "$as_dir" && as_dir=.
 
6413
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6414
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6415
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6416
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6417
    break 2
 
6418
  fi
 
6419
done
 
6420
  done
 
6421
IFS=$as_save_IFS
 
6422
 
 
6423
fi
 
6424
fi
 
6425
LIPO=$ac_cv_prog_LIPO
 
6426
if test -n "$LIPO"; then
 
6427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6428
$as_echo "$LIPO" >&6; }
 
6429
else
 
6430
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6431
$as_echo "no" >&6; }
 
6432
fi
 
6433
 
 
6434
 
 
6435
fi
 
6436
if test -z "$ac_cv_prog_LIPO"; then
 
6437
  ac_ct_LIPO=$LIPO
 
6438
  # Extract the first word of "lipo", so it can be a program name with args.
 
6439
set dummy lipo; ac_word=$2
 
6440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6441
$as_echo_n "checking for $ac_word... " >&6; }
 
6442
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
6443
  $as_echo_n "(cached) " >&6
 
6444
else
 
6445
  if test -n "$ac_ct_LIPO"; then
 
6446
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6447
else
 
6448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6449
for as_dir in $PATH
 
6450
do
 
6451
  IFS=$as_save_IFS
 
6452
  test -z "$as_dir" && as_dir=.
 
6453
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6454
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6455
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6456
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6457
    break 2
 
6458
  fi
 
6459
done
 
6460
  done
 
6461
IFS=$as_save_IFS
 
6462
 
 
6463
fi
 
6464
fi
 
6465
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6466
if test -n "$ac_ct_LIPO"; then
 
6467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6468
$as_echo "$ac_ct_LIPO" >&6; }
 
6469
else
 
6470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6471
$as_echo "no" >&6; }
 
6472
fi
 
6473
 
 
6474
  if test "x$ac_ct_LIPO" = x; then
 
6475
    LIPO=":"
 
6476
  else
 
6477
    case $cross_compiling:$ac_tool_warned in
 
6478
yes:)
 
6479
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6480
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6481
ac_tool_warned=yes ;;
 
6482
esac
 
6483
    LIPO=$ac_ct_LIPO
 
6484
  fi
 
6485
else
 
6486
  LIPO="$ac_cv_prog_LIPO"
 
6487
fi
 
6488
 
 
6489
    if test -n "$ac_tool_prefix"; then
 
6490
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6491
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6493
$as_echo_n "checking for $ac_word... " >&6; }
 
6494
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
6495
  $as_echo_n "(cached) " >&6
 
6496
else
 
6497
  if test -n "$OTOOL"; then
 
6498
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6499
else
 
6500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6501
for as_dir in $PATH
 
6502
do
 
6503
  IFS=$as_save_IFS
 
6504
  test -z "$as_dir" && as_dir=.
 
6505
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6506
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6507
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6508
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6509
    break 2
 
6510
  fi
 
6511
done
 
6512
  done
 
6513
IFS=$as_save_IFS
 
6514
 
 
6515
fi
 
6516
fi
 
6517
OTOOL=$ac_cv_prog_OTOOL
 
6518
if test -n "$OTOOL"; then
 
6519
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6520
$as_echo "$OTOOL" >&6; }
 
6521
else
 
6522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6523
$as_echo "no" >&6; }
 
6524
fi
 
6525
 
 
6526
 
 
6527
fi
 
6528
if test -z "$ac_cv_prog_OTOOL"; then
 
6529
  ac_ct_OTOOL=$OTOOL
 
6530
  # Extract the first word of "otool", so it can be a program name with args.
 
6531
set dummy otool; ac_word=$2
 
6532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6533
$as_echo_n "checking for $ac_word... " >&6; }
 
6534
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
6535
  $as_echo_n "(cached) " >&6
 
6536
else
 
6537
  if test -n "$ac_ct_OTOOL"; then
 
6538
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6539
else
 
6540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6541
for as_dir in $PATH
 
6542
do
 
6543
  IFS=$as_save_IFS
 
6544
  test -z "$as_dir" && as_dir=.
 
6545
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6546
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6547
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6548
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6549
    break 2
 
6550
  fi
 
6551
done
 
6552
  done
 
6553
IFS=$as_save_IFS
 
6554
 
 
6555
fi
 
6556
fi
 
6557
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6558
if test -n "$ac_ct_OTOOL"; then
 
6559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6560
$as_echo "$ac_ct_OTOOL" >&6; }
 
6561
else
 
6562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6563
$as_echo "no" >&6; }
 
6564
fi
 
6565
 
 
6566
  if test "x$ac_ct_OTOOL" = x; then
 
6567
    OTOOL=":"
 
6568
  else
 
6569
    case $cross_compiling:$ac_tool_warned in
 
6570
yes:)
 
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6572
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6573
ac_tool_warned=yes ;;
 
6574
esac
 
6575
    OTOOL=$ac_ct_OTOOL
 
6576
  fi
 
6577
else
 
6578
  OTOOL="$ac_cv_prog_OTOOL"
 
6579
fi
 
6580
 
 
6581
    if test -n "$ac_tool_prefix"; then
 
6582
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6583
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6585
$as_echo_n "checking for $ac_word... " >&6; }
 
6586
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
6587
  $as_echo_n "(cached) " >&6
 
6588
else
 
6589
  if test -n "$OTOOL64"; then
 
6590
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6591
else
 
6592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6593
for as_dir in $PATH
 
6594
do
 
6595
  IFS=$as_save_IFS
 
6596
  test -z "$as_dir" && as_dir=.
 
6597
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6598
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6599
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6600
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6601
    break 2
 
6602
  fi
 
6603
done
 
6604
  done
 
6605
IFS=$as_save_IFS
 
6606
 
 
6607
fi
 
6608
fi
 
6609
OTOOL64=$ac_cv_prog_OTOOL64
 
6610
if test -n "$OTOOL64"; then
 
6611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6612
$as_echo "$OTOOL64" >&6; }
 
6613
else
 
6614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6615
$as_echo "no" >&6; }
 
6616
fi
 
6617
 
 
6618
 
 
6619
fi
 
6620
if test -z "$ac_cv_prog_OTOOL64"; then
 
6621
  ac_ct_OTOOL64=$OTOOL64
 
6622
  # Extract the first word of "otool64", so it can be a program name with args.
 
6623
set dummy otool64; ac_word=$2
 
6624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6625
$as_echo_n "checking for $ac_word... " >&6; }
 
6626
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
6627
  $as_echo_n "(cached) " >&6
 
6628
else
 
6629
  if test -n "$ac_ct_OTOOL64"; then
 
6630
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6631
else
 
6632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6633
for as_dir in $PATH
 
6634
do
 
6635
  IFS=$as_save_IFS
 
6636
  test -z "$as_dir" && as_dir=.
 
6637
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6638
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6639
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6640
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6641
    break 2
 
6642
  fi
 
6643
done
 
6644
  done
 
6645
IFS=$as_save_IFS
 
6646
 
 
6647
fi
 
6648
fi
 
6649
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6650
if test -n "$ac_ct_OTOOL64"; then
 
6651
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6652
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6653
else
 
6654
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6655
$as_echo "no" >&6; }
 
6656
fi
 
6657
 
 
6658
  if test "x$ac_ct_OTOOL64" = x; then
 
6659
    OTOOL64=":"
 
6660
  else
 
6661
    case $cross_compiling:$ac_tool_warned in
 
6662
yes:)
 
6663
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6664
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6665
ac_tool_warned=yes ;;
 
6666
esac
 
6667
    OTOOL64=$ac_ct_OTOOL64
 
6668
  fi
 
6669
else
 
6670
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6671
fi
 
6672
 
 
6673
 
 
6674
 
 
6675
 
 
6676
 
 
6677
 
 
6678
 
 
6679
 
 
6680
 
 
6681
 
 
6682
 
 
6683
 
 
6684
 
 
6685
 
 
6686
 
 
6687
 
 
6688
 
 
6689
 
 
6690
 
 
6691
 
 
6692
 
 
6693
 
 
6694
 
 
6695
 
 
6696
 
 
6697
 
 
6698
 
 
6699
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6700
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6701
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
6702
  $as_echo_n "(cached) " >&6
 
6703
else
 
6704
  lt_cv_apple_cc_single_mod=no
 
6705
      if test -z "${LT_MULTI_MODULE}"; then
 
6706
        # By default we will add the -single_module flag. You can override
 
6707
        # by either setting the environment variable LT_MULTI_MODULE
 
6708
        # non-empty at configure time, or by adding -multi_module to the
 
6709
        # link flags.
 
6710
        rm -rf libconftest.dylib*
 
6711
        echo "int foo(void){return 1;}" > conftest.c
 
6712
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6713
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6714
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6715
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6716
        _lt_result=$?
 
6717
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6718
          lt_cv_apple_cc_single_mod=yes
 
6719
        else
 
6720
          cat conftest.err >&5
 
6721
        fi
 
6722
        rm -rf libconftest.dylib*
 
6723
        rm -f conftest.*
 
6724
      fi
 
6725
fi
 
6726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
6727
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6728
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
6729
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6730
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
6731
  $as_echo_n "(cached) " >&6
 
6732
else
 
6733
  lt_cv_ld_exported_symbols_list=no
 
6734
      save_LDFLAGS=$LDFLAGS
 
6735
      echo "_main" > conftest.sym
 
6736
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6737
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6738
/* end confdefs.h.  */
 
6739
 
 
6740
int
 
6741
main ()
 
6742
{
 
6743
 
 
6744
  ;
 
6745
  return 0;
 
6746
}
 
6747
_ACEOF
 
6748
if ac_fn_c_try_link "$LINENO"; then :
 
6749
  lt_cv_ld_exported_symbols_list=yes
 
6750
else
 
6751
  lt_cv_ld_exported_symbols_list=no
 
6752
fi
 
6753
rm -f core conftest.err conftest.$ac_objext \
 
6754
    conftest$ac_exeext conftest.$ac_ext
 
6755
        LDFLAGS="$save_LDFLAGS"
 
6756
 
 
6757
fi
 
6758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
6759
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6760
    case $host_os in
 
6761
    rhapsody* | darwin1.[012])
 
6762
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6763
    darwin1.*)
 
6764
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6765
    darwin*) # darwin 5.x on
 
6766
      # if running on 10.5 or later, the deployment target defaults
 
6767
      # to the OS version, if on x86, and 10.4, the deployment
 
6768
      # target defaults to 10.4. Don't you love it?
 
6769
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6770
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6771
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6772
        10.[012]*)
 
6773
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6774
        10.*)
 
6775
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6776
      esac
 
6777
    ;;
 
6778
  esac
 
6779
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6780
      _lt_dar_single_mod='$single_module'
 
6781
    fi
 
6782
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6783
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6784
    else
 
6785
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6786
    fi
 
6787
    if test "$DSYMUTIL" != ":"; then
 
6788
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6789
    else
 
6790
      _lt_dsymutil=
 
6791
    fi
 
6792
    ;;
 
6793
  esac
 
6794
 
 
6795
ac_ext=c
 
6796
ac_cpp='$CPP $CPPFLAGS'
 
6797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6801
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6802
# On Suns, sometimes $CPP names a directory.
 
6803
if test -n "$CPP" && test -d "$CPP"; then
 
6804
  CPP=
 
6805
fi
 
6806
if test -z "$CPP"; then
 
6807
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
6808
  $as_echo_n "(cached) " >&6
 
6809
else
 
6810
      # Double quotes because CPP needs to be expanded
 
6811
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6812
    do
 
6813
      ac_preproc_ok=false
 
6814
for ac_c_preproc_warn_flag in '' yes
 
6815
do
 
6816
  # Use a header file that comes with gcc, so configuring glibc
 
6817
  # with a fresh cross-compiler works.
 
6818
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6819
  # <limits.h> exists even on freestanding compilers.
 
6820
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6821
  # not just through cpp. "Syntax error" is here to catch this case.
 
6822
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6823
/* end confdefs.h.  */
 
6824
#ifdef __STDC__
 
6825
# include <limits.h>
 
6826
#else
 
6827
# include <assert.h>
 
6828
#endif
 
6829
                     Syntax error
 
6830
_ACEOF
 
6831
if ac_fn_c_try_cpp "$LINENO"; then :
 
6832
 
 
6833
else
 
6834
  # Broken: fails on valid input.
 
6835
continue
 
6836
fi
 
6837
rm -f conftest.err conftest.$ac_ext
 
6838
 
 
6839
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6840
  # can be detected and how.
 
6841
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6842
/* end confdefs.h.  */
 
6843
#include <ac_nonexistent.h>
 
6844
_ACEOF
 
6845
if ac_fn_c_try_cpp "$LINENO"; then :
 
6846
  # Broken: success on invalid input.
 
6847
continue
 
6848
else
 
6849
  # Passes both tests.
 
6850
ac_preproc_ok=:
 
6851
break
 
6852
fi
 
6853
rm -f conftest.err conftest.$ac_ext
 
6854
 
 
6855
done
 
6856
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6857
rm -f conftest.err conftest.$ac_ext
 
6858
if $ac_preproc_ok; then :
 
6859
  break
 
6860
fi
 
6861
 
 
6862
    done
 
6863
    ac_cv_prog_CPP=$CPP
 
6864
 
 
6865
fi
 
6866
  CPP=$ac_cv_prog_CPP
 
6867
else
 
6868
  ac_cv_prog_CPP=$CPP
 
6869
fi
 
6870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
6871
$as_echo "$CPP" >&6; }
 
6872
ac_preproc_ok=false
 
6873
for ac_c_preproc_warn_flag in '' yes
 
6874
do
 
6875
  # Use a header file that comes with gcc, so configuring glibc
 
6876
  # with a fresh cross-compiler works.
 
6877
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6878
  # <limits.h> exists even on freestanding compilers.
 
6879
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6880
  # not just through cpp. "Syntax error" is here to catch this case.
 
6881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6882
/* end confdefs.h.  */
 
6883
#ifdef __STDC__
 
6884
# include <limits.h>
 
6885
#else
 
6886
# include <assert.h>
 
6887
#endif
 
6888
                     Syntax error
 
6889
_ACEOF
 
6890
if ac_fn_c_try_cpp "$LINENO"; then :
 
6891
 
 
6892
else
 
6893
  # Broken: fails on valid input.
 
6894
continue
 
6895
fi
 
6896
rm -f conftest.err conftest.$ac_ext
 
6897
 
 
6898
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6899
  # can be detected and how.
 
6900
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6901
/* end confdefs.h.  */
 
6902
#include <ac_nonexistent.h>
 
6903
_ACEOF
 
6904
if ac_fn_c_try_cpp "$LINENO"; then :
 
6905
  # Broken: success on invalid input.
 
6906
continue
 
6907
else
 
6908
  # Passes both tests.
 
6909
ac_preproc_ok=:
 
6910
break
 
6911
fi
 
6912
rm -f conftest.err conftest.$ac_ext
 
6913
 
 
6914
done
 
6915
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6916
rm -f conftest.err conftest.$ac_ext
 
6917
if $ac_preproc_ok; then :
 
6918
 
 
6919
else
 
6920
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6921
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6922
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
6923
See \`config.log' for more details." "$LINENO" 5; }
 
6924
fi
 
6925
 
 
6926
ac_ext=c
 
6927
ac_cpp='$CPP $CPPFLAGS'
 
6928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6931
 
 
6932
 
 
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
6934
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6935
if test "${ac_cv_header_stdc+set}" = set; then :
 
6936
  $as_echo_n "(cached) " >&6
 
6937
else
 
6938
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6939
/* end confdefs.h.  */
 
6940
#include <stdlib.h>
 
6941
#include <stdarg.h>
 
6942
#include <string.h>
 
6943
#include <float.h>
 
6944
 
 
6945
int
 
6946
main ()
 
6947
{
 
6948
 
 
6949
  ;
 
6950
  return 0;
 
6951
}
 
6952
_ACEOF
 
6953
if ac_fn_c_try_compile "$LINENO"; then :
 
6954
  ac_cv_header_stdc=yes
 
6955
else
 
6956
  ac_cv_header_stdc=no
 
6957
fi
 
6958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6959
 
 
6960
if test $ac_cv_header_stdc = yes; then
 
6961
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6962
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6963
/* end confdefs.h.  */
 
6964
#include <string.h>
 
6965
 
 
6966
_ACEOF
 
6967
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6968
  $EGREP "memchr" >/dev/null 2>&1; then :
 
6969
 
 
6970
else
 
6971
  ac_cv_header_stdc=no
 
6972
fi
 
6973
rm -f conftest*
 
6974
 
 
6975
fi
 
6976
 
 
6977
if test $ac_cv_header_stdc = yes; then
 
6978
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6979
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6980
/* end confdefs.h.  */
 
6981
#include <stdlib.h>
 
6982
 
 
6983
_ACEOF
 
6984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6985
  $EGREP "free" >/dev/null 2>&1; then :
 
6986
 
 
6987
else
 
6988
  ac_cv_header_stdc=no
 
6989
fi
 
6990
rm -f conftest*
 
6991
 
 
6992
fi
 
6993
 
 
6994
if test $ac_cv_header_stdc = yes; then
 
6995
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6996
  if test "$cross_compiling" = yes; then :
 
6997
  :
 
6998
else
 
6999
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7000
/* end confdefs.h.  */
 
7001
#include <ctype.h>
 
7002
#include <stdlib.h>
 
7003
#if ((' ' & 0x0FF) == 0x020)
 
7004
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7005
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7006
#else
 
7007
# define ISLOWER(c) \
 
7008
                   (('a' <= (c) && (c) <= 'i') \
 
7009
                     || ('j' <= (c) && (c) <= 'r') \
 
7010
                     || ('s' <= (c) && (c) <= 'z'))
 
7011
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7012
#endif
 
7013
 
 
7014
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7015
int
 
7016
main ()
 
7017
{
 
7018
  int i;
 
7019
  for (i = 0; i < 256; i++)
 
7020
    if (XOR (islower (i), ISLOWER (i))
 
7021
        || toupper (i) != TOUPPER (i))
 
7022
      return 2;
 
7023
  return 0;
 
7024
}
 
7025
_ACEOF
 
7026
if ac_fn_c_try_run "$LINENO"; then :
 
7027
 
 
7028
else
 
7029
  ac_cv_header_stdc=no
 
7030
fi
 
7031
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7032
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7033
fi
 
7034
 
 
7035
fi
 
7036
fi
 
7037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7038
$as_echo "$ac_cv_header_stdc" >&6; }
 
7039
if test $ac_cv_header_stdc = yes; then
 
7040
 
 
7041
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7042
 
 
7043
fi
 
7044
 
 
7045
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7046
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7047
                  inttypes.h stdint.h unistd.h
 
7048
do :
 
7049
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7050
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7051
"
 
7052
eval as_val=\$$as_ac_Header
 
7053
   if test "x$as_val" = x""yes; then :
 
7054
  cat >>confdefs.h <<_ACEOF
 
7055
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7056
_ACEOF
 
7057
 
 
7058
fi
 
7059
 
 
7060
done
 
7061
 
 
7062
 
 
7063
for ac_header in dlfcn.h
 
7064
do :
 
7065
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7066
"
 
7067
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7068
  cat >>confdefs.h <<_ACEOF
 
7069
#define HAVE_DLFCN_H 1
 
7070
_ACEOF
 
7071
 
 
7072
fi
 
7073
 
 
7074
done
 
7075
 
 
7076
 
 
7077
 
 
7078
# Set options
 
7079
 
 
7080
 
 
7081
 
 
7082
        enable_dlopen=no
 
7083
 
 
7084
 
 
7085
  enable_win32_dll=no
 
7086
 
 
7087
 
 
7088
            # Check whether --enable-shared was given.
 
7089
if test "${enable_shared+set}" = set; then :
 
7090
  enableval=$enable_shared; p=${PACKAGE-default}
 
7091
    case $enableval in
 
7092
    yes) enable_shared=yes ;;
 
7093
    no) enable_shared=no ;;
 
7094
    *)
 
7095
      enable_shared=no
 
7096
      # Look at the argument we got.  We use all the common list separators.
 
7097
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7098
      for pkg in $enableval; do
 
7099
        IFS="$lt_save_ifs"
 
7100
        if test "X$pkg" = "X$p"; then
 
7101
          enable_shared=yes
 
7102
        fi
 
7103
      done
 
7104
      IFS="$lt_save_ifs"
 
7105
      ;;
 
7106
    esac
 
7107
else
 
7108
  enable_shared=yes
 
7109
fi
 
7110
 
 
7111
 
 
7112
 
 
7113
 
 
7114
 
 
7115
 
 
7116
 
 
7117
 
 
7118
 
 
7119
 
 
7120
 
 
7121
# Check whether --with-pic was given.
 
7122
if test "${with_pic+set}" = set; then :
 
7123
  withval=$with_pic; pic_mode="$withval"
 
7124
else
 
7125
  pic_mode=default
 
7126
fi
 
7127
 
 
7128
 
 
7129
test -z "$pic_mode" && pic_mode=default
 
7130
 
 
7131
 
 
7132
 
 
7133
 
 
7134
 
 
7135
 
 
7136
 
 
7137
  # Check whether --enable-fast-install was given.
 
7138
if test "${enable_fast_install+set}" = set; then :
 
7139
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7140
    case $enableval in
 
7141
    yes) enable_fast_install=yes ;;
 
7142
    no) enable_fast_install=no ;;
 
7143
    *)
 
7144
      enable_fast_install=no
 
7145
      # Look at the argument we got.  We use all the common list separators.
 
7146
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7147
      for pkg in $enableval; do
 
7148
        IFS="$lt_save_ifs"
 
7149
        if test "X$pkg" = "X$p"; then
 
7150
          enable_fast_install=yes
 
7151
        fi
 
7152
      done
 
7153
      IFS="$lt_save_ifs"
 
7154
      ;;
 
7155
    esac
 
7156
else
 
7157
  enable_fast_install=yes
 
7158
fi
 
7159
 
 
7160
 
 
7161
 
 
7162
 
 
7163
 
 
7164
 
 
7165
 
 
7166
 
 
7167
 
 
7168
 
 
7169
 
 
7170
# This can be used to rebuild libtool when needed
 
7171
LIBTOOL_DEPS="$ltmain"
 
7172
 
 
7173
# Always use our own libtool.
 
7174
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
 
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
test -z "$LN_S" && LN_S="ln -s"
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
 
 
7207
 
 
7208
 
 
7209
 
 
7210
 
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
if test -n "${ZSH_VERSION+set}" ; then
 
7216
   setopt NO_GLOB_SUBST
 
7217
fi
 
7218
 
 
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7220
$as_echo_n "checking for objdir... " >&6; }
 
7221
if test "${lt_cv_objdir+set}" = set; then :
 
7222
  $as_echo_n "(cached) " >&6
 
7223
else
 
7224
  rm -f .libs 2>/dev/null
 
7225
mkdir .libs 2>/dev/null
 
7226
if test -d .libs; then
 
7227
  lt_cv_objdir=.libs
 
7228
else
 
7229
  # MS-DOS does not allow filenames that begin with a dot.
 
7230
  lt_cv_objdir=_libs
 
7231
fi
 
7232
rmdir .libs 2>/dev/null
 
7233
fi
 
7234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7235
$as_echo "$lt_cv_objdir" >&6; }
 
7236
objdir=$lt_cv_objdir
 
7237
 
 
7238
 
 
7239
 
 
7240
 
 
7241
 
 
7242
cat >>confdefs.h <<_ACEOF
 
7243
#define LT_OBJDIR "$lt_cv_objdir/"
 
7244
_ACEOF
 
7245
 
 
7246
 
 
7247
 
 
7248
 
 
7249
 
 
7250
 
 
7251
 
 
7252
 
 
7253
 
 
7254
 
 
7255
 
 
7256
 
 
7257
 
 
7258
 
 
7259
 
 
7260
 
 
7261
 
 
7262
case $host_os in
 
7263
aix3*)
 
7264
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7265
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7266
  # vanish in a puff of smoke.
 
7267
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7268
    COLLECT_NAMES=
 
7269
    export COLLECT_NAMES
 
7270
  fi
 
7271
  ;;
 
7272
esac
 
7273
 
 
7274
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7275
# metacharacters that are still active within double-quoted strings.
 
7276
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7277
 
 
7278
# Same as above, but do not quote variable references.
 
7279
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7280
 
 
7281
# Sed substitution to delay expansion of an escaped shell variable in a
 
7282
# double_quote_subst'ed string.
 
7283
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7284
 
 
7285
# Sed substitution to delay expansion of an escaped single quote.
 
7286
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7287
 
 
7288
# Sed substitution to avoid accidental globbing in evaled expressions
 
7289
no_glob_subst='s/\*/\\\*/g'
 
7290
 
 
7291
# Global variables:
 
7292
ofile=libtool
 
7293
can_build_shared=yes
 
7294
 
 
7295
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7296
# which needs '.lib').
 
7297
libext=a
 
7298
 
 
7299
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7300
 
 
7301
old_CC="$CC"
 
7302
old_CFLAGS="$CFLAGS"
 
7303
 
 
7304
# Set sane defaults for various variables
 
7305
test -z "$CC" && CC=cc
 
7306
test -z "$LTCC" && LTCC=$CC
 
7307
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7308
test -z "$LD" && LD=ld
 
7309
test -z "$ac_objext" && ac_objext=o
 
7310
 
 
7311
for cc_temp in $compiler""; do
 
7312
  case $cc_temp in
 
7313
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7314
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7315
    \-*) ;;
 
7316
    *) break;;
 
7317
  esac
 
7318
done
 
7319
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7320
 
 
7321
 
 
7322
# Only perform the check for file, if the check method requires it
 
7323
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7324
case $deplibs_check_method in
 
7325
file_magic*)
 
7326
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7327
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7328
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7329
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7330
  $as_echo_n "(cached) " >&6
 
7331
else
 
7332
  case $MAGIC_CMD in
 
7333
[\\/*] |  ?:[\\/]*)
 
7334
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7335
  ;;
 
7336
*)
 
7337
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7338
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7339
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7340
  for ac_dir in $ac_dummy; do
 
7341
    IFS="$lt_save_ifs"
 
7342
    test -z "$ac_dir" && ac_dir=.
 
7343
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7344
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7345
      if test -n "$file_magic_test_file"; then
 
7346
        case $deplibs_check_method in
 
7347
        "file_magic "*)
 
7348
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7349
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7350
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7351
            $EGREP "$file_magic_regex" > /dev/null; then
 
7352
            :
 
7353
          else
 
7354
            cat <<_LT_EOF 1>&2
 
7355
 
 
7356
*** Warning: the command libtool uses to detect shared libraries,
 
7357
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7358
*** The result is that libtool may fail to recognize shared libraries
 
7359
*** as such.  This will affect the creation of libtool libraries that
 
7360
*** depend on shared libraries, but programs linked with such libtool
 
7361
*** libraries will work regardless of this problem.  Nevertheless, you
 
7362
*** may want to report the problem to your system manager and/or to
 
7363
*** bug-libtool@gnu.org
 
7364
 
 
7365
_LT_EOF
 
7366
          fi ;;
 
7367
        esac
 
7368
      fi
 
7369
      break
 
7370
    fi
 
7371
  done
 
7372
  IFS="$lt_save_ifs"
 
7373
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7374
  ;;
 
7375
esac
 
7376
fi
 
7377
 
 
7378
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7379
if test -n "$MAGIC_CMD"; then
 
7380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7381
$as_echo "$MAGIC_CMD" >&6; }
 
7382
else
 
7383
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7384
$as_echo "no" >&6; }
 
7385
fi
 
7386
 
 
7387
 
 
7388
 
 
7389
 
 
7390
 
 
7391
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7392
  if test -n "$ac_tool_prefix"; then
 
7393
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7394
$as_echo_n "checking for file... " >&6; }
 
7395
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7396
  $as_echo_n "(cached) " >&6
 
7397
else
 
7398
  case $MAGIC_CMD in
 
7399
[\\/*] |  ?:[\\/]*)
 
7400
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7401
  ;;
 
7402
*)
 
7403
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7404
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7405
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7406
  for ac_dir in $ac_dummy; do
 
7407
    IFS="$lt_save_ifs"
 
7408
    test -z "$ac_dir" && ac_dir=.
 
7409
    if test -f $ac_dir/file; then
 
7410
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7411
      if test -n "$file_magic_test_file"; then
 
7412
        case $deplibs_check_method in
 
7413
        "file_magic "*)
 
7414
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7415
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7416
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7417
            $EGREP "$file_magic_regex" > /dev/null; then
 
7418
            :
 
7419
          else
 
7420
            cat <<_LT_EOF 1>&2
 
7421
 
 
7422
*** Warning: the command libtool uses to detect shared libraries,
 
7423
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7424
*** The result is that libtool may fail to recognize shared libraries
 
7425
*** as such.  This will affect the creation of libtool libraries that
 
7426
*** depend on shared libraries, but programs linked with such libtool
 
7427
*** libraries will work regardless of this problem.  Nevertheless, you
 
7428
*** may want to report the problem to your system manager and/or to
 
7429
*** bug-libtool@gnu.org
 
7430
 
 
7431
_LT_EOF
 
7432
          fi ;;
 
7433
        esac
 
7434
      fi
 
7435
      break
 
7436
    fi
 
7437
  done
 
7438
  IFS="$lt_save_ifs"
 
7439
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7440
  ;;
 
7441
esac
 
7442
fi
 
7443
 
 
7444
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7445
if test -n "$MAGIC_CMD"; then
 
7446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7447
$as_echo "$MAGIC_CMD" >&6; }
 
7448
else
 
7449
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7450
$as_echo "no" >&6; }
 
7451
fi
 
7452
 
 
7453
 
 
7454
  else
 
7455
    MAGIC_CMD=:
 
7456
  fi
 
7457
fi
 
7458
 
 
7459
  fi
 
7460
  ;;
 
7461
esac
 
7462
 
 
7463
# Use C for the default configuration in the libtool script
 
7464
 
 
7465
lt_save_CC="$CC"
 
7466
ac_ext=c
 
7467
ac_cpp='$CPP $CPPFLAGS'
 
7468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7471
 
 
7472
 
 
7473
# Source file extension for C test sources.
 
7474
ac_ext=c
 
7475
 
 
7476
# Object file extension for compiled C test sources.
 
7477
objext=o
 
7478
objext=$objext
 
7479
 
 
7480
# Code to be used in simple compile tests
 
7481
lt_simple_compile_test_code="int some_variable = 0;"
 
7482
 
 
7483
# Code to be used in simple link tests
 
7484
lt_simple_link_test_code='int main(){return(0);}'
 
7485
 
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
# If no C compiler was specified, use CC.
 
7493
LTCC=${LTCC-"$CC"}
 
7494
 
 
7495
# If no C compiler flags were specified, use CFLAGS.
 
7496
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7497
 
 
7498
# Allow CC to be a program name with arguments.
 
7499
compiler=$CC
 
7500
 
 
7501
# Save the default compiler, since it gets overwritten when the other
 
7502
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7503
compiler_DEFAULT=$CC
 
7504
 
 
7505
# save warnings/boilerplate of simple test code
 
7506
ac_outfile=conftest.$ac_objext
 
7507
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7508
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7509
_lt_compiler_boilerplate=`cat conftest.err`
 
7510
$RM conftest*
 
7511
 
 
7512
ac_outfile=conftest.$ac_objext
 
7513
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7514
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7515
_lt_linker_boilerplate=`cat conftest.err`
 
7516
$RM -r conftest*
 
7517
 
 
7518
 
 
7519
if test -n "$compiler"; then
 
7520
 
 
7521
lt_prog_compiler_no_builtin_flag=
 
7522
 
 
7523
if test "$GCC" = yes; then
 
7524
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7525
 
 
7526
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7527
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7528
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
7529
  $as_echo_n "(cached) " >&6
 
7530
else
 
7531
  lt_cv_prog_compiler_rtti_exceptions=no
 
7532
   ac_outfile=conftest.$ac_objext
 
7533
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7534
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7535
   # Insert the option either (1) after the last *FLAGS variable, or
 
7536
   # (2) before a word containing "conftest.", or (3) at the end.
 
7537
   # Note that $ac_compile itself does not contain backslashes and begins
 
7538
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7539
   # The option is referenced via a variable to avoid confusing sed.
 
7540
   lt_compile=`echo "$ac_compile" | $SED \
 
7541
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7542
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7543
   -e 's:$: $lt_compiler_flag:'`
 
7544
   (eval echo "\"\$as_me:7544: $lt_compile\"" >&5)
 
7545
   (eval "$lt_compile" 2>conftest.err)
 
7546
   ac_status=$?
 
7547
   cat conftest.err >&5
 
7548
   echo "$as_me:7548: \$? = $ac_status" >&5
 
7549
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7550
     # The compiler can only warn and ignore the option if not recognized
 
7551
     # So say no if there are warnings other than the usual output.
 
7552
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7553
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7554
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7555
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7556
     fi
 
7557
   fi
 
7558
   $RM conftest*
 
7559
 
 
7560
fi
 
7561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7562
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7563
 
 
7564
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7565
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7566
else
 
7567
    :
 
7568
fi
 
7569
 
 
7570
fi
 
7571
 
 
7572
 
 
7573
 
 
7574
 
 
7575
 
 
7576
 
 
7577
  lt_prog_compiler_wl=
 
7578
lt_prog_compiler_pic=
 
7579
lt_prog_compiler_static=
 
7580
 
 
7581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
7582
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7583
 
 
7584
  if test "$GCC" = yes; then
 
7585
    lt_prog_compiler_wl='-Wl,'
 
7586
    lt_prog_compiler_static='-static'
 
7587
 
 
7588
    case $host_os in
 
7589
      aix*)
 
7590
      # All AIX code is PIC.
 
7591
      if test "$host_cpu" = ia64; then
 
7592
        # AIX 5 now supports IA64 processor
 
7593
        lt_prog_compiler_static='-Bstatic'
 
7594
      fi
 
7595
      ;;
 
7596
 
 
7597
    amigaos*)
 
7598
      case $host_cpu in
 
7599
      powerpc)
 
7600
            # see comment about AmigaOS4 .so support
 
7601
            lt_prog_compiler_pic='-fPIC'
 
7602
        ;;
 
7603
      m68k)
 
7604
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7605
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7606
            # like `-m68040'.
 
7607
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7608
        ;;
 
7609
      esac
 
7610
      ;;
 
7611
 
 
7612
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7613
      # PIC is the default for these OSes.
 
7614
      ;;
 
7615
 
 
7616
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7617
      # This hack is so that the source file can tell whether it is being
 
7618
      # built for inclusion in a dll (and should export symbols for example).
 
7619
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7620
      # (--disable-auto-import) libraries
 
7621
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7622
      ;;
 
7623
 
 
7624
    darwin* | rhapsody*)
 
7625
      # PIC is the default on this platform
 
7626
      # Common symbols not allowed in MH_DYLIB files
 
7627
      lt_prog_compiler_pic='-fno-common'
 
7628
      ;;
 
7629
 
 
7630
    hpux*)
 
7631
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7632
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7633
      # sets the default TLS model and affects inlining.
 
7634
      case $host_cpu in
 
7635
      hppa*64*)
 
7636
        # +Z the default
 
7637
        ;;
 
7638
      *)
 
7639
        lt_prog_compiler_pic='-fPIC'
 
7640
        ;;
 
7641
      esac
 
7642
      ;;
 
7643
 
 
7644
    interix[3-9]*)
 
7645
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7646
      # Instead, we relocate shared libraries at runtime.
 
7647
      ;;
 
7648
 
 
7649
    msdosdjgpp*)
 
7650
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7651
      # on systems that don't support them.
 
7652
      lt_prog_compiler_can_build_shared=no
 
7653
      enable_shared=no
 
7654
      ;;
 
7655
 
 
7656
    *nto* | *qnx*)
 
7657
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7658
      # it will coredump.
 
7659
      lt_prog_compiler_pic='-fPIC -shared'
 
7660
      ;;
 
7661
 
 
7662
    sysv4*MP*)
 
7663
      if test -d /usr/nec; then
 
7664
        lt_prog_compiler_pic=-Kconform_pic
 
7665
      fi
 
7666
      ;;
 
7667
 
 
7668
    *)
 
7669
      lt_prog_compiler_pic='-fPIC'
 
7670
      ;;
 
7671
    esac
 
7672
  else
 
7673
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7674
    case $host_os in
 
7675
    aix*)
 
7676
      lt_prog_compiler_wl='-Wl,'
 
7677
      if test "$host_cpu" = ia64; then
 
7678
        # AIX 5 now supports IA64 processor
 
7679
        lt_prog_compiler_static='-Bstatic'
 
7680
      else
 
7681
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7682
      fi
 
7683
      ;;
 
7684
 
 
7685
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7686
      # This hack is so that the source file can tell whether it is being
 
7687
      # built for inclusion in a dll (and should export symbols for example).
 
7688
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7689
      ;;
 
7690
 
 
7691
    hpux9* | hpux10* | hpux11*)
 
7692
      lt_prog_compiler_wl='-Wl,'
 
7693
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7694
      # not for PA HP-UX.
 
7695
      case $host_cpu in
 
7696
      hppa*64*|ia64*)
 
7697
        # +Z the default
 
7698
        ;;
 
7699
      *)
 
7700
        lt_prog_compiler_pic='+Z'
 
7701
        ;;
 
7702
      esac
 
7703
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7704
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7705
      ;;
 
7706
 
 
7707
    irix5* | irix6* | nonstopux*)
 
7708
      lt_prog_compiler_wl='-Wl,'
 
7709
      # PIC (with -KPIC) is the default.
 
7710
      lt_prog_compiler_static='-non_shared'
 
7711
      ;;
 
7712
 
 
7713
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7714
      case $cc_basename in
 
7715
      # old Intel for x86_64 which still supported -KPIC.
 
7716
      ecc*)
 
7717
        lt_prog_compiler_wl='-Wl,'
 
7718
        lt_prog_compiler_pic='-KPIC'
 
7719
        lt_prog_compiler_static='-static'
 
7720
        ;;
 
7721
      # icc used to be incompatible with GCC.
 
7722
      # ICC 10 doesn't accept -KPIC any more.
 
7723
      icc* | ifort*)
 
7724
        lt_prog_compiler_wl='-Wl,'
 
7725
        lt_prog_compiler_pic='-fPIC'
 
7726
        lt_prog_compiler_static='-static'
 
7727
        ;;
 
7728
      # Lahey Fortran 8.1.
 
7729
      lf95*)
 
7730
        lt_prog_compiler_wl='-Wl,'
 
7731
        lt_prog_compiler_pic='--shared'
 
7732
        lt_prog_compiler_static='--static'
 
7733
        ;;
 
7734
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7735
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7736
        # which looks to be a dead project)
 
7737
        lt_prog_compiler_wl='-Wl,'
 
7738
        lt_prog_compiler_pic='-fpic'
 
7739
        lt_prog_compiler_static='-Bstatic'
 
7740
        ;;
 
7741
      ccc*)
 
7742
        lt_prog_compiler_wl='-Wl,'
 
7743
        # All Alpha code is PIC.
 
7744
        lt_prog_compiler_static='-non_shared'
 
7745
        ;;
 
7746
      xl*)
 
7747
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7748
        lt_prog_compiler_wl='-Wl,'
 
7749
        lt_prog_compiler_pic='-qpic'
 
7750
        lt_prog_compiler_static='-qstaticlink'
 
7751
        ;;
 
7752
      *)
 
7753
        case `$CC -V 2>&1 | sed 5q` in
 
7754
        *Sun\ C*)
 
7755
          # Sun C 5.9
 
7756
          lt_prog_compiler_pic='-KPIC'
 
7757
          lt_prog_compiler_static='-Bstatic'
 
7758
          lt_prog_compiler_wl='-Wl,'
 
7759
          ;;
 
7760
        *Sun\ F*)
 
7761
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7762
          lt_prog_compiler_pic='-KPIC'
 
7763
          lt_prog_compiler_static='-Bstatic'
 
7764
          lt_prog_compiler_wl=''
 
7765
          ;;
 
7766
        esac
 
7767
        ;;
 
7768
      esac
 
7769
      ;;
 
7770
 
 
7771
    newsos6)
 
7772
      lt_prog_compiler_pic='-KPIC'
 
7773
      lt_prog_compiler_static='-Bstatic'
 
7774
      ;;
 
7775
 
 
7776
    *nto* | *qnx*)
 
7777
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7778
      # it will coredump.
 
7779
      lt_prog_compiler_pic='-fPIC -shared'
 
7780
      ;;
 
7781
 
 
7782
    osf3* | osf4* | osf5*)
 
7783
      lt_prog_compiler_wl='-Wl,'
 
7784
      # All OSF/1 code is PIC.
 
7785
      lt_prog_compiler_static='-non_shared'
 
7786
      ;;
 
7787
 
 
7788
    rdos*)
 
7789
      lt_prog_compiler_static='-non_shared'
 
7790
      ;;
 
7791
 
 
7792
    solaris*)
 
7793
      lt_prog_compiler_pic='-KPIC'
 
7794
      lt_prog_compiler_static='-Bstatic'
 
7795
      case $cc_basename in
 
7796
      f77* | f90* | f95*)
 
7797
        lt_prog_compiler_wl='-Qoption ld ';;
 
7798
      *)
 
7799
        lt_prog_compiler_wl='-Wl,';;
 
7800
      esac
 
7801
      ;;
 
7802
 
 
7803
    sunos4*)
 
7804
      lt_prog_compiler_wl='-Qoption ld '
 
7805
      lt_prog_compiler_pic='-PIC'
 
7806
      lt_prog_compiler_static='-Bstatic'
 
7807
      ;;
 
7808
 
 
7809
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7810
      lt_prog_compiler_wl='-Wl,'
 
7811
      lt_prog_compiler_pic='-KPIC'
 
7812
      lt_prog_compiler_static='-Bstatic'
 
7813
      ;;
 
7814
 
 
7815
    sysv4*MP*)
 
7816
      if test -d /usr/nec ;then
 
7817
        lt_prog_compiler_pic='-Kconform_pic'
 
7818
        lt_prog_compiler_static='-Bstatic'
 
7819
      fi
 
7820
      ;;
 
7821
 
 
7822
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7823
      lt_prog_compiler_wl='-Wl,'
 
7824
      lt_prog_compiler_pic='-KPIC'
 
7825
      lt_prog_compiler_static='-Bstatic'
 
7826
      ;;
 
7827
 
 
7828
    unicos*)
 
7829
      lt_prog_compiler_wl='-Wl,'
 
7830
      lt_prog_compiler_can_build_shared=no
 
7831
      ;;
 
7832
 
 
7833
    uts4*)
 
7834
      lt_prog_compiler_pic='-pic'
 
7835
      lt_prog_compiler_static='-Bstatic'
 
7836
      ;;
 
7837
 
 
7838
    *)
 
7839
      lt_prog_compiler_can_build_shared=no
 
7840
      ;;
 
7841
    esac
 
7842
  fi
 
7843
 
 
7844
case $host_os in
 
7845
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7846
  *djgpp*)
 
7847
    lt_prog_compiler_pic=
 
7848
    ;;
 
7849
  *)
 
7850
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7851
    ;;
 
7852
esac
 
7853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
7854
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7855
 
 
7856
 
 
7857
 
 
7858
 
 
7859
 
 
7860
 
 
7861
#
 
7862
# Check to make sure the PIC flag actually works.
 
7863
#
 
7864
if test -n "$lt_prog_compiler_pic"; then
 
7865
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7866
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7867
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
7868
  $as_echo_n "(cached) " >&6
 
7869
else
 
7870
  lt_cv_prog_compiler_pic_works=no
 
7871
   ac_outfile=conftest.$ac_objext
 
7872
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7873
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7874
   # Insert the option either (1) after the last *FLAGS variable, or
 
7875
   # (2) before a word containing "conftest.", or (3) at the end.
 
7876
   # Note that $ac_compile itself does not contain backslashes and begins
 
7877
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7878
   # The option is referenced via a variable to avoid confusing sed.
 
7879
   lt_compile=`echo "$ac_compile" | $SED \
 
7880
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7881
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7882
   -e 's:$: $lt_compiler_flag:'`
 
7883
   (eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
 
7884
   (eval "$lt_compile" 2>conftest.err)
 
7885
   ac_status=$?
 
7886
   cat conftest.err >&5
 
7887
   echo "$as_me:7887: \$? = $ac_status" >&5
 
7888
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7889
     # The compiler can only warn and ignore the option if not recognized
 
7890
     # So say no if there are warnings other than the usual output.
 
7891
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7892
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7893
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7894
       lt_cv_prog_compiler_pic_works=yes
 
7895
     fi
 
7896
   fi
 
7897
   $RM conftest*
 
7898
 
 
7899
fi
 
7900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
7901
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7902
 
 
7903
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7904
    case $lt_prog_compiler_pic in
 
7905
     "" | " "*) ;;
 
7906
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7907
     esac
 
7908
else
 
7909
    lt_prog_compiler_pic=
 
7910
     lt_prog_compiler_can_build_shared=no
 
7911
fi
 
7912
 
 
7913
fi
 
7914
 
 
7915
 
 
7916
 
 
7917
 
 
7918
 
 
7919
 
 
7920
#
 
7921
# Check to make sure the static flag actually works.
 
7922
#
 
7923
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7925
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7926
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
7927
  $as_echo_n "(cached) " >&6
 
7928
else
 
7929
  lt_cv_prog_compiler_static_works=no
 
7930
   save_LDFLAGS="$LDFLAGS"
 
7931
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7932
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7933
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7934
     # The linker can only warn and ignore the option if not recognized
 
7935
     # So say no if there are warnings
 
7936
     if test -s conftest.err; then
 
7937
       # Append any errors to the config.log.
 
7938
       cat conftest.err 1>&5
 
7939
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7940
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7941
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7942
         lt_cv_prog_compiler_static_works=yes
 
7943
       fi
 
7944
     else
 
7945
       lt_cv_prog_compiler_static_works=yes
 
7946
     fi
 
7947
   fi
 
7948
   $RM -r conftest*
 
7949
   LDFLAGS="$save_LDFLAGS"
 
7950
 
 
7951
fi
 
7952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
7953
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7954
 
 
7955
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7956
    :
 
7957
else
 
7958
    lt_prog_compiler_static=
 
7959
fi
 
7960
 
 
7961
 
 
7962
 
 
7963
 
 
7964
 
 
7965
 
 
7966
 
 
7967
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7968
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7969
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
7970
  $as_echo_n "(cached) " >&6
 
7971
else
 
7972
  lt_cv_prog_compiler_c_o=no
 
7973
   $RM -r conftest 2>/dev/null
 
7974
   mkdir conftest
 
7975
   cd conftest
 
7976
   mkdir out
 
7977
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7978
 
 
7979
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7980
   # Insert the option either (1) after the last *FLAGS variable, or
 
7981
   # (2) before a word containing "conftest.", or (3) at the end.
 
7982
   # Note that $ac_compile itself does not contain backslashes and begins
 
7983
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7984
   lt_compile=`echo "$ac_compile" | $SED \
 
7985
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7986
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7987
   -e 's:$: $lt_compiler_flag:'`
 
7988
   (eval echo "\"\$as_me:7988: $lt_compile\"" >&5)
 
7989
   (eval "$lt_compile" 2>out/conftest.err)
 
7990
   ac_status=$?
 
7991
   cat out/conftest.err >&5
 
7992
   echo "$as_me:7992: \$? = $ac_status" >&5
 
7993
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7994
   then
 
7995
     # The compiler can only warn and ignore the option if not recognized
 
7996
     # So say no if there are warnings
 
7997
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7998
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7999
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8000
       lt_cv_prog_compiler_c_o=yes
 
8001
     fi
 
8002
   fi
 
8003
   chmod u+w . 2>&5
 
8004
   $RM conftest*
 
8005
   # SGI C++ compiler will create directory out/ii_files/ for
 
8006
   # template instantiation
 
8007
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8008
   $RM out/* && rmdir out
 
8009
   cd ..
 
8010
   $RM -r conftest
 
8011
   $RM conftest*
 
8012
 
 
8013
fi
 
8014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8015
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8016
 
 
8017
 
 
8018
 
 
8019
 
 
8020
 
 
8021
 
 
8022
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8023
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8024
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8025
  $as_echo_n "(cached) " >&6
 
8026
else
 
8027
  lt_cv_prog_compiler_c_o=no
 
8028
   $RM -r conftest 2>/dev/null
 
8029
   mkdir conftest
 
8030
   cd conftest
 
8031
   mkdir out
 
8032
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8033
 
 
8034
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8035
   # Insert the option either (1) after the last *FLAGS variable, or
 
8036
   # (2) before a word containing "conftest.", or (3) at the end.
 
8037
   # Note that $ac_compile itself does not contain backslashes and begins
 
8038
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8039
   lt_compile=`echo "$ac_compile" | $SED \
 
8040
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8041
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8042
   -e 's:$: $lt_compiler_flag:'`
 
8043
   (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
 
8044
   (eval "$lt_compile" 2>out/conftest.err)
 
8045
   ac_status=$?
 
8046
   cat out/conftest.err >&5
 
8047
   echo "$as_me:8047: \$? = $ac_status" >&5
 
8048
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8049
   then
 
8050
     # The compiler can only warn and ignore the option if not recognized
 
8051
     # So say no if there are warnings
 
8052
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8053
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8054
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8055
       lt_cv_prog_compiler_c_o=yes
 
8056
     fi
 
8057
   fi
 
8058
   chmod u+w . 2>&5
 
8059
   $RM conftest*
 
8060
   # SGI C++ compiler will create directory out/ii_files/ for
 
8061
   # template instantiation
 
8062
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8063
   $RM out/* && rmdir out
 
8064
   cd ..
 
8065
   $RM -r conftest
 
8066
   $RM conftest*
 
8067
 
 
8068
fi
 
8069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8070
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8071
 
 
8072
 
 
8073
 
 
8074
 
 
8075
hard_links="nottested"
 
8076
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8077
  # do not overwrite the value of need_locks provided by the user
 
8078
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8079
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8080
  hard_links=yes
 
8081
  $RM conftest*
 
8082
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8083
  touch conftest.a
 
8084
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8085
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8087
$as_echo "$hard_links" >&6; }
 
8088
  if test "$hard_links" = no; then
 
8089
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8090
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8091
    need_locks=warn
 
8092
  fi
 
8093
else
 
8094
  need_locks=no
 
8095
fi
 
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
 
 
8101
 
 
8102
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8103
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8104
 
 
8105
  runpath_var=
 
8106
  allow_undefined_flag=
 
8107
  always_export_symbols=no
 
8108
  archive_cmds=
 
8109
  archive_expsym_cmds=
 
8110
  compiler_needs_object=no
 
8111
  enable_shared_with_static_runtimes=no
 
8112
  export_dynamic_flag_spec=
 
8113
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8114
  hardcode_automatic=no
 
8115
  hardcode_direct=no
 
8116
  hardcode_direct_absolute=no
 
8117
  hardcode_libdir_flag_spec=
 
8118
  hardcode_libdir_flag_spec_ld=
 
8119
  hardcode_libdir_separator=
 
8120
  hardcode_minus_L=no
 
8121
  hardcode_shlibpath_var=unsupported
 
8122
  inherit_rpath=no
 
8123
  link_all_deplibs=unknown
 
8124
  module_cmds=
 
8125
  module_expsym_cmds=
 
8126
  old_archive_from_new_cmds=
 
8127
  old_archive_from_expsyms_cmds=
 
8128
  thread_safe_flag_spec=
 
8129
  whole_archive_flag_spec=
 
8130
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8131
  # included in the symbol list
 
8132
  include_expsyms=
 
8133
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8134
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8135
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8136
  # as well as any symbol that contains `d'.
 
8137
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8138
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8139
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8140
  # the symbol is explicitly referenced.  Since portable code cannot
 
8141
  # rely on this symbol name, it's probably fine to never include it in
 
8142
  # preloaded symbol tables.
 
8143
  # Exclude shared library initialization/finalization symbols.
 
8144
  extract_expsyms_cmds=
 
8145
 
 
8146
  case $host_os in
 
8147
  cygwin* | mingw* | pw32* | cegcc*)
 
8148
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8149
    # When not using gcc, we currently assume that we are using
 
8150
    # Microsoft Visual C++.
 
8151
    if test "$GCC" != yes; then
 
8152
      with_gnu_ld=no
 
8153
    fi
 
8154
    ;;
 
8155
  interix*)
 
8156
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8157
    with_gnu_ld=yes
 
8158
    ;;
 
8159
  openbsd*)
 
8160
    with_gnu_ld=no
 
8161
    ;;
 
8162
  linux* | k*bsd*-gnu)
 
8163
    link_all_deplibs=no
 
8164
    ;;
 
8165
  esac
 
8166
 
 
8167
  ld_shlibs=yes
 
8168
  if test "$with_gnu_ld" = yes; then
 
8169
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8170
    wlarc='${wl}'
 
8171
 
 
8172
    # Set some defaults for GNU ld with shared library support. These
 
8173
    # are reset later if shared libraries are not supported. Putting them
 
8174
    # here allows them to be overridden if necessary.
 
8175
    runpath_var=LD_RUN_PATH
 
8176
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8177
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8178
    # ancient GNU ld didn't support --whole-archive et. al.
 
8179
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8180
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8181
    else
 
8182
      whole_archive_flag_spec=
 
8183
    fi
 
8184
    supports_anon_versioning=no
 
8185
    case `$LD -v 2>&1` in
 
8186
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8187
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8188
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8189
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8190
      *\ 2.11.*) ;; # other 2.11 versions
 
8191
      *) supports_anon_versioning=yes ;;
 
8192
    esac
 
8193
 
 
8194
    # See if GNU ld supports shared libraries.
 
8195
    case $host_os in
 
8196
    aix[3-9]*)
 
8197
      # On AIX/PPC, the GNU linker is very broken
 
8198
      if test "$host_cpu" != ia64; then
 
8199
        ld_shlibs=no
 
8200
        cat <<_LT_EOF 1>&2
 
8201
 
 
8202
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8203
*** to be unable to reliably create shared libraries on AIX.
 
8204
*** Therefore, libtool is disabling shared libraries support.  If you
 
8205
*** really care for shared libraries, you may want to modify your PATH
 
8206
*** so that a non-GNU linker is found, and then restart.
 
8207
 
 
8208
_LT_EOF
 
8209
      fi
 
8210
      ;;
 
8211
 
 
8212
    amigaos*)
 
8213
      case $host_cpu in
 
8214
      powerpc)
 
8215
            # see comment about AmigaOS4 .so support
 
8216
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8217
            archive_expsym_cmds=''
 
8218
        ;;
 
8219
      m68k)
 
8220
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8221
            hardcode_libdir_flag_spec='-L$libdir'
 
8222
            hardcode_minus_L=yes
 
8223
        ;;
 
8224
      esac
 
8225
      ;;
 
8226
 
 
8227
    beos*)
 
8228
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8229
        allow_undefined_flag=unsupported
 
8230
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8231
        # support --undefined.  This deserves some investigation.  FIXME
 
8232
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8233
      else
 
8234
        ld_shlibs=no
 
8235
      fi
 
8236
      ;;
 
8237
 
 
8238
    cygwin* | mingw* | pw32* | cegcc*)
 
8239
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8240
      # as there is no search path for DLLs.
 
8241
      hardcode_libdir_flag_spec='-L$libdir'
 
8242
      allow_undefined_flag=unsupported
 
8243
      always_export_symbols=no
 
8244
      enable_shared_with_static_runtimes=yes
 
8245
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8246
 
 
8247
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8248
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8249
        # If the export-symbols file already is a .def file (1st line
 
8250
        # is EXPORTS), use it as is; otherwise, prepend...
 
8251
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8252
          cp $export_symbols $output_objdir/$soname.def;
 
8253
        else
 
8254
          echo EXPORTS > $output_objdir/$soname.def;
 
8255
          cat $export_symbols >> $output_objdir/$soname.def;
 
8256
        fi~
 
8257
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8258
      else
 
8259
        ld_shlibs=no
 
8260
      fi
 
8261
      ;;
 
8262
 
 
8263
    interix[3-9]*)
 
8264
      hardcode_direct=no
 
8265
      hardcode_shlibpath_var=no
 
8266
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8267
      export_dynamic_flag_spec='${wl}-E'
 
8268
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8269
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8270
      # default) and relocated if they conflict, which is a slow very memory
 
8271
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8272
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8273
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8274
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8275
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8276
      ;;
 
8277
 
 
8278
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8279
      tmp_diet=no
 
8280
      if test "$host_os" = linux-dietlibc; then
 
8281
        case $cc_basename in
 
8282
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8283
        esac
 
8284
      fi
 
8285
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8286
         && test "$tmp_diet" = no
 
8287
      then
 
8288
        tmp_addflag=
 
8289
        tmp_sharedflag='-shared'
 
8290
        case $cc_basename,$host_cpu in
 
8291
        pgcc*)                          # Portland Group C compiler
 
8292
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8293
          tmp_addflag=' $pic_flag'
 
8294
          ;;
 
8295
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8296
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8297
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8298
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8299
          tmp_addflag=' -i_dynamic' ;;
 
8300
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8301
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8302
        ifc* | ifort*)                  # Intel Fortran compiler
 
8303
          tmp_addflag=' -nofor_main' ;;
 
8304
        lf95*)                          # Lahey Fortran 8.1
 
8305
          whole_archive_flag_spec=
 
8306
          tmp_sharedflag='--shared' ;;
 
8307
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8308
          tmp_sharedflag='-qmkshrobj'
 
8309
          tmp_addflag= ;;
 
8310
        esac
 
8311
        case `$CC -V 2>&1 | sed 5q` in
 
8312
        *Sun\ C*)                       # Sun C 5.9
 
8313
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8314
          compiler_needs_object=yes
 
8315
          tmp_sharedflag='-G' ;;
 
8316
        *Sun\ F*)                       # Sun Fortran 8.3
 
8317
          tmp_sharedflag='-G' ;;
 
8318
        esac
 
8319
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8320
 
 
8321
        if test "x$supports_anon_versioning" = xyes; then
 
8322
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8323
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8324
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8325
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8326
        fi
 
8327
 
 
8328
        case $cc_basename in
 
8329
        xlf*)
 
8330
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8331
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8332
          hardcode_libdir_flag_spec=
 
8333
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8334
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8335
          if test "x$supports_anon_versioning" = xyes; then
 
8336
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8337
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8338
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8339
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8340
          fi
 
8341
          ;;
 
8342
        esac
 
8343
      else
 
8344
        ld_shlibs=no
 
8345
      fi
 
8346
      ;;
 
8347
 
 
8348
    netbsd* | netbsdelf*-gnu)
 
8349
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8350
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8351
        wlarc=
 
8352
      else
 
8353
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8354
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8355
      fi
 
8356
      ;;
 
8357
 
 
8358
    solaris*)
 
8359
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8360
        ld_shlibs=no
 
8361
        cat <<_LT_EOF 1>&2
 
8362
 
 
8363
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8364
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8365
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8366
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8367
*** your PATH or compiler configuration so that the native linker is
 
8368
*** used, and then restart.
 
8369
 
 
8370
_LT_EOF
 
8371
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8372
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8373
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8374
      else
 
8375
        ld_shlibs=no
 
8376
      fi
 
8377
      ;;
 
8378
 
 
8379
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8380
      case `$LD -v 2>&1` in
 
8381
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8382
        ld_shlibs=no
 
8383
        cat <<_LT_EOF 1>&2
 
8384
 
 
8385
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8386
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8387
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8388
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8389
*** your PATH or compiler configuration so that the native linker is
 
8390
*** used, and then restart.
 
8391
 
 
8392
_LT_EOF
 
8393
        ;;
 
8394
        *)
 
8395
          # For security reasons, it is highly recommended that you always
 
8396
          # use absolute paths for naming shared libraries, and exclude the
 
8397
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8398
          # requires that you compile everything twice, which is a pain.
 
8399
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8400
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8401
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8402
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8403
          else
 
8404
            ld_shlibs=no
 
8405
          fi
 
8406
        ;;
 
8407
      esac
 
8408
      ;;
 
8409
 
 
8410
    sunos4*)
 
8411
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8412
      wlarc=
 
8413
      hardcode_direct=yes
 
8414
      hardcode_shlibpath_var=no
 
8415
      ;;
 
8416
 
 
8417
    *)
 
8418
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8419
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8420
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8421
      else
 
8422
        ld_shlibs=no
 
8423
      fi
 
8424
      ;;
 
8425
    esac
 
8426
 
 
8427
    if test "$ld_shlibs" = no; then
 
8428
      runpath_var=
 
8429
      hardcode_libdir_flag_spec=
 
8430
      export_dynamic_flag_spec=
 
8431
      whole_archive_flag_spec=
 
8432
    fi
 
8433
  else
 
8434
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8435
    case $host_os in
 
8436
    aix3*)
 
8437
      allow_undefined_flag=unsupported
 
8438
      always_export_symbols=yes
 
8439
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
8440
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8441
      # are no directories specified by -L.
 
8442
      hardcode_minus_L=yes
 
8443
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8444
        # Neither direct hardcoding nor static linking is supported with a
 
8445
        # broken collect2.
 
8446
        hardcode_direct=unsupported
 
8447
      fi
 
8448
      ;;
 
8449
 
 
8450
    aix[4-9]*)
 
8451
      if test "$host_cpu" = ia64; then
 
8452
        # On IA64, the linker does run time linking by default, so we don't
 
8453
        # have to do anything special.
 
8454
        aix_use_runtimelinking=no
 
8455
        exp_sym_flag='-Bexport'
 
8456
        no_entry_flag=""
 
8457
      else
 
8458
        # If we're using GNU nm, then we don't want the "-C" option.
 
8459
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8460
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8461
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8462
        else
 
8463
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8464
        fi
 
8465
        aix_use_runtimelinking=no
 
8466
 
 
8467
        # Test if we are trying to use run time linking or normal
 
8468
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8469
        # need to do runtime linking.
 
8470
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8471
          for ld_flag in $LDFLAGS; do
 
8472
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8473
            aix_use_runtimelinking=yes
 
8474
            break
 
8475
          fi
 
8476
          done
 
8477
          ;;
 
8478
        esac
 
8479
 
 
8480
        exp_sym_flag='-bexport'
 
8481
        no_entry_flag='-bnoentry'
 
8482
      fi
 
8483
 
 
8484
      # When large executables or shared objects are built, AIX ld can
 
8485
      # have problems creating the table of contents.  If linking a library
 
8486
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8487
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8488
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8489
 
 
8490
      archive_cmds=''
 
8491
      hardcode_direct=yes
 
8492
      hardcode_direct_absolute=yes
 
8493
      hardcode_libdir_separator=':'
 
8494
      link_all_deplibs=yes
 
8495
      file_list_spec='${wl}-f,'
 
8496
 
 
8497
      if test "$GCC" = yes; then
 
8498
        case $host_os in aix4.[012]|aix4.[012].*)
 
8499
        # We only want to do this on AIX 4.2 and lower, the check
 
8500
        # below for broken collect2 doesn't work under 4.3+
 
8501
          collect2name=`${CC} -print-prog-name=collect2`
 
8502
          if test -f "$collect2name" &&
 
8503
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8504
          then
 
8505
          # We have reworked collect2
 
8506
          :
 
8507
          else
 
8508
          # We have old collect2
 
8509
          hardcode_direct=unsupported
 
8510
          # It fails to find uninstalled libraries when the uninstalled
 
8511
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8512
          # to unsupported forces relinking
 
8513
          hardcode_minus_L=yes
 
8514
          hardcode_libdir_flag_spec='-L$libdir'
 
8515
          hardcode_libdir_separator=
 
8516
          fi
 
8517
          ;;
 
8518
        esac
 
8519
        shared_flag='-shared'
 
8520
        if test "$aix_use_runtimelinking" = yes; then
 
8521
          shared_flag="$shared_flag "'${wl}-G'
 
8522
        fi
 
8523
        link_all_deplibs=no
 
8524
      else
 
8525
        # not using gcc
 
8526
        if test "$host_cpu" = ia64; then
 
8527
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8528
        # chokes on -Wl,-G. The following line is correct:
 
8529
          shared_flag='-G'
 
8530
        else
 
8531
          if test "$aix_use_runtimelinking" = yes; then
 
8532
            shared_flag='${wl}-G'
 
8533
          else
 
8534
            shared_flag='${wl}-bM:SRE'
 
8535
          fi
 
8536
        fi
 
8537
      fi
 
8538
 
 
8539
      export_dynamic_flag_spec='${wl}-bexpall'
 
8540
      # It seems that -bexpall does not export symbols beginning with
 
8541
      # underscore (_), so it is better to generate a list of symbols to export.
 
8542
      always_export_symbols=yes
 
8543
      if test "$aix_use_runtimelinking" = yes; then
 
8544
        # Warning - without using the other runtime loading flags (-brtl),
 
8545
        # -berok will link without error, but may produce a broken library.
 
8546
        allow_undefined_flag='-berok'
 
8547
        # Determine the default libpath from the value encoded in an
 
8548
        # empty executable.
 
8549
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8550
/* end confdefs.h.  */
 
8551
 
 
8552
int
 
8553
main ()
 
8554
{
 
8555
 
 
8556
  ;
 
8557
  return 0;
 
8558
}
 
8559
_ACEOF
 
8560
if ac_fn_c_try_link "$LINENO"; then :
 
8561
 
 
8562
lt_aix_libpath_sed='
 
8563
    /Import File Strings/,/^$/ {
 
8564
        /^0/ {
 
8565
            s/^0  *\(.*\)$/\1/
 
8566
            p
 
8567
        }
 
8568
    }'
 
8569
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8570
# Check for a 64-bit object if we didn't find anything.
 
8571
if test -z "$aix_libpath"; then
 
8572
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8573
fi
 
8574
fi
 
8575
rm -f core conftest.err conftest.$ac_objext \
 
8576
    conftest$ac_exeext conftest.$ac_ext
 
8577
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8578
 
 
8579
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8580
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8581
      else
 
8582
        if test "$host_cpu" = ia64; then
 
8583
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8584
          allow_undefined_flag="-z nodefs"
 
8585
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
8586
        else
 
8587
         # Determine the default libpath from the value encoded in an
 
8588
         # empty executable.
 
8589
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8590
/* end confdefs.h.  */
 
8591
 
 
8592
int
 
8593
main ()
 
8594
{
 
8595
 
 
8596
  ;
 
8597
  return 0;
 
8598
}
 
8599
_ACEOF
 
8600
if ac_fn_c_try_link "$LINENO"; then :
 
8601
 
 
8602
lt_aix_libpath_sed='
 
8603
    /Import File Strings/,/^$/ {
 
8604
        /^0/ {
 
8605
            s/^0  *\(.*\)$/\1/
 
8606
            p
 
8607
        }
 
8608
    }'
 
8609
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8610
# Check for a 64-bit object if we didn't find anything.
 
8611
if test -z "$aix_libpath"; then
 
8612
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8613
fi
 
8614
fi
 
8615
rm -f core conftest.err conftest.$ac_objext \
 
8616
    conftest$ac_exeext conftest.$ac_ext
 
8617
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8618
 
 
8619
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8620
          # Warning - without using the other run time loading flags,
 
8621
          # -berok will link without error, but may produce a broken library.
 
8622
          no_undefined_flag=' ${wl}-bernotok'
 
8623
          allow_undefined_flag=' ${wl}-berok'
 
8624
          # Exported symbols can be pulled into shared objects from archives
 
8625
          whole_archive_flag_spec='$convenience'
 
8626
          archive_cmds_need_lc=yes
 
8627
          # This is similar to how AIX traditionally builds its shared libraries.
 
8628
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8629
        fi
 
8630
      fi
 
8631
      ;;
 
8632
 
 
8633
    amigaos*)
 
8634
      case $host_cpu in
 
8635
      powerpc)
 
8636
            # see comment about AmigaOS4 .so support
 
8637
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8638
            archive_expsym_cmds=''
 
8639
        ;;
 
8640
      m68k)
 
8641
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8642
            hardcode_libdir_flag_spec='-L$libdir'
 
8643
            hardcode_minus_L=yes
 
8644
        ;;
 
8645
      esac
 
8646
      ;;
 
8647
 
 
8648
    bsdi[45]*)
 
8649
      export_dynamic_flag_spec=-rdynamic
 
8650
      ;;
 
8651
 
 
8652
    cygwin* | mingw* | pw32* | cegcc*)
 
8653
      # When not using gcc, we currently assume that we are using
 
8654
      # Microsoft Visual C++.
 
8655
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8656
      # no search path for DLLs.
 
8657
      hardcode_libdir_flag_spec=' '
 
8658
      allow_undefined_flag=unsupported
 
8659
      # Tell ltmain to make .lib files, not .a files.
 
8660
      libext=lib
 
8661
      # Tell ltmain to make .dll files, not .so files.
 
8662
      shrext_cmds=".dll"
 
8663
      # FIXME: Setting linknames here is a bad hack.
 
8664
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8665
      # The linker will automatically build a .lib file if we build a DLL.
 
8666
      old_archive_from_new_cmds='true'
 
8667
      # FIXME: Should let the user specify the lib program.
 
8668
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8669
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8670
      enable_shared_with_static_runtimes=yes
 
8671
      ;;
 
8672
 
 
8673
    darwin* | rhapsody*)
 
8674
 
 
8675
 
 
8676
  archive_cmds_need_lc=no
 
8677
  hardcode_direct=no
 
8678
  hardcode_automatic=yes
 
8679
  hardcode_shlibpath_var=unsupported
 
8680
  whole_archive_flag_spec=''
 
8681
  link_all_deplibs=yes
 
8682
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8683
  case $cc_basename in
 
8684
     ifort*) _lt_dar_can_shared=yes ;;
 
8685
     *) _lt_dar_can_shared=$GCC ;;
 
8686
  esac
 
8687
  if test "$_lt_dar_can_shared" = "yes"; then
 
8688
    output_verbose_link_cmd=echo
 
8689
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8690
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8691
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8692
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8693
 
 
8694
  else
 
8695
  ld_shlibs=no
 
8696
  fi
 
8697
 
 
8698
      ;;
 
8699
 
 
8700
    dgux*)
 
8701
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8702
      hardcode_libdir_flag_spec='-L$libdir'
 
8703
      hardcode_shlibpath_var=no
 
8704
      ;;
 
8705
 
 
8706
    freebsd1*)
 
8707
      ld_shlibs=no
 
8708
      ;;
 
8709
 
 
8710
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8711
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8712
    # does not break anything, and helps significantly (at the cost of a little
 
8713
    # extra space).
 
8714
    freebsd2.2*)
 
8715
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8716
      hardcode_libdir_flag_spec='-R$libdir'
 
8717
      hardcode_direct=yes
 
8718
      hardcode_shlibpath_var=no
 
8719
      ;;
 
8720
 
 
8721
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8722
    freebsd2*)
 
8723
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8724
      hardcode_direct=yes
 
8725
      hardcode_minus_L=yes
 
8726
      hardcode_shlibpath_var=no
 
8727
      ;;
 
8728
 
 
8729
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8730
    freebsd* | dragonfly*)
 
8731
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8732
      hardcode_libdir_flag_spec='-R$libdir'
 
8733
      hardcode_direct=yes
 
8734
      hardcode_shlibpath_var=no
 
8735
      ;;
 
8736
 
 
8737
    hpux9*)
 
8738
      if test "$GCC" = yes; then
 
8739
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8740
      else
 
8741
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8742
      fi
 
8743
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8744
      hardcode_libdir_separator=:
 
8745
      hardcode_direct=yes
 
8746
 
 
8747
      # hardcode_minus_L: Not really in the search PATH,
 
8748
      # but as the default location of the library.
 
8749
      hardcode_minus_L=yes
 
8750
      export_dynamic_flag_spec='${wl}-E'
 
8751
      ;;
 
8752
 
 
8753
    hpux10*)
 
8754
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8755
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8756
      else
 
8757
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8758
      fi
 
8759
      if test "$with_gnu_ld" = no; then
 
8760
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8761
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
8762
        hardcode_libdir_separator=:
 
8763
        hardcode_direct=yes
 
8764
        hardcode_direct_absolute=yes
 
8765
        export_dynamic_flag_spec='${wl}-E'
 
8766
        # hardcode_minus_L: Not really in the search PATH,
 
8767
        # but as the default location of the library.
 
8768
        hardcode_minus_L=yes
 
8769
      fi
 
8770
      ;;
 
8771
 
 
8772
    hpux11*)
 
8773
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8774
        case $host_cpu in
 
8775
        hppa*64*)
 
8776
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8777
          ;;
 
8778
        ia64*)
 
8779
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8780
          ;;
 
8781
        *)
 
8782
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8783
          ;;
 
8784
        esac
 
8785
      else
 
8786
        case $host_cpu in
 
8787
        hppa*64*)
 
8788
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8789
          ;;
 
8790
        ia64*)
 
8791
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8792
          ;;
 
8793
        *)
 
8794
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8795
          ;;
 
8796
        esac
 
8797
      fi
 
8798
      if test "$with_gnu_ld" = no; then
 
8799
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8800
        hardcode_libdir_separator=:
 
8801
 
 
8802
        case $host_cpu in
 
8803
        hppa*64*|ia64*)
 
8804
          hardcode_direct=no
 
8805
          hardcode_shlibpath_var=no
 
8806
          ;;
 
8807
        *)
 
8808
          hardcode_direct=yes
 
8809
          hardcode_direct_absolute=yes
 
8810
          export_dynamic_flag_spec='${wl}-E'
 
8811
 
 
8812
          # hardcode_minus_L: Not really in the search PATH,
 
8813
          # but as the default location of the library.
 
8814
          hardcode_minus_L=yes
 
8815
          ;;
 
8816
        esac
 
8817
      fi
 
8818
      ;;
 
8819
 
 
8820
    irix5* | irix6* | nonstopux*)
 
8821
      if test "$GCC" = yes; then
 
8822
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8823
        # Try to use the -exported_symbol ld option, if it does not
 
8824
        # work, assume that -exports_file does not work either and
 
8825
        # implicitly export all symbols.
 
8826
        save_LDFLAGS="$LDFLAGS"
 
8827
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
8828
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8829
/* end confdefs.h.  */
 
8830
int foo(void) {}
 
8831
_ACEOF
 
8832
if ac_fn_c_try_link "$LINENO"; then :
 
8833
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
8834
 
 
8835
fi
 
8836
rm -f core conftest.err conftest.$ac_objext \
 
8837
    conftest$ac_exeext conftest.$ac_ext
 
8838
        LDFLAGS="$save_LDFLAGS"
 
8839
      else
 
8840
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8841
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
8842
      fi
 
8843
      archive_cmds_need_lc='no'
 
8844
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8845
      hardcode_libdir_separator=:
 
8846
      inherit_rpath=yes
 
8847
      link_all_deplibs=yes
 
8848
      ;;
 
8849
 
 
8850
    netbsd* | netbsdelf*-gnu)
 
8851
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8852
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8853
      else
 
8854
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8855
      fi
 
8856
      hardcode_libdir_flag_spec='-R$libdir'
 
8857
      hardcode_direct=yes
 
8858
      hardcode_shlibpath_var=no
 
8859
      ;;
 
8860
 
 
8861
    newsos6)
 
8862
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8863
      hardcode_direct=yes
 
8864
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8865
      hardcode_libdir_separator=:
 
8866
      hardcode_shlibpath_var=no
 
8867
      ;;
 
8868
 
 
8869
    *nto* | *qnx*)
 
8870
      ;;
 
8871
 
 
8872
    openbsd*)
 
8873
      if test -f /usr/libexec/ld.so; then
 
8874
        hardcode_direct=yes
 
8875
        hardcode_shlibpath_var=no
 
8876
        hardcode_direct_absolute=yes
 
8877
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8878
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8879
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8880
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8881
          export_dynamic_flag_spec='${wl}-E'
 
8882
        else
 
8883
          case $host_os in
 
8884
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8885
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8886
             hardcode_libdir_flag_spec='-R$libdir'
 
8887
             ;;
 
8888
           *)
 
8889
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8890
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8891
             ;;
 
8892
          esac
 
8893
        fi
 
8894
      else
 
8895
        ld_shlibs=no
 
8896
      fi
 
8897
      ;;
 
8898
 
 
8899
    os2*)
 
8900
      hardcode_libdir_flag_spec='-L$libdir'
 
8901
      hardcode_minus_L=yes
 
8902
      allow_undefined_flag=unsupported
 
8903
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
8904
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8905
      ;;
 
8906
 
 
8907
    osf3*)
 
8908
      if test "$GCC" = yes; then
 
8909
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8910
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8911
      else
 
8912
        allow_undefined_flag=' -expect_unresolved \*'
 
8913
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8914
      fi
 
8915
      archive_cmds_need_lc='no'
 
8916
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8917
      hardcode_libdir_separator=:
 
8918
      ;;
 
8919
 
 
8920
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8921
      if test "$GCC" = yes; then
 
8922
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8923
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8924
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8925
      else
 
8926
        allow_undefined_flag=' -expect_unresolved \*'
 
8927
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8928
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
8929
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
8930
 
 
8931
        # Both c and cxx compiler support -rpath directly
 
8932
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8933
      fi
 
8934
      archive_cmds_need_lc='no'
 
8935
      hardcode_libdir_separator=:
 
8936
      ;;
 
8937
 
 
8938
    solaris*)
 
8939
      no_undefined_flag=' -z defs'
 
8940
      if test "$GCC" = yes; then
 
8941
        wlarc='${wl}'
 
8942
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8943
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8944
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8945
      else
 
8946
        case `$CC -V 2>&1` in
 
8947
        *"Compilers 5.0"*)
 
8948
          wlarc=''
 
8949
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8950
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8951
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
8952
          ;;
 
8953
        *)
 
8954
          wlarc='${wl}'
 
8955
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8956
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8957
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8958
          ;;
 
8959
        esac
 
8960
      fi
 
8961
      hardcode_libdir_flag_spec='-R$libdir'
 
8962
      hardcode_shlibpath_var=no
 
8963
      case $host_os in
 
8964
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8965
      *)
 
8966
        # The compiler driver will combine and reorder linker options,
 
8967
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8968
        # but is careful enough not to reorder.
 
8969
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8970
        if test "$GCC" = yes; then
 
8971
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8972
        else
 
8973
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8974
        fi
 
8975
        ;;
 
8976
      esac
 
8977
      link_all_deplibs=yes
 
8978
      ;;
 
8979
 
 
8980
    sunos4*)
 
8981
      if test "x$host_vendor" = xsequent; then
 
8982
        # Use $CC to link under sequent, because it throws in some extra .o
 
8983
        # files that make .init and .fini sections work.
 
8984
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8985
      else
 
8986
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8987
      fi
 
8988
      hardcode_libdir_flag_spec='-L$libdir'
 
8989
      hardcode_direct=yes
 
8990
      hardcode_minus_L=yes
 
8991
      hardcode_shlibpath_var=no
 
8992
      ;;
 
8993
 
 
8994
    sysv4)
 
8995
      case $host_vendor in
 
8996
        sni)
 
8997
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8998
          hardcode_direct=yes # is this really true???
 
8999
        ;;
 
9000
        siemens)
 
9001
          ## LD is ld it makes a PLAMLIB
 
9002
          ## CC just makes a GrossModule.
 
9003
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9004
          reload_cmds='$CC -r -o $output$reload_objs'
 
9005
          hardcode_direct=no
 
9006
        ;;
 
9007
        motorola)
 
9008
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9009
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9010
        ;;
 
9011
      esac
 
9012
      runpath_var='LD_RUN_PATH'
 
9013
      hardcode_shlibpath_var=no
 
9014
      ;;
 
9015
 
 
9016
    sysv4.3*)
 
9017
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9018
      hardcode_shlibpath_var=no
 
9019
      export_dynamic_flag_spec='-Bexport'
 
9020
      ;;
 
9021
 
 
9022
    sysv4*MP*)
 
9023
      if test -d /usr/nec; then
 
9024
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9025
        hardcode_shlibpath_var=no
 
9026
        runpath_var=LD_RUN_PATH
 
9027
        hardcode_runpath_var=yes
 
9028
        ld_shlibs=yes
 
9029
      fi
 
9030
      ;;
 
9031
 
 
9032
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9033
      no_undefined_flag='${wl}-z,text'
 
9034
      archive_cmds_need_lc=no
 
9035
      hardcode_shlibpath_var=no
 
9036
      runpath_var='LD_RUN_PATH'
 
9037
 
 
9038
      if test "$GCC" = yes; then
 
9039
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9040
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9041
      else
 
9042
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9043
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9044
      fi
 
9045
      ;;
 
9046
 
 
9047
    sysv5* | sco3.2v5* | sco5v6*)
 
9048
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9049
      # link with -lc, and that would cause any symbols used from libc to
 
9050
      # always be unresolved, which means just about no library would
 
9051
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9052
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9053
      # as -z defs.
 
9054
      no_undefined_flag='${wl}-z,text'
 
9055
      allow_undefined_flag='${wl}-z,nodefs'
 
9056
      archive_cmds_need_lc=no
 
9057
      hardcode_shlibpath_var=no
 
9058
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9059
      hardcode_libdir_separator=':'
 
9060
      link_all_deplibs=yes
 
9061
      export_dynamic_flag_spec='${wl}-Bexport'
 
9062
      runpath_var='LD_RUN_PATH'
 
9063
 
 
9064
      if test "$GCC" = yes; then
 
9065
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9066
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9067
      else
 
9068
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9069
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9070
      fi
 
9071
      ;;
 
9072
 
 
9073
    uts4*)
 
9074
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9075
      hardcode_libdir_flag_spec='-L$libdir'
 
9076
      hardcode_shlibpath_var=no
 
9077
      ;;
 
9078
 
 
9079
    *)
 
9080
      ld_shlibs=no
 
9081
      ;;
 
9082
    esac
 
9083
 
 
9084
    if test x$host_vendor = xsni; then
 
9085
      case $host in
 
9086
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9087
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9088
        ;;
 
9089
      esac
 
9090
    fi
 
9091
  fi
 
9092
 
 
9093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9094
$as_echo "$ld_shlibs" >&6; }
 
9095
test "$ld_shlibs" = no && can_build_shared=no
 
9096
 
 
9097
with_gnu_ld=$with_gnu_ld
 
9098
 
 
9099
 
 
9100
 
 
9101
 
 
9102
 
 
9103
 
 
9104
 
 
9105
 
 
9106
 
 
9107
 
 
9108
 
 
9109
 
 
9110
 
 
9111
 
 
9112
 
 
9113
#
 
9114
# Do we need to explicitly link libc?
 
9115
#
 
9116
case "x$archive_cmds_need_lc" in
 
9117
x|xyes)
 
9118
  # Assume -lc should be added
 
9119
  archive_cmds_need_lc=yes
 
9120
 
 
9121
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9122
    case $archive_cmds in
 
9123
    *'~'*)
 
9124
      # FIXME: we may have to deal with multi-command sequences.
 
9125
      ;;
 
9126
    '$CC '*)
 
9127
      # Test whether the compiler implicitly links with -lc since on some
 
9128
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9129
      # to ld, don't add -lc before -lgcc.
 
9130
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9131
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9132
      $RM conftest*
 
9133
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9134
 
 
9135
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9136
  (eval $ac_compile) 2>&5
 
9137
  ac_status=$?
 
9138
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9139
  test $ac_status = 0; } 2>conftest.err; then
 
9140
        soname=conftest
 
9141
        lib=conftest
 
9142
        libobjs=conftest.$ac_objext
 
9143
        deplibs=
 
9144
        wl=$lt_prog_compiler_wl
 
9145
        pic_flag=$lt_prog_compiler_pic
 
9146
        compiler_flags=-v
 
9147
        linker_flags=-v
 
9148
        verstring=
 
9149
        output_objdir=.
 
9150
        libname=conftest
 
9151
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9152
        allow_undefined_flag=
 
9153
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9154
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9155
  ac_status=$?
 
9156
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9157
  test $ac_status = 0; }
 
9158
        then
 
9159
          archive_cmds_need_lc=no
 
9160
        else
 
9161
          archive_cmds_need_lc=yes
 
9162
        fi
 
9163
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9164
      else
 
9165
        cat conftest.err 1>&5
 
9166
      fi
 
9167
      $RM conftest*
 
9168
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9169
$as_echo "$archive_cmds_need_lc" >&6; }
 
9170
      ;;
 
9171
    esac
 
9172
  fi
 
9173
  ;;
 
9174
esac
 
9175
 
 
9176
 
 
9177
 
 
9178
 
 
9179
 
 
9180
 
 
9181
 
 
9182
 
 
9183
 
 
9184
 
 
9185
 
 
9186
 
 
9187
 
 
9188
 
 
9189
 
 
9190
 
 
9191
 
 
9192
 
 
9193
 
 
9194
 
 
9195
 
 
9196
 
 
9197
 
 
9198
 
 
9199
 
 
9200
 
 
9201
 
 
9202
 
 
9203
 
 
9204
 
 
9205
 
 
9206
 
 
9207
 
 
9208
 
 
9209
 
 
9210
 
 
9211
 
 
9212
 
 
9213
 
 
9214
 
 
9215
 
 
9216
 
 
9217
 
 
9218
 
 
9219
 
 
9220
 
 
9221
 
 
9222
 
 
9223
 
 
9224
 
 
9225
 
 
9226
 
 
9227
 
 
9228
 
 
9229
 
 
9230
 
 
9231
 
 
9232
 
 
9233
 
 
9234
 
 
9235
 
 
9236
 
 
9237
 
 
9238
 
 
9239
 
 
9240
 
 
9241
 
 
9242
 
 
9243
 
 
9244
 
 
9245
 
 
9246
 
 
9247
 
 
9248
 
 
9249
 
 
9250
 
 
9251
 
 
9252
 
 
9253
 
 
9254
 
 
9255
 
 
9256
 
 
9257
 
 
9258
 
 
9259
 
 
9260
 
 
9261
 
 
9262
 
 
9263
 
 
9264
 
 
9265
 
 
9266
 
 
9267
 
 
9268
 
 
9269
 
 
9270
 
 
9271
 
 
9272
 
 
9273
 
 
9274
 
 
9275
 
 
9276
 
 
9277
 
 
9278
 
 
9279
 
 
9280
 
 
9281
 
 
9282
 
 
9283
 
 
9284
 
 
9285
 
 
9286
 
 
9287
 
 
9288
 
 
9289
 
 
9290
 
 
9291
 
 
9292
 
 
9293
 
 
9294
 
 
9295
 
 
9296
 
 
9297
 
 
9298
 
 
9299
 
 
9300
 
 
9301
 
 
9302
 
 
9303
 
 
9304
 
 
9305
 
 
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
9311
 
 
9312
 
 
9313
 
 
9314
 
 
9315
 
 
9316
 
 
9317
 
 
9318
 
 
9319
 
 
9320
 
 
9321
 
 
9322
 
 
9323
 
 
9324
 
 
9325
 
 
9326
 
 
9327
 
 
9328
 
 
9329
 
 
9330
 
 
9331
 
 
9332
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9333
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9334
 
 
9335
if test "$GCC" = yes; then
 
9336
  case $host_os in
 
9337
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9338
    *) lt_awk_arg="/^libraries:/" ;;
 
9339
  esac
 
9340
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9341
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9342
    # if the path contains ";" then we assume it to be the separator
 
9343
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9344
    # assumed that no part of a normal pathname contains ";" but that should
 
9345
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9346
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9347
  else
 
9348
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9349
  fi
 
9350
  # Ok, now we have the path, separated by spaces, we can step through it
 
9351
  # and add multilib dir if necessary.
 
9352
  lt_tmp_lt_search_path_spec=
 
9353
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9354
  for lt_sys_path in $lt_search_path_spec; do
 
9355
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9356
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9357
    else
 
9358
      test -d "$lt_sys_path" && \
 
9359
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9360
    fi
 
9361
  done
 
9362
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9363
BEGIN {RS=" "; FS="/|\n";} {
 
9364
  lt_foo="";
 
9365
  lt_count=0;
 
9366
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9367
    if ($lt_i != "" && $lt_i != ".") {
 
9368
      if ($lt_i == "..") {
 
9369
        lt_count++;
 
9370
      } else {
 
9371
        if (lt_count == 0) {
 
9372
          lt_foo="/" $lt_i lt_foo;
 
9373
        } else {
 
9374
          lt_count--;
 
9375
        }
 
9376
      }
 
9377
    }
 
9378
  }
 
9379
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9380
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9381
}'`
 
9382
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9383
else
 
9384
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9385
fi
 
9386
library_names_spec=
 
9387
libname_spec='lib$name'
 
9388
soname_spec=
 
9389
shrext_cmds=".so"
 
9390
postinstall_cmds=
 
9391
postuninstall_cmds=
 
9392
finish_cmds=
 
9393
finish_eval=
 
9394
shlibpath_var=
 
9395
shlibpath_overrides_runpath=unknown
 
9396
version_type=none
 
9397
dynamic_linker="$host_os ld.so"
 
9398
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9399
need_lib_prefix=unknown
 
9400
hardcode_into_libs=no
 
9401
 
 
9402
# when you set need_version to no, make sure it does not cause -set_version
 
9403
# flags to be left without arguments
 
9404
need_version=unknown
 
9405
 
 
9406
case $host_os in
 
9407
aix3*)
 
9408
  version_type=linux
 
9409
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9410
  shlibpath_var=LIBPATH
 
9411
 
 
9412
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9413
  soname_spec='${libname}${release}${shared_ext}$major'
 
9414
  ;;
 
9415
 
 
9416
aix[4-9]*)
 
9417
  version_type=linux
 
9418
  need_lib_prefix=no
 
9419
  need_version=no
 
9420
  hardcode_into_libs=yes
 
9421
  if test "$host_cpu" = ia64; then
 
9422
    # AIX 5 supports IA64
 
9423
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9424
    shlibpath_var=LD_LIBRARY_PATH
 
9425
  else
 
9426
    # With GCC up to 2.95.x, collect2 would create an import file
 
9427
    # for dependence libraries.  The import file would start with
 
9428
    # the line `#! .'.  This would cause the generated library to
 
9429
    # depend on `.', always an invalid library.  This was fixed in
 
9430
    # development snapshots of GCC prior to 3.0.
 
9431
    case $host_os in
 
9432
      aix4 | aix4.[01] | aix4.[01].*)
 
9433
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9434
           echo ' yes '
 
9435
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9436
        :
 
9437
      else
 
9438
        can_build_shared=no
 
9439
      fi
 
9440
      ;;
 
9441
    esac
 
9442
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9443
    # soname into executable. Probably we can add versioning support to
 
9444
    # collect2, so additional links can be useful in future.
 
9445
    if test "$aix_use_runtimelinking" = yes; then
 
9446
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9447
      # instead of lib<name>.a to let people know that these are not
 
9448
      # typical AIX shared libraries.
 
9449
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9450
    else
 
9451
      # We preserve .a as extension for shared libraries through AIX4.2
 
9452
      # and later when we are not doing run time linking.
 
9453
      library_names_spec='${libname}${release}.a $libname.a'
 
9454
      soname_spec='${libname}${release}${shared_ext}$major'
 
9455
    fi
 
9456
    shlibpath_var=LIBPATH
 
9457
  fi
 
9458
  ;;
 
9459
 
 
9460
amigaos*)
 
9461
  case $host_cpu in
 
9462
  powerpc)
 
9463
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9464
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9465
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9466
    ;;
 
9467
  m68k)
 
9468
    library_names_spec='$libname.ixlibrary $libname.a'
 
9469
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9470
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
9471
    ;;
 
9472
  esac
 
9473
  ;;
 
9474
 
 
9475
beos*)
 
9476
  library_names_spec='${libname}${shared_ext}'
 
9477
  dynamic_linker="$host_os ld.so"
 
9478
  shlibpath_var=LIBRARY_PATH
 
9479
  ;;
 
9480
 
 
9481
bsdi[45]*)
 
9482
  version_type=linux
 
9483
  need_version=no
 
9484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9485
  soname_spec='${libname}${release}${shared_ext}$major'
 
9486
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9487
  shlibpath_var=LD_LIBRARY_PATH
 
9488
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9489
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9490
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9491
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9492
  # libtool to hard-code these into programs
 
9493
  ;;
 
9494
 
 
9495
cygwin* | mingw* | pw32* | cegcc*)
 
9496
  version_type=windows
 
9497
  shrext_cmds=".dll"
 
9498
  need_version=no
 
9499
  need_lib_prefix=no
 
9500
 
 
9501
  case $GCC,$host_os in
 
9502
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9503
    library_names_spec='$libname.dll.a'
 
9504
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9505
    postinstall_cmds='base_file=`basename \${file}`~
 
9506
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9507
      dldir=$destdir/`dirname \$dlpath`~
 
9508
      test -d \$dldir || mkdir -p \$dldir~
 
9509
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9510
      chmod a+x \$dldir/$dlname~
 
9511
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9512
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9513
      fi'
 
9514
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9515
      dlpath=$dir/\$dldll~
 
9516
       $RM \$dlpath'
 
9517
    shlibpath_overrides_runpath=yes
 
9518
 
 
9519
    case $host_os in
 
9520
    cygwin*)
 
9521
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9522
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9523
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9524
      ;;
 
9525
    mingw* | cegcc*)
 
9526
      # MinGW DLLs use traditional 'lib' prefix
 
9527
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9528
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9529
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9530
        # It is most probably a Windows format PATH printed by
 
9531
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9532
        # path with ; separators, and with drive letters. We can handle the
 
9533
        # drive letters (cygwin fileutils understands them), so leave them,
 
9534
        # especially as we might pass files found there to a mingw objdump,
 
9535
        # which wouldn't understand a cygwinified path. Ahh.
 
9536
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9537
      else
 
9538
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9539
      fi
 
9540
      ;;
 
9541
    pw32*)
 
9542
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9543
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9544
      ;;
 
9545
    esac
 
9546
    ;;
 
9547
 
 
9548
  *)
 
9549
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9550
    ;;
 
9551
  esac
 
9552
  dynamic_linker='Win32 ld.exe'
 
9553
  # FIXME: first we should search . and the directory the executable is in
 
9554
  shlibpath_var=PATH
 
9555
  ;;
 
9556
 
 
9557
darwin* | rhapsody*)
 
9558
  dynamic_linker="$host_os dyld"
 
9559
  version_type=darwin
 
9560
  need_lib_prefix=no
 
9561
  need_version=no
 
9562
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9563
  soname_spec='${libname}${release}${major}$shared_ext'
 
9564
  shlibpath_overrides_runpath=yes
 
9565
  shlibpath_var=DYLD_LIBRARY_PATH
 
9566
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9567
 
 
9568
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9569
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9570
  ;;
 
9571
 
 
9572
dgux*)
 
9573
  version_type=linux
 
9574
  need_lib_prefix=no
 
9575
  need_version=no
 
9576
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9577
  soname_spec='${libname}${release}${shared_ext}$major'
 
9578
  shlibpath_var=LD_LIBRARY_PATH
 
9579
  ;;
 
9580
 
 
9581
freebsd1*)
 
9582
  dynamic_linker=no
 
9583
  ;;
 
9584
 
 
9585
freebsd* | dragonfly*)
 
9586
  # DragonFly does not have aout.  When/if they implement a new
 
9587
  # versioning mechanism, adjust this.
 
9588
  if test -x /usr/bin/objformat; then
 
9589
    objformat=`/usr/bin/objformat`
 
9590
  else
 
9591
    case $host_os in
 
9592
    freebsd[123]*) objformat=aout ;;
 
9593
    *) objformat=elf ;;
 
9594
    esac
 
9595
  fi
 
9596
  version_type=freebsd-$objformat
 
9597
  case $version_type in
 
9598
    freebsd-elf*)
 
9599
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9600
      need_version=no
 
9601
      need_lib_prefix=no
 
9602
      ;;
 
9603
    freebsd-*)
 
9604
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9605
      need_version=yes
 
9606
      ;;
 
9607
  esac
 
9608
  shlibpath_var=LD_LIBRARY_PATH
 
9609
  case $host_os in
 
9610
  freebsd2*)
 
9611
    shlibpath_overrides_runpath=yes
 
9612
    ;;
 
9613
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9614
    shlibpath_overrides_runpath=yes
 
9615
    hardcode_into_libs=yes
 
9616
    ;;
 
9617
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9618
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9619
    shlibpath_overrides_runpath=no
 
9620
    hardcode_into_libs=yes
 
9621
    ;;
 
9622
  *) # from 4.6 on, and DragonFly
 
9623
    shlibpath_overrides_runpath=yes
 
9624
    hardcode_into_libs=yes
 
9625
    ;;
 
9626
  esac
 
9627
  ;;
 
9628
 
 
9629
gnu*)
 
9630
  version_type=linux
 
9631
  need_lib_prefix=no
 
9632
  need_version=no
 
9633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9634
  soname_spec='${libname}${release}${shared_ext}$major'
 
9635
  shlibpath_var=LD_LIBRARY_PATH
 
9636
  hardcode_into_libs=yes
 
9637
  ;;
 
9638
 
 
9639
hpux9* | hpux10* | hpux11*)
 
9640
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9641
  # link against other versions.
 
9642
  version_type=sunos
 
9643
  need_lib_prefix=no
 
9644
  need_version=no
 
9645
  case $host_cpu in
 
9646
  ia64*)
 
9647
    shrext_cmds='.so'
 
9648
    hardcode_into_libs=yes
 
9649
    dynamic_linker="$host_os dld.so"
 
9650
    shlibpath_var=LD_LIBRARY_PATH
 
9651
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9652
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9653
    soname_spec='${libname}${release}${shared_ext}$major'
 
9654
    if test "X$HPUX_IA64_MODE" = X32; then
 
9655
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9656
    else
 
9657
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9658
    fi
 
9659
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9660
    ;;
 
9661
  hppa*64*)
 
9662
    shrext_cmds='.sl'
 
9663
    hardcode_into_libs=yes
 
9664
    dynamic_linker="$host_os dld.sl"
 
9665
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9666
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9667
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9668
    soname_spec='${libname}${release}${shared_ext}$major'
 
9669
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9670
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9671
    ;;
 
9672
  *)
 
9673
    shrext_cmds='.sl'
 
9674
    dynamic_linker="$host_os dld.sl"
 
9675
    shlibpath_var=SHLIB_PATH
 
9676
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9677
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9678
    soname_spec='${libname}${release}${shared_ext}$major'
 
9679
    ;;
 
9680
  esac
 
9681
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9682
  postinstall_cmds='chmod 555 $lib'
 
9683
  ;;
 
9684
 
 
9685
interix[3-9]*)
 
9686
  version_type=linux
 
9687
  need_lib_prefix=no
 
9688
  need_version=no
 
9689
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9690
  soname_spec='${libname}${release}${shared_ext}$major'
 
9691
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9692
  shlibpath_var=LD_LIBRARY_PATH
 
9693
  shlibpath_overrides_runpath=no
 
9694
  hardcode_into_libs=yes
 
9695
  ;;
 
9696
 
 
9697
irix5* | irix6* | nonstopux*)
 
9698
  case $host_os in
 
9699
    nonstopux*) version_type=nonstopux ;;
 
9700
    *)
 
9701
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9702
                version_type=linux
 
9703
        else
 
9704
                version_type=irix
 
9705
        fi ;;
 
9706
  esac
 
9707
  need_lib_prefix=no
 
9708
  need_version=no
 
9709
  soname_spec='${libname}${release}${shared_ext}$major'
 
9710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9711
  case $host_os in
 
9712
  irix5* | nonstopux*)
 
9713
    libsuff= shlibsuff=
 
9714
    ;;
 
9715
  *)
 
9716
    case $LD in # libtool.m4 will add one of these switches to LD
 
9717
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9718
      libsuff= shlibsuff= libmagic=32-bit;;
 
9719
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9720
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9721
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9722
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9723
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9724
    esac
 
9725
    ;;
 
9726
  esac
 
9727
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9728
  shlibpath_overrides_runpath=no
 
9729
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9730
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9731
  hardcode_into_libs=yes
 
9732
  ;;
 
9733
 
 
9734
# No shared lib support for Linux oldld, aout, or coff.
 
9735
linux*oldld* | linux*aout* | linux*coff*)
 
9736
  dynamic_linker=no
 
9737
  ;;
 
9738
 
 
9739
# This must be Linux ELF.
 
9740
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
9741
  version_type=linux
 
9742
  need_lib_prefix=no
 
9743
  need_version=no
 
9744
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9745
  soname_spec='${libname}${release}${shared_ext}$major'
 
9746
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9747
  shlibpath_var=LD_LIBRARY_PATH
 
9748
  shlibpath_overrides_runpath=no
 
9749
  # Some binutils ld are patched to set DT_RUNPATH
 
9750
  save_LDFLAGS=$LDFLAGS
 
9751
  save_libdir=$libdir
 
9752
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
9753
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
9754
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9755
/* end confdefs.h.  */
 
9756
 
 
9757
int
 
9758
main ()
 
9759
{
 
9760
 
 
9761
  ;
 
9762
  return 0;
 
9763
}
 
9764
_ACEOF
 
9765
if ac_fn_c_try_link "$LINENO"; then :
 
9766
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
9767
  shlibpath_overrides_runpath=yes
 
9768
fi
 
9769
fi
 
9770
rm -f core conftest.err conftest.$ac_objext \
 
9771
    conftest$ac_exeext conftest.$ac_ext
 
9772
  LDFLAGS=$save_LDFLAGS
 
9773
  libdir=$save_libdir
 
9774
 
 
9775
  # This implies no fast_install, which is unacceptable.
 
9776
  # Some rework will be needed to allow for fast_install
 
9777
  # before this can be enabled.
 
9778
  hardcode_into_libs=yes
 
9779
 
 
9780
  # Append ld.so.conf contents to the search path
 
9781
  if test -f /etc/ld.so.conf; then
 
9782
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9783
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9784
  fi
 
9785
 
 
9786
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9787
  # powerpc, because MkLinux only supported shared libraries with the
 
9788
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9789
  # most powerpc-linux boxes support dynamic linking these days and
 
9790
  # people can always --disable-shared, the test was removed, and we
 
9791
  # assume the GNU/Linux dynamic linker is in use.
 
9792
  dynamic_linker='GNU/Linux ld.so'
 
9793
  ;;
 
9794
 
 
9795
netbsdelf*-gnu)
 
9796
  version_type=linux
 
9797
  need_lib_prefix=no
 
9798
  need_version=no
 
9799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9800
  soname_spec='${libname}${release}${shared_ext}$major'
 
9801
  shlibpath_var=LD_LIBRARY_PATH
 
9802
  shlibpath_overrides_runpath=no
 
9803
  hardcode_into_libs=yes
 
9804
  dynamic_linker='NetBSD ld.elf_so'
 
9805
  ;;
 
9806
 
 
9807
netbsd*)
 
9808
  version_type=sunos
 
9809
  need_lib_prefix=no
 
9810
  need_version=no
 
9811
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9812
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9813
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9814
    dynamic_linker='NetBSD (a.out) ld.so'
 
9815
  else
 
9816
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9817
    soname_spec='${libname}${release}${shared_ext}$major'
 
9818
    dynamic_linker='NetBSD ld.elf_so'
 
9819
  fi
 
9820
  shlibpath_var=LD_LIBRARY_PATH
 
9821
  shlibpath_overrides_runpath=yes
 
9822
  hardcode_into_libs=yes
 
9823
  ;;
 
9824
 
 
9825
newsos6)
 
9826
  version_type=linux
 
9827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9828
  shlibpath_var=LD_LIBRARY_PATH
 
9829
  shlibpath_overrides_runpath=yes
 
9830
  ;;
 
9831
 
 
9832
*nto* | *qnx*)
 
9833
  version_type=qnx
 
9834
  need_lib_prefix=no
 
9835
  need_version=no
 
9836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9837
  soname_spec='${libname}${release}${shared_ext}$major'
 
9838
  shlibpath_var=LD_LIBRARY_PATH
 
9839
  shlibpath_overrides_runpath=no
 
9840
  hardcode_into_libs=yes
 
9841
  dynamic_linker='ldqnx.so'
 
9842
  ;;
 
9843
 
 
9844
openbsd*)
 
9845
  version_type=sunos
 
9846
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9847
  need_lib_prefix=no
 
9848
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9849
  case $host_os in
 
9850
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
9851
    *)                          need_version=no  ;;
 
9852
  esac
 
9853
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9854
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9855
  shlibpath_var=LD_LIBRARY_PATH
 
9856
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9857
    case $host_os in
 
9858
      openbsd2.[89] | openbsd2.[89].*)
 
9859
        shlibpath_overrides_runpath=no
 
9860
        ;;
 
9861
      *)
 
9862
        shlibpath_overrides_runpath=yes
 
9863
        ;;
 
9864
      esac
 
9865
  else
 
9866
    shlibpath_overrides_runpath=yes
 
9867
  fi
 
9868
  ;;
 
9869
 
 
9870
os2*)
 
9871
  libname_spec='$name'
 
9872
  shrext_cmds=".dll"
 
9873
  need_lib_prefix=no
 
9874
  library_names_spec='$libname${shared_ext} $libname.a'
 
9875
  dynamic_linker='OS/2 ld.exe'
 
9876
  shlibpath_var=LIBPATH
 
9877
  ;;
 
9878
 
 
9879
osf3* | osf4* | osf5*)
 
9880
  version_type=osf
 
9881
  need_lib_prefix=no
 
9882
  need_version=no
 
9883
  soname_spec='${libname}${release}${shared_ext}$major'
 
9884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9885
  shlibpath_var=LD_LIBRARY_PATH
 
9886
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9887
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9888
  ;;
 
9889
 
 
9890
rdos*)
 
9891
  dynamic_linker=no
 
9892
  ;;
 
9893
 
 
9894
solaris*)
 
9895
  version_type=linux
 
9896
  need_lib_prefix=no
 
9897
  need_version=no
 
9898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9899
  soname_spec='${libname}${release}${shared_ext}$major'
 
9900
  shlibpath_var=LD_LIBRARY_PATH
 
9901
  shlibpath_overrides_runpath=yes
 
9902
  hardcode_into_libs=yes
 
9903
  # ldd complains unless libraries are executable
 
9904
  postinstall_cmds='chmod +x $lib'
 
9905
  ;;
 
9906
 
 
9907
sunos4*)
 
9908
  version_type=sunos
 
9909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9910
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9911
  shlibpath_var=LD_LIBRARY_PATH
 
9912
  shlibpath_overrides_runpath=yes
 
9913
  if test "$with_gnu_ld" = yes; then
 
9914
    need_lib_prefix=no
 
9915
  fi
 
9916
  need_version=yes
 
9917
  ;;
 
9918
 
 
9919
sysv4 | sysv4.3*)
 
9920
  version_type=linux
 
9921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9922
  soname_spec='${libname}${release}${shared_ext}$major'
 
9923
  shlibpath_var=LD_LIBRARY_PATH
 
9924
  case $host_vendor in
 
9925
    sni)
 
9926
      shlibpath_overrides_runpath=no
 
9927
      need_lib_prefix=no
 
9928
      runpath_var=LD_RUN_PATH
 
9929
      ;;
 
9930
    siemens)
 
9931
      need_lib_prefix=no
 
9932
      ;;
 
9933
    motorola)
 
9934
      need_lib_prefix=no
 
9935
      need_version=no
 
9936
      shlibpath_overrides_runpath=no
 
9937
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9938
      ;;
 
9939
  esac
 
9940
  ;;
 
9941
 
 
9942
sysv4*MP*)
 
9943
  if test -d /usr/nec ;then
 
9944
    version_type=linux
 
9945
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9946
    soname_spec='$libname${shared_ext}.$major'
 
9947
    shlibpath_var=LD_LIBRARY_PATH
 
9948
  fi
 
9949
  ;;
 
9950
 
 
9951
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9952
  version_type=freebsd-elf
 
9953
  need_lib_prefix=no
 
9954
  need_version=no
 
9955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9956
  soname_spec='${libname}${release}${shared_ext}$major'
 
9957
  shlibpath_var=LD_LIBRARY_PATH
 
9958
  shlibpath_overrides_runpath=yes
 
9959
  hardcode_into_libs=yes
 
9960
  if test "$with_gnu_ld" = yes; then
 
9961
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9962
  else
 
9963
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9964
    case $host_os in
 
9965
      sco3.2v5*)
 
9966
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9967
        ;;
 
9968
    esac
 
9969
  fi
 
9970
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9971
  ;;
 
9972
 
 
9973
tpf*)
 
9974
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
9975
  version_type=linux
 
9976
  need_lib_prefix=no
 
9977
  need_version=no
 
9978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9979
  shlibpath_var=LD_LIBRARY_PATH
 
9980
  shlibpath_overrides_runpath=no
 
9981
  hardcode_into_libs=yes
 
9982
  ;;
 
9983
 
 
9984
uts4*)
 
9985
  version_type=linux
 
9986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9987
  soname_spec='${libname}${release}${shared_ext}$major'
 
9988
  shlibpath_var=LD_LIBRARY_PATH
 
9989
  ;;
 
9990
 
 
9991
*)
 
9992
  dynamic_linker=no
 
9993
  ;;
 
9994
esac
 
9995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
9996
$as_echo "$dynamic_linker" >&6; }
 
9997
test "$dynamic_linker" = no && can_build_shared=no
 
9998
 
 
9999
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10000
if test "$GCC" = yes; then
 
10001
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10002
fi
 
10003
 
 
10004
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10005
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10006
fi
 
10007
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10008
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10009
fi
 
10010
 
 
10011
 
 
10012
 
 
10013
 
 
10014
 
 
10015
 
 
10016
 
 
10017
 
 
10018
 
 
10019
 
 
10020
 
 
10021
 
 
10022
 
 
10023
 
 
10024
 
 
10025
 
 
10026
 
 
10027
 
 
10028
 
 
10029
 
 
10030
 
 
10031
 
 
10032
 
 
10033
 
 
10034
 
 
10035
 
 
10036
 
 
10037
 
 
10038
 
 
10039
 
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
 
10047
 
 
10048
 
 
10049
 
 
10050
 
 
10051
 
 
10052
 
 
10053
 
 
10054
 
 
10055
 
 
10056
 
 
10057
 
 
10058
 
 
10059
 
 
10060
 
 
10061
 
 
10062
 
 
10063
 
 
10064
 
 
10065
 
 
10066
 
 
10067
 
 
10068
 
 
10069
 
 
10070
 
 
10071
 
 
10072
 
 
10073
 
 
10074
 
 
10075
 
 
10076
 
 
10077
 
 
10078
 
 
10079
 
 
10080
 
 
10081
 
 
10082
 
 
10083
 
 
10084
 
 
10085
 
 
10086
 
 
10087
 
 
10088
 
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
 
10094
 
 
10095
 
 
10096
 
 
10097
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10098
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10099
hardcode_action=
 
10100
if test -n "$hardcode_libdir_flag_spec" ||
 
10101
   test -n "$runpath_var" ||
 
10102
   test "X$hardcode_automatic" = "Xyes" ; then
 
10103
 
 
10104
  # We can hardcode non-existent directories.
 
10105
  if test "$hardcode_direct" != no &&
 
10106
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10107
     # have to relink, otherwise we might link with an installed library
 
10108
     # when we should be linking with a yet-to-be-installed one
 
10109
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10110
     test "$hardcode_minus_L" != no; then
 
10111
    # Linking always hardcodes the temporary library directory.
 
10112
    hardcode_action=relink
 
10113
  else
 
10114
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10115
    hardcode_action=immediate
 
10116
  fi
 
10117
else
 
10118
  # We cannot hardcode anything, or else we can only hardcode existing
 
10119
  # directories.
 
10120
  hardcode_action=unsupported
 
10121
fi
 
10122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10123
$as_echo "$hardcode_action" >&6; }
 
10124
 
 
10125
if test "$hardcode_action" = relink ||
 
10126
   test "$inherit_rpath" = yes; then
 
10127
  # Fast installation is not supported
 
10128
  enable_fast_install=no
 
10129
elif test "$shlibpath_overrides_runpath" = yes ||
 
10130
     test "$enable_shared" = no; then
 
10131
  # Fast installation is not necessary
 
10132
  enable_fast_install=needless
 
10133
fi
 
10134
 
 
10135
 
 
10136
 
 
10137
 
 
10138
 
 
10139
 
 
10140
  if test "x$enable_dlopen" != xyes; then
 
10141
  enable_dlopen=unknown
 
10142
  enable_dlopen_self=unknown
 
10143
  enable_dlopen_self_static=unknown
 
10144
else
 
10145
  lt_cv_dlopen=no
 
10146
  lt_cv_dlopen_libs=
 
10147
 
 
10148
  case $host_os in
 
10149
  beos*)
 
10150
    lt_cv_dlopen="load_add_on"
 
10151
    lt_cv_dlopen_libs=
 
10152
    lt_cv_dlopen_self=yes
 
10153
    ;;
 
10154
 
 
10155
  mingw* | pw32* | cegcc*)
 
10156
    lt_cv_dlopen="LoadLibrary"
 
10157
    lt_cv_dlopen_libs=
 
10158
    ;;
 
10159
 
 
10160
  cygwin*)
 
10161
    lt_cv_dlopen="dlopen"
 
10162
    lt_cv_dlopen_libs=
 
10163
    ;;
 
10164
 
 
10165
  darwin*)
 
10166
  # if libdl is installed we need to link against it
 
10167
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10168
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10169
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10170
  $as_echo_n "(cached) " >&6
 
10171
else
 
10172
  ac_check_lib_save_LIBS=$LIBS
 
10173
LIBS="-ldl  $LIBS"
 
10174
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10175
/* end confdefs.h.  */
 
10176
 
 
10177
/* Override any GCC internal prototype to avoid an error.
 
10178
   Use char because int might match the return type of a GCC
 
10179
   builtin and then its argument prototype would still apply.  */
 
10180
#ifdef __cplusplus
 
10181
extern "C"
 
10182
#endif
 
10183
char dlopen ();
 
10184
int
 
10185
main ()
 
10186
{
 
10187
return dlopen ();
 
10188
  ;
 
10189
  return 0;
 
10190
}
 
10191
_ACEOF
 
10192
if ac_fn_c_try_link "$LINENO"; then :
 
10193
  ac_cv_lib_dl_dlopen=yes
 
10194
else
 
10195
  ac_cv_lib_dl_dlopen=no
 
10196
fi
 
10197
rm -f core conftest.err conftest.$ac_objext \
 
10198
    conftest$ac_exeext conftest.$ac_ext
 
10199
LIBS=$ac_check_lib_save_LIBS
 
10200
fi
 
10201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10202
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10203
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10204
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10205
else
 
10206
 
 
10207
    lt_cv_dlopen="dyld"
 
10208
    lt_cv_dlopen_libs=
 
10209
    lt_cv_dlopen_self=yes
 
10210
 
 
10211
fi
 
10212
 
 
10213
    ;;
 
10214
 
 
10215
  *)
 
10216
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10217
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
10218
  lt_cv_dlopen="shl_load"
 
10219
else
 
10220
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10221
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10222
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
10223
  $as_echo_n "(cached) " >&6
 
10224
else
 
10225
  ac_check_lib_save_LIBS=$LIBS
 
10226
LIBS="-ldld  $LIBS"
 
10227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10228
/* end confdefs.h.  */
 
10229
 
 
10230
/* Override any GCC internal prototype to avoid an error.
 
10231
   Use char because int might match the return type of a GCC
 
10232
   builtin and then its argument prototype would still apply.  */
 
10233
#ifdef __cplusplus
 
10234
extern "C"
 
10235
#endif
 
10236
char shl_load ();
 
10237
int
 
10238
main ()
 
10239
{
 
10240
return shl_load ();
 
10241
  ;
 
10242
  return 0;
 
10243
}
 
10244
_ACEOF
 
10245
if ac_fn_c_try_link "$LINENO"; then :
 
10246
  ac_cv_lib_dld_shl_load=yes
 
10247
else
 
10248
  ac_cv_lib_dld_shl_load=no
 
10249
fi
 
10250
rm -f core conftest.err conftest.$ac_objext \
 
10251
    conftest$ac_exeext conftest.$ac_ext
 
10252
LIBS=$ac_check_lib_save_LIBS
 
10253
fi
 
10254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10255
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10256
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
10257
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10258
else
 
10259
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10260
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
10261
  lt_cv_dlopen="dlopen"
 
10262
else
 
10263
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10264
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10265
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10266
  $as_echo_n "(cached) " >&6
 
10267
else
 
10268
  ac_check_lib_save_LIBS=$LIBS
 
10269
LIBS="-ldl  $LIBS"
 
10270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10271
/* end confdefs.h.  */
 
10272
 
 
10273
/* Override any GCC internal prototype to avoid an error.
 
10274
   Use char because int might match the return type of a GCC
 
10275
   builtin and then its argument prototype would still apply.  */
 
10276
#ifdef __cplusplus
 
10277
extern "C"
 
10278
#endif
 
10279
char dlopen ();
 
10280
int
 
10281
main ()
 
10282
{
 
10283
return dlopen ();
 
10284
  ;
 
10285
  return 0;
 
10286
}
 
10287
_ACEOF
 
10288
if ac_fn_c_try_link "$LINENO"; then :
 
10289
  ac_cv_lib_dl_dlopen=yes
 
10290
else
 
10291
  ac_cv_lib_dl_dlopen=no
 
10292
fi
 
10293
rm -f core conftest.err conftest.$ac_objext \
 
10294
    conftest$ac_exeext conftest.$ac_ext
 
10295
LIBS=$ac_check_lib_save_LIBS
 
10296
fi
 
10297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10298
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10299
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10300
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10301
else
 
10302
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10303
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10304
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
10305
  $as_echo_n "(cached) " >&6
 
10306
else
 
10307
  ac_check_lib_save_LIBS=$LIBS
 
10308
LIBS="-lsvld  $LIBS"
 
10309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10310
/* end confdefs.h.  */
 
10311
 
 
10312
/* Override any GCC internal prototype to avoid an error.
 
10313
   Use char because int might match the return type of a GCC
 
10314
   builtin and then its argument prototype would still apply.  */
 
10315
#ifdef __cplusplus
 
10316
extern "C"
 
10317
#endif
 
10318
char dlopen ();
 
10319
int
 
10320
main ()
 
10321
{
 
10322
return dlopen ();
 
10323
  ;
 
10324
  return 0;
 
10325
}
 
10326
_ACEOF
 
10327
if ac_fn_c_try_link "$LINENO"; then :
 
10328
  ac_cv_lib_svld_dlopen=yes
 
10329
else
 
10330
  ac_cv_lib_svld_dlopen=no
 
10331
fi
 
10332
rm -f core conftest.err conftest.$ac_objext \
 
10333
    conftest$ac_exeext conftest.$ac_ext
 
10334
LIBS=$ac_check_lib_save_LIBS
 
10335
fi
 
10336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10337
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10338
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
10339
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10340
else
 
10341
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10342
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10343
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
10344
  $as_echo_n "(cached) " >&6
 
10345
else
 
10346
  ac_check_lib_save_LIBS=$LIBS
 
10347
LIBS="-ldld  $LIBS"
 
10348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10349
/* end confdefs.h.  */
 
10350
 
 
10351
/* Override any GCC internal prototype to avoid an error.
 
10352
   Use char because int might match the return type of a GCC
 
10353
   builtin and then its argument prototype would still apply.  */
 
10354
#ifdef __cplusplus
 
10355
extern "C"
 
10356
#endif
 
10357
char dld_link ();
 
10358
int
 
10359
main ()
 
10360
{
 
10361
return dld_link ();
 
10362
  ;
 
10363
  return 0;
 
10364
}
 
10365
_ACEOF
 
10366
if ac_fn_c_try_link "$LINENO"; then :
 
10367
  ac_cv_lib_dld_dld_link=yes
 
10368
else
 
10369
  ac_cv_lib_dld_dld_link=no
 
10370
fi
 
10371
rm -f core conftest.err conftest.$ac_objext \
 
10372
    conftest$ac_exeext conftest.$ac_ext
 
10373
LIBS=$ac_check_lib_save_LIBS
 
10374
fi
 
10375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
10376
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10377
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
10378
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10379
fi
 
10380
 
 
10381
 
 
10382
fi
 
10383
 
 
10384
 
 
10385
fi
 
10386
 
 
10387
 
 
10388
fi
 
10389
 
 
10390
 
 
10391
fi
 
10392
 
 
10393
 
 
10394
fi
 
10395
 
 
10396
    ;;
 
10397
  esac
 
10398
 
 
10399
  if test "x$lt_cv_dlopen" != xno; then
 
10400
    enable_dlopen=yes
 
10401
  else
 
10402
    enable_dlopen=no
 
10403
  fi
 
10404
 
 
10405
  case $lt_cv_dlopen in
 
10406
  dlopen)
 
10407
    save_CPPFLAGS="$CPPFLAGS"
 
10408
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10409
 
 
10410
    save_LDFLAGS="$LDFLAGS"
 
10411
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10412
 
 
10413
    save_LIBS="$LIBS"
 
10414
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10415
 
 
10416
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
10417
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10418
if test "${lt_cv_dlopen_self+set}" = set; then :
 
10419
  $as_echo_n "(cached) " >&6
 
10420
else
 
10421
          if test "$cross_compiling" = yes; then :
 
10422
  lt_cv_dlopen_self=cross
 
10423
else
 
10424
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10425
  lt_status=$lt_dlunknown
 
10426
  cat > conftest.$ac_ext <<_LT_EOF
 
10427
#line 10427 "configure"
 
10428
#include "confdefs.h"
 
10429
 
 
10430
#if HAVE_DLFCN_H
 
10431
#include <dlfcn.h>
 
10432
#endif
 
10433
 
 
10434
#include <stdio.h>
 
10435
 
 
10436
#ifdef RTLD_GLOBAL
 
10437
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10438
#else
 
10439
#  ifdef DL_GLOBAL
 
10440
#    define LT_DLGLOBAL         DL_GLOBAL
 
10441
#  else
 
10442
#    define LT_DLGLOBAL         0
 
10443
#  endif
 
10444
#endif
 
10445
 
 
10446
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10447
   find out it does not work in some platform. */
 
10448
#ifndef LT_DLLAZY_OR_NOW
 
10449
#  ifdef RTLD_LAZY
 
10450
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10451
#  else
 
10452
#    ifdef DL_LAZY
 
10453
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10454
#    else
 
10455
#      ifdef RTLD_NOW
 
10456
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10457
#      else
 
10458
#        ifdef DL_NOW
 
10459
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10460
#        else
 
10461
#          define LT_DLLAZY_OR_NOW      0
 
10462
#        endif
 
10463
#      endif
 
10464
#    endif
 
10465
#  endif
 
10466
#endif
 
10467
 
 
10468
void fnord() { int i=42;}
 
10469
int main ()
 
10470
{
 
10471
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10472
  int status = $lt_dlunknown;
 
10473
 
 
10474
  if (self)
 
10475
    {
 
10476
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10477
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10478
      /* dlclose (self); */
 
10479
    }
 
10480
  else
 
10481
    puts (dlerror ());
 
10482
 
 
10483
  return status;
 
10484
}
 
10485
_LT_EOF
 
10486
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10487
  (eval $ac_link) 2>&5
 
10488
  ac_status=$?
 
10489
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10490
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10491
    (./conftest; exit; ) >&5 2>/dev/null
 
10492
    lt_status=$?
 
10493
    case x$lt_status in
 
10494
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10495
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10496
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10497
    esac
 
10498
  else :
 
10499
    # compilation failed
 
10500
    lt_cv_dlopen_self=no
 
10501
  fi
 
10502
fi
 
10503
rm -fr conftest*
 
10504
 
 
10505
 
 
10506
fi
 
10507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
10508
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10509
 
 
10510
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10511
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10512
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
10513
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10514
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
10515
  $as_echo_n "(cached) " >&6
 
10516
else
 
10517
          if test "$cross_compiling" = yes; then :
 
10518
  lt_cv_dlopen_self_static=cross
 
10519
else
 
10520
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10521
  lt_status=$lt_dlunknown
 
10522
  cat > conftest.$ac_ext <<_LT_EOF
 
10523
#line 10523 "configure"
 
10524
#include "confdefs.h"
 
10525
 
 
10526
#if HAVE_DLFCN_H
 
10527
#include <dlfcn.h>
 
10528
#endif
 
10529
 
 
10530
#include <stdio.h>
 
10531
 
 
10532
#ifdef RTLD_GLOBAL
 
10533
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10534
#else
 
10535
#  ifdef DL_GLOBAL
 
10536
#    define LT_DLGLOBAL         DL_GLOBAL
 
10537
#  else
 
10538
#    define LT_DLGLOBAL         0
 
10539
#  endif
 
10540
#endif
 
10541
 
 
10542
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10543
   find out it does not work in some platform. */
 
10544
#ifndef LT_DLLAZY_OR_NOW
 
10545
#  ifdef RTLD_LAZY
 
10546
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10547
#  else
 
10548
#    ifdef DL_LAZY
 
10549
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10550
#    else
 
10551
#      ifdef RTLD_NOW
 
10552
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10553
#      else
 
10554
#        ifdef DL_NOW
 
10555
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10556
#        else
 
10557
#          define LT_DLLAZY_OR_NOW      0
 
10558
#        endif
 
10559
#      endif
 
10560
#    endif
 
10561
#  endif
 
10562
#endif
 
10563
 
 
10564
void fnord() { int i=42;}
 
10565
int main ()
 
10566
{
 
10567
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10568
  int status = $lt_dlunknown;
 
10569
 
 
10570
  if (self)
 
10571
    {
 
10572
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10573
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10574
      /* dlclose (self); */
 
10575
    }
 
10576
  else
 
10577
    puts (dlerror ());
 
10578
 
 
10579
  return status;
 
10580
}
 
10581
_LT_EOF
 
10582
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10583
  (eval $ac_link) 2>&5
 
10584
  ac_status=$?
 
10585
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10586
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10587
    (./conftest; exit; ) >&5 2>/dev/null
 
10588
    lt_status=$?
 
10589
    case x$lt_status in
 
10590
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10591
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10592
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10593
    esac
 
10594
  else :
 
10595
    # compilation failed
 
10596
    lt_cv_dlopen_self_static=no
 
10597
  fi
 
10598
fi
 
10599
rm -fr conftest*
 
10600
 
 
10601
 
 
10602
fi
 
10603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
10604
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10605
    fi
 
10606
 
 
10607
    CPPFLAGS="$save_CPPFLAGS"
 
10608
    LDFLAGS="$save_LDFLAGS"
 
10609
    LIBS="$save_LIBS"
 
10610
    ;;
 
10611
  esac
 
10612
 
 
10613
  case $lt_cv_dlopen_self in
 
10614
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10615
  *) enable_dlopen_self=unknown ;;
 
10616
  esac
 
10617
 
 
10618
  case $lt_cv_dlopen_self_static in
 
10619
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10620
  *) enable_dlopen_self_static=unknown ;;
 
10621
  esac
 
10622
fi
 
10623
 
 
10624
 
 
10625
 
 
10626
 
 
10627
 
 
10628
 
 
10629
 
 
10630
 
 
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
 
10636
 
 
10637
 
 
10638
 
 
10639
 
 
10640
striplib=
 
10641
old_striplib=
 
10642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
10643
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10644
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
10645
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10646
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10648
$as_echo "yes" >&6; }
 
10649
else
 
10650
# FIXME - insert some real tests, host_os isn't really good enough
 
10651
  case $host_os in
 
10652
  darwin*)
 
10653
    if test -n "$STRIP" ; then
 
10654
      striplib="$STRIP -x"
 
10655
      old_striplib="$STRIP -S"
 
10656
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10657
$as_echo "yes" >&6; }
 
10658
    else
 
10659
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10660
$as_echo "no" >&6; }
 
10661
    fi
 
10662
    ;;
 
10663
  *)
 
10664
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10665
$as_echo "no" >&6; }
 
10666
    ;;
 
10667
  esac
 
10668
fi
 
10669
 
 
10670
 
 
10671
 
 
10672
 
 
10673
 
 
10674
 
 
10675
 
 
10676
 
 
10677
 
 
10678
 
 
10679
 
 
10680
 
 
10681
  # Report which library types will actually be built
 
10682
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
10683
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
10685
$as_echo "$can_build_shared" >&6; }
 
10686
 
 
10687
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
10688
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10689
  test "$can_build_shared" = "no" && enable_shared=no
 
10690
 
 
10691
  # On AIX, shared libraries and static libraries use the same namespace, and
 
10692
  # are all built from PIC.
 
10693
  case $host_os in
 
10694
  aix3*)
 
10695
    test "$enable_shared" = yes && enable_static=no
 
10696
    if test -n "$RANLIB"; then
 
10697
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10698
      postinstall_cmds='$RANLIB $lib'
 
10699
    fi
 
10700
    ;;
 
10701
 
 
10702
  aix[4-9]*)
 
10703
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10704
      test "$enable_shared" = yes && enable_static=no
 
10705
    fi
 
10706
    ;;
 
10707
  esac
 
10708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
10709
$as_echo "$enable_shared" >&6; }
 
10710
 
 
10711
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
10712
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10713
  # Make sure either enable_shared or enable_static is yes.
 
10714
  test "$enable_shared" = yes || enable_static=yes
 
10715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
10716
$as_echo "$enable_static" >&6; }
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
fi
 
10722
ac_ext=c
 
10723
ac_cpp='$CPP $CPPFLAGS'
 
10724
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10725
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10726
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10727
 
 
10728
CC="$lt_save_CC"
 
10729
 
 
10730
 
 
10731
 
 
10732
 
 
10733
 
 
10734
 
 
10735
 
 
10736
 
 
10737
 
 
10738
 
 
10739
 
 
10740
 
 
10741
 
 
10742
        ac_config_commands="$ac_config_commands libtool"
 
10743
 
 
10744
 
 
10745
 
 
10746
 
 
10747
# Only expand once:
 
10748
 
 
10749
 
 
10750
 
 
10751
 
 
10752
# ---------------------------------------------------------------------------
 
10753
# Build options
 
10754
# ---------------------------------------------------------------------------
 
10755
 
 
10756
# Check whether --enable-optimized was given.
 
10757
if test "${enable_optimized+set}" = set; then :
 
10758
  enableval=$enable_optimized;
 
10759
        CFLAGS=`echo $CFLAGS|sed 's/-O.//'`
 
10760
        if test "x$enableval" = "xyes" ; then
 
10761
                CFLAGS=`echo $CFLAGS|sed 's/-g//'`
 
10762
                CFLAGS="$CFLAGS -O3"
 
10763
                OPTIMIZED=1
 
10764
        else
 
10765
                OPTIMIZED=0
 
10766
        fi
 
10767
 
 
10768
else
 
10769
 
 
10770
        OPTIMIZED=0
 
10771
 
 
10772
 
 
10773
fi
 
10774
 
 
10775
 
 
10776
 
 
10777
# ------------------------------------------------------------------------
 
10778
# Libraries
 
10779
# ------------------------------------------------------------------------
 
10780
 
 
10781
# Check for libraries
 
10782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
 
10783
$as_echo_n "checking for socket in -lsocket... " >&6; }
 
10784
if test "${ac_cv_lib_socket_socket+set}" = set; then :
 
10785
  $as_echo_n "(cached) " >&6
 
10786
else
 
10787
  ac_check_lib_save_LIBS=$LIBS
 
10788
LIBS="-lsocket  $LIBS"
 
10789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10790
/* end confdefs.h.  */
 
10791
 
 
10792
/* Override any GCC internal prototype to avoid an error.
 
10793
   Use char because int might match the return type of a GCC
 
10794
   builtin and then its argument prototype would still apply.  */
 
10795
#ifdef __cplusplus
 
10796
extern "C"
 
10797
#endif
 
10798
char socket ();
 
10799
int
 
10800
main ()
 
10801
{
 
10802
return socket ();
 
10803
  ;
 
10804
  return 0;
 
10805
}
 
10806
_ACEOF
 
10807
if ac_fn_c_try_link "$LINENO"; then :
 
10808
  ac_cv_lib_socket_socket=yes
 
10809
else
 
10810
  ac_cv_lib_socket_socket=no
 
10811
fi
 
10812
rm -f core conftest.err conftest.$ac_objext \
 
10813
    conftest$ac_exeext conftest.$ac_ext
 
10814
LIBS=$ac_check_lib_save_LIBS
 
10815
fi
 
10816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
 
10817
$as_echo "$ac_cv_lib_socket_socket" >&6; }
 
10818
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
 
10819
  cat >>confdefs.h <<_ACEOF
 
10820
#define HAVE_LIBSOCKET 1
 
10821
_ACEOF
 
10822
 
 
10823
  LIBS="-lsocket $LIBS"
 
10824
 
 
10825
fi
 
10826
 
 
10827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
 
10828
$as_echo_n "checking for socket in -linet... " >&6; }
 
10829
if test "${ac_cv_lib_inet_socket+set}" = set; then :
 
10830
  $as_echo_n "(cached) " >&6
 
10831
else
 
10832
  ac_check_lib_save_LIBS=$LIBS
 
10833
LIBS="-linet  $LIBS"
 
10834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10835
/* end confdefs.h.  */
 
10836
 
 
10837
/* Override any GCC internal prototype to avoid an error.
 
10838
   Use char because int might match the return type of a GCC
 
10839
   builtin and then its argument prototype would still apply.  */
 
10840
#ifdef __cplusplus
 
10841
extern "C"
 
10842
#endif
 
10843
char socket ();
 
10844
int
 
10845
main ()
 
10846
{
 
10847
return socket ();
 
10848
  ;
 
10849
  return 0;
 
10850
}
 
10851
_ACEOF
 
10852
if ac_fn_c_try_link "$LINENO"; then :
 
10853
  ac_cv_lib_inet_socket=yes
 
10854
else
 
10855
  ac_cv_lib_inet_socket=no
 
10856
fi
 
10857
rm -f core conftest.err conftest.$ac_objext \
 
10858
    conftest$ac_exeext conftest.$ac_ext
 
10859
LIBS=$ac_check_lib_save_LIBS
 
10860
fi
 
10861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
 
10862
$as_echo "$ac_cv_lib_inet_socket" >&6; }
 
10863
if test "x$ac_cv_lib_inet_socket" = x""yes; then :
 
10864
  cat >>confdefs.h <<_ACEOF
 
10865
#define HAVE_LIBINET 1
 
10866
_ACEOF
 
10867
 
 
10868
  LIBS="-linet $LIBS"
 
10869
 
 
10870
fi
 
10871
 
 
10872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
 
10873
$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
 
10874
if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
 
10875
  $as_echo_n "(cached) " >&6
 
10876
else
 
10877
  ac_check_lib_save_LIBS=$LIBS
 
10878
LIBS="-lnsl  $LIBS"
 
10879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10880
/* end confdefs.h.  */
 
10881
 
 
10882
/* Override any GCC internal prototype to avoid an error.
 
10883
   Use char because int might match the return type of a GCC
 
10884
   builtin and then its argument prototype would still apply.  */
 
10885
#ifdef __cplusplus
 
10886
extern "C"
 
10887
#endif
 
10888
char inet_addr ();
 
10889
int
 
10890
main ()
 
10891
{
 
10892
return inet_addr ();
 
10893
  ;
 
10894
  return 0;
 
10895
}
 
10896
_ACEOF
 
10897
if ac_fn_c_try_link "$LINENO"; then :
 
10898
  ac_cv_lib_nsl_inet_addr=yes
 
10899
else
 
10900
  ac_cv_lib_nsl_inet_addr=no
 
10901
fi
 
10902
rm -f core conftest.err conftest.$ac_objext \
 
10903
    conftest$ac_exeext conftest.$ac_ext
 
10904
LIBS=$ac_check_lib_save_LIBS
 
10905
fi
 
10906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
 
10907
$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
 
10908
if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
 
10909
  cat >>confdefs.h <<_ACEOF
 
10910
#define HAVE_LIBNSL 1
 
10911
_ACEOF
 
10912
 
 
10913
  LIBS="-lnsl $LIBS"
 
10914
 
 
10915
fi
 
10916
 
 
10917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
 
10918
$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
 
10919
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
 
10920
  $as_echo_n "(cached) " >&6
 
10921
else
 
10922
  ac_check_lib_save_LIBS=$LIBS
 
10923
LIBS="-lresolv  $LIBS"
 
10924
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10925
/* end confdefs.h.  */
 
10926
 
 
10927
/* Override any GCC internal prototype to avoid an error.
 
10928
   Use char because int might match the return type of a GCC
 
10929
   builtin and then its argument prototype would still apply.  */
 
10930
#ifdef __cplusplus
 
10931
extern "C"
 
10932
#endif
 
10933
char inet_aton ();
 
10934
int
 
10935
main ()
 
10936
{
 
10937
return inet_aton ();
 
10938
  ;
 
10939
  return 0;
 
10940
}
 
10941
_ACEOF
 
10942
if ac_fn_c_try_link "$LINENO"; then :
 
10943
  ac_cv_lib_resolv_inet_aton=yes
 
10944
else
 
10945
  ac_cv_lib_resolv_inet_aton=no
 
10946
fi
 
10947
rm -f core conftest.err conftest.$ac_objext \
 
10948
    conftest$ac_exeext conftest.$ac_ext
 
10949
LIBS=$ac_check_lib_save_LIBS
 
10950
fi
 
10951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
 
10952
$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
 
10953
if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
 
10954
  cat >>confdefs.h <<_ACEOF
 
10955
#define HAVE_LIBRESOLV 1
 
10956
_ACEOF
 
10957
 
 
10958
  LIBS="-lresolv $LIBS"
 
10959
 
 
10960
fi
 
10961
 
 
10962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lc" >&5
 
10963
$as_echo_n "checking for crypt in -lc... " >&6; }
 
10964
if test "${ac_cv_lib_c_crypt+set}" = set; then :
 
10965
  $as_echo_n "(cached) " >&6
 
10966
else
 
10967
  ac_check_lib_save_LIBS=$LIBS
 
10968
LIBS="-lc  $LIBS"
 
10969
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10970
/* end confdefs.h.  */
 
10971
 
 
10972
/* Override any GCC internal prototype to avoid an error.
 
10973
   Use char because int might match the return type of a GCC
 
10974
   builtin and then its argument prototype would still apply.  */
 
10975
#ifdef __cplusplus
 
10976
extern "C"
 
10977
#endif
 
10978
char crypt ();
 
10979
int
 
10980
main ()
 
10981
{
 
10982
return crypt ();
 
10983
  ;
 
10984
  return 0;
 
10985
}
 
10986
_ACEOF
 
10987
if ac_fn_c_try_link "$LINENO"; then :
 
10988
  ac_cv_lib_c_crypt=yes
 
10989
else
 
10990
  ac_cv_lib_c_crypt=no
 
10991
fi
 
10992
rm -f core conftest.err conftest.$ac_objext \
 
10993
    conftest$ac_exeext conftest.$ac_ext
 
10994
LIBS=$ac_check_lib_save_LIBS
 
10995
fi
 
10996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_crypt" >&5
 
10997
$as_echo "$ac_cv_lib_c_crypt" >&6; }
 
10998
if test "x$ac_cv_lib_c_crypt" = x""yes; then :
 
10999
  :
 
11000
else
 
11001
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
 
11002
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
 
11003
if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
 
11004
  $as_echo_n "(cached) " >&6
 
11005
else
 
11006
  ac_check_lib_save_LIBS=$LIBS
 
11007
LIBS="-lcrypt  $LIBS"
 
11008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11009
/* end confdefs.h.  */
 
11010
 
 
11011
/* Override any GCC internal prototype to avoid an error.
 
11012
   Use char because int might match the return type of a GCC
 
11013
   builtin and then its argument prototype would still apply.  */
 
11014
#ifdef __cplusplus
 
11015
extern "C"
 
11016
#endif
 
11017
char crypt ();
 
11018
int
 
11019
main ()
 
11020
{
 
11021
return crypt ();
 
11022
  ;
 
11023
  return 0;
 
11024
}
 
11025
_ACEOF
 
11026
if ac_fn_c_try_link "$LINENO"; then :
 
11027
  ac_cv_lib_crypt_crypt=yes
 
11028
else
 
11029
  ac_cv_lib_crypt_crypt=no
 
11030
fi
 
11031
rm -f core conftest.err conftest.$ac_objext \
 
11032
    conftest$ac_exeext conftest.$ac_ext
 
11033
LIBS=$ac_check_lib_save_LIBS
 
11034
fi
 
11035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
 
11036
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
 
11037
if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
 
11038
  cat >>confdefs.h <<_ACEOF
 
11039
#define HAVE_LIBCRYPT 1
 
11040
_ACEOF
 
11041
 
 
11042
  LIBS="-lcrypt $LIBS"
 
11043
 
 
11044
fi
 
11045
 
 
11046
fi
 
11047
 
 
11048
 
 
11049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
 
11050
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
 
11051
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
 
11052
  $as_echo_n "(cached) " >&6
 
11053
else
 
11054
  ac_check_lib_save_LIBS=$LIBS
 
11055
LIBS="-lpthread  $LIBS"
 
11056
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11057
/* end confdefs.h.  */
 
11058
 
 
11059
/* Override any GCC internal prototype to avoid an error.
 
11060
   Use char because int might match the return type of a GCC
 
11061
   builtin and then its argument prototype would still apply.  */
 
11062
#ifdef __cplusplus
 
11063
extern "C"
 
11064
#endif
 
11065
char pthread_create ();
 
11066
int
 
11067
main ()
 
11068
{
 
11069
return pthread_create ();
 
11070
  ;
 
11071
  return 0;
 
11072
}
 
11073
_ACEOF
 
11074
if ac_fn_c_try_link "$LINENO"; then :
 
11075
  ac_cv_lib_pthread_pthread_create=yes
 
11076
else
 
11077
  ac_cv_lib_pthread_pthread_create=no
 
11078
fi
 
11079
rm -f core conftest.err conftest.$ac_objext \
 
11080
    conftest$ac_exeext conftest.$ac_ext
 
11081
LIBS=$ac_check_lib_save_LIBS
 
11082
fi
 
11083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
 
11084
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 
11085
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
 
11086
  cat >>confdefs.h <<_ACEOF
 
11087
#define HAVE_LIBPTHREAD 1
 
11088
_ACEOF
 
11089
 
 
11090
  LIBS="-lpthread $LIBS"
 
11091
 
 
11092
else
 
11093
  as_fn_error "POSIX thread library is required" "$LINENO" 5
 
11094
fi
 
11095
 
 
11096
 
 
11097
# ------------------------------------------------------------------------
 
11098
# Header files
 
11099
# ------------------------------------------------------------------------
 
11100
 
 
11101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
11102
$as_echo_n "checking for ANSI C header files... " >&6; }
 
11103
if test "${ac_cv_header_stdc+set}" = set; then :
 
11104
  $as_echo_n "(cached) " >&6
 
11105
else
 
11106
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11107
/* end confdefs.h.  */
 
11108
#include <stdlib.h>
 
11109
#include <stdarg.h>
 
11110
#include <string.h>
 
11111
#include <float.h>
 
11112
 
 
11113
int
 
11114
main ()
 
11115
{
 
11116
 
 
11117
  ;
 
11118
  return 0;
 
11119
}
 
11120
_ACEOF
 
11121
if ac_fn_c_try_compile "$LINENO"; then :
 
11122
  ac_cv_header_stdc=yes
 
11123
else
 
11124
  ac_cv_header_stdc=no
 
11125
fi
 
11126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11127
 
 
11128
if test $ac_cv_header_stdc = yes; then
 
11129
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
11130
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11131
/* end confdefs.h.  */
 
11132
#include <string.h>
 
11133
 
 
11134
_ACEOF
 
11135
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11136
  $EGREP "memchr" >/dev/null 2>&1; then :
 
11137
 
 
11138
else
 
11139
  ac_cv_header_stdc=no
 
11140
fi
 
11141
rm -f conftest*
 
11142
 
 
11143
fi
 
11144
 
 
11145
if test $ac_cv_header_stdc = yes; then
 
11146
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
11147
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11148
/* end confdefs.h.  */
 
11149
#include <stdlib.h>
 
11150
 
 
11151
_ACEOF
 
11152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11153
  $EGREP "free" >/dev/null 2>&1; then :
 
11154
 
 
11155
else
 
11156
  ac_cv_header_stdc=no
 
11157
fi
 
11158
rm -f conftest*
 
11159
 
 
11160
fi
 
11161
 
 
11162
if test $ac_cv_header_stdc = yes; then
 
11163
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
11164
  if test "$cross_compiling" = yes; then :
 
11165
  :
 
11166
else
 
11167
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11168
/* end confdefs.h.  */
 
11169
#include <ctype.h>
 
11170
#include <stdlib.h>
 
11171
#if ((' ' & 0x0FF) == 0x020)
 
11172
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
11173
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
11174
#else
 
11175
# define ISLOWER(c) \
 
11176
                   (('a' <= (c) && (c) <= 'i') \
 
11177
                     || ('j' <= (c) && (c) <= 'r') \
 
11178
                     || ('s' <= (c) && (c) <= 'z'))
 
11179
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
11180
#endif
 
11181
 
 
11182
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
11183
int
 
11184
main ()
 
11185
{
 
11186
  int i;
 
11187
  for (i = 0; i < 256; i++)
 
11188
    if (XOR (islower (i), ISLOWER (i))
 
11189
        || toupper (i) != TOUPPER (i))
 
11190
      return 2;
 
11191
  return 0;
 
11192
}
 
11193
_ACEOF
 
11194
if ac_fn_c_try_run "$LINENO"; then :
 
11195
 
 
11196
else
 
11197
  ac_cv_header_stdc=no
 
11198
fi
 
11199
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11200
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11201
fi
 
11202
 
 
11203
fi
 
11204
fi
 
11205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
11206
$as_echo "$ac_cv_header_stdc" >&6; }
 
11207
if test $ac_cv_header_stdc = yes; then
 
11208
 
 
11209
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
11210
 
 
11211
fi
 
11212
 
 
11213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
11214
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
 
11215
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
 
11216
  $as_echo_n "(cached) " >&6
 
11217
else
 
11218
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11219
/* end confdefs.h.  */
 
11220
#include <sys/types.h>
 
11221
#include <sys/wait.h>
 
11222
#ifndef WEXITSTATUS
 
11223
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
11224
#endif
 
11225
#ifndef WIFEXITED
 
11226
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
11227
#endif
 
11228
 
 
11229
int
 
11230
main ()
 
11231
{
 
11232
  int s;
 
11233
  wait (&s);
 
11234
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
11235
  ;
 
11236
  return 0;
 
11237
}
 
11238
_ACEOF
 
11239
if ac_fn_c_try_compile "$LINENO"; then :
 
11240
  ac_cv_header_sys_wait_h=yes
 
11241
else
 
11242
  ac_cv_header_sys_wait_h=no
 
11243
fi
 
11244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11245
fi
 
11246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
 
11247
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
 
11248
if test $ac_cv_header_sys_wait_h = yes; then
 
11249
 
 
11250
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
 
11251
 
 
11252
fi
 
11253
 
 
11254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
 
11255
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
 
11256
if test "${ac_cv_header_stat_broken+set}" = set; then :
 
11257
  $as_echo_n "(cached) " >&6
 
11258
else
 
11259
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11260
/* end confdefs.h.  */
 
11261
#include <sys/types.h>
 
11262
#include <sys/stat.h>
 
11263
 
 
11264
#if defined S_ISBLK && defined S_IFDIR
 
11265
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
 
11266
#endif
 
11267
 
 
11268
#if defined S_ISBLK && defined S_IFCHR
 
11269
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
 
11270
#endif
 
11271
 
 
11272
#if defined S_ISLNK && defined S_IFREG
 
11273
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
 
11274
#endif
 
11275
 
 
11276
#if defined S_ISSOCK && defined S_IFREG
 
11277
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
 
11278
#endif
 
11279
 
 
11280
_ACEOF
 
11281
if ac_fn_c_try_compile "$LINENO"; then :
 
11282
  ac_cv_header_stat_broken=no
 
11283
else
 
11284
  ac_cv_header_stat_broken=yes
 
11285
fi
 
11286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11287
fi
 
11288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
 
11289
$as_echo "$ac_cv_header_stat_broken" >&6; }
 
11290
if test $ac_cv_header_stat_broken = yes; then
 
11291
 
 
11292
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
 
11293
 
 
11294
fi
 
11295
 
 
11296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
11297
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
11298
if test "${ac_cv_header_time+set}" = set; then :
 
11299
  $as_echo_n "(cached) " >&6
 
11300
else
 
11301
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11302
/* end confdefs.h.  */
 
11303
#include <sys/types.h>
 
11304
#include <sys/time.h>
 
11305
#include <time.h>
 
11306
 
 
11307
int
 
11308
main ()
 
11309
{
 
11310
if ((struct tm *) 0)
 
11311
return 0;
 
11312
  ;
 
11313
  return 0;
 
11314
}
 
11315
_ACEOF
 
11316
if ac_fn_c_try_compile "$LINENO"; then :
 
11317
  ac_cv_header_time=yes
 
11318
else
 
11319
  ac_cv_header_time=no
 
11320
fi
 
11321
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11322
fi
 
11323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
11324
$as_echo "$ac_cv_header_time" >&6; }
 
11325
if test $ac_cv_header_time = yes; then
 
11326
 
 
11327
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 
11328
 
 
11329
fi
 
11330
 
 
11331
 
 
11332
for ac_header in  \
 
11333
        alloca.h \
 
11334
        arpa/inet.h \
 
11335
        asm/page.h \
 
11336
        asm/param.h \
 
11337
        cf.h \
 
11338
        crt_externs.h \
 
11339
        ctype.h \
 
11340
        crypt.h \
 
11341
        dirent.h \
 
11342
        errno.h \
 
11343
        execinfo.h \
 
11344
        fcntl.h \
 
11345
        getopt.h \
 
11346
        glob.h \
 
11347
        grp.h \
 
11348
        kvm.h \
 
11349
        paths.h \
 
11350
        kstat.h \
 
11351
        sys/protosw.h \
 
11352
        limits.h \
 
11353
        loadavg.h \
 
11354
        locale.h \
 
11355
        mach/host_info.h \
 
11356
        mach/mach.h \
 
11357
        mach/mach_host.h \
 
11358
        memory.h \
 
11359
        mntent.h \
 
11360
        netdb.h \
 
11361
        sys/socket.h \
 
11362
        netinet/in.h \
 
11363
        netinet/in_systm.h \
 
11364
        pam/pam_appl.h \
 
11365
        security/pam_appl.h \
 
11366
        poll.h \
 
11367
        procfs.h \
 
11368
        sys/procfs.h \
 
11369
        procinfo.h \
 
11370
        pthread.h \
 
11371
        pwd.h \
 
11372
        regex.h \
 
11373
        setjmp.h \
 
11374
        signal.h \
 
11375
        stdarg.h \
 
11376
        stddef.h \
 
11377
        stdio.h \
 
11378
        string.h \
 
11379
        strings.h \
 
11380
        stropts.h \
 
11381
        sys/cfgodm.h \
 
11382
        sys/cfgdb.h \
 
11383
        sys/dk.h \
 
11384
        sys/dkstat.h \
 
11385
        sys/filio.h \
 
11386
        sys/ioctl.h \
 
11387
        sys/loadavg.h \
 
11388
        sys/lock.h \
 
11389
        sys/mnttab.h \
 
11390
        sys/mutex.h \
 
11391
        sys/nlist.h \
 
11392
        sys/param.h \
 
11393
        sys/pstat.h \
 
11394
        sys/queue.h \
 
11395
        sys/resource.h \
 
11396
        sys/statfs.h \
 
11397
        sys/statvfs.h \
 
11398
        sys/sysinfo.h \
 
11399
        sys/systemcfg.h \
 
11400
        sys/time.h \
 
11401
        sys/tree.h \
 
11402
        sys/types.h \
 
11403
        sys/un.h \
 
11404
        sys/utsname.h \
 
11405
        sys/vmmeter.h \
 
11406
        sys/vfs.h \
 
11407
        syslog.h \
 
11408
        unistd.h \
 
11409
        uvm/uvm.h \
 
11410
        uvm/uvm_extern.h \
 
11411
        vm/vm.h \
 
11412
 
 
11413
do :
 
11414
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11415
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
11416
eval as_val=\$$as_ac_Header
 
11417
   if test "x$as_val" = x""yes; then :
 
11418
  cat >>confdefs.h <<_ACEOF
 
11419
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11420
_ACEOF
 
11421
 
 
11422
fi
 
11423
 
 
11424
done
 
11425
 
 
11426
 
 
11427
for ac_header in  \
 
11428
        libperfstat.h \
 
11429
 
 
11430
do :
 
11431
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11432
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
11433
         #ifdef HAVE_SYS_PROTOSW_H
 
11434
         #include <sys/protosw.h>
 
11435
         #endif
 
11436
 
 
11437
"
 
11438
eval as_val=\$$as_ac_Header
 
11439
   if test "x$as_val" = x""yes; then :
 
11440
  cat >>confdefs.h <<_ACEOF
 
11441
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11442
_ACEOF
 
11443
 
 
11444
fi
 
11445
 
 
11446
done
 
11447
 
 
11448
 
 
11449
for ac_header in  \
 
11450
        netinet/ip.h \
 
11451
 
 
11452
do :
 
11453
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11454
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
11455
         #ifdef HAVE_SYS_TYPES_H
 
11456
         #include <sys/types.h>
 
11457
         #endif
 
11458
         #if HAVE_NETINET_IN_SYSTM_H
 
11459
         #include <netinet/in_systm.h>
 
11460
         #endif
 
11461
         #if HAVE_NETINET_IN_SYSTM_H
 
11462
         #include <netinet/in.h>
 
11463
         #endif
 
11464
 
 
11465
"
 
11466
eval as_val=\$$as_ac_Header
 
11467
   if test "x$as_val" = x""yes; then :
 
11468
  cat >>confdefs.h <<_ACEOF
 
11469
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11470
_ACEOF
 
11471
 
 
11472
fi
 
11473
 
 
11474
done
 
11475
 
 
11476
 
 
11477
for ac_header in  \
 
11478
        net/if.h \
 
11479
        netinet/ip_icmp.h \
 
11480
 
 
11481
do :
 
11482
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11483
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
11484
         #ifdef HAVE_SYS_TYPES_H
 
11485
         #include <sys/types.h>
 
11486
         #endif
 
11487
         #if HAVE_SYS_SOCKET_H
 
11488
         #include <sys/socket.h>
 
11489
         #endif
 
11490
         #if HAVE_NETINET_IN_SYSTM_H
 
11491
         #include <netinet/in.h>
 
11492
         #endif
 
11493
         #if HAVE_NETINET_IN_SYSTM_H
 
11494
         #include <netinet/in_systm.h>
 
11495
         #endif
 
11496
         #if HAVE_NETINET_IP_H
 
11497
         #include <netinet/ip.h>
 
11498
         #endif
 
11499
 
 
11500
"
 
11501
eval as_val=\$$as_ac_Header
 
11502
   if test "x$as_val" = x""yes; then :
 
11503
  cat >>confdefs.h <<_ACEOF
 
11504
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11505
_ACEOF
 
11506
 
 
11507
fi
 
11508
 
 
11509
done
 
11510
 
 
11511
 
 
11512
for ac_header in  \
 
11513
        sys/sysctl.h \
 
11514
        sys/mount.h \
 
11515
        sys/proc.h \
 
11516
        sys/swap.h \
 
11517
        sys/ucred.h \
 
11518
        sys/user.h \
 
11519
 
 
11520
do :
 
11521
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11522
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
11523
         #ifdef HAVE_SYS_PARAM_H
 
11524
         #include <sys/param.h>
 
11525
         #endif
 
11526
 
 
11527
"
 
11528
eval as_val=\$$as_ac_Header
 
11529
   if test "x$as_val" = x""yes; then :
 
11530
  cat >>confdefs.h <<_ACEOF
 
11531
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11532
_ACEOF
 
11533
 
 
11534
fi
 
11535
 
 
11536
done
 
11537
 
 
11538
 
 
11539
for ac_header in  \
 
11540
        machine/vmparam.h \
 
11541
        vm/pmap.h \
 
11542
        machine/pmap.h \
 
11543
        vm/vm_map.h \
 
11544
        vm/vm_object.h \
 
11545
 
 
11546
do :
 
11547
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11548
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
11549
         #ifdef HAVE_SYS_PARAM_H
 
11550
         #include <sys/param.h>
 
11551
         #endif
 
11552
         #ifdef HAVE_SYS_QUEUE_H
 
11553
         #include <sys/queue.h>
 
11554
         #endif
 
11555
         #ifdef HAVE_SYS_LOCK_H
 
11556
         #include <sys/lock.h>
 
11557
         #endif
 
11558
         #ifdef HAVE_SYS_MUTEX_H
 
11559
         #include <sys/mutex.h>
 
11560
         #endif
 
11561
         #ifdef HAVE_VM_VM_H
 
11562
         #include <vm/vm.h>
 
11563
         #endif
 
11564
         #ifdef HAVE_VM_PMAP_H
 
11565
         #include <vm/pmap.h>
 
11566
         #endif
 
11567
 
 
11568
"
 
11569
eval as_val=\$$as_ac_Header
 
11570
   if test "x$as_val" = x""yes; then :
 
11571
  cat >>confdefs.h <<_ACEOF
 
11572
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11573
_ACEOF
 
11574
 
 
11575
fi
 
11576
 
 
11577
done
 
11578
 
 
11579
 
 
11580
for ac_header in  \
 
11581
        sys/resourcevar.h \
 
11582
 
 
11583
do :
 
11584
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11585
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
11586
         #ifdef HAVE_SYS_TIME_H
 
11587
         #include <sys/time.h>
 
11588
         #endif
 
11589
         #ifdef HAVE_SYS_RESOURCE_H
 
11590
         #include <sys/resource.h>
 
11591
         #endif
 
11592
 
 
11593
"
 
11594
eval as_val=\$$as_ac_Header
 
11595
   if test "x$as_val" = x""yes; then :
 
11596
  cat >>confdefs.h <<_ACEOF
 
11597
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11598
_ACEOF
 
11599
 
 
11600
fi
 
11601
 
 
11602
done
 
11603
 
 
11604
 
 
11605
for ac_header in  \
 
11606
        uvm/uvm_map.h \
 
11607
        uvm/uvm_pmap.h \
 
11608
        uvm/uvm_object.h \
 
11609
 
 
11610
do :
 
11611
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11612
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
11613
         #ifdef HAVE_SYS_TIME_H
 
11614
         #include <sys/time.h>
 
11615
         #endif
 
11616
         #ifdef HAVE_SYS_LOCK_H
 
11617
         #include <sys/lock.h>
 
11618
         #endif
 
11619
         #ifdef HAVE_SYS_TREE_H
 
11620
         #include <sys/tree.h>
 
11621
         #endif
 
11622
         #ifdef HAVE_UVM_UVM_EXTERN_H
 
11623
         #include <uvm/uvm_extern.h>
 
11624
         #endif
 
11625
 
 
11626
"
 
11627
eval as_val=\$$as_ac_Header
 
11628
   if test "x$as_val" = x""yes; then :
 
11629
  cat >>confdefs.h <<_ACEOF
 
11630
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11631
_ACEOF
 
11632
 
 
11633
fi
 
11634
 
 
11635
done
 
11636
 
 
11637
 
 
11638
# Check for types.
 
11639
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
 
11640
if test "x$ac_cv_type_mode_t" = x""yes; then :
 
11641
 
 
11642
else
 
11643
 
 
11644
cat >>confdefs.h <<_ACEOF
 
11645
#define mode_t int
 
11646
_ACEOF
 
11647
 
 
11648
fi
 
11649
 
 
11650
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
11651
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
11652
 
 
11653
else
 
11654
 
 
11655
cat >>confdefs.h <<_ACEOF
 
11656
#define pid_t int
 
11657
_ACEOF
 
11658
 
 
11659
fi
 
11660
 
 
11661
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
11662
if test "x$ac_cv_type_size_t" = x""yes; then :
 
11663
 
 
11664
else
 
11665
 
 
11666
cat >>confdefs.h <<_ACEOF
 
11667
#define size_t unsigned int
 
11668
_ACEOF
 
11669
 
 
11670
fi
 
11671
 
 
11672
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
11673
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
11674
 
 
11675
else
 
11676
 
 
11677
cat >>confdefs.h <<_ACEOF
 
11678
#define pid_t int
 
11679
_ACEOF
 
11680
 
 
11681
fi
 
11682
 
 
11683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
11684
$as_echo_n "checking return type of signal handlers... " >&6; }
 
11685
if test "${ac_cv_type_signal+set}" = set; then :
 
11686
  $as_echo_n "(cached) " >&6
 
11687
else
 
11688
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11689
/* end confdefs.h.  */
 
11690
#include <sys/types.h>
 
11691
#include <signal.h>
 
11692
 
 
11693
int
 
11694
main ()
 
11695
{
 
11696
return *(signal (0, 0)) (0) == 1;
 
11697
  ;
 
11698
  return 0;
 
11699
}
 
11700
_ACEOF
 
11701
if ac_fn_c_try_compile "$LINENO"; then :
 
11702
  ac_cv_type_signal=int
 
11703
else
 
11704
  ac_cv_type_signal=void
 
11705
fi
 
11706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11707
fi
 
11708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
11709
$as_echo "$ac_cv_type_signal" >&6; }
 
11710
 
 
11711
cat >>confdefs.h <<_ACEOF
 
11712
#define RETSIGTYPE $ac_cv_type_signal
 
11713
_ACEOF
 
11714
 
 
11715
 
 
11716
 
 
11717
# Check for structures.
 
11718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
 
11719
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
 
11720
if test "${ac_cv_struct_tm+set}" = set; then :
 
11721
  $as_echo_n "(cached) " >&6
 
11722
else
 
11723
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11724
/* end confdefs.h.  */
 
11725
#include <sys/types.h>
 
11726
#include <time.h>
 
11727
 
 
11728
int
 
11729
main ()
 
11730
{
 
11731
struct tm tm;
 
11732
                                     int *p = &tm.tm_sec;
 
11733
                                     return !p;
 
11734
  ;
 
11735
  return 0;
 
11736
}
 
11737
_ACEOF
 
11738
if ac_fn_c_try_compile "$LINENO"; then :
 
11739
  ac_cv_struct_tm=time.h
 
11740
else
 
11741
  ac_cv_struct_tm=sys/time.h
 
11742
fi
 
11743
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11744
fi
 
11745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
 
11746
$as_echo "$ac_cv_struct_tm" >&6; }
 
11747
if test $ac_cv_struct_tm = sys/time.h; then
 
11748
 
 
11749
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
 
11750
 
 
11751
fi
 
11752
 
 
11753
ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
 
11754
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
 
11755
 
 
11756
cat >>confdefs.h <<_ACEOF
 
11757
#define HAVE_STRUCT_TM_TM_GMTOFF 1
 
11758
_ACEOF
 
11759
 
 
11760
 
 
11761
fi
 
11762
 
 
11763
 
 
11764
 
 
11765
# ------------------------------------------------------------------------
 
11766
# Functions
 
11767
# ------------------------------------------------------------------------
 
11768
 
 
11769
# Checks for library functions.
 
11770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
 
11771
$as_echo_n "checking for error_at_line... " >&6; }
 
11772
if test "${ac_cv_lib_error_at_line+set}" = set; then :
 
11773
  $as_echo_n "(cached) " >&6
 
11774
else
 
11775
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11776
/* end confdefs.h.  */
 
11777
#include <error.h>
 
11778
int
 
11779
main ()
 
11780
{
 
11781
error_at_line (0, 0, "", 0, "an error occurred");
 
11782
  ;
 
11783
  return 0;
 
11784
}
 
11785
_ACEOF
 
11786
if ac_fn_c_try_link "$LINENO"; then :
 
11787
  ac_cv_lib_error_at_line=yes
 
11788
else
 
11789
  ac_cv_lib_error_at_line=no
 
11790
fi
 
11791
rm -f core conftest.err conftest.$ac_objext \
 
11792
    conftest$ac_exeext conftest.$ac_ext
 
11793
fi
 
11794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
 
11795
$as_echo "$ac_cv_lib_error_at_line" >&6; }
 
11796
if test $ac_cv_lib_error_at_line = no; then
 
11797
  case " $LIBOBJS " in
 
11798
  *" error.$ac_objext "* ) ;;
 
11799
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
 
11800
 ;;
 
11801
esac
 
11802
 
 
11803
fi
 
11804
 
 
11805
for ac_header in vfork.h
 
11806
do :
 
11807
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
11808
if test "x$ac_cv_header_vfork_h" = x""yes; then :
 
11809
  cat >>confdefs.h <<_ACEOF
 
11810
#define HAVE_VFORK_H 1
 
11811
_ACEOF
 
11812
 
 
11813
fi
 
11814
 
 
11815
done
 
11816
 
 
11817
for ac_func in fork vfork
 
11818
do :
 
11819
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11820
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
11821
eval as_val=\$$as_ac_var
 
11822
   if test "x$as_val" = x""yes; then :
 
11823
  cat >>confdefs.h <<_ACEOF
 
11824
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11825
_ACEOF
 
11826
 
 
11827
fi
 
11828
done
 
11829
 
 
11830
if test "x$ac_cv_func_fork" = xyes; then
 
11831
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
11832
$as_echo_n "checking for working fork... " >&6; }
 
11833
if test "${ac_cv_func_fork_works+set}" = set; then :
 
11834
  $as_echo_n "(cached) " >&6
 
11835
else
 
11836
  if test "$cross_compiling" = yes; then :
 
11837
  ac_cv_func_fork_works=cross
 
11838
else
 
11839
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11840
/* end confdefs.h.  */
 
11841
$ac_includes_default
 
11842
int
 
11843
main ()
 
11844
{
 
11845
 
 
11846
          /* By Ruediger Kuhlmann. */
 
11847
          return fork () < 0;
 
11848
 
 
11849
  ;
 
11850
  return 0;
 
11851
}
 
11852
_ACEOF
 
11853
if ac_fn_c_try_run "$LINENO"; then :
 
11854
  ac_cv_func_fork_works=yes
 
11855
else
 
11856
  ac_cv_func_fork_works=no
 
11857
fi
 
11858
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11859
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11860
fi
 
11861
 
 
11862
fi
 
11863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
11864
$as_echo "$ac_cv_func_fork_works" >&6; }
 
11865
 
 
11866
else
 
11867
  ac_cv_func_fork_works=$ac_cv_func_fork
 
11868
fi
 
11869
if test "x$ac_cv_func_fork_works" = xcross; then
 
11870
  case $host in
 
11871
    *-*-amigaos* | *-*-msdosdjgpp*)
 
11872
      # Override, as these systems have only a dummy fork() stub
 
11873
      ac_cv_func_fork_works=no
 
11874
      ;;
 
11875
    *)
 
11876
      ac_cv_func_fork_works=yes
 
11877
      ;;
 
11878
  esac
 
11879
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
11880
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
11881
fi
 
11882
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
11883
if test "x$ac_cv_func_vfork" = xyes; then
 
11884
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
11885
$as_echo_n "checking for working vfork... " >&6; }
 
11886
if test "${ac_cv_func_vfork_works+set}" = set; then :
 
11887
  $as_echo_n "(cached) " >&6
 
11888
else
 
11889
  if test "$cross_compiling" = yes; then :
 
11890
  ac_cv_func_vfork_works=cross
 
11891
else
 
11892
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11893
/* end confdefs.h.  */
 
11894
/* Thanks to Paul Eggert for this test.  */
 
11895
$ac_includes_default
 
11896
#include <sys/wait.h>
 
11897
#ifdef HAVE_VFORK_H
 
11898
# include <vfork.h>
 
11899
#endif
 
11900
/* On some sparc systems, changes by the child to local and incoming
 
11901
   argument registers are propagated back to the parent.  The compiler
 
11902
   is told about this with #include <vfork.h>, but some compilers
 
11903
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
11904
   static variable whose address is put into a register that is
 
11905
   clobbered by the vfork.  */
 
11906
static void
 
11907
#ifdef __cplusplus
 
11908
sparc_address_test (int arg)
 
11909
# else
 
11910
sparc_address_test (arg) int arg;
 
11911
#endif
 
11912
{
 
11913
  static pid_t child;
 
11914
  if (!child) {
 
11915
    child = vfork ();
 
11916
    if (child < 0) {
 
11917
      perror ("vfork");
 
11918
      _exit(2);
 
11919
    }
 
11920
    if (!child) {
 
11921
      arg = getpid();
 
11922
      write(-1, "", 0);
 
11923
      _exit (arg);
 
11924
    }
 
11925
  }
 
11926
}
 
11927
 
 
11928
int
 
11929
main ()
 
11930
{
 
11931
  pid_t parent = getpid ();
 
11932
  pid_t child;
 
11933
 
 
11934
  sparc_address_test (0);
 
11935
 
 
11936
  child = vfork ();
 
11937
 
 
11938
  if (child == 0) {
 
11939
    /* Here is another test for sparc vfork register problems.  This
 
11940
       test uses lots of local variables, at least as many local
 
11941
       variables as main has allocated so far including compiler
 
11942
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
11943
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
11944
       reuse the register of parent for one of the local variables,
 
11945
       since it will think that parent can't possibly be used any more
 
11946
       in this routine.  Assigning to the local variable will thus
 
11947
       munge parent in the parent process.  */
 
11948
    pid_t
 
11949
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
11950
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
11951
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
11952
       use the same hardware register for all 8 local variables.  */
 
11953
    if (p != p1 || p != p2 || p != p3 || p != p4
 
11954
        || p != p5 || p != p6 || p != p7)
 
11955
      _exit(1);
 
11956
 
 
11957
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
11958
       from child file descriptors.  If the child closes a descriptor
 
11959
       before it execs or exits, this munges the parent's descriptor
 
11960
       as well.  Test for this by closing stdout in the child.  */
 
11961
    _exit(close(fileno(stdout)) != 0);
 
11962
  } else {
 
11963
    int status;
 
11964
    struct stat st;
 
11965
 
 
11966
    while (wait(&status) != child)
 
11967
      ;
 
11968
    return (
 
11969
         /* Was there some problem with vforking?  */
 
11970
         child < 0
 
11971
 
 
11972
         /* Did the child fail?  (This shouldn't happen.)  */
 
11973
         || status
 
11974
 
 
11975
         /* Did the vfork/compiler bug occur?  */
 
11976
         || parent != getpid()
 
11977
 
 
11978
         /* Did the file descriptor bug occur?  */
 
11979
         || fstat(fileno(stdout), &st) != 0
 
11980
         );
 
11981
  }
 
11982
}
 
11983
_ACEOF
 
11984
if ac_fn_c_try_run "$LINENO"; then :
 
11985
  ac_cv_func_vfork_works=yes
 
11986
else
 
11987
  ac_cv_func_vfork_works=no
 
11988
fi
 
11989
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11990
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11991
fi
 
11992
 
 
11993
fi
 
11994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
11995
$as_echo "$ac_cv_func_vfork_works" >&6; }
 
11996
 
 
11997
fi;
 
11998
if test "x$ac_cv_func_fork_works" = xcross; then
 
11999
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
12000
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
12001
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
12002
fi
 
12003
 
 
12004
if test "x$ac_cv_func_vfork_works" = xyes; then
 
12005
 
 
12006
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
 
12007
 
 
12008
else
 
12009
 
 
12010
$as_echo "#define vfork fork" >>confdefs.h
 
12011
 
 
12012
fi
 
12013
if test "x$ac_cv_func_fork_works" = xyes; then
 
12014
 
 
12015
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
12016
 
 
12017
fi
 
12018
 
 
12019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
 
12020
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
 
12021
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
 
12022
  $as_echo_n "(cached) " >&6
 
12023
else
 
12024
  rm -f conftest.sym conftest.file
 
12025
echo >conftest.file
 
12026
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
12027
  if test "$cross_compiling" = yes; then :
 
12028
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
12029
else
 
12030
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12031
/* end confdefs.h.  */
 
12032
$ac_includes_default
 
12033
int
 
12034
main ()
 
12035
{
 
12036
struct stat sbuf;
 
12037
     /* Linux will dereference the symlink and fail, as required by POSIX.
 
12038
        That is better in the sense that it means we will not
 
12039
        have to compile and use the lstat wrapper.  */
 
12040
     return lstat ("conftest.sym/", &sbuf) == 0;
 
12041
  ;
 
12042
  return 0;
 
12043
}
 
12044
_ACEOF
 
12045
if ac_fn_c_try_run "$LINENO"; then :
 
12046
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
12047
else
 
12048
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
12049
fi
 
12050
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12051
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12052
fi
 
12053
 
 
12054
else
 
12055
  # If the `ln -s' command failed, then we probably don't even
 
12056
  # have an lstat function.
 
12057
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
12058
fi
 
12059
rm -f conftest.sym conftest.file
 
12060
 
 
12061
fi
 
12062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
12063
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
12064
 
 
12065
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
12066
 
 
12067
cat >>confdefs.h <<_ACEOF
 
12068
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
12069
_ACEOF
 
12070
 
 
12071
 
 
12072
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
 
12073
  case " $LIBOBJS " in
 
12074
  *" lstat.$ac_objext "* ) ;;
 
12075
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
12076
 ;;
 
12077
esac
 
12078
 
 
12079
fi
 
12080
 
 
12081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
 
12082
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
 
12083
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
 
12084
  $as_echo_n "(cached) " >&6
 
12085
else
 
12086
  if test "$cross_compiling" = yes; then :
 
12087
  ac_cv_func_stat_empty_string_bug=yes
 
12088
else
 
12089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12090
/* end confdefs.h.  */
 
12091
$ac_includes_default
 
12092
int
 
12093
main ()
 
12094
{
 
12095
struct stat sbuf;
 
12096
  return stat ("", &sbuf) == 0;
 
12097
  ;
 
12098
  return 0;
 
12099
}
 
12100
_ACEOF
 
12101
if ac_fn_c_try_run "$LINENO"; then :
 
12102
  ac_cv_func_stat_empty_string_bug=no
 
12103
else
 
12104
  ac_cv_func_stat_empty_string_bug=yes
 
12105
fi
 
12106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12107
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12108
fi
 
12109
 
 
12110
fi
 
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
 
12112
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
 
12113
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
12114
  case " $LIBOBJS " in
 
12115
  *" stat.$ac_objext "* ) ;;
 
12116
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
12117
 ;;
 
12118
esac
 
12119
 
 
12120
 
 
12121
cat >>confdefs.h <<_ACEOF
 
12122
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
12123
_ACEOF
 
12124
 
 
12125
fi
 
12126
 
 
12127
for ac_func in strftime
 
12128
do :
 
12129
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
 
12130
if test "x$ac_cv_func_strftime" = x""yes; then :
 
12131
  cat >>confdefs.h <<_ACEOF
 
12132
#define HAVE_STRFTIME 1
 
12133
_ACEOF
 
12134
 
 
12135
else
 
12136
  # strftime is in -lintl on SCO UNIX.
 
12137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
 
12138
$as_echo_n "checking for strftime in -lintl... " >&6; }
 
12139
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
 
12140
  $as_echo_n "(cached) " >&6
 
12141
else
 
12142
  ac_check_lib_save_LIBS=$LIBS
 
12143
LIBS="-lintl  $LIBS"
 
12144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12145
/* end confdefs.h.  */
 
12146
 
 
12147
/* Override any GCC internal prototype to avoid an error.
 
12148
   Use char because int might match the return type of a GCC
 
12149
   builtin and then its argument prototype would still apply.  */
 
12150
#ifdef __cplusplus
 
12151
extern "C"
 
12152
#endif
 
12153
char strftime ();
 
12154
int
 
12155
main ()
 
12156
{
 
12157
return strftime ();
 
12158
  ;
 
12159
  return 0;
 
12160
}
 
12161
_ACEOF
 
12162
if ac_fn_c_try_link "$LINENO"; then :
 
12163
  ac_cv_lib_intl_strftime=yes
 
12164
else
 
12165
  ac_cv_lib_intl_strftime=no
 
12166
fi
 
12167
rm -f core conftest.err conftest.$ac_objext \
 
12168
    conftest$ac_exeext conftest.$ac_ext
 
12169
LIBS=$ac_check_lib_save_LIBS
 
12170
fi
 
12171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
 
12172
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
 
12173
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
 
12174
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
 
12175
 
 
12176
LIBS="-lintl $LIBS"
 
12177
fi
 
12178
 
 
12179
fi
 
12180
done
 
12181
 
 
12182
for ac_func in statfs
 
12183
do :
 
12184
  ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
 
12185
if test "x$ac_cv_func_statfs" = x""yes; then :
 
12186
  cat >>confdefs.h <<_ACEOF
 
12187
#define HAVE_STATFS 1
 
12188
_ACEOF
 
12189
 
 
12190
fi
 
12191
done
 
12192
 
 
12193
for ac_func in statvfs
 
12194
do :
 
12195
  ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
 
12196
if test "x$ac_cv_func_statvfs" = x""yes; then :
 
12197
  cat >>confdefs.h <<_ACEOF
 
12198
#define HAVE_STATVFS 1
 
12199
_ACEOF
 
12200
 
 
12201
fi
 
12202
done
 
12203
 
 
12204
for ac_func in setlocale
 
12205
do :
 
12206
  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
 
12207
if test "x$ac_cv_func_setlocale" = x""yes; then :
 
12208
  cat >>confdefs.h <<_ACEOF
 
12209
#define HAVE_SETLOCALE 1
 
12210
_ACEOF
 
12211
 
 
12212
fi
 
12213
done
 
12214
 
 
12215
for ac_func in getaddrinfo
 
12216
do :
 
12217
  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
 
12218
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
 
12219
  cat >>confdefs.h <<_ACEOF
 
12220
#define HAVE_GETADDRINFO 1
 
12221
_ACEOF
 
12222
 
 
12223
fi
 
12224
done
 
12225
 
 
12226
for ac_func in syslog
 
12227
do :
 
12228
  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
 
12229
if test "x$ac_cv_func_syslog" = x""yes; then :
 
12230
  cat >>confdefs.h <<_ACEOF
 
12231
#define HAVE_SYSLOG 1
 
12232
_ACEOF
 
12233
 
 
12234
fi
 
12235
done
 
12236
 
 
12237
for ac_func in vsyslog
 
12238
do :
 
12239
  ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
 
12240
if test "x$ac_cv_func_vsyslog" = x""yes; then :
 
12241
  cat >>confdefs.h <<_ACEOF
 
12242
#define HAVE_VSYSLOG 1
 
12243
_ACEOF
 
12244
 
 
12245
fi
 
12246
done
 
12247
 
 
12248
for ac_func in backtrace
 
12249
do :
 
12250
  ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
 
12251
if test "x$ac_cv_func_backtrace" = x""yes; then :
 
12252
  cat >>confdefs.h <<_ACEOF
 
12253
#define HAVE_BACKTRACE 1
 
12254
_ACEOF
 
12255
 
 
12256
fi
 
12257
done
 
12258
 
 
12259
for ac_func in getloadavg
 
12260
do :
 
12261
  ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
 
12262
if test "x$ac_cv_func_getloadavg" = x""yes; then :
 
12263
  cat >>confdefs.h <<_ACEOF
 
12264
#define HAVE_GETLOADAVG 1
 
12265
_ACEOF
 
12266
 
 
12267
fi
 
12268
done
 
12269
 
 
12270
 
 
12271
# Check for SOL_IP
 
12272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOL_IP" >&5
 
12273
$as_echo_n "checking for SOL_IP... " >&6; }
 
12274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12275
/* end confdefs.h.  */
 
12276
 
 
12277
        #include <netdb.h>
 
12278
        #include <sys/socket.h>
 
12279
int
 
12280
main ()
 
12281
{
 
12282
int level = SOL_IP;
 
12283
  ;
 
12284
  return 0;
 
12285
}
 
12286
_ACEOF
 
12287
if ac_fn_c_try_compile "$LINENO"; then :
 
12288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12289
$as_echo "yes" >&6; }
 
12290
 
 
12291
$as_echo "#define HAVE_SOL_IP 1" >>confdefs.h
 
12292
 
 
12293
else
 
12294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12295
$as_echo "no" >&6; }
 
12296
fi
 
12297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12298
 
 
12299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
 
12300
$as_echo_n "checking for va_copy... " >&6; }
 
12301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12302
/* end confdefs.h.  */
 
12303
 
 
12304
        #include <stdarg.h>
 
12305
 
 
12306
int
 
12307
main ()
 
12308
{
 
12309
 
 
12310
        va_list ap;
 
12311
        va_list ap_copy;
 
12312
        va_copy(ap, ap_copy);
 
12313
 
 
12314
  ;
 
12315
  return 0;
 
12316
}
 
12317
_ACEOF
 
12318
if ac_fn_c_try_link "$LINENO"; then :
 
12319
 
 
12320
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12321
$as_echo "yes" >&6; }
 
12322
 
 
12323
$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
 
12324
 
 
12325
 
 
12326
else
 
12327
 
 
12328
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12329
$as_echo "no" >&6; }
 
12330
 
 
12331
fi
 
12332
rm -f core conftest.err conftest.$ac_objext \
 
12333
    conftest$ac_exeext conftest.$ac_ext
 
12334
 
 
12335
 
 
12336
# ------------------------------------------------------------------------
 
12337
# Compiler
 
12338
# ------------------------------------------------------------------------
 
12339
 
 
12340
# Compiler characteristics
 
12341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
12342
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
12343
if test "${ac_cv_c_const+set}" = set; then :
 
12344
  $as_echo_n "(cached) " >&6
 
12345
else
 
12346
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12347
/* end confdefs.h.  */
 
12348
 
 
12349
int
 
12350
main ()
 
12351
{
 
12352
/* FIXME: Include the comments suggested by Paul. */
 
12353
#ifndef __cplusplus
 
12354
  /* Ultrix mips cc rejects this.  */
 
12355
  typedef int charset[2];
 
12356
  const charset cs;
 
12357
  /* SunOS 4.1.1 cc rejects this.  */
 
12358
  char const *const *pcpcc;
 
12359
  char **ppc;
 
12360
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
12361
  struct point {int x, y;};
 
12362
  static struct point const zero = {0,0};
 
12363
  /* AIX XL C 1.02.0.0 rejects this.
 
12364
     It does not let you subtract one const X* pointer from another in
 
12365
     an arm of an if-expression whose if-part is not a constant
 
12366
     expression */
 
12367
  const char *g = "string";
 
12368
  pcpcc = &g + (g ? g-g : 0);
 
12369
  /* HPUX 7.0 cc rejects these. */
 
12370
  ++pcpcc;
 
12371
  ppc = (char**) pcpcc;
 
12372
  pcpcc = (char const *const *) ppc;
 
12373
  { /* SCO 3.2v4 cc rejects this.  */
 
12374
    char *t;
 
12375
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
12376
 
 
12377
    *t++ = 0;
 
12378
    if (s) return 0;
 
12379
  }
 
12380
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
12381
    int x[] = {25, 17};
 
12382
    const int *foo = &x[0];
 
12383
    ++foo;
 
12384
  }
 
12385
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
12386
    typedef const int *iptr;
 
12387
    iptr p = 0;
 
12388
    ++p;
 
12389
  }
 
12390
  { /* AIX XL C 1.02.0.0 rejects this saying
 
12391
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
12392
    struct s { int j; const int *ap[3]; };
 
12393
    struct s *b; b->j = 5;
 
12394
  }
 
12395
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
12396
    const int foo = 10;
 
12397
    if (!foo) return 0;
 
12398
  }
 
12399
  return !cs[0] && !zero.x;
 
12400
#endif
 
12401
 
 
12402
  ;
 
12403
  return 0;
 
12404
}
 
12405
_ACEOF
 
12406
if ac_fn_c_try_compile "$LINENO"; then :
 
12407
  ac_cv_c_const=yes
 
12408
else
 
12409
  ac_cv_c_const=no
 
12410
fi
 
12411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12412
fi
 
12413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
12414
$as_echo "$ac_cv_c_const" >&6; }
 
12415
if test $ac_cv_c_const = no; then
 
12416
 
 
12417
$as_echo "#define const /**/" >>confdefs.h
 
12418
 
 
12419
fi
 
12420
 
 
12421
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
12422
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
12423
if test "${ac_cv_c_bigendian+set}" = set; then :
 
12424
  $as_echo_n "(cached) " >&6
 
12425
else
 
12426
  ac_cv_c_bigendian=unknown
 
12427
    # See if we're dealing with a universal compiler.
 
12428
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12429
/* end confdefs.h.  */
 
12430
#ifndef __APPLE_CC__
 
12431
               not a universal capable compiler
 
12432
             #endif
 
12433
             typedef int dummy;
 
12434
 
 
12435
_ACEOF
 
12436
if ac_fn_c_try_compile "$LINENO"; then :
 
12437
 
 
12438
        # Check for potential -arch flags.  It is not universal unless
 
12439
        # there are at least two -arch flags with different values.
 
12440
        ac_arch=
 
12441
        ac_prev=
 
12442
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
12443
         if test -n "$ac_prev"; then
 
12444
           case $ac_word in
 
12445
             i?86 | x86_64 | ppc | ppc64)
 
12446
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
12447
                 ac_arch=$ac_word
 
12448
               else
 
12449
                 ac_cv_c_bigendian=universal
 
12450
                 break
 
12451
               fi
 
12452
               ;;
 
12453
           esac
 
12454
           ac_prev=
 
12455
         elif test "x$ac_word" = "x-arch"; then
 
12456
           ac_prev=arch
 
12457
         fi
 
12458
       done
 
12459
fi
 
12460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12461
    if test $ac_cv_c_bigendian = unknown; then
 
12462
      # See if sys/param.h defines the BYTE_ORDER macro.
 
12463
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12464
/* end confdefs.h.  */
 
12465
#include <sys/types.h>
 
12466
             #include <sys/param.h>
 
12467
 
 
12468
int
 
12469
main ()
 
12470
{
 
12471
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
12472
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
12473
                     && LITTLE_ENDIAN)
 
12474
              bogus endian macros
 
12475
             #endif
 
12476
 
 
12477
  ;
 
12478
  return 0;
 
12479
}
 
12480
_ACEOF
 
12481
if ac_fn_c_try_compile "$LINENO"; then :
 
12482
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
12483
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12484
/* end confdefs.h.  */
 
12485
#include <sys/types.h>
 
12486
                #include <sys/param.h>
 
12487
 
 
12488
int
 
12489
main ()
 
12490
{
 
12491
#if BYTE_ORDER != BIG_ENDIAN
 
12492
                 not big endian
 
12493
                #endif
 
12494
 
 
12495
  ;
 
12496
  return 0;
 
12497
}
 
12498
_ACEOF
 
12499
if ac_fn_c_try_compile "$LINENO"; then :
 
12500
  ac_cv_c_bigendian=yes
 
12501
else
 
12502
  ac_cv_c_bigendian=no
 
12503
fi
 
12504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12505
fi
 
12506
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12507
    fi
 
12508
    if test $ac_cv_c_bigendian = unknown; then
 
12509
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
12510
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12511
/* end confdefs.h.  */
 
12512
#include <limits.h>
 
12513
 
 
12514
int
 
12515
main ()
 
12516
{
 
12517
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
12518
              bogus endian macros
 
12519
             #endif
 
12520
 
 
12521
  ;
 
12522
  return 0;
 
12523
}
 
12524
_ACEOF
 
12525
if ac_fn_c_try_compile "$LINENO"; then :
 
12526
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
12527
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12528
/* end confdefs.h.  */
 
12529
#include <limits.h>
 
12530
 
 
12531
int
 
12532
main ()
 
12533
{
 
12534
#ifndef _BIG_ENDIAN
 
12535
                 not big endian
 
12536
                #endif
 
12537
 
 
12538
  ;
 
12539
  return 0;
 
12540
}
 
12541
_ACEOF
 
12542
if ac_fn_c_try_compile "$LINENO"; then :
 
12543
  ac_cv_c_bigendian=yes
 
12544
else
 
12545
  ac_cv_c_bigendian=no
 
12546
fi
 
12547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12548
fi
 
12549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12550
    fi
 
12551
    if test $ac_cv_c_bigendian = unknown; then
 
12552
      # Compile a test program.
 
12553
      if test "$cross_compiling" = yes; then :
 
12554
  # Try to guess by grepping values from an object file.
 
12555
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12556
/* end confdefs.h.  */
 
12557
short int ascii_mm[] =
 
12558
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
12559
                short int ascii_ii[] =
 
12560
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
12561
                int use_ascii (int i) {
 
12562
                  return ascii_mm[i] + ascii_ii[i];
 
12563
                }
 
12564
                short int ebcdic_ii[] =
 
12565
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
12566
                short int ebcdic_mm[] =
 
12567
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
12568
                int use_ebcdic (int i) {
 
12569
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
12570
                }
 
12571
                extern int foo;
 
12572
 
 
12573
int
 
12574
main ()
 
12575
{
 
12576
return use_ascii (foo) == use_ebcdic (foo);
 
12577
  ;
 
12578
  return 0;
 
12579
}
 
12580
_ACEOF
 
12581
if ac_fn_c_try_compile "$LINENO"; then :
 
12582
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
12583
              ac_cv_c_bigendian=yes
 
12584
            fi
 
12585
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
12586
              if test "$ac_cv_c_bigendian" = unknown; then
 
12587
                ac_cv_c_bigendian=no
 
12588
              else
 
12589
                # finding both strings is unlikely to happen, but who knows?
 
12590
                ac_cv_c_bigendian=unknown
 
12591
              fi
 
12592
            fi
 
12593
fi
 
12594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12595
else
 
12596
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12597
/* end confdefs.h.  */
 
12598
$ac_includes_default
 
12599
int
 
12600
main ()
 
12601
{
 
12602
 
 
12603
             /* Are we little or big endian?  From Harbison&Steele.  */
 
12604
             union
 
12605
             {
 
12606
               long int l;
 
12607
               char c[sizeof (long int)];
 
12608
             } u;
 
12609
             u.l = 1;
 
12610
             return u.c[sizeof (long int) - 1] == 1;
 
12611
 
 
12612
  ;
 
12613
  return 0;
 
12614
}
 
12615
_ACEOF
 
12616
if ac_fn_c_try_run "$LINENO"; then :
 
12617
  ac_cv_c_bigendian=no
 
12618
else
 
12619
  ac_cv_c_bigendian=yes
 
12620
fi
 
12621
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12622
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12623
fi
 
12624
 
 
12625
    fi
 
12626
fi
 
12627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
12628
$as_echo "$ac_cv_c_bigendian" >&6; }
 
12629
 case $ac_cv_c_bigendian in #(
 
12630
   yes)
 
12631
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 
12632
;; #(
 
12633
   no)
 
12634
      ;; #(
 
12635
   universal)
 
12636
 
 
12637
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
12638
 
 
12639
     ;; #(
 
12640
   *)
 
12641
     as_fn_error "unknown endianness
 
12642
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
12643
 esac
 
12644
 
 
12645
 
 
12646
# If the compiler is gcc, tune warnings and make the char type unsigned
 
12647
# and enable C99 support
 
12648
if test "x$GCC" = "xyes"; then
 
12649
        CFLAGS="$CFLAGS -Wall -Wunused -Wno-unused-label -funsigned-char";
 
12650
        # Add C99 support
 
12651
        CFLAGS="$CFLAGS -D_GNU_SOURCE -std=c99"
 
12652
        # does this compiler support -Wno-pointer-sign ?
 
12653
        svd_CFLAGS="$CFLAGS"
 
12654
        CFLAGS="-Wno-pointer-sign $CFLAGS"
 
12655
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12656
/* end confdefs.h.  */
 
12657
 
 
12658
int
 
12659
main ()
 
12660
{
 
12661
return 0;
 
12662
  ;
 
12663
  return 0;
 
12664
}
 
12665
_ACEOF
 
12666
if ac_fn_c_try_compile "$LINENO"; then :
 
12667
 
 
12668
else
 
12669
  CFLAGS="$svd_CFLAGS"
 
12670
fi
 
12671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12672
        # does this compiler support -Wno-address ?
 
12673
        svd_CFLAGS="$CFLAGS"
 
12674
        CFLAGS="-Wno-address $CFLAGS"
 
12675
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12676
/* end confdefs.h.  */
 
12677
 
 
12678
int
 
12679
main ()
 
12680
{
 
12681
return 0;
 
12682
  ;
 
12683
  return 0;
 
12684
}
 
12685
_ACEOF
 
12686
if ac_fn_c_try_compile "$LINENO"; then :
 
12687
 
 
12688
else
 
12689
  CFLAGS="$svd_CFLAGS"
 
12690
fi
 
12691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12692
fi
 
12693
 
 
12694
 
 
12695
# ------------------------------------------------------------------------
 
12696
# Paths
 
12697
# ------------------------------------------------------------------------
 
12698
 
 
12699
# Find the right directory to put the root-mode PID file in
 
12700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pid file location" >&5
 
12701
$as_echo_n "checking pid file location... " >&6; }
 
12702
if test -d "/var/run"
 
12703
then
 
12704
        piddir="/var/run"
 
12705
elif test -d "/etc"
 
12706
then
 
12707
        piddir="/etc"
 
12708
fi
 
12709
 
 
12710
 
 
12711
cat >>confdefs.h <<_ACEOF
 
12712
#define PIDDIR "$piddir"
 
12713
_ACEOF
 
12714
 
 
12715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $piddir" >&5
 
12716
$as_echo "$piddir" >&6; }
 
12717
 
 
12718
# Test mounted filesystem description file
 
12719
if test -f "/etc/mtab"
 
12720
then
 
12721
 
 
12722
$as_echo "#define HAVE_MTAB 1" >>confdefs.h
 
12723
 
 
12724
elif test -f "/etc/mnttab"; then
 
12725
 
 
12726
$as_echo "#define HAVE_MNTTAB 1" >>confdefs.h
 
12727
 
 
12728
fi
 
12729
 
 
12730
# ------------------------------------------------------------------------
 
12731
# Architecture/OS detection
 
12732
# ------------------------------------------------------------------------
 
12733
 
 
12734
# Backward compatibility until we get ride of arch settings
 
12735
architecture=`uname`
 
12736
if test "$architecture" = "SunOS"
 
12737
then
 
12738
   ARCH="SOLARIS"
 
12739
   CFLAGS="$CFLAGS -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D__EXTENSIONS__ -m64"
 
12740
   LDFLAGS="$LDFLAGS -m64"
 
12741
   test_kstat="true"
 
12742
 
 
12743
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
 
12744
 
 
12745
   if test `uname -m` = "i86pc"
 
12746
   then
 
12747
      if test "x$GCC" = "xyes"
 
12748
      then
 
12749
            CFLAGS="$CFLAGS -mtune=opteron"
 
12750
            LDFLAGS="$LDFLAGS -mtune=opteron"
 
12751
      else
 
12752
            CFLAGS="$CFLAGS -xarch=sse2"
 
12753
            LDFLAGS="$LDFLAGS -xarch=sse2"
 
12754
      fi
 
12755
   else
 
12756
      if test "x$GCC" = "xyes"
 
12757
      then
 
12758
            CFLAGS="$CFLAGS -mtune=v9"
 
12759
            LDFLAGS="$LDFLAGS -mtune=v9"
 
12760
      else
 
12761
            CFLAGS="$CFLAGS -xarch=sparc"
 
12762
            LDFLAGS="$LDFLAGS -xarch=sparc"
 
12763
      fi
 
12764
   fi
 
12765
elif test "$architecture" = "Linux"
 
12766
then
 
12767
   ARCH="LINUX"
 
12768
   CFLAGS="$CFLAGS -D _REENTRANT"
 
12769
   LDFLAGS="$LDFLAGS -rdynamic"
 
12770
   if test `uname -r | awk -F '.' '{print$1$2}'` -ge "26"
 
12771
   then
 
12772
 
 
12773
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
 
12774
 
 
12775
   fi
 
12776
elif test "$architecture" = "HP-UX"
 
12777
then
 
12778
   ARCH="HPUX"
 
12779
   CFLAGS="$CFLAGS -D _REENTRANT"
 
12780
 
 
12781
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
 
12782
 
 
12783
elif test "$architecture" = "OpenBSD"
 
12784
then
 
12785
   ARCH="OPENBSD"
 
12786
   CFLAGS="$CFLAGS -D _REENTRANT"
 
12787
   test_kvm="true"
 
12788
   use_pam=0 # No PAM on OpenBSD (supports BSD Auth API instead of PAM)
 
12789
elif test "$architecture" = "FreeBSD"
 
12790
then
 
12791
   ARCH="FREEBSD"
 
12792
   CFLAGS="$CFLAGS -D _REENTRANT"
 
12793
   test_kvm="true"
 
12794
elif test "$architecture" = "GNU/kFreeBSD"
 
12795
then
 
12796
   ARCH="FREEBSD"
 
12797
   CFLAGS="$CFLAGS -D _REENTRANT"
 
12798
   test_kvm="true"
 
12799
elif test "$architecture" = "NetBSD"
 
12800
then
 
12801
   ARCH="NETBSD"
 
12802
   CFLAGS="$CFLAGS -D _REENTRANT"
 
12803
   test_kvm="true"
 
12804
elif test "$architecture" = "Darwin"
 
12805
then
 
12806
   ARCH="DARWIN"
 
12807
   CFLAGS="$CFLAGS -DREENTRANT -no-cpp-precomp -DNEED_SOCKLEN_T_DEFINED"
 
12808
   test_kvm="true"
 
12809
   LIBS="$LIBS -framework System -multiply_defined suppress"
 
12810
elif test "$architecture" = "AIX"
 
12811
then
 
12812
   ARCH="AIX"
 
12813
   CFLAGS="$CFLAGS -D_THREAD_SAFE -D_REENTRANT"
 
12814
   LIBS="$LIBS -lodm"
 
12815
   # AIX v. 5.2
 
12816
   LIBS="$LIBS -lcfg"
 
12817
   # AIX v. 5.3
 
12818
   LIBS="$LIBS -lperfstat"
 
12819
 
 
12820
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
 
12821
 
 
12822
else
 
12823
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Architecture not supported: ${architecture}" >&5
 
12824
$as_echo "$as_me: WARNING: Architecture not supported: ${architecture}" >&2;}
 
12825
   CFLAGS="$CFLAGS -D _REENTRANT"
 
12826
   ARCH="UNKNOWN"
 
12827
fi
 
12828
 
 
12829
 
 
12830
# ------------------------------------------------------------------------
 
12831
# Resource code
 
12832
# ------------------------------------------------------------------------
 
12833
 
 
12834
# Test for kvm libs
 
12835
kvm_libs=""
 
12836
if test "$test_kvm"; then
 
12837
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
 
12838
$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
 
12839
if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
 
12840
  $as_echo_n "(cached) " >&6
 
12841
else
 
12842
  ac_check_lib_save_LIBS=$LIBS
 
12843
LIBS="-lkvm  $LIBS"
 
12844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12845
/* end confdefs.h.  */
 
12846
 
 
12847
/* Override any GCC internal prototype to avoid an error.
 
12848
   Use char because int might match the return type of a GCC
 
12849
   builtin and then its argument prototype would still apply.  */
 
12850
#ifdef __cplusplus
 
12851
extern "C"
 
12852
#endif
 
12853
char kvm_open ();
 
12854
int
 
12855
main ()
 
12856
{
 
12857
return kvm_open ();
 
12858
  ;
 
12859
  return 0;
 
12860
}
 
12861
_ACEOF
 
12862
if ac_fn_c_try_link "$LINENO"; then :
 
12863
  ac_cv_lib_kvm_kvm_open=yes
 
12864
else
 
12865
  ac_cv_lib_kvm_kvm_open=no
 
12866
fi
 
12867
rm -f core conftest.err conftest.$ac_objext \
 
12868
    conftest$ac_exeext conftest.$ac_ext
 
12869
LIBS=$ac_check_lib_save_LIBS
 
12870
fi
 
12871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
 
12872
$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
 
12873
if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
 
12874
  kvm_libs="-lkvm"
 
12875
fi
 
12876
 
 
12877
        if test "$kvm_libs"
 
12878
        then
 
12879
                LIBS="$LIBS $kvm_libs"
 
12880
        fi
 
12881
fi
 
12882
kstat_libs=""
 
12883
if test "$test_kstat"; then
 
12884
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
 
12885
$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
 
12886
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
 
12887
  $as_echo_n "(cached) " >&6
 
12888
else
 
12889
  ac_check_lib_save_LIBS=$LIBS
 
12890
LIBS="-lkstat  $LIBS"
 
12891
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12892
/* end confdefs.h.  */
 
12893
 
 
12894
/* Override any GCC internal prototype to avoid an error.
 
12895
   Use char because int might match the return type of a GCC
 
12896
   builtin and then its argument prototype would still apply.  */
 
12897
#ifdef __cplusplus
 
12898
extern "C"
 
12899
#endif
 
12900
char kstat_open ();
 
12901
int
 
12902
main ()
 
12903
{
 
12904
return kstat_open ();
 
12905
  ;
 
12906
  return 0;
 
12907
}
 
12908
_ACEOF
 
12909
if ac_fn_c_try_link "$LINENO"; then :
 
12910
  ac_cv_lib_kstat_kstat_open=yes
 
12911
else
 
12912
  ac_cv_lib_kstat_kstat_open=no
 
12913
fi
 
12914
rm -f core conftest.err conftest.$ac_objext \
 
12915
    conftest$ac_exeext conftest.$ac_ext
 
12916
LIBS=$ac_check_lib_save_LIBS
 
12917
fi
 
12918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
 
12919
$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
 
12920
if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
 
12921
  kstat_libs="-lkstat"
 
12922
fi
 
12923
 
 
12924
        if test "$kstat_libs"
 
12925
        then
 
12926
                LIBS="$LIBS $kstat_libs"
 
12927
        fi
 
12928
fi
 
12929
 
 
12930
 
 
12931
# ------------------------------------------------------------------------
 
12932
# Large files code
 
12933
# ------------------------------------------------------------------------
 
12934
 
 
12935
# Check if we want to have large files support
 
12936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for large files support" >&5
 
12937
$as_echo_n "checking for large files support... " >&6; }
 
12938
 
 
12939
# Check whether --with-largefiles was given.
 
12940
if test "${with_largefiles+set}" = set; then :
 
12941
  withval=$with_largefiles;
 
12942
                if test "x$withval" = "xno" ; then
 
12943
            use_largefiles=0
 
12944
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
12945
$as_echo "disabled" >&6; }
 
12946
        fi
 
12947
        if test "x$withval" = "xyes" ; then
 
12948
            use_largefiles=1
 
12949
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
12950
$as_echo "enabled" >&6; }
 
12951
        fi
 
12952
 
 
12953
else
 
12954
 
 
12955
        if test `uname` = "AIX"
 
12956
        then
 
12957
            use_largefiles=0
 
12958
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
12959
$as_echo "disabled" >&6; }
 
12960
        else
 
12961
            use_largefiles=1
 
12962
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
12963
$as_echo "enabled" >&6; }
 
12964
        fi
 
12965
 
 
12966
 
 
12967
fi
 
12968
 
 
12969
 
 
12970
# Settings for largefiles support
 
12971
if test "$use_largefiles" = 1; then
 
12972
        # Check whether --enable-largefile was given.
 
12973
if test "${enable_largefile+set}" = set; then :
 
12974
  enableval=$enable_largefile;
 
12975
fi
 
12976
 
 
12977
if test "$enable_largefile" != no; then
 
12978
 
 
12979
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
12980
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
12981
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
 
12982
  $as_echo_n "(cached) " >&6
 
12983
else
 
12984
  ac_cv_sys_largefile_CC=no
 
12985
     if test "$GCC" != yes; then
 
12986
       ac_save_CC=$CC
 
12987
       while :; do
 
12988
         # IRIX 6.2 and later do not support large files by default,
 
12989
         # so use the C compiler's -n32 option if that helps.
 
12990
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12991
/* end confdefs.h.  */
 
12992
#include <sys/types.h>
 
12993
 /* Check that off_t can represent 2**63 - 1 correctly.
 
12994
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
12995
    since some C++ compilers masquerading as C compilers
 
12996
    incorrectly reject 9223372036854775807.  */
 
12997
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
12998
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
12999
                       && LARGE_OFF_T % 2147483647 == 1)
 
13000
                      ? 1 : -1];
 
13001
int
 
13002
main ()
 
13003
{
 
13004
 
 
13005
  ;
 
13006
  return 0;
 
13007
}
 
13008
_ACEOF
 
13009
         if ac_fn_c_try_compile "$LINENO"; then :
 
13010
  break
 
13011
fi
 
13012
rm -f core conftest.err conftest.$ac_objext
 
13013
         CC="$CC -n32"
 
13014
         if ac_fn_c_try_compile "$LINENO"; then :
 
13015
  ac_cv_sys_largefile_CC=' -n32'; break
 
13016
fi
 
13017
rm -f core conftest.err conftest.$ac_objext
 
13018
         break
 
13019
       done
 
13020
       CC=$ac_save_CC
 
13021
       rm -f conftest.$ac_ext
 
13022
    fi
 
13023
fi
 
13024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
13025
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
13026
  if test "$ac_cv_sys_largefile_CC" != no; then
 
13027
    CC=$CC$ac_cv_sys_largefile_CC
 
13028
  fi
 
13029
 
 
13030
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
13031
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
13032
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
 
13033
  $as_echo_n "(cached) " >&6
 
13034
else
 
13035
  while :; do
 
13036
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13037
/* end confdefs.h.  */
 
13038
#include <sys/types.h>
 
13039
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13040
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13041
    since some C++ compilers masquerading as C compilers
 
13042
    incorrectly reject 9223372036854775807.  */
 
13043
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13044
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13045
                       && LARGE_OFF_T % 2147483647 == 1)
 
13046
                      ? 1 : -1];
 
13047
int
 
13048
main ()
 
13049
{
 
13050
 
 
13051
  ;
 
13052
  return 0;
 
13053
}
 
13054
_ACEOF
 
13055
if ac_fn_c_try_compile "$LINENO"; then :
 
13056
  ac_cv_sys_file_offset_bits=no; break
 
13057
fi
 
13058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13059
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13060
/* end confdefs.h.  */
 
13061
#define _FILE_OFFSET_BITS 64
 
13062
#include <sys/types.h>
 
13063
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13064
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13065
    since some C++ compilers masquerading as C compilers
 
13066
    incorrectly reject 9223372036854775807.  */
 
13067
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13068
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13069
                       && LARGE_OFF_T % 2147483647 == 1)
 
13070
                      ? 1 : -1];
 
13071
int
 
13072
main ()
 
13073
{
 
13074
 
 
13075
  ;
 
13076
  return 0;
 
13077
}
 
13078
_ACEOF
 
13079
if ac_fn_c_try_compile "$LINENO"; then :
 
13080
  ac_cv_sys_file_offset_bits=64; break
 
13081
fi
 
13082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13083
  ac_cv_sys_file_offset_bits=unknown
 
13084
  break
 
13085
done
 
13086
fi
 
13087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
13088
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
13089
case $ac_cv_sys_file_offset_bits in #(
 
13090
  no | unknown) ;;
 
13091
  *)
 
13092
cat >>confdefs.h <<_ACEOF
 
13093
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
13094
_ACEOF
 
13095
;;
 
13096
esac
 
13097
rm -rf conftest*
 
13098
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
13099
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
13100
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
13101
if test "${ac_cv_sys_large_files+set}" = set; then :
 
13102
  $as_echo_n "(cached) " >&6
 
13103
else
 
13104
  while :; do
 
13105
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13106
/* end confdefs.h.  */
 
13107
#include <sys/types.h>
 
13108
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13109
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13110
    since some C++ compilers masquerading as C compilers
 
13111
    incorrectly reject 9223372036854775807.  */
 
13112
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13113
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13114
                       && LARGE_OFF_T % 2147483647 == 1)
 
13115
                      ? 1 : -1];
 
13116
int
 
13117
main ()
 
13118
{
 
13119
 
 
13120
  ;
 
13121
  return 0;
 
13122
}
 
13123
_ACEOF
 
13124
if ac_fn_c_try_compile "$LINENO"; then :
 
13125
  ac_cv_sys_large_files=no; break
 
13126
fi
 
13127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13128
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13129
/* end confdefs.h.  */
 
13130
#define _LARGE_FILES 1
 
13131
#include <sys/types.h>
 
13132
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13133
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13134
    since some C++ compilers masquerading as C compilers
 
13135
    incorrectly reject 9223372036854775807.  */
 
13136
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13137
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13138
                       && LARGE_OFF_T % 2147483647 == 1)
 
13139
                      ? 1 : -1];
 
13140
int
 
13141
main ()
 
13142
{
 
13143
 
 
13144
  ;
 
13145
  return 0;
 
13146
}
 
13147
_ACEOF
 
13148
if ac_fn_c_try_compile "$LINENO"; then :
 
13149
  ac_cv_sys_large_files=1; break
 
13150
fi
 
13151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13152
  ac_cv_sys_large_files=unknown
 
13153
  break
 
13154
done
 
13155
fi
 
13156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
13157
$as_echo "$ac_cv_sys_large_files" >&6; }
 
13158
case $ac_cv_sys_large_files in #(
 
13159
  no | unknown) ;;
 
13160
  *)
 
13161
cat >>confdefs.h <<_ACEOF
 
13162
#define _LARGE_FILES $ac_cv_sys_large_files
 
13163
_ACEOF
 
13164
;;
 
13165
esac
 
13166
rm -rf conftest*
 
13167
  fi
 
13168
fi
 
13169
 
 
13170
fi
 
13171
 
 
13172
 
 
13173
# ------------------------------------------------------------------------
 
13174
# PAM Code
 
13175
# ------------------------------------------------------------------------
 
13176
 
 
13177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5
 
13178
$as_echo_n "checking for PAM support... " >&6; }
 
13179
 
 
13180
# Check whether --with-pam was given.
 
13181
if test "${with_pam+set}" = set; then :
 
13182
  withval=$with_pam;
 
13183
                if test "x$withval" = "xno" ; then
 
13184
            use_pam=0
 
13185
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
13186
$as_echo "disabled" >&6; }
 
13187
        fi
 
13188
        if test "x$withval" = "xyes" ; then
 
13189
            use_pam=1
 
13190
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
13191
$as_echo "enabled" >&6; }
 
13192
        fi
 
13193
 
 
13194
else
 
13195
 
 
13196
        if test "x$use_pam" = "x" ; then
 
13197
            use_pam=1
 
13198
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
13199
$as_echo "enabled" >&6; }
 
13200
        fi
 
13201
 
 
13202
 
 
13203
fi
 
13204
 
 
13205
 
 
13206
if test "$use_pam" = "1"; then
 
13207
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
 
13208
$as_echo_n "checking for pam_start in -lpam... " >&6; }
 
13209
if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
 
13210
  $as_echo_n "(cached) " >&6
 
13211
else
 
13212
  ac_check_lib_save_LIBS=$LIBS
 
13213
LIBS="-lpam  $LIBS"
 
13214
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13215
/* end confdefs.h.  */
 
13216
 
 
13217
/* Override any GCC internal prototype to avoid an error.
 
13218
   Use char because int might match the return type of a GCC
 
13219
   builtin and then its argument prototype would still apply.  */
 
13220
#ifdef __cplusplus
 
13221
extern "C"
 
13222
#endif
 
13223
char pam_start ();
 
13224
int
 
13225
main ()
 
13226
{
 
13227
return pam_start ();
 
13228
  ;
 
13229
  return 0;
 
13230
}
 
13231
_ACEOF
 
13232
if ac_fn_c_try_link "$LINENO"; then :
 
13233
  ac_cv_lib_pam_pam_start=yes
 
13234
else
 
13235
  ac_cv_lib_pam_pam_start=no
 
13236
fi
 
13237
rm -f core conftest.err conftest.$ac_objext \
 
13238
    conftest$ac_exeext conftest.$ac_ext
 
13239
LIBS=$ac_check_lib_save_LIBS
 
13240
fi
 
13241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
 
13242
$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
 
13243
if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
 
13244
  cat >>confdefs.h <<_ACEOF
 
13245
#define HAVE_LIBPAM 1
 
13246
_ACEOF
 
13247
 
 
13248
  LIBS="-lpam $LIBS"
 
13249
 
 
13250
else
 
13251
  as_fn_error "PAM enabled but headers or library not found, install the PAM development support or run configure --without-pam" "$LINENO" 5
 
13252
fi
 
13253
 
 
13254
fi
 
13255
 
 
13256
 
 
13257
# ------------------------------------------------------------------------
 
13258
# SSL Code
 
13259
# ------------------------------------------------------------------------
 
13260
 
 
13261
# Check for ssl includes
 
13262
checksslincldir() { :
 
13263
    if test -f "$1/openssl/ssl.h"; then
 
13264
        sslincldir="$1"
 
13265
        return 0
 
13266
    fi
 
13267
    return 1
 
13268
}
 
13269
 
 
13270
# Check for ssl libraries
 
13271
checkssllibdirdynamic() { :
 
13272
    CRYPTOLIB=`ls -1 $1/libcrypto.so* $1/libcrypto.dylib* 2>/dev/null | wc -l`
 
13273
    SSLLIB=`ls -1 $1/libssl.so* $1/libssl.dylib* 2>/dev/null | wc -l`
 
13274
    if test "(" $CRYPTOLIB -gt 0 -a $SSLLIB -gt 0 ")"
 
13275
    then
 
13276
        ssllibdir="$1"
 
13277
        return 0
 
13278
    fi
 
13279
    return 1
 
13280
}
 
13281
 
 
13282
checkssllibdirstatic() { :
 
13283
    if test "(" -f "$1/libcrypto.a" ")"  -a \
 
13284
            "(" -f "$1/libssl.a" ")" ; then
 
13285
        ssllibdir="$1"
 
13286
        return 0
 
13287
    fi
 
13288
    return 1
 
13289
}
 
13290
 
 
13291
# Check if we want to have SSL
 
13292
 
 
13293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static SSL support" >&5
 
13294
$as_echo_n "checking for static SSL support... " >&6; }
 
13295
 
 
13296
 
 
13297
# Check whether --with-ssl-static was given.
 
13298
if test "${with_ssl_static+set}" = set; then :
 
13299
  withval=$with_ssl_static;
 
13300
                for dir in "$withval" "$withval/include"; do
 
13301
            checksslincldir "$dir"
 
13302
        done
 
13303
        for dir in "$withval" "$withval/lib"; do
 
13304
            checkssllibdirstatic "$dir" && break 2
 
13305
        done
 
13306
        use_sslstatic=1
 
13307
        LDFLAGS="`echo $LDFLAGS | sed -e 's/-rdynamic/-ldl/g'`"
 
13308
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
13309
$as_echo "enabled" >&6; }
 
13310
 
 
13311
$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
 
13312
 
 
13313
 
 
13314
 
 
13315
        CFLAGS="$CFLAGS -I$sslincldir"
 
13316
        LIBS="$LIBS $ssllibdir/libssl.a $ssllibdir/libcrypto.a"
 
13317
 
 
13318
else
 
13319
 
 
13320
        use_sslstatic=0
 
13321
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
13322
$as_echo "disabled" >&6; }
 
13323
 
 
13324
 
 
13325
fi
 
13326
 
 
13327
 
 
13328
if test "$use_sslstatic" = "0"
 
13329
then
 
13330
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support" >&5
 
13331
$as_echo_n "checking for SSL support... " >&6; }
 
13332
 
 
13333
 
 
13334
# Check whether --with-ssl was given.
 
13335
if test "${with_ssl+set}" = set; then :
 
13336
  withval=$with_ssl;
 
13337
                        if test "x$withval" = "xno" ; then
 
13338
                use_ssl=0
 
13339
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
13340
$as_echo "disabled" >&6; }
 
13341
            fi
 
13342
            if test "x$withval" = "xyes" ; then
 
13343
                use_ssl=1
 
13344
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
13345
$as_echo "enabled" >&6; }
 
13346
            fi
 
13347
 
 
13348
else
 
13349
 
 
13350
            use_ssl=1
 
13351
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
13352
$as_echo "enabled" >&6; }
 
13353
 
 
13354
 
 
13355
fi
 
13356
 
 
13357
 
 
13358
 
 
13359
    # Check for SSL directory
 
13360
    if test "$use_ssl" = "1"; then
 
13361
 
 
13362
 
 
13363
# Check whether --with-ssl-dir was given.
 
13364
if test "${with_ssl_dir+set}" = set; then :
 
13365
  withval=$with_ssl_dir;
 
13366
                                for dir in "$withval" "$withval/include"; do
 
13367
                        checksslincldir "$dir"
 
13368
                done
 
13369
                for dir in "$withval" "$withval/lib"; do
 
13370
                    checkssllibdirdynamic "$dir" && break 2
 
13371
                done
 
13372
 
 
13373
 
 
13374
fi
 
13375
 
 
13376
 
 
13377
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL include directory" >&5
 
13378
$as_echo_n "checking for SSL include directory... " >&6; }
 
13379
 
 
13380
# Check whether --with-ssl-incl-dir was given.
 
13381
if test "${with_ssl_incl_dir+set}" = set; then :
 
13382
  withval=$with_ssl_incl_dir;
 
13383
                                checksslincldir "$withval"
 
13384
 
 
13385
else
 
13386
 
 
13387
                if test -z "$sslincldir"; then
 
13388
                                        for maindir in /usr /usr/local /usr/lib /usr/pkg /var /opt /usr/sfw /opt/csw /opt/freeware; do
 
13389
                        for dir in "$maindir/include"\
 
13390
                                   "$maindir/include/openssl"\
 
13391
                                   "$maindir/include/ssl"\
 
13392
                                   "$maindir/ssl/include"; do
 
13393
                            checksslincldir $dir && break 2
 
13394
                        done
 
13395
                    done
 
13396
                fi
 
13397
 
 
13398
 
 
13399
fi
 
13400
 
 
13401
        if test -z "$sslincldir"; then
 
13402
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
 
13403
$as_echo "Not found" >&6; }
 
13404
            echo
 
13405
            echo "Couldn't find your SSL header files."
 
13406
            echo "Use --with-ssl-incl-dir option to fix this problem or disable"
 
13407
            echo "the SSL support with --without-ssl"
 
13408
            echo
 
13409
            exit 1
 
13410
        fi
 
13411
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sslincldir" >&5
 
13412
$as_echo "$sslincldir" >&6; }
 
13413
 
 
13414
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library directory" >&5
 
13415
$as_echo_n "checking for SSL library directory... " >&6; }
 
13416
 
 
13417
# Check whether --with-ssl-lib-dir was given.
 
13418
if test "${with_ssl_lib_dir+set}" = set; then :
 
13419
  withval=$with_ssl_lib_dir;
 
13420
                                checkssllibdirdynamic "$withval"
 
13421
 
 
13422
else
 
13423
 
 
13424
                if test -z "$ssllibdir"; then
 
13425
                                        for maindir in "" \
 
13426
                                   /usr \
 
13427
                                   /usr/local \
 
13428
                                   /usr/pkg \
 
13429
                                   /var \
 
13430
                                   /opt \
 
13431
                                   /usr/sfw \
 
13432
                                   /opt/csw \
 
13433
                                   /opt/freeware; do
 
13434
                        for dir in $maindir \
 
13435
                                   $maindir/openssl \
 
13436
                                   $maindir/ssl \
 
13437
                                   $maindir/lib \
 
13438
                                   $maindir/lib/openssl \
 
13439
                                   $maindir/lib/ssl \
 
13440
                                   $maindir/ssl/lib \
 
13441
                                   $maindir/lib/64 \
 
13442
                                   $maindir/lib/64/openssl \
 
13443
                                   $maindir/lib/64/ssl \
 
13444
                                   $maindir/ssl/lib/64 \
 
13445
                                   $maindir/lib64 \
 
13446
                                   $maindir/lib64/openssl \
 
13447
                                   $maindir/lib64/ssl \
 
13448
                                   $maindir/ssl/lib64 \
 
13449
                                   $maindir/lib/${build} \
 
13450
                                   $maindir/lib/${build_alias}; do
 
13451
                            checkssllibdirdynamic $dir && break 2
 
13452
                        done
 
13453
                    done
 
13454
                fi
 
13455
 
 
13456
 
 
13457
fi
 
13458
 
 
13459
        if test -z "$ssllibdir"; then
 
13460
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
 
13461
$as_echo "Not found" >&6; }
 
13462
            echo
 
13463
            echo "Couldn't find your SSL library files."
 
13464
            echo "Use --with-ssl-lib-dir option to fix this problem or disable the"
 
13465
            echo "SSL support with --without-ssl"
 
13466
            echo
 
13467
            exit 1
 
13468
        fi
 
13469
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssllibdir" >&5
 
13470
$as_echo "$ssllibdir" >&6; }
 
13471
 
 
13472
 
 
13473
$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
 
13474
 
 
13475
 
 
13476
 
 
13477
    fi
 
13478
 
 
13479
    # Add SSL includes and libraries
 
13480
    if test "$sslincldir" -a "$ssllibdir"
 
13481
    then
 
13482
        if test "x$ARCH" = "xDARWIN"; then
 
13483
         # Darwin already knows about ssldirs
 
13484
         LIBS="$LIBS -lssl -lcrypto"
 
13485
        elif test -f "/usr/kerberos/include/krb5.h"; then
 
13486
         # Redhat 9 compilation fix:
 
13487
         CFLAGS="$CFLAGS -I$sslincldir -I/usr/kerberos/include"
 
13488
         LIBS="$LIBS -L$ssllibdir -lssl -lcrypto"
 
13489
        else
 
13490
         CFLAGS="$CFLAGS -I$sslincldir"
 
13491
         LIBS="$LIBS -L$ssllibdir -lssl -lcrypto"
 
13492
        fi
 
13493
    fi
 
13494
fi
 
13495
 
 
13496
# ------------------------------------------------------------------------
 
13497
# Outputs
 
13498
# ------------------------------------------------------------------------
 
13499
 
 
13500
 
 
13501
 
 
13502
ac_config_headers="$ac_config_headers src/config.h"
 
13503
 
 
13504
ac_config_files="$ac_config_files Makefile"
 
13505
 
 
13506
ac_config_files="$ac_config_files contrib/monit.upstart"
 
13507
 
 
13508
ac_config_files="$ac_config_files contrib/monit.service"
 
13509
 
 
13510
 
 
13511
cat >confcache <<\_ACEOF
 
13512
# This file is a shell script that caches the results of configure
 
13513
# tests run on this system so they can be shared between configure
 
13514
# scripts and configure runs, see configure's option --config-cache.
 
13515
# It is not useful on other systems.  If it contains results you don't
 
13516
# want to keep, you may remove or edit it.
 
13517
#
 
13518
# config.status only pays attention to the cache file if you give it
 
13519
# the --recheck option to rerun configure.
 
13520
#
 
13521
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13522
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13523
# following values.
 
13524
 
 
13525
_ACEOF
 
13526
 
 
13527
# The following way of writing the cache mishandles newlines in values,
 
13528
# but we know of no workaround that is simple, portable, and efficient.
 
13529
# So, we kill variables containing newlines.
 
13530
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13531
# and sets the high bit in the cache file unless we assign to the vars.
 
13532
(
 
13533
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13534
    eval ac_val=\$$ac_var
 
13535
    case $ac_val in #(
 
13536
    *${as_nl}*)
 
13537
      case $ac_var in #(
 
13538
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13539
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13540
      esac
 
13541
      case $ac_var in #(
 
13542
      _ | IFS | as_nl) ;; #(
 
13543
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13544
      *) { eval $ac_var=; unset $ac_var;} ;;
 
13545
      esac ;;
 
13546
    esac
 
13547
  done
 
13548
 
 
13549
  (set) 2>&1 |
 
13550
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13551
    *${as_nl}ac_space=\ *)
 
13552
      # `set' does not quote correctly, so add quotes: double-quote
 
13553
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
13554
      sed -n \
 
13555
        "s/'/'\\\\''/g;
 
13556
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13557
      ;; #(
 
13558
    *)
 
13559
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13560
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13561
      ;;
 
13562
    esac |
 
13563
    sort
 
13564
) |
 
13565
  sed '
 
13566
     /^ac_cv_env_/b end
 
13567
     t clear
 
13568
     :clear
 
13569
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13570
     t end
 
13571
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13572
     :end' >>confcache
 
13573
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13574
  if test -w "$cache_file"; then
 
13575
    test "x$cache_file" != "x/dev/null" &&
 
13576
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13577
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13578
    cat confcache >$cache_file
 
13579
  else
 
13580
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13581
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13582
  fi
 
13583
fi
 
13584
rm -f confcache
 
13585
 
 
13586
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13587
# Let make expand exec_prefix.
 
13588
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13589
 
 
13590
DEFS=-DHAVE_CONFIG_H
 
13591
 
 
13592
ac_libobjs=
 
13593
ac_ltlibobjs=
 
13594
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13595
  # 1. Remove the extension, and $U if already installed.
 
13596
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13597
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13598
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13599
  #    will be set to the directory where LIBOBJS objects are built.
 
13600
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13601
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13602
done
 
13603
LIBOBJS=$ac_libobjs
 
13604
 
 
13605
LTLIBOBJS=$ac_ltlibobjs
 
13606
 
 
13607
 
 
13608
 if test -n "$EXEEXT"; then
 
13609
  am__EXEEXT_TRUE=
 
13610
  am__EXEEXT_FALSE='#'
 
13611
else
 
13612
  am__EXEEXT_TRUE='#'
 
13613
  am__EXEEXT_FALSE=
 
13614
fi
 
13615
 
 
13616
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13617
  as_fn_error "conditional \"AMDEP\" was never defined.
 
13618
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13619
fi
 
13620
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13621
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
13622
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13623
fi
 
13624
 
 
13625
 
 
13626
: ${CONFIG_STATUS=./config.status}
 
13627
ac_write_fail=0
 
13628
ac_clean_files_save=$ac_clean_files
 
13629
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13630
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13631
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13632
as_write_fail=0
 
13633
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13634
#! $SHELL
 
13635
# Generated by $as_me.
 
13636
# Run this file to recreate the current configuration.
 
13637
# Compiler output produced by configure, useful for debugging
 
13638
# configure, is in config.log if it exists.
 
13639
 
 
13640
debug=false
 
13641
ac_cs_recheck=false
 
13642
ac_cs_silent=false
 
13643
 
 
13644
SHELL=\${CONFIG_SHELL-$SHELL}
 
13645
export SHELL
 
13646
_ASEOF
 
13647
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13648
## -------------------- ##
 
13649
## M4sh Initialization. ##
 
13650
## -------------------- ##
 
13651
 
 
13652
# Be more Bourne compatible
 
13653
DUALCASE=1; export DUALCASE # for MKS sh
 
13654
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13655
  emulate sh
 
13656
  NULLCMD=:
 
13657
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13658
  # is contrary to our usage.  Disable this feature.
 
13659
  alias -g '${1+"$@"}'='"$@"'
 
13660
  setopt NO_GLOB_SUBST
 
13661
else
 
13662
  case `(set -o) 2>/dev/null` in #(
 
13663
  *posix*) :
 
13664
    set -o posix ;; #(
 
13665
  *) :
 
13666
     ;;
 
13667
esac
 
13668
fi
 
13669
 
 
13670
 
 
13671
as_nl='
 
13672
'
 
13673
export as_nl
 
13674
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13675
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13676
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13677
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13678
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13679
# but without wasting forks for bash or zsh.
 
13680
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13681
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13682
  as_echo='print -r --'
 
13683
  as_echo_n='print -rn --'
 
13684
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13685
  as_echo='printf %s\n'
 
13686
  as_echo_n='printf %s'
 
13687
else
 
13688
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13689
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13690
    as_echo_n='/usr/ucb/echo -n'
 
13691
  else
 
13692
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13693
    as_echo_n_body='eval
 
13694
      arg=$1;
 
13695
      case $arg in #(
 
13696
      *"$as_nl"*)
 
13697
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13698
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13699
      esac;
 
13700
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13701
    '
 
13702
    export as_echo_n_body
 
13703
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13704
  fi
 
13705
  export as_echo_body
 
13706
  as_echo='sh -c $as_echo_body as_echo'
 
13707
fi
 
13708
 
 
13709
# The user is always right.
 
13710
if test "${PATH_SEPARATOR+set}" != set; then
 
13711
  PATH_SEPARATOR=:
 
13712
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13713
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13714
      PATH_SEPARATOR=';'
 
13715
  }
 
13716
fi
 
13717
 
 
13718
 
 
13719
# IFS
 
13720
# We need space, tab and new line, in precisely that order.  Quoting is
 
13721
# there to prevent editors from complaining about space-tab.
 
13722
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13723
# splitting by setting IFS to empty value.)
 
13724
IFS=" ""        $as_nl"
 
13725
 
 
13726
# Find who we are.  Look in the path if we contain no directory separator.
 
13727
case $0 in #((
 
13728
  *[\\/]* ) as_myself=$0 ;;
 
13729
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13730
for as_dir in $PATH
 
13731
do
 
13732
  IFS=$as_save_IFS
 
13733
  test -z "$as_dir" && as_dir=.
 
13734
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13735
  done
 
13736
IFS=$as_save_IFS
 
13737
 
 
13738
     ;;
 
13739
esac
 
13740
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13741
# in which case we are not to be found in the path.
 
13742
if test "x$as_myself" = x; then
 
13743
  as_myself=$0
 
13744
fi
 
13745
if test ! -f "$as_myself"; then
 
13746
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13747
  exit 1
 
13748
fi
 
13749
 
 
13750
# Unset variables that we do not need and which cause bugs (e.g. in
 
13751
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13752
# suppresses any "Segmentation fault" message there.  '((' could
 
13753
# trigger a bug in pdksh 5.2.14.
 
13754
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13755
do eval test x\${$as_var+set} = xset \
 
13756
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13757
done
 
13758
PS1='$ '
 
13759
PS2='> '
 
13760
PS4='+ '
 
13761
 
 
13762
# NLS nuisances.
 
13763
LC_ALL=C
 
13764
export LC_ALL
 
13765
LANGUAGE=C
 
13766
export LANGUAGE
 
13767
 
 
13768
# CDPATH.
 
13769
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13770
 
 
13771
 
 
13772
# as_fn_error ERROR [LINENO LOG_FD]
 
13773
# ---------------------------------
 
13774
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13775
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13776
# script with status $?, using 1 if that was 0.
 
13777
as_fn_error ()
 
13778
{
 
13779
  as_status=$?; test $as_status -eq 0 && as_status=1
 
13780
  if test "$3"; then
 
13781
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13782
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
13783
  fi
 
13784
  $as_echo "$as_me: error: $1" >&2
 
13785
  as_fn_exit $as_status
 
13786
} # as_fn_error
 
13787
 
 
13788
 
 
13789
# as_fn_set_status STATUS
 
13790
# -----------------------
 
13791
# Set $? to STATUS, without forking.
 
13792
as_fn_set_status ()
 
13793
{
 
13794
  return $1
 
13795
} # as_fn_set_status
 
13796
 
 
13797
# as_fn_exit STATUS
 
13798
# -----------------
 
13799
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13800
as_fn_exit ()
 
13801
{
 
13802
  set +e
 
13803
  as_fn_set_status $1
 
13804
  exit $1
 
13805
} # as_fn_exit
 
13806
 
 
13807
# as_fn_unset VAR
 
13808
# ---------------
 
13809
# Portably unset VAR.
 
13810
as_fn_unset ()
 
13811
{
 
13812
  { eval $1=; unset $1;}
 
13813
}
 
13814
as_unset=as_fn_unset
 
13815
# as_fn_append VAR VALUE
 
13816
# ----------------------
 
13817
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13818
# advantage of any shell optimizations that allow amortized linear growth over
 
13819
# repeated appends, instead of the typical quadratic growth present in naive
 
13820
# implementations.
 
13821
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13822
  eval 'as_fn_append ()
 
13823
  {
 
13824
    eval $1+=\$2
 
13825
  }'
 
13826
else
 
13827
  as_fn_append ()
 
13828
  {
 
13829
    eval $1=\$$1\$2
 
13830
  }
 
13831
fi # as_fn_append
 
13832
 
 
13833
# as_fn_arith ARG...
 
13834
# ------------------
 
13835
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
13836
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
13837
# must be portable across $(()) and expr.
 
13838
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13839
  eval 'as_fn_arith ()
 
13840
  {
 
13841
    as_val=$(( $* ))
 
13842
  }'
 
13843
else
 
13844
  as_fn_arith ()
 
13845
  {
 
13846
    as_val=`expr "$@" || test $? -eq 1`
 
13847
  }
 
13848
fi # as_fn_arith
 
13849
 
 
13850
 
 
13851
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13852
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13853
  as_expr=expr
 
13854
else
 
13855
  as_expr=false
 
13856
fi
 
13857
 
 
13858
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13859
  as_basename=basename
 
13860
else
 
13861
  as_basename=false
 
13862
fi
 
13863
 
 
13864
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13865
  as_dirname=dirname
 
13866
else
 
13867
  as_dirname=false
 
13868
fi
 
13869
 
 
13870
as_me=`$as_basename -- "$0" ||
 
13871
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13872
         X"$0" : 'X\(//\)$' \| \
 
13873
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13874
$as_echo X/"$0" |
 
13875
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13876
            s//\1/
 
13877
            q
 
13878
          }
 
13879
          /^X\/\(\/\/\)$/{
 
13880
            s//\1/
 
13881
            q
 
13882
          }
 
13883
          /^X\/\(\/\).*/{
 
13884
            s//\1/
 
13885
            q
 
13886
          }
 
13887
          s/.*/./; q'`
 
13888
 
 
13889
# Avoid depending upon Character Ranges.
 
13890
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13891
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13892
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13893
as_cr_digits='0123456789'
 
13894
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13895
 
 
13896
ECHO_C= ECHO_N= ECHO_T=
 
13897
case `echo -n x` in #(((((
 
13898
-n*)
 
13899
  case `echo 'xy\c'` in
 
13900
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13901
  xy)  ECHO_C='\c';;
 
13902
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13903
       ECHO_T=' ';;
 
13904
  esac;;
 
13905
*)
 
13906
  ECHO_N='-n';;
 
13907
esac
 
13908
 
 
13909
rm -f conf$$ conf$$.exe conf$$.file
 
13910
if test -d conf$$.dir; then
 
13911
  rm -f conf$$.dir/conf$$.file
 
13912
else
 
13913
  rm -f conf$$.dir
 
13914
  mkdir conf$$.dir 2>/dev/null
 
13915
fi
 
13916
if (echo >conf$$.file) 2>/dev/null; then
 
13917
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13918
    as_ln_s='ln -s'
 
13919
    # ... but there are two gotchas:
 
13920
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13921
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13922
    # In both cases, we have to default to `cp -p'.
 
13923
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13924
      as_ln_s='cp -p'
 
13925
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13926
    as_ln_s=ln
 
13927
  else
 
13928
    as_ln_s='cp -p'
 
13929
  fi
 
13930
else
 
13931
  as_ln_s='cp -p'
 
13932
fi
 
13933
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13934
rmdir conf$$.dir 2>/dev/null
 
13935
 
 
13936
 
 
13937
# as_fn_mkdir_p
 
13938
# -------------
 
13939
# Create "$as_dir" as a directory, including parents if necessary.
 
13940
as_fn_mkdir_p ()
 
13941
{
 
13942
 
 
13943
  case $as_dir in #(
 
13944
  -*) as_dir=./$as_dir;;
 
13945
  esac
 
13946
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13947
    as_dirs=
 
13948
    while :; do
 
13949
      case $as_dir in #(
 
13950
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13951
      *) as_qdir=$as_dir;;
 
13952
      esac
 
13953
      as_dirs="'$as_qdir' $as_dirs"
 
13954
      as_dir=`$as_dirname -- "$as_dir" ||
 
13955
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13956
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13957
         X"$as_dir" : 'X\(//\)$' \| \
 
13958
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13959
$as_echo X"$as_dir" |
 
13960
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13961
            s//\1/
 
13962
            q
 
13963
          }
 
13964
          /^X\(\/\/\)[^/].*/{
 
13965
            s//\1/
 
13966
            q
 
13967
          }
 
13968
          /^X\(\/\/\)$/{
 
13969
            s//\1/
 
13970
            q
 
13971
          }
 
13972
          /^X\(\/\).*/{
 
13973
            s//\1/
 
13974
            q
 
13975
          }
 
13976
          s/.*/./; q'`
 
13977
      test -d "$as_dir" && break
 
13978
    done
 
13979
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13980
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
13981
 
 
13982
 
 
13983
} # as_fn_mkdir_p
 
13984
if mkdir -p . 2>/dev/null; then
 
13985
  as_mkdir_p='mkdir -p "$as_dir"'
 
13986
else
 
13987
  test -d ./-p && rmdir ./-p
 
13988
  as_mkdir_p=false
 
13989
fi
 
13990
 
 
13991
if test -x / >/dev/null 2>&1; then
 
13992
  as_test_x='test -x'
 
13993
else
 
13994
  if ls -dL / >/dev/null 2>&1; then
 
13995
    as_ls_L_option=L
 
13996
  else
 
13997
    as_ls_L_option=
 
13998
  fi
 
13999
  as_test_x='
 
14000
    eval sh -c '\''
 
14001
      if test -d "$1"; then
 
14002
        test -d "$1/.";
 
14003
      else
 
14004
        case $1 in #(
 
14005
        -*)set "./$1";;
 
14006
        esac;
 
14007
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
14008
        ???[sx]*):;;*)false;;esac;fi
 
14009
    '\'' sh
 
14010
  '
 
14011
fi
 
14012
as_executable_p=$as_test_x
 
14013
 
 
14014
# Sed expression to map a string onto a valid CPP name.
 
14015
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14016
 
 
14017
# Sed expression to map a string onto a valid variable name.
 
14018
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14019
 
 
14020
 
 
14021
exec 6>&1
 
14022
## ----------------------------------- ##
 
14023
## Main body of $CONFIG_STATUS script. ##
 
14024
## ----------------------------------- ##
 
14025
_ASEOF
 
14026
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
14027
 
 
14028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14029
# Save the log message, to keep $0 and so on meaningful, and to
 
14030
# report actual input values of CONFIG_FILES etc. instead of their
 
14031
# values after options handling.
 
14032
ac_log="
 
14033
This file was extended by monit $as_me 5.5, which was
 
14034
generated by GNU Autoconf 2.65.  Invocation command line was
 
14035
 
 
14036
  CONFIG_FILES    = $CONFIG_FILES
 
14037
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14038
  CONFIG_LINKS    = $CONFIG_LINKS
 
14039
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14040
  $ $0 $@
 
14041
 
 
14042
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14043
"
 
14044
 
 
14045
_ACEOF
 
14046
 
 
14047
case $ac_config_files in *"
 
14048
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14049
esac
 
14050
 
 
14051
case $ac_config_headers in *"
 
14052
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14053
esac
 
14054
 
 
14055
 
 
14056
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14057
# Files that config.status was made for.
 
14058
config_files="$ac_config_files"
 
14059
config_headers="$ac_config_headers"
 
14060
config_commands="$ac_config_commands"
 
14061
 
 
14062
_ACEOF
 
14063
 
 
14064
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14065
ac_cs_usage="\
 
14066
\`$as_me' instantiates files and other configuration actions
 
14067
from templates according to the current configuration.  Unless the files
 
14068
and actions are specified as TAGs, all are instantiated by default.
 
14069
 
 
14070
Usage: $0 [OPTION]... [TAG]...
 
14071
 
 
14072
  -h, --help       print this help, then exit
 
14073
  -V, --version    print version number and configuration settings, then exit
 
14074
      --config     print configuration, then exit
 
14075
  -q, --quiet, --silent
 
14076
                   do not print progress messages
 
14077
  -d, --debug      don't remove temporary files
 
14078
      --recheck    update $as_me by reconfiguring in the same conditions
 
14079
      --file=FILE[:TEMPLATE]
 
14080
                   instantiate the configuration file FILE
 
14081
      --header=FILE[:TEMPLATE]
 
14082
                   instantiate the configuration header FILE
 
14083
 
 
14084
Configuration files:
 
14085
$config_files
 
14086
 
 
14087
Configuration headers:
 
14088
$config_headers
 
14089
 
 
14090
Configuration commands:
 
14091
$config_commands
 
14092
 
 
14093
Report bugs to <monit-general@nongnu.org>."
 
14094
 
 
14095
_ACEOF
 
14096
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14097
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
14098
ac_cs_version="\\
 
14099
monit config.status 5.5
 
14100
configured by $0, generated by GNU Autoconf 2.65,
 
14101
  with options \\"\$ac_cs_config\\"
 
14102
 
 
14103
Copyright (C) 2009 Free Software Foundation, Inc.
 
14104
This config.status script is free software; the Free Software Foundation
 
14105
gives unlimited permission to copy, distribute and modify it."
 
14106
 
 
14107
ac_pwd='$ac_pwd'
 
14108
srcdir='$srcdir'
 
14109
INSTALL='$INSTALL'
 
14110
MKDIR_P='$MKDIR_P'
 
14111
AWK='$AWK'
 
14112
test -n "\$AWK" || AWK=awk
 
14113
_ACEOF
 
14114
 
 
14115
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14116
# The default lists apply if the user does not specify any file.
 
14117
ac_need_defaults=:
 
14118
while test $# != 0
 
14119
do
 
14120
  case $1 in
 
14121
  --*=*)
 
14122
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14123
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
14124
    ac_shift=:
 
14125
    ;;
 
14126
  *)
 
14127
    ac_option=$1
 
14128
    ac_optarg=$2
 
14129
    ac_shift=shift
 
14130
    ;;
 
14131
  esac
 
14132
 
 
14133
  case $ac_option in
 
14134
  # Handling of the options.
 
14135
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14136
    ac_cs_recheck=: ;;
 
14137
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14138
    $as_echo "$ac_cs_version"; exit ;;
 
14139
  --config | --confi | --conf | --con | --co | --c )
 
14140
    $as_echo "$ac_cs_config"; exit ;;
 
14141
  --debug | --debu | --deb | --de | --d | -d )
 
14142
    debug=: ;;
 
14143
  --file | --fil | --fi | --f )
 
14144
    $ac_shift
 
14145
    case $ac_optarg in
 
14146
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14147
    esac
 
14148
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
14149
    ac_need_defaults=false;;
 
14150
  --header | --heade | --head | --hea )
 
14151
    $ac_shift
 
14152
    case $ac_optarg in
 
14153
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14154
    esac
 
14155
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
14156
    ac_need_defaults=false;;
 
14157
  --he | --h)
 
14158
    # Conflict between --help and --header
 
14159
    as_fn_error "ambiguous option: \`$1'
 
14160
Try \`$0 --help' for more information.";;
 
14161
  --help | --hel | -h )
 
14162
    $as_echo "$ac_cs_usage"; exit ;;
 
14163
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14164
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14165
    ac_cs_silent=: ;;
 
14166
 
 
14167
  # This is an error.
 
14168
  -*) as_fn_error "unrecognized option: \`$1'
 
14169
Try \`$0 --help' for more information." ;;
 
14170
 
 
14171
  *) as_fn_append ac_config_targets " $1"
 
14172
     ac_need_defaults=false ;;
 
14173
 
 
14174
  esac
 
14175
  shift
 
14176
done
 
14177
 
 
14178
ac_configure_extra_args=
 
14179
 
 
14180
if $ac_cs_silent; then
 
14181
  exec 6>/dev/null
 
14182
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14183
fi
 
14184
 
 
14185
_ACEOF
 
14186
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14187
if \$ac_cs_recheck; then
 
14188
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14189
  shift
 
14190
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14191
  CONFIG_SHELL='$SHELL'
 
14192
  export CONFIG_SHELL
 
14193
  exec "\$@"
 
14194
fi
 
14195
 
 
14196
_ACEOF
 
14197
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14198
exec 5>>config.log
 
14199
{
 
14200
  echo
 
14201
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14202
## Running $as_me. ##
 
14203
_ASBOX
 
14204
  $as_echo "$ac_log"
 
14205
} >&5
 
14206
 
 
14207
_ACEOF
 
14208
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14209
#
 
14210
# INIT-COMMANDS
 
14211
#
 
14212
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14213
 
 
14214
 
 
14215
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14216
# if CDPATH is set.
 
14217
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14218
 
 
14219
sed_quote_subst='$sed_quote_subst'
 
14220
double_quote_subst='$double_quote_subst'
 
14221
delay_variable_subst='$delay_variable_subst'
 
14222
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14223
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14224
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
14225
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
14226
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
14227
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
14228
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14229
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
14230
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14231
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14232
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
14233
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14234
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
14235
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
14236
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14237
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14238
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14239
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
14240
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
14241
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
14242
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
14243
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
14244
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
14245
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
14246
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
14247
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
14248
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14249
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14250
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
14251
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
14252
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
14253
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
14254
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14255
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
14256
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
14257
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14258
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14259
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14260
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
14261
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14262
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
14263
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
14264
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
14265
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
14266
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
14267
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14268
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
14269
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
14270
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
14271
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
14272
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14273
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
14274
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
14275
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14276
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
14277
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
14278
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
14279
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
14280
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
14281
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
14282
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
14283
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
14284
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14285
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14286
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
14287
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
14288
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14289
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14290
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
14291
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14292
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14293
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14294
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14295
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14296
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14297
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14298
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14299
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14300
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14301
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14302
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
14303
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
14304
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
14305
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
14306
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14307
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
14308
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14309
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
14310
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
14311
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
14312
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14313
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14314
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14315
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14316
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14317
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
14318
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14319
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14320
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
14321
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14322
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14323
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14324
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14325
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14326
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14327
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14328
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14329
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14330
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
14331
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
14332
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14333
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14334
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
14335
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
14336
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
14337
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14338
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14339
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14340
 
 
14341
LTCC='$LTCC'
 
14342
LTCFLAGS='$LTCFLAGS'
 
14343
compiler='$compiler_DEFAULT'
 
14344
 
 
14345
# Quote evaled strings.
 
14346
for var in SED \
 
14347
GREP \
 
14348
EGREP \
 
14349
FGREP \
 
14350
LD \
 
14351
NM \
 
14352
LN_S \
 
14353
lt_SP2NL \
 
14354
lt_NL2SP \
 
14355
reload_flag \
 
14356
OBJDUMP \
 
14357
deplibs_check_method \
 
14358
file_magic_cmd \
 
14359
AR \
 
14360
AR_FLAGS \
 
14361
STRIP \
 
14362
RANLIB \
 
14363
CC \
 
14364
CFLAGS \
 
14365
compiler \
 
14366
lt_cv_sys_global_symbol_pipe \
 
14367
lt_cv_sys_global_symbol_to_cdecl \
 
14368
lt_cv_sys_global_symbol_to_c_name_address \
 
14369
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14370
SHELL \
 
14371
ECHO \
 
14372
lt_prog_compiler_no_builtin_flag \
 
14373
lt_prog_compiler_wl \
 
14374
lt_prog_compiler_pic \
 
14375
lt_prog_compiler_static \
 
14376
lt_cv_prog_compiler_c_o \
 
14377
need_locks \
 
14378
DSYMUTIL \
 
14379
NMEDIT \
 
14380
LIPO \
 
14381
OTOOL \
 
14382
OTOOL64 \
 
14383
shrext_cmds \
 
14384
export_dynamic_flag_spec \
 
14385
whole_archive_flag_spec \
 
14386
compiler_needs_object \
 
14387
with_gnu_ld \
 
14388
allow_undefined_flag \
 
14389
no_undefined_flag \
 
14390
hardcode_libdir_flag_spec \
 
14391
hardcode_libdir_flag_spec_ld \
 
14392
hardcode_libdir_separator \
 
14393
fix_srcfile_path \
 
14394
exclude_expsyms \
 
14395
include_expsyms \
 
14396
file_list_spec \
 
14397
variables_saved_for_relink \
 
14398
libname_spec \
 
14399
library_names_spec \
 
14400
soname_spec \
 
14401
finish_eval \
 
14402
old_striplib \
 
14403
striplib; do
 
14404
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14405
    *[\\\\\\\`\\"\\\$]*)
 
14406
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14407
      ;;
 
14408
    *)
 
14409
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14410
      ;;
 
14411
    esac
 
14412
done
 
14413
 
 
14414
# Double-quote double-evaled strings.
 
14415
for var in reload_cmds \
 
14416
old_postinstall_cmds \
 
14417
old_postuninstall_cmds \
 
14418
old_archive_cmds \
 
14419
extract_expsyms_cmds \
 
14420
old_archive_from_new_cmds \
 
14421
old_archive_from_expsyms_cmds \
 
14422
archive_cmds \
 
14423
archive_expsym_cmds \
 
14424
module_cmds \
 
14425
module_expsym_cmds \
 
14426
export_symbols_cmds \
 
14427
prelink_cmds \
 
14428
postinstall_cmds \
 
14429
postuninstall_cmds \
 
14430
finish_cmds \
 
14431
sys_lib_search_path_spec \
 
14432
sys_lib_dlsearch_path_spec; do
 
14433
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14434
    *[\\\\\\\`\\"\\\$]*)
 
14435
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14436
      ;;
 
14437
    *)
 
14438
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14439
      ;;
 
14440
    esac
 
14441
done
 
14442
 
 
14443
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
14444
case \$lt_ECHO in
 
14445
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
14446
  ;;
 
14447
esac
 
14448
 
 
14449
ac_aux_dir='$ac_aux_dir'
 
14450
xsi_shell='$xsi_shell'
 
14451
lt_shell_append='$lt_shell_append'
 
14452
 
 
14453
# See if we are running on zsh, and set the options which allow our
 
14454
# commands through without removal of \ escapes INIT.
 
14455
if test -n "\${ZSH_VERSION+set}" ; then
 
14456
   setopt NO_GLOB_SUBST
 
14457
fi
 
14458
 
 
14459
 
 
14460
    PACKAGE='$PACKAGE'
 
14461
    VERSION='$VERSION'
 
14462
    TIMESTAMP='$TIMESTAMP'
 
14463
    RM='$RM'
 
14464
    ofile='$ofile'
 
14465
 
 
14466
 
 
14467
 
 
14468
 
 
14469
_ACEOF
 
14470
 
 
14471
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14472
 
 
14473
# Handling of arguments.
 
14474
for ac_config_target in $ac_config_targets
 
14475
do
 
14476
  case $ac_config_target in
 
14477
    "libtool_patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_patch" ;;
 
14478
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14479
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
14480
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
14481
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14482
    "contrib/monit.upstart") CONFIG_FILES="$CONFIG_FILES contrib/monit.upstart" ;;
 
14483
    "contrib/monit.service") CONFIG_FILES="$CONFIG_FILES contrib/monit.service" ;;
 
14484
 
 
14485
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
14486
  esac
 
14487
done
 
14488
 
 
14489
 
 
14490
# If the user did not use the arguments to specify the items to instantiate,
 
14491
# then the envvar interface is used.  Set only those that are not.
 
14492
# We use the long form for the default assignment because of an extremely
 
14493
# bizarre bug on SunOS 4.1.3.
 
14494
if $ac_need_defaults; then
 
14495
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14496
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
14497
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14498
fi
 
14499
 
 
14500
# Have a temporary directory for convenience.  Make it in the build tree
 
14501
# simply because there is no reason against having it here, and in addition,
 
14502
# creating and moving files from /tmp can sometimes cause problems.
 
14503
# Hook for its removal unless debugging.
 
14504
# Note that there is a small window in which the directory will not be cleaned:
 
14505
# after its creation but before its name has been assigned to `$tmp'.
 
14506
$debug ||
 
14507
{
 
14508
  tmp=
 
14509
  trap 'exit_status=$?
 
14510
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
14511
' 0
 
14512
  trap 'as_fn_exit 1' 1 2 13 15
 
14513
}
 
14514
# Create a (secure) tmp directory for tmp files.
 
14515
 
 
14516
{
 
14517
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14518
  test -n "$tmp" && test -d "$tmp"
 
14519
}  ||
 
14520
{
 
14521
  tmp=./conf$$-$RANDOM
 
14522
  (umask 077 && mkdir "$tmp")
 
14523
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
14524
 
 
14525
# Set up the scripts for CONFIG_FILES section.
 
14526
# No need to generate them if there are no CONFIG_FILES.
 
14527
# This happens for instance with `./config.status config.h'.
 
14528
if test -n "$CONFIG_FILES"; then
 
14529
 
 
14530
 
 
14531
ac_cr=`echo X | tr X '\015'`
 
14532
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14533
# But we know of no other shell where ac_cr would be empty at this
 
14534
# point, so we can use a bashism as a fallback.
 
14535
if test "x$ac_cr" = x; then
 
14536
  eval ac_cr=\$\'\\r\'
 
14537
fi
 
14538
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14539
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14540
  ac_cs_awk_cr='\r'
 
14541
else
 
14542
  ac_cs_awk_cr=$ac_cr
 
14543
fi
 
14544
 
 
14545
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
14546
_ACEOF
 
14547
 
 
14548
 
 
14549
{
 
14550
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14551
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14552
  echo "_ACEOF"
 
14553
} >conf$$subs.sh ||
 
14554
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
14555
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
14556
ac_delim='%!_!# '
 
14557
for ac_last_try in false false false false false :; do
 
14558
  . ./conf$$subs.sh ||
 
14559
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
14560
 
 
14561
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14562
  if test $ac_delim_n = $ac_delim_num; then
 
14563
    break
 
14564
  elif $ac_last_try; then
 
14565
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
14566
  else
 
14567
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14568
  fi
 
14569
done
 
14570
rm -f conf$$subs.sh
 
14571
 
 
14572
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14573
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
14574
_ACEOF
 
14575
sed -n '
 
14576
h
 
14577
s/^/S["/; s/!.*/"]=/
 
14578
p
 
14579
g
 
14580
s/^[^!]*!//
 
14581
:repl
 
14582
t repl
 
14583
s/'"$ac_delim"'$//
 
14584
t delim
 
14585
:nl
 
14586
h
 
14587
s/\(.\{148\}\)..*/\1/
 
14588
t more1
 
14589
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14590
p
 
14591
n
 
14592
b repl
 
14593
:more1
 
14594
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14595
p
 
14596
g
 
14597
s/.\{148\}//
 
14598
t nl
 
14599
:delim
 
14600
h
 
14601
s/\(.\{148\}\)..*/\1/
 
14602
t more2
 
14603
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14604
p
 
14605
b
 
14606
:more2
 
14607
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14608
p
 
14609
g
 
14610
s/.\{148\}//
 
14611
t delim
 
14612
' <conf$$subs.awk | sed '
 
14613
/^[^""]/{
 
14614
  N
 
14615
  s/\n//
 
14616
}
 
14617
' >>$CONFIG_STATUS || ac_write_fail=1
 
14618
rm -f conf$$subs.awk
 
14619
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14620
_ACAWK
 
14621
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
14622
  for (key in S) S_is_set[key] = 1
 
14623
  FS = ""
 
14624
 
 
14625
}
 
14626
{
 
14627
  line = $ 0
 
14628
  nfields = split(line, field, "@")
 
14629
  substed = 0
 
14630
  len = length(field[1])
 
14631
  for (i = 2; i < nfields; i++) {
 
14632
    key = field[i]
 
14633
    keylen = length(key)
 
14634
    if (S_is_set[key]) {
 
14635
      value = S[key]
 
14636
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14637
      len += length(value) + length(field[++i])
 
14638
      substed = 1
 
14639
    } else
 
14640
      len += 1 + keylen
 
14641
  }
 
14642
 
 
14643
  print line
 
14644
}
 
14645
 
 
14646
_ACAWK
 
14647
_ACEOF
 
14648
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14649
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14650
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14651
else
 
14652
  cat
 
14653
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
14654
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
14655
_ACEOF
 
14656
 
 
14657
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
14658
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
14659
# trailing colons and then remove the whole line if VPATH becomes empty
 
14660
# (actually we leave an empty line to preserve line numbers).
 
14661
if test "x$srcdir" = x.; then
 
14662
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
14663
s/:*\$(srcdir):*/:/
 
14664
s/:*\${srcdir}:*/:/
 
14665
s/:*@srcdir@:*/:/
 
14666
s/^\([^=]*=[     ]*\):*/\1/
 
14667
s/:*$//
 
14668
s/^[^=]*=[       ]*$//
 
14669
}'
 
14670
fi
 
14671
 
 
14672
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14673
fi # test -n "$CONFIG_FILES"
 
14674
 
 
14675
# Set up the scripts for CONFIG_HEADERS section.
 
14676
# No need to generate them if there are no CONFIG_HEADERS.
 
14677
# This happens for instance with `./config.status Makefile'.
 
14678
if test -n "$CONFIG_HEADERS"; then
 
14679
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
14680
BEGIN {
 
14681
_ACEOF
 
14682
 
 
14683
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14684
# here-document in config.status, that substitutes the proper values into
 
14685
# config.h.in to produce config.h.
 
14686
 
 
14687
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14688
# handling of long lines.
 
14689
ac_delim='%!_!# '
 
14690
for ac_last_try in false false :; do
 
14691
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
14692
  if test -z "$ac_t"; then
 
14693
    break
 
14694
  elif $ac_last_try; then
 
14695
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14696
  else
 
14697
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14698
  fi
 
14699
done
 
14700
 
 
14701
# For the awk script, D is an array of macro values keyed by name,
 
14702
# likewise P contains macro parameters if any.  Preserve backslash
 
14703
# newline sequences.
 
14704
 
 
14705
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14706
sed -n '
 
14707
s/.\{148\}/&'"$ac_delim"'/g
 
14708
t rset
 
14709
:rset
 
14710
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14711
t def
 
14712
d
 
14713
:def
 
14714
s/\\$//
 
14715
t bsnl
 
14716
s/["\\]/\\&/g
 
14717
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14718
D["\1"]=" \3"/p
 
14719
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14720
d
 
14721
:bsnl
 
14722
s/["\\]/\\&/g
 
14723
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14724
D["\1"]=" \3\\\\\\n"\\/p
 
14725
t cont
 
14726
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14727
t cont
 
14728
d
 
14729
:cont
 
14730
n
 
14731
s/.\{148\}/&'"$ac_delim"'/g
 
14732
t clear
 
14733
:clear
 
14734
s/\\$//
 
14735
t bsnlc
 
14736
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14737
d
 
14738
:bsnlc
 
14739
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14740
b cont
 
14741
' <confdefs.h | sed '
 
14742
s/'"$ac_delim"'/"\\\
 
14743
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14744
 
 
14745
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14746
  for (key in D) D_is_set[key] = 1
 
14747
  FS = ""
 
14748
}
 
14749
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14750
  line = \$ 0
 
14751
  split(line, arg, " ")
 
14752
  if (arg[1] == "#") {
 
14753
    defundef = arg[2]
 
14754
    mac1 = arg[3]
 
14755
  } else {
 
14756
    defundef = substr(arg[1], 2)
 
14757
    mac1 = arg[2]
 
14758
  }
 
14759
  split(mac1, mac2, "(") #)
 
14760
  macro = mac2[1]
 
14761
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14762
  if (D_is_set[macro]) {
 
14763
    # Preserve the white space surrounding the "#".
 
14764
    print prefix "define", macro P[macro] D[macro]
 
14765
    next
 
14766
  } else {
 
14767
    # Replace #undef with comments.  This is necessary, for example,
 
14768
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14769
    # on some systems where configure will not decide to define it.
 
14770
    if (defundef == "undef") {
 
14771
      print "/*", prefix defundef, macro, "*/"
 
14772
      next
 
14773
    }
 
14774
  }
 
14775
}
 
14776
{ print }
 
14777
_ACAWK
 
14778
_ACEOF
 
14779
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14780
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
14781
fi # test -n "$CONFIG_HEADERS"
 
14782
 
 
14783
 
 
14784
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14785
shift
 
14786
for ac_tag
 
14787
do
 
14788
  case $ac_tag in
 
14789
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14790
  esac
 
14791
  case $ac_mode$ac_tag in
 
14792
  :[FHL]*:*);;
 
14793
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14794
  :[FH]-) ac_tag=-:-;;
 
14795
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14796
  esac
 
14797
  ac_save_IFS=$IFS
 
14798
  IFS=:
 
14799
  set x $ac_tag
 
14800
  IFS=$ac_save_IFS
 
14801
  shift
 
14802
  ac_file=$1
 
14803
  shift
 
14804
 
 
14805
  case $ac_mode in
 
14806
  :L) ac_source=$1;;
 
14807
  :[FH])
 
14808
    ac_file_inputs=
 
14809
    for ac_f
 
14810
    do
 
14811
      case $ac_f in
 
14812
      -) ac_f="$tmp/stdin";;
 
14813
      *) # Look for the file first in the build tree, then in the source tree
 
14814
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14815
         # because $ac_f cannot contain `:'.
 
14816
         test -f "$ac_f" ||
 
14817
           case $ac_f in
 
14818
           [\\/$]*) false;;
 
14819
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14820
           esac ||
 
14821
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14822
      esac
 
14823
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14824
      as_fn_append ac_file_inputs " '$ac_f'"
 
14825
    done
 
14826
 
 
14827
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14828
    # use $as_me), people would be surprised to read:
 
14829
    #    /* config.h.  Generated by config.status.  */
 
14830
    configure_input='Generated from '`
 
14831
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14832
        `' by configure.'
 
14833
    if test x"$ac_file" != x-; then
 
14834
      configure_input="$ac_file.  $configure_input"
 
14835
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14836
$as_echo "$as_me: creating $ac_file" >&6;}
 
14837
    fi
 
14838
    # Neutralize special characters interpreted by sed in replacement strings.
 
14839
    case $configure_input in #(
 
14840
    *\&* | *\|* | *\\* )
 
14841
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14842
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14843
    *) ac_sed_conf_input=$configure_input;;
 
14844
    esac
 
14845
 
 
14846
    case $ac_tag in
 
14847
    *:-:* | *:-) cat >"$tmp/stdin" \
 
14848
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
14849
    esac
 
14850
    ;;
 
14851
  esac
 
14852
 
 
14853
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14854
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14855
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14856
         X"$ac_file" : 'X\(//\)$' \| \
 
14857
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14858
$as_echo X"$ac_file" |
 
14859
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14860
            s//\1/
 
14861
            q
 
14862
          }
 
14863
          /^X\(\/\/\)[^/].*/{
 
14864
            s//\1/
 
14865
            q
 
14866
          }
 
14867
          /^X\(\/\/\)$/{
 
14868
            s//\1/
 
14869
            q
 
14870
          }
 
14871
          /^X\(\/\).*/{
 
14872
            s//\1/
 
14873
            q
 
14874
          }
 
14875
          s/.*/./; q'`
 
14876
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14877
  ac_builddir=.
 
14878
 
 
14879
case "$ac_dir" in
 
14880
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14881
*)
 
14882
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14883
  # A ".." for each directory in $ac_dir_suffix.
 
14884
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14885
  case $ac_top_builddir_sub in
 
14886
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14887
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14888
  esac ;;
 
14889
esac
 
14890
ac_abs_top_builddir=$ac_pwd
 
14891
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14892
# for backward compatibility:
 
14893
ac_top_builddir=$ac_top_build_prefix
 
14894
 
 
14895
case $srcdir in
 
14896
  .)  # We are building in place.
 
14897
    ac_srcdir=.
 
14898
    ac_top_srcdir=$ac_top_builddir_sub
 
14899
    ac_abs_top_srcdir=$ac_pwd ;;
 
14900
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14901
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14902
    ac_top_srcdir=$srcdir
 
14903
    ac_abs_top_srcdir=$srcdir ;;
 
14904
  *) # Relative name.
 
14905
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14906
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14907
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14908
esac
 
14909
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14910
 
 
14911
 
 
14912
  case $ac_mode in
 
14913
  :F)
 
14914
  #
 
14915
  # CONFIG_FILE
 
14916
  #
 
14917
 
 
14918
  case $INSTALL in
 
14919
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14920
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14921
  esac
 
14922
  ac_MKDIR_P=$MKDIR_P
 
14923
  case $MKDIR_P in
 
14924
  [\\/$]* | ?:[\\/]* ) ;;
 
14925
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14926
  esac
 
14927
_ACEOF
 
14928
 
 
14929
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14930
# If the template does not know about datarootdir, expand it.
 
14931
# FIXME: This hack should be removed a few years after 2.60.
 
14932
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14933
ac_sed_dataroot='
 
14934
/datarootdir/ {
 
14935
  p
 
14936
  q
 
14937
}
 
14938
/@datadir@/p
 
14939
/@docdir@/p
 
14940
/@infodir@/p
 
14941
/@localedir@/p
 
14942
/@mandir@/p'
 
14943
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14944
*datarootdir*) ac_datarootdir_seen=yes;;
 
14945
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14946
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14947
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14948
_ACEOF
 
14949
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14950
  ac_datarootdir_hack='
 
14951
  s&@datadir@&$datadir&g
 
14952
  s&@docdir@&$docdir&g
 
14953
  s&@infodir@&$infodir&g
 
14954
  s&@localedir@&$localedir&g
 
14955
  s&@mandir@&$mandir&g
 
14956
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
14957
esac
 
14958
_ACEOF
 
14959
 
 
14960
# Neutralize VPATH when `$srcdir' = `.'.
 
14961
# Shell code in configure.ac might set extrasub.
 
14962
# FIXME: do we really want to maintain this feature?
 
14963
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14964
ac_sed_extra="$ac_vpsub
 
14965
$extrasub
 
14966
_ACEOF
 
14967
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14968
:t
 
14969
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14970
s|@configure_input@|$ac_sed_conf_input|;t t
 
14971
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14972
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14973
s&@srcdir@&$ac_srcdir&;t t
 
14974
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14975
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14976
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14977
s&@builddir@&$ac_builddir&;t t
 
14978
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14979
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14980
s&@INSTALL@&$ac_INSTALL&;t t
 
14981
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14982
$ac_datarootdir_hack
 
14983
"
 
14984
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
14985
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
14986
 
 
14987
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14988
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
14989
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
14990
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14991
which seems to be undefined.  Please make sure it is defined." >&5
 
14992
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14993
which seems to be undefined.  Please make sure it is defined." >&2;}
 
14994
 
 
14995
  rm -f "$tmp/stdin"
 
14996
  case $ac_file in
 
14997
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
14998
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
14999
  esac \
 
15000
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15001
 ;;
 
15002
  :H)
 
15003
  #
 
15004
  # CONFIG_HEADER
 
15005
  #
 
15006
  if test x"$ac_file" != x-; then
 
15007
    {
 
15008
      $as_echo "/* $configure_input  */" \
 
15009
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
15010
    } >"$tmp/config.h" \
 
15011
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15012
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
15013
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
15014
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
15015
    else
 
15016
      rm -f "$ac_file"
 
15017
      mv "$tmp/config.h" "$ac_file" \
 
15018
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15019
    fi
 
15020
  else
 
15021
    $as_echo "/* $configure_input  */" \
 
15022
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
15023
      || as_fn_error "could not create -" "$LINENO" 5
 
15024
  fi
 
15025
# Compute "$ac_file"'s index in $config_headers.
 
15026
_am_arg="$ac_file"
 
15027
_am_stamp_count=1
 
15028
for _am_header in $config_headers :; do
 
15029
  case $_am_header in
 
15030
    $_am_arg | $_am_arg:* )
 
15031
      break ;;
 
15032
    * )
 
15033
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
15034
  esac
 
15035
done
 
15036
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
15037
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15038
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
15039
         X"$_am_arg" : 'X\(//\)$' \| \
 
15040
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
15041
$as_echo X"$_am_arg" |
 
15042
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15043
            s//\1/
 
15044
            q
 
15045
          }
 
15046
          /^X\(\/\/\)[^/].*/{
 
15047
            s//\1/
 
15048
            q
 
15049
          }
 
15050
          /^X\(\/\/\)$/{
 
15051
            s//\1/
 
15052
            q
 
15053
          }
 
15054
          /^X\(\/\).*/{
 
15055
            s//\1/
 
15056
            q
 
15057
          }
 
15058
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
15059
 ;;
 
15060
 
 
15061
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15062
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
15063
 ;;
 
15064
  esac
 
15065
 
 
15066
 
 
15067
  case $ac_file$ac_mode in
 
15068
    "libtool_patch":C) test `uname` = "OpenBSD" && perl -p -i -e "s/deplibs_check_method=.*/deplibs_check_method=pass_all/g" libtool ;;
 
15069
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15070
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
15071
  # are listed without --file.  Let's play safe and only enable the eval
 
15072
  # if we detect the quoting.
 
15073
  case $CONFIG_FILES in
 
15074
  *\'*) eval set x "$CONFIG_FILES" ;;
 
15075
  *)   set x $CONFIG_FILES ;;
 
15076
  esac
 
15077
  shift
 
15078
  for mf
 
15079
  do
 
15080
    # Strip MF so we end up with the name of the file.
 
15081
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15082
    # Check whether this is an Automake generated Makefile or not.
 
15083
    # We used to match only the files named `Makefile.in', but
 
15084
    # some people rename them; so instead we look at the file content.
 
15085
    # Grep'ing the first line is not enough: some people post-process
 
15086
    # each Makefile.in and add a new line on top of each file to say so.
 
15087
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15088
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15089
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15090
      dirpart=`$as_dirname -- "$mf" ||
 
15091
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15092
         X"$mf" : 'X\(//\)[^/]' \| \
 
15093
         X"$mf" : 'X\(//\)$' \| \
 
15094
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15095
$as_echo X"$mf" |
 
15096
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15097
            s//\1/
 
15098
            q
 
15099
          }
 
15100
          /^X\(\/\/\)[^/].*/{
 
15101
            s//\1/
 
15102
            q
 
15103
          }
 
15104
          /^X\(\/\/\)$/{
 
15105
            s//\1/
 
15106
            q
 
15107
          }
 
15108
          /^X\(\/\).*/{
 
15109
            s//\1/
 
15110
            q
 
15111
          }
 
15112
          s/.*/./; q'`
 
15113
    else
 
15114
      continue
 
15115
    fi
 
15116
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15117
    # from the Makefile without running `make'.
 
15118
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15119
    test -z "$DEPDIR" && continue
 
15120
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15121
    test -z "am__include" && continue
 
15122
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15123
    # When using ansi2knr, U may be empty or an underscore; expand it
 
15124
    U=`sed -n 's/^U = //p' < "$mf"`
 
15125
    # Find all dependency output files, they are included files with
 
15126
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15127
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15128
    # expansion.
 
15129
    for file in `sed -n "
 
15130
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15131
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
15132
      # Make sure the directory exists.
 
15133
      test -f "$dirpart/$file" && continue
 
15134
      fdir=`$as_dirname -- "$file" ||
 
15135
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15136
         X"$file" : 'X\(//\)[^/]' \| \
 
15137
         X"$file" : 'X\(//\)$' \| \
 
15138
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
15139
$as_echo X"$file" |
 
15140
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15141
            s//\1/
 
15142
            q
 
15143
          }
 
15144
          /^X\(\/\/\)[^/].*/{
 
15145
            s//\1/
 
15146
            q
 
15147
          }
 
15148
          /^X\(\/\/\)$/{
 
15149
            s//\1/
 
15150
            q
 
15151
          }
 
15152
          /^X\(\/\).*/{
 
15153
            s//\1/
 
15154
            q
 
15155
          }
 
15156
          s/.*/./; q'`
 
15157
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
15158
      # echo "creating $dirpart/$file"
 
15159
      echo '# dummy' > "$dirpart/$file"
 
15160
    done
 
15161
  done
 
15162
}
 
15163
 ;;
 
15164
    "libtool":C)
 
15165
 
 
15166
    # See if we are running on zsh, and set the options which allow our
 
15167
    # commands through without removal of \ escapes.
 
15168
    if test -n "${ZSH_VERSION+set}" ; then
 
15169
      setopt NO_GLOB_SUBST
 
15170
    fi
 
15171
 
 
15172
    cfgfile="${ofile}T"
 
15173
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15174
    $RM "$cfgfile"
 
15175
 
 
15176
    cat <<_LT_EOF >> "$cfgfile"
 
15177
#! $SHELL
 
15178
 
 
15179
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15180
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15181
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15182
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15183
#
 
15184
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15185
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
15186
#   Written by Gordon Matzigkeit, 1996
 
15187
#
 
15188
#   This file is part of GNU Libtool.
 
15189
#
 
15190
# GNU Libtool is free software; you can redistribute it and/or
 
15191
# modify it under the terms of the GNU General Public License as
 
15192
# published by the Free Software Foundation; either version 2 of
 
15193
# the License, or (at your option) any later version.
 
15194
#
 
15195
# As a special exception to the GNU General Public License,
 
15196
# if you distribute this file as part of a program or library that
 
15197
# is built using GNU Libtool, you may include this file under the
 
15198
# same distribution terms that you use for the rest of that program.
 
15199
#
 
15200
# GNU Libtool is distributed in the hope that it will be useful,
 
15201
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15202
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15203
# GNU General Public License for more details.
 
15204
#
 
15205
# You should have received a copy of the GNU General Public License
 
15206
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15207
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15208
# obtained by writing to the Free Software Foundation, Inc.,
 
15209
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15210
 
 
15211
 
 
15212
# The names of the tagged configurations supported by this script.
 
15213
available_tags=""
 
15214
 
 
15215
# ### BEGIN LIBTOOL CONFIG
 
15216
 
 
15217
# Whether or not to build static libraries.
 
15218
build_old_libs=$enable_static
 
15219
 
 
15220
# Which release of libtool.m4 was used?
 
15221
macro_version=$macro_version
 
15222
macro_revision=$macro_revision
 
15223
 
 
15224
# Whether or not to build shared libraries.
 
15225
build_libtool_libs=$enable_shared
 
15226
 
 
15227
# What type of objects to build.
 
15228
pic_mode=$pic_mode
 
15229
 
 
15230
# Whether or not to optimize for fast installation.
 
15231
fast_install=$enable_fast_install
 
15232
 
 
15233
# The host system.
 
15234
host_alias=$host_alias
 
15235
host=$host
 
15236
host_os=$host_os
 
15237
 
 
15238
# The build system.
 
15239
build_alias=$build_alias
 
15240
build=$build
 
15241
build_os=$build_os
 
15242
 
 
15243
# A sed program that does not truncate output.
 
15244
SED=$lt_SED
 
15245
 
 
15246
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15247
Xsed="\$SED -e 1s/^X//"
 
15248
 
 
15249
# A grep program that handles long lines.
 
15250
GREP=$lt_GREP
 
15251
 
 
15252
# An ERE matcher.
 
15253
EGREP=$lt_EGREP
 
15254
 
 
15255
# A literal string matcher.
 
15256
FGREP=$lt_FGREP
 
15257
 
 
15258
# A BSD- or MS-compatible name lister.
 
15259
NM=$lt_NM
 
15260
 
 
15261
# Whether we need soft or hard links.
 
15262
LN_S=$lt_LN_S
 
15263
 
 
15264
# What is the maximum length of a command?
 
15265
max_cmd_len=$max_cmd_len
 
15266
 
 
15267
# Object file suffix (normally "o").
 
15268
objext=$ac_objext
 
15269
 
 
15270
# Executable file suffix (normally "").
 
15271
exeext=$exeext
 
15272
 
 
15273
# whether the shell understands "unset".
 
15274
lt_unset=$lt_unset
 
15275
 
 
15276
# turn spaces into newlines.
 
15277
SP2NL=$lt_lt_SP2NL
 
15278
 
 
15279
# turn newlines into spaces.
 
15280
NL2SP=$lt_lt_NL2SP
 
15281
 
 
15282
# How to create reloadable object files.
 
15283
reload_flag=$lt_reload_flag
 
15284
reload_cmds=$lt_reload_cmds
 
15285
 
 
15286
# An object symbol dumper.
 
15287
OBJDUMP=$lt_OBJDUMP
 
15288
 
 
15289
# Method to check whether dependent libraries are shared objects.
 
15290
deplibs_check_method=$lt_deplibs_check_method
 
15291
 
 
15292
# Command to use when deplibs_check_method == "file_magic".
 
15293
file_magic_cmd=$lt_file_magic_cmd
 
15294
 
 
15295
# The archiver.
 
15296
AR=$lt_AR
 
15297
AR_FLAGS=$lt_AR_FLAGS
 
15298
 
 
15299
# A symbol stripping program.
 
15300
STRIP=$lt_STRIP
 
15301
 
 
15302
# Commands used to install an old-style archive.
 
15303
RANLIB=$lt_RANLIB
 
15304
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15305
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15306
 
 
15307
# A C compiler.
 
15308
LTCC=$lt_CC
 
15309
 
 
15310
# LTCC compiler flags.
 
15311
LTCFLAGS=$lt_CFLAGS
 
15312
 
 
15313
# Take the output of nm and produce a listing of raw symbols and C names.
 
15314
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15315
 
 
15316
# Transform the output of nm in a proper C declaration.
 
15317
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15318
 
 
15319
# Transform the output of nm in a C name address pair.
 
15320
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15321
 
 
15322
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15323
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15324
 
 
15325
# The name of the directory that contains temporary libtool files.
 
15326
objdir=$objdir
 
15327
 
 
15328
# Shell to use when invoking shell scripts.
 
15329
SHELL=$lt_SHELL
 
15330
 
 
15331
# An echo program that does not interpret backslashes.
 
15332
ECHO=$lt_ECHO
 
15333
 
 
15334
# Used to examine libraries when file_magic_cmd begins with "file".
 
15335
MAGIC_CMD=$MAGIC_CMD
 
15336
 
 
15337
# Must we lock files when doing compilation?
 
15338
need_locks=$lt_need_locks
 
15339
 
 
15340
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15341
DSYMUTIL=$lt_DSYMUTIL
 
15342
 
 
15343
# Tool to change global to local symbols on Mac OS X.
 
15344
NMEDIT=$lt_NMEDIT
 
15345
 
 
15346
# Tool to manipulate fat objects and archives on Mac OS X.
 
15347
LIPO=$lt_LIPO
 
15348
 
 
15349
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15350
OTOOL=$lt_OTOOL
 
15351
 
 
15352
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15353
OTOOL64=$lt_OTOOL64
 
15354
 
 
15355
# Old archive suffix (normally "a").
 
15356
libext=$libext
 
15357
 
 
15358
# Shared library suffix (normally ".so").
 
15359
shrext_cmds=$lt_shrext_cmds
 
15360
 
 
15361
# The commands to extract the exported symbol list from a shared archive.
 
15362
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15363
 
 
15364
# Variables whose values should be saved in libtool wrapper scripts and
 
15365
# restored at link time.
 
15366
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15367
 
 
15368
# Do we need the "lib" prefix for modules?
 
15369
need_lib_prefix=$need_lib_prefix
 
15370
 
 
15371
# Do we need a version for libraries?
 
15372
need_version=$need_version
 
15373
 
 
15374
# Library versioning type.
 
15375
version_type=$version_type
 
15376
 
 
15377
# Shared library runtime path variable.
 
15378
runpath_var=$runpath_var
 
15379
 
 
15380
# Shared library path variable.
 
15381
shlibpath_var=$shlibpath_var
 
15382
 
 
15383
# Is shlibpath searched before the hard-coded library search path?
 
15384
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15385
 
 
15386
# Format of library name prefix.
 
15387
libname_spec=$lt_libname_spec
 
15388
 
 
15389
# List of archive names.  First name is the real one, the rest are links.
 
15390
# The last name is the one that the linker finds with -lNAME
 
15391
library_names_spec=$lt_library_names_spec
 
15392
 
 
15393
# The coded name of the library, if different from the real name.
 
15394
soname_spec=$lt_soname_spec
 
15395
 
 
15396
# Command to use after installation of a shared archive.
 
15397
postinstall_cmds=$lt_postinstall_cmds
 
15398
 
 
15399
# Command to use after uninstallation of a shared archive.
 
15400
postuninstall_cmds=$lt_postuninstall_cmds
 
15401
 
 
15402
# Commands used to finish a libtool library installation in a directory.
 
15403
finish_cmds=$lt_finish_cmds
 
15404
 
 
15405
# As "finish_cmds", except a single script fragment to be evaled but
 
15406
# not shown.
 
15407
finish_eval=$lt_finish_eval
 
15408
 
 
15409
# Whether we should hardcode library paths into libraries.
 
15410
hardcode_into_libs=$hardcode_into_libs
 
15411
 
 
15412
# Compile-time system search path for libraries.
 
15413
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15414
 
 
15415
# Run-time system search path for libraries.
 
15416
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15417
 
 
15418
# Whether dlopen is supported.
 
15419
dlopen_support=$enable_dlopen
 
15420
 
 
15421
# Whether dlopen of programs is supported.
 
15422
dlopen_self=$enable_dlopen_self
 
15423
 
 
15424
# Whether dlopen of statically linked programs is supported.
 
15425
dlopen_self_static=$enable_dlopen_self_static
 
15426
 
 
15427
# Commands to strip libraries.
 
15428
old_striplib=$lt_old_striplib
 
15429
striplib=$lt_striplib
 
15430
 
 
15431
 
 
15432
# The linker used to build libraries.
 
15433
LD=$lt_LD
 
15434
 
 
15435
# Commands used to build an old-style archive.
 
15436
old_archive_cmds=$lt_old_archive_cmds
 
15437
 
 
15438
# A language specific compiler.
 
15439
CC=$lt_compiler
 
15440
 
 
15441
# Is the compiler the GNU compiler?
 
15442
with_gcc=$GCC
 
15443
 
 
15444
# Compiler flag to turn off builtin functions.
 
15445
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15446
 
 
15447
# How to pass a linker flag through the compiler.
 
15448
wl=$lt_lt_prog_compiler_wl
 
15449
 
 
15450
# Additional compiler flags for building library objects.
 
15451
pic_flag=$lt_lt_prog_compiler_pic
 
15452
 
 
15453
# Compiler flag to prevent dynamic linking.
 
15454
link_static_flag=$lt_lt_prog_compiler_static
 
15455
 
 
15456
# Does compiler simultaneously support -c and -o options?
 
15457
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15458
 
 
15459
# Whether or not to add -lc for building shared libraries.
 
15460
build_libtool_need_lc=$archive_cmds_need_lc
 
15461
 
 
15462
# Whether or not to disallow shared libs when runtime libs are static.
 
15463
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15464
 
 
15465
# Compiler flag to allow reflexive dlopens.
 
15466
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15467
 
 
15468
# Compiler flag to generate shared objects directly from archives.
 
15469
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15470
 
 
15471
# Whether the compiler copes with passing no objects directly.
 
15472
compiler_needs_object=$lt_compiler_needs_object
 
15473
 
 
15474
# Create an old-style archive from a shared archive.
 
15475
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15476
 
 
15477
# Create a temporary old-style archive to link instead of a shared archive.
 
15478
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15479
 
 
15480
# Commands used to build a shared archive.
 
15481
archive_cmds=$lt_archive_cmds
 
15482
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15483
 
 
15484
# Commands used to build a loadable module if different from building
 
15485
# a shared archive.
 
15486
module_cmds=$lt_module_cmds
 
15487
module_expsym_cmds=$lt_module_expsym_cmds
 
15488
 
 
15489
# Whether we are building with GNU ld or not.
 
15490
with_gnu_ld=$lt_with_gnu_ld
 
15491
 
 
15492
# Flag that allows shared libraries with undefined symbols to be built.
 
15493
allow_undefined_flag=$lt_allow_undefined_flag
 
15494
 
 
15495
# Flag that enforces no undefined symbols.
 
15496
no_undefined_flag=$lt_no_undefined_flag
 
15497
 
 
15498
# Flag to hardcode \$libdir into a binary during linking.
 
15499
# This must work even if \$libdir does not exist
 
15500
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15501
 
 
15502
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
15503
# during linking.  This must work even if \$libdir does not exist.
 
15504
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
15505
 
 
15506
# Whether we need a single "-rpath" flag with a separated argument.
 
15507
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15508
 
 
15509
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15510
# DIR into the resulting binary.
 
15511
hardcode_direct=$hardcode_direct
 
15512
 
 
15513
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15514
# DIR into the resulting binary and the resulting library dependency is
 
15515
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15516
# library is relocated.
 
15517
hardcode_direct_absolute=$hardcode_direct_absolute
 
15518
 
 
15519
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15520
# into the resulting binary.
 
15521
hardcode_minus_L=$hardcode_minus_L
 
15522
 
 
15523
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15524
# into the resulting binary.
 
15525
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15526
 
 
15527
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15528
# into the library and all subsequent libraries and executables linked
 
15529
# against it.
 
15530
hardcode_automatic=$hardcode_automatic
 
15531
 
 
15532
# Set to yes if linker adds runtime paths of dependent libraries
 
15533
# to runtime path list.
 
15534
inherit_rpath=$inherit_rpath
 
15535
 
 
15536
# Whether libtool must link a program against all its dependency libraries.
 
15537
link_all_deplibs=$link_all_deplibs
 
15538
 
 
15539
# Fix the shell variable \$srcfile for the compiler.
 
15540
fix_srcfile_path=$lt_fix_srcfile_path
 
15541
 
 
15542
# Set to "yes" if exported symbols are required.
 
15543
always_export_symbols=$always_export_symbols
 
15544
 
 
15545
# The commands to list exported symbols.
 
15546
export_symbols_cmds=$lt_export_symbols_cmds
 
15547
 
 
15548
# Symbols that should not be listed in the preloaded symbols.
 
15549
exclude_expsyms=$lt_exclude_expsyms
 
15550
 
 
15551
# Symbols that must always be exported.
 
15552
include_expsyms=$lt_include_expsyms
 
15553
 
 
15554
# Commands necessary for linking programs (against libraries) with templates.
 
15555
prelink_cmds=$lt_prelink_cmds
 
15556
 
 
15557
# Specify filename containing input files.
 
15558
file_list_spec=$lt_file_list_spec
 
15559
 
 
15560
# How to hardcode a shared library path into an executable.
 
15561
hardcode_action=$hardcode_action
 
15562
 
 
15563
# ### END LIBTOOL CONFIG
 
15564
 
 
15565
_LT_EOF
 
15566
 
 
15567
  case $host_os in
 
15568
  aix3*)
 
15569
    cat <<\_LT_EOF >> "$cfgfile"
 
15570
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15571
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15572
# vanish in a puff of smoke.
 
15573
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15574
  COLLECT_NAMES=
 
15575
  export COLLECT_NAMES
 
15576
fi
 
15577
_LT_EOF
 
15578
    ;;
 
15579
  esac
 
15580
 
 
15581
 
 
15582
ltmain="$ac_aux_dir/ltmain.sh"
 
15583
 
 
15584
 
 
15585
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15586
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15587
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15588
  # is reportedly fixed, but why not run on old versions too?
 
15589
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
15590
    || (rm -f "$cfgfile"; exit 1)
 
15591
 
 
15592
  case $xsi_shell in
 
15593
  yes)
 
15594
    cat << \_LT_EOF >> "$cfgfile"
 
15595
 
 
15596
# func_dirname file append nondir_replacement
 
15597
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15598
# otherwise set result to NONDIR_REPLACEMENT.
 
15599
func_dirname ()
 
15600
{
 
15601
  case ${1} in
 
15602
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15603
    *  ) func_dirname_result="${3}" ;;
 
15604
  esac
 
15605
}
 
15606
 
 
15607
# func_basename file
 
15608
func_basename ()
 
15609
{
 
15610
  func_basename_result="${1##*/}"
 
15611
}
 
15612
 
 
15613
# func_dirname_and_basename file append nondir_replacement
 
15614
# perform func_basename and func_dirname in a single function
 
15615
# call:
 
15616
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
15617
#             add APPEND to the result, otherwise set result
 
15618
#             to NONDIR_REPLACEMENT.
 
15619
#             value returned in "$func_dirname_result"
 
15620
#   basename: Compute filename of FILE.
 
15621
#             value retuned in "$func_basename_result"
 
15622
# Implementation must be kept synchronized with func_dirname
 
15623
# and func_basename. For efficiency, we do not delegate to
 
15624
# those functions but instead duplicate the functionality here.
 
15625
func_dirname_and_basename ()
 
15626
{
 
15627
  case ${1} in
 
15628
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15629
    *  ) func_dirname_result="${3}" ;;
 
15630
  esac
 
15631
  func_basename_result="${1##*/}"
 
15632
}
 
15633
 
 
15634
# func_stripname prefix suffix name
 
15635
# strip PREFIX and SUFFIX off of NAME.
 
15636
# PREFIX and SUFFIX must not contain globbing or regex special
 
15637
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15638
# dot (in which case that matches only a dot).
 
15639
func_stripname ()
 
15640
{
 
15641
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
15642
  # positional parameters, so assign one to ordinary parameter first.
 
15643
  func_stripname_result=${3}
 
15644
  func_stripname_result=${func_stripname_result#"${1}"}
 
15645
  func_stripname_result=${func_stripname_result%"${2}"}
 
15646
}
 
15647
 
 
15648
# func_opt_split
 
15649
func_opt_split ()
 
15650
{
 
15651
  func_opt_split_opt=${1%%=*}
 
15652
  func_opt_split_arg=${1#*=}
 
15653
}
 
15654
 
 
15655
# func_lo2o object
 
15656
func_lo2o ()
 
15657
{
 
15658
  case ${1} in
 
15659
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
15660
    *)    func_lo2o_result=${1} ;;
 
15661
  esac
 
15662
}
 
15663
 
 
15664
# func_xform libobj-or-source
 
15665
func_xform ()
 
15666
{
 
15667
  func_xform_result=${1%.*}.lo
 
15668
}
 
15669
 
 
15670
# func_arith arithmetic-term...
 
15671
func_arith ()
 
15672
{
 
15673
  func_arith_result=$(( $* ))
 
15674
}
 
15675
 
 
15676
# func_len string
 
15677
# STRING may not start with a hyphen.
 
15678
func_len ()
 
15679
{
 
15680
  func_len_result=${#1}
 
15681
}
 
15682
 
 
15683
_LT_EOF
 
15684
    ;;
 
15685
  *) # Bourne compatible functions.
 
15686
    cat << \_LT_EOF >> "$cfgfile"
 
15687
 
 
15688
# func_dirname file append nondir_replacement
 
15689
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15690
# otherwise set result to NONDIR_REPLACEMENT.
 
15691
func_dirname ()
 
15692
{
 
15693
  # Extract subdirectory from the argument.
 
15694
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
15695
  if test "X$func_dirname_result" = "X${1}"; then
 
15696
    func_dirname_result="${3}"
 
15697
  else
 
15698
    func_dirname_result="$func_dirname_result${2}"
 
15699
  fi
 
15700
}
 
15701
 
 
15702
# func_basename file
 
15703
func_basename ()
 
15704
{
 
15705
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
15706
}
 
15707
 
 
15708
 
 
15709
# func_stripname prefix suffix name
 
15710
# strip PREFIX and SUFFIX off of NAME.
 
15711
# PREFIX and SUFFIX must not contain globbing or regex special
 
15712
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15713
# dot (in which case that matches only a dot).
 
15714
# func_strip_suffix prefix name
 
15715
func_stripname ()
 
15716
{
 
15717
  case ${2} in
 
15718
    .*) func_stripname_result=`$ECHO "X${3}" \
 
15719
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
15720
    *)  func_stripname_result=`$ECHO "X${3}" \
 
15721
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
15722
  esac
 
15723
}
 
15724
 
 
15725
# sed scripts:
 
15726
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
15727
my_sed_long_arg='1s/^-[^=]*=//'
 
15728
 
 
15729
# func_opt_split
 
15730
func_opt_split ()
 
15731
{
 
15732
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
15733
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
15734
}
 
15735
 
 
15736
# func_lo2o object
 
15737
func_lo2o ()
 
15738
{
 
15739
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
15740
}
 
15741
 
 
15742
# func_xform libobj-or-source
 
15743
func_xform ()
 
15744
{
 
15745
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
15746
}
 
15747
 
 
15748
# func_arith arithmetic-term...
 
15749
func_arith ()
 
15750
{
 
15751
  func_arith_result=`expr "$@"`
 
15752
}
 
15753
 
 
15754
# func_len string
 
15755
# STRING may not start with a hyphen.
 
15756
func_len ()
 
15757
{
 
15758
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
15759
}
 
15760
 
 
15761
_LT_EOF
 
15762
esac
 
15763
 
 
15764
case $lt_shell_append in
 
15765
  yes)
 
15766
    cat << \_LT_EOF >> "$cfgfile"
 
15767
 
 
15768
# func_append var value
 
15769
# Append VALUE to the end of shell variable VAR.
 
15770
func_append ()
 
15771
{
 
15772
  eval "$1+=\$2"
 
15773
}
 
15774
_LT_EOF
 
15775
    ;;
 
15776
  *)
 
15777
    cat << \_LT_EOF >> "$cfgfile"
 
15778
 
 
15779
# func_append var value
 
15780
# Append VALUE to the end of shell variable VAR.
 
15781
func_append ()
 
15782
{
 
15783
  eval "$1=\$$1\$2"
 
15784
}
 
15785
 
 
15786
_LT_EOF
 
15787
    ;;
 
15788
  esac
 
15789
 
 
15790
 
 
15791
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
15792
    || (rm -f "$cfgfile"; exit 1)
 
15793
 
 
15794
  mv -f "$cfgfile" "$ofile" ||
 
15795
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15796
  chmod +x "$ofile"
 
15797
 
 
15798
 ;;
 
15799
 
 
15800
  esac
 
15801
done # for ac_tag
 
15802
 
 
15803
 
 
15804
as_fn_exit 0
 
15805
_ACEOF
 
15806
ac_clean_files=$ac_clean_files_save
 
15807
 
 
15808
test $ac_write_fail = 0 ||
 
15809
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15810
 
 
15811
 
 
15812
# configure is writing to config.log, and then calls config.status.
 
15813
# config.status does its own redirection, appending to config.log.
 
15814
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15815
# by configure, so config.status won't be able to write to it; its
 
15816
# output is simply discarded.  So we exec the FD to /dev/null,
 
15817
# effectively closing config.log, so it can be properly (re)opened and
 
15818
# appended to by config.status.  When coming back to configure, we
 
15819
# need to make the FD available again.
 
15820
if test "$no_create" != yes; then
 
15821
  ac_cs_success=:
 
15822
  ac_config_status_args=
 
15823
  test "$silent" = yes &&
 
15824
    ac_config_status_args="$ac_config_status_args --quiet"
 
15825
  exec 5>/dev/null
 
15826
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15827
  exec 5>>config.log
 
15828
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15829
  # would make configure fail if this is the last instruction.
 
15830
  $ac_cs_success || as_fn_exit $?
 
15831
fi
 
15832
 
 
15833
#
 
15834
# CONFIG_SUBDIRS section.
 
15835
#
 
15836
if test "$no_recursion" != yes; then
 
15837
 
 
15838
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
 
15839
  # so they do not pile up.
 
15840
  ac_sub_configure_args=
 
15841
  ac_prev=
 
15842
  eval "set x $ac_configure_args"
 
15843
  shift
 
15844
  for ac_arg
 
15845
  do
 
15846
    if test -n "$ac_prev"; then
 
15847
      ac_prev=
 
15848
      continue
 
15849
    fi
 
15850
    case $ac_arg in
 
15851
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
15852
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
15853
      ac_prev=cache_file ;;
 
15854
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
15855
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
15856
    | --c=*)
 
15857
      ;;
 
15858
    --config-cache | -C)
 
15859
      ;;
 
15860
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
15861
      ac_prev=srcdir ;;
 
15862
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
15863
      ;;
 
15864
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
15865
      ac_prev=prefix ;;
 
15866
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
15867
      ;;
 
15868
    --disable-option-checking)
 
15869
      ;;
 
15870
    *)
 
15871
      case $ac_arg in
 
15872
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15873
      esac
 
15874
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
 
15875
    esac
 
15876
  done
 
15877
 
 
15878
  # Always prepend --prefix to ensure using the same prefix
 
15879
  # in subdir configurations.
 
15880
  ac_arg="--prefix=$prefix"
 
15881
  case $ac_arg in
 
15882
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15883
  esac
 
15884
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
 
15885
 
 
15886
  # Pass --silent
 
15887
  if test "$silent" = yes; then
 
15888
    ac_sub_configure_args="--silent $ac_sub_configure_args"
 
15889
  fi
 
15890
 
 
15891
  # Always prepend --disable-option-checking to silence warnings, since
 
15892
  # different subdirs can have different --enable and --with options.
 
15893
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
 
15894
 
 
15895
  ac_popdir=`pwd`
 
15896
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
15897
 
 
15898
    # Do not complain, so a configure script can configure whichever
 
15899
    # parts of a large source tree are present.
 
15900
    test -d "$srcdir/$ac_dir" || continue
 
15901
 
 
15902
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
 
15903
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
 
15904
    $as_echo "$ac_msg" >&6
 
15905
    as_dir="$ac_dir"; as_fn_mkdir_p
 
15906
    ac_builddir=.
 
15907
 
 
15908
case "$ac_dir" in
 
15909
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15910
*)
 
15911
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
15912
  # A ".." for each directory in $ac_dir_suffix.
 
15913
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
15914
  case $ac_top_builddir_sub in
 
15915
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15916
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
15917
  esac ;;
 
15918
esac
 
15919
ac_abs_top_builddir=$ac_pwd
 
15920
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
15921
# for backward compatibility:
 
15922
ac_top_builddir=$ac_top_build_prefix
 
15923
 
 
15924
case $srcdir in
 
15925
  .)  # We are building in place.
 
15926
    ac_srcdir=.
 
15927
    ac_top_srcdir=$ac_top_builddir_sub
 
15928
    ac_abs_top_srcdir=$ac_pwd ;;
 
15929
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
15930
    ac_srcdir=$srcdir$ac_dir_suffix;
 
15931
    ac_top_srcdir=$srcdir
 
15932
    ac_abs_top_srcdir=$srcdir ;;
 
15933
  *) # Relative name.
 
15934
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
15935
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
15936
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
15937
esac
 
15938
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
15939
 
 
15940
 
 
15941
    cd "$ac_dir"
 
15942
 
 
15943
    # Check for guested configure; otherwise get Cygnus style configure.
 
15944
    if test -f "$ac_srcdir/configure.gnu"; then
 
15945
      ac_sub_configure=$ac_srcdir/configure.gnu
 
15946
    elif test -f "$ac_srcdir/configure"; then
 
15947
      ac_sub_configure=$ac_srcdir/configure
 
15948
    elif test -f "$ac_srcdir/configure.in"; then
 
15949
      # This should be Cygnus configure.
 
15950
      ac_sub_configure=$ac_aux_dir/configure
 
15951
    else
 
15952
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
 
15953
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
15954
      ac_sub_configure=
 
15955
    fi
 
15956
 
 
15957
    # The recursion is here.
 
15958
    if test -n "$ac_sub_configure"; then
 
15959
      # Make the cache file name correct relative to the subdirectory.
 
15960
      case $cache_file in
 
15961
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
15962
      *) # Relative name.
 
15963
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
 
15964
      esac
 
15965
 
 
15966
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
15967
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
15968
      # The eval makes quoting arguments work.
 
15969
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
 
15970
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
 
15971
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
 
15972
    fi
 
15973
 
 
15974
    cd "$ac_popdir"
 
15975
  done
 
15976
fi
 
15977
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15978
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15979
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15980
fi
 
15981
 
 
15982
 
 
15983
echo
 
15984
echo "Monit Build Information:"
 
15985
echo
 
15986
echo "                Architecture: ${ARCH}"
 
15987
if test "$use_sslstatic" = "1" -o "$use_ssl" = "1"; then
 
15988
echo "       SSL include directory: ${sslincldir}"
 
15989
echo "       SSL library directory: ${ssllibdir}"
 
15990
fi
 
15991
echo "              Compiler flags: ${CFLAGS}"
 
15992
echo "                Linker flags: ${LIBS}"
 
15993
echo "           pid file location: ${piddir}"
 
15994
echo "           Install directory: ${prefix}"
 
15995
echo
 
15996
 
 
15997
cat <<EOT
 
15998
+------------------------------------------------------------+
 
15999
| License:                                                   |
 
16000
| This is Open Source Software and use is subject to the GNU |
 
16001
| AFFERO GENERAL PUBLIC LICENSE version 3, available in this |
 
16002
| distribution in the file COPYING.                          |
 
16003
|                                                            |
 
16004
| By continuing this installation process, you are bound by  |
 
16005
| the terms of this license agreement. If you do not agree   |
 
16006
| with the terms of this license, you must abort the         |
 
16007
| installation process at this point.                        |
 
16008
+------------------------------------------------------------+
 
16009
| Monit has been configured with the following options:      |
 
16010
|                                                            |
 
16011
EOT
 
16012
if test "$use_pam" = "1"; then
 
16013
echo "|   PAM support:                                  ENABLED    |"
 
16014
else
 
16015
echo "|   PAM support:                                  DISABLED   |"
 
16016
fi
 
16017
if test "$use_sslstatic" = "1" -o "$use_ssl" = "1"; then
 
16018
echo "|   SSL support:                                  ENABLED    |"
 
16019
else
 
16020
echo "|   SSL support:                                  DISABLED   |"
 
16021
fi
 
16022
if test "$use_largefiles" = "1"; then
 
16023
echo "|   Large files support:                          ENABLED    |"
 
16024
else
 
16025
echo "|   Large files support:                          DISABLED   |"
 
16026
fi
 
16027
if test "x1" = "x$OPTIMIZED"; then
 
16028
echo "|   Optimized:                                    ENABLED    |"
 
16029
else
 
16030
echo "|   Optimized:                                    DISABLED   |"
 
16031
fi
 
16032
echo "+------------------------------------------------------------+"