~ubuntu-branches/debian/sid/varnish/sid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-03-21 10:16:07 UTC
  • mfrom: (24.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321101607-528fzl583fqanas5
Tags: 2.1.5-2
ReleaseĀ forĀ unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# From configure.ac Id: configure.ac 5055 2010-07-28 11:58:00Z tfheen .
3
 
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.65 for Varnish 2.1.3.
5
 
#
6
 
# Report bugs to <varnish-dev@varnish-cache.org>.
7
 
#
8
 
# Copyright (c) 2006 Verdens Gang AS
9
 
# Copyright (c) 2006-2010 Redpill Linpro AS
10
 
# Copyright (c) 2010 Varnish Software AS
11
 
#
12
 
#
13
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
15
 
# Inc.
16
 
#
17
 
#
18
 
# This configure script is free software; the Free Software Foundation
19
 
# gives unlimited permission to copy, distribute and modify it.
20
 
## -------------------- ##
21
 
## M4sh Initialization. ##
22
 
## -------------------- ##
23
 
 
24
 
# Be more Bourne compatible
25
 
DUALCASE=1; export DUALCASE # for MKS sh
26
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27
 
  emulate sh
28
 
  NULLCMD=:
29
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30
 
  # is contrary to our usage.  Disable this feature.
31
 
  alias -g '${1+"$@"}'='"$@"'
32
 
  setopt NO_GLOB_SUBST
33
 
else
34
 
  case `(set -o) 2>/dev/null` in #(
35
 
  *posix*) :
36
 
    set -o posix ;; #(
37
 
  *) :
38
 
     ;;
39
 
esac
40
 
fi
41
 
 
42
 
 
43
 
as_nl='
44
 
'
45
 
export as_nl
46
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
47
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
51
 
# but without wasting forks for bash or zsh.
52
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
53
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
54
 
  as_echo='print -r --'
55
 
  as_echo_n='print -rn --'
56
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57
 
  as_echo='printf %s\n'
58
 
  as_echo_n='printf %s'
59
 
else
60
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
61
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
62
 
    as_echo_n='/usr/ucb/echo -n'
63
 
  else
64
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65
 
    as_echo_n_body='eval
66
 
      arg=$1;
67
 
      case $arg in #(
68
 
      *"$as_nl"*)
69
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
70
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
71
 
      esac;
72
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73
 
    '
74
 
    export as_echo_n_body
75
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
76
 
  fi
77
 
  export as_echo_body
78
 
  as_echo='sh -c $as_echo_body as_echo'
79
 
fi
80
 
 
81
 
# The user is always right.
82
 
if test "${PATH_SEPARATOR+set}" != set; then
83
 
  PATH_SEPARATOR=:
84
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
85
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86
 
      PATH_SEPARATOR=';'
87
 
  }
88
 
fi
89
 
 
90
 
 
91
 
# IFS
92
 
# We need space, tab and new line, in precisely that order.  Quoting is
93
 
# there to prevent editors from complaining about space-tab.
94
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95
 
# splitting by setting IFS to empty value.)
96
 
IFS=" ""        $as_nl"
97
 
 
98
 
# Find who we are.  Look in the path if we contain no directory separator.
99
 
case $0 in #((
100
 
  *[\\/]* ) as_myself=$0 ;;
101
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102
 
for as_dir in $PATH
103
 
do
104
 
  IFS=$as_save_IFS
105
 
  test -z "$as_dir" && as_dir=.
106
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
 
  done
108
 
IFS=$as_save_IFS
109
 
 
110
 
     ;;
111
 
esac
112
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
113
 
# in which case we are not to be found in the path.
114
 
if test "x$as_myself" = x; then
115
 
  as_myself=$0
116
 
fi
117
 
if test ! -f "$as_myself"; then
118
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119
 
  exit 1
120
 
fi
121
 
 
122
 
# Unset variables that we do not need and which cause bugs (e.g. in
123
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
124
 
# suppresses any "Segmentation fault" message there.  '((' could
125
 
# trigger a bug in pdksh 5.2.14.
126
 
for as_var in BASH_ENV ENV MAIL MAILPATH
127
 
do eval test x\${$as_var+set} = xset \
128
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
129
 
done
130
 
PS1='$ '
131
 
PS2='> '
132
 
PS4='+ '
133
 
 
134
 
# NLS nuisances.
135
 
LC_ALL=C
136
 
export LC_ALL
137
 
LANGUAGE=C
138
 
export LANGUAGE
139
 
 
140
 
# CDPATH.
141
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142
 
 
143
 
if test "x$CONFIG_SHELL" = x; then
144
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145
 
  emulate sh
146
 
  NULLCMD=:
147
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148
 
  # is contrary to our usage.  Disable this feature.
149
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150
 
  setopt NO_GLOB_SUBST
151
 
else
152
 
  case \`(set -o) 2>/dev/null\` in #(
153
 
  *posix*) :
154
 
    set -o posix ;; #(
155
 
  *) :
156
 
     ;;
157
 
esac
158
 
fi
159
 
"
160
 
  as_required="as_fn_return () { (exit \$1); }
161
 
as_fn_success () { as_fn_return 0; }
162
 
as_fn_failure () { as_fn_return 1; }
163
 
as_fn_ret_success () { return 0; }
164
 
as_fn_ret_failure () { return 1; }
165
 
 
166
 
exitcode=0
167
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172
 
 
173
 
else
174
 
  exitcode=1; echo positional parameters were not saved.
175
 
fi
176
 
test x\$exitcode = x0 || exit 1"
177
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
178
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
179
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
180
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
181
 
test \$(( 1 + 1 )) = 2 || exit 1"
182
 
  if (eval "$as_required") 2>/dev/null; then :
183
 
  as_have_required=yes
184
 
else
185
 
  as_have_required=no
186
 
fi
187
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188
 
 
189
 
else
190
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191
 
as_found=false
192
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193
 
do
194
 
  IFS=$as_save_IFS
195
 
  test -z "$as_dir" && as_dir=.
196
 
  as_found=:
197
 
  case $as_dir in #(
198
 
         /*)
199
 
           for as_base in sh bash ksh sh5; do
200
 
             # Try only shells that exist, to save several forks.
201
 
             as_shell=$as_dir/$as_base
202
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
203
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
204
 
  CONFIG_SHELL=$as_shell as_have_required=yes
205
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
 
  break 2
207
 
fi
208
 
fi
209
 
           done;;
210
 
       esac
211
 
  as_found=false
212
 
done
213
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
214
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
215
 
  CONFIG_SHELL=$SHELL as_have_required=yes
216
 
fi; }
217
 
IFS=$as_save_IFS
218
 
 
219
 
 
220
 
      if test "x$CONFIG_SHELL" != x; then :
221
 
  # We cannot yet assume a decent shell, so we have to provide a
222
 
        # neutralization value for shells without unset; and this also
223
 
        # works around shells that cannot unset nonexistent variables.
224
 
        BASH_ENV=/dev/null
225
 
        ENV=/dev/null
226
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227
 
        export CONFIG_SHELL
228
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
229
 
fi
230
 
 
231
 
    if test x$as_have_required = xno; then :
232
 
  $as_echo "$0: This script requires a shell more modern than all"
233
 
  $as_echo "$0: the shells that I found on your system."
234
 
  if test x${ZSH_VERSION+set} = xset ; then
235
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
236
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237
 
  else
238
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
239
 
$0: varnish-dev@varnish-cache.org about your system,
240
 
$0: including any error possibly output before this
241
 
$0: message. Then install a modern shell, or manually run
242
 
$0: the script under such a shell if you do have one."
243
 
  fi
244
 
  exit 1
245
 
fi
246
 
fi
247
 
fi
248
 
SHELL=${CONFIG_SHELL-/bin/sh}
249
 
export SHELL
250
 
# Unset more variables known to interfere with behavior of common tools.
251
 
CLICOLOR_FORCE= GREP_OPTIONS=
252
 
unset CLICOLOR_FORCE GREP_OPTIONS
253
 
 
254
 
## --------------------- ##
255
 
## M4sh Shell Functions. ##
256
 
## --------------------- ##
257
 
# as_fn_unset VAR
258
 
# ---------------
259
 
# Portably unset VAR.
260
 
as_fn_unset ()
261
 
{
262
 
  { eval $1=; unset $1;}
263
 
}
264
 
as_unset=as_fn_unset
265
 
 
266
 
# as_fn_set_status STATUS
267
 
# -----------------------
268
 
# Set $? to STATUS, without forking.
269
 
as_fn_set_status ()
270
 
{
271
 
  return $1
272
 
} # as_fn_set_status
273
 
 
274
 
# as_fn_exit STATUS
275
 
# -----------------
276
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277
 
as_fn_exit ()
278
 
{
279
 
  set +e
280
 
  as_fn_set_status $1
281
 
  exit $1
282
 
} # as_fn_exit
283
 
 
284
 
# as_fn_mkdir_p
285
 
# -------------
286
 
# Create "$as_dir" as a directory, including parents if necessary.
287
 
as_fn_mkdir_p ()
288
 
{
289
 
 
290
 
  case $as_dir in #(
291
 
  -*) as_dir=./$as_dir;;
292
 
  esac
293
 
  test -d "$as_dir" || eval $as_mkdir_p || {
294
 
    as_dirs=
295
 
    while :; do
296
 
      case $as_dir in #(
297
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298
 
      *) as_qdir=$as_dir;;
299
 
      esac
300
 
      as_dirs="'$as_qdir' $as_dirs"
301
 
      as_dir=`$as_dirname -- "$as_dir" ||
302
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
304
 
         X"$as_dir" : 'X\(//\)$' \| \
305
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306
 
$as_echo X"$as_dir" |
307
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308
 
            s//\1/
309
 
            q
310
 
          }
311
 
          /^X\(\/\/\)[^/].*/{
312
 
            s//\1/
313
 
            q
314
 
          }
315
 
          /^X\(\/\/\)$/{
316
 
            s//\1/
317
 
            q
318
 
          }
319
 
          /^X\(\/\).*/{
320
 
            s//\1/
321
 
            q
322
 
          }
323
 
          s/.*/./; q'`
324
 
      test -d "$as_dir" && break
325
 
    done
326
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
327
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
 
 
329
 
 
330
 
} # as_fn_mkdir_p
331
 
# as_fn_append VAR VALUE
332
 
# ----------------------
333
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
334
 
# advantage of any shell optimizations that allow amortized linear growth over
335
 
# repeated appends, instead of the typical quadratic growth present in naive
336
 
# implementations.
337
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338
 
  eval 'as_fn_append ()
339
 
  {
340
 
    eval $1+=\$2
341
 
  }'
342
 
else
343
 
  as_fn_append ()
344
 
  {
345
 
    eval $1=\$$1\$2
346
 
  }
347
 
fi # as_fn_append
348
 
 
349
 
# as_fn_arith ARG...
350
 
# ------------------
351
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
352
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
353
 
# must be portable across $(()) and expr.
354
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355
 
  eval 'as_fn_arith ()
356
 
  {
357
 
    as_val=$(( $* ))
358
 
  }'
359
 
else
360
 
  as_fn_arith ()
361
 
  {
362
 
    as_val=`expr "$@" || test $? -eq 1`
363
 
  }
364
 
fi # as_fn_arith
365
 
 
366
 
 
367
 
# as_fn_error ERROR [LINENO LOG_FD]
368
 
# ---------------------------------
369
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371
 
# script with status $?, using 1 if that was 0.
372
 
as_fn_error ()
373
 
{
374
 
  as_status=$?; test $as_status -eq 0 && as_status=1
375
 
  if test "$3"; then
376
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378
 
  fi
379
 
  $as_echo "$as_me: error: $1" >&2
380
 
  as_fn_exit $as_status
381
 
} # as_fn_error
382
 
 
383
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
384
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
 
  as_expr=expr
386
 
else
387
 
  as_expr=false
388
 
fi
389
 
 
390
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
 
  as_basename=basename
392
 
else
393
 
  as_basename=false
394
 
fi
395
 
 
396
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
 
  as_dirname=dirname
398
 
else
399
 
  as_dirname=false
400
 
fi
401
 
 
402
 
as_me=`$as_basename -- "$0" ||
403
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404
 
         X"$0" : 'X\(//\)$' \| \
405
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406
 
$as_echo X/"$0" |
407
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
408
 
            s//\1/
409
 
            q
410
 
          }
411
 
          /^X\/\(\/\/\)$/{
412
 
            s//\1/
413
 
            q
414
 
          }
415
 
          /^X\/\(\/\).*/{
416
 
            s//\1/
417
 
            q
418
 
          }
419
 
          s/.*/./; q'`
420
 
 
421
 
# Avoid depending upon Character Ranges.
422
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425
 
as_cr_digits='0123456789'
426
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
427
 
 
428
 
 
429
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434
 
  sed -n '
435
 
    p
436
 
    /[$]LINENO/=
437
 
  ' <$as_myself |
438
 
    sed '
439
 
      s/[$]LINENO.*/&-/
440
 
      t lineno
441
 
      b
442
 
      :lineno
443
 
      N
444
 
      :loop
445
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446
 
      t loop
447
 
      s/-\n.*//
448
 
    ' >$as_me.lineno &&
449
 
  chmod +x "$as_me.lineno" ||
450
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
 
 
452
 
  # Don't try to exec as it changes $[0], causing all sort of problems
453
 
  # (the dirname of $[0] is not the place where we might find the
454
 
  # original and so on.  Autoconf is especially sensitive to this).
455
 
  . "./$as_me.lineno"
456
 
  # Exit status is that of the last command.
457
 
  exit
458
 
}
459
 
 
460
 
ECHO_C= ECHO_N= ECHO_T=
461
 
case `echo -n x` in #(((((
462
 
-n*)
463
 
  case `echo 'xy\c'` in
464
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465
 
  xy)  ECHO_C='\c';;
466
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467
 
       ECHO_T=' ';;
468
 
  esac;;
469
 
*)
470
 
  ECHO_N='-n';;
471
 
esac
472
 
 
473
 
rm -f conf$$ conf$$.exe conf$$.file
474
 
if test -d conf$$.dir; then
475
 
  rm -f conf$$.dir/conf$$.file
476
 
else
477
 
  rm -f conf$$.dir
478
 
  mkdir conf$$.dir 2>/dev/null
479
 
fi
480
 
if (echo >conf$$.file) 2>/dev/null; then
481
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
482
 
    as_ln_s='ln -s'
483
 
    # ... but there are two gotchas:
484
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486
 
    # In both cases, we have to default to `cp -p'.
487
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488
 
      as_ln_s='cp -p'
489
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
490
 
    as_ln_s=ln
491
 
  else
492
 
    as_ln_s='cp -p'
493
 
  fi
494
 
else
495
 
  as_ln_s='cp -p'
496
 
fi
497
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498
 
rmdir conf$$.dir 2>/dev/null
499
 
 
500
 
if mkdir -p . 2>/dev/null; then
501
 
  as_mkdir_p='mkdir -p "$as_dir"'
502
 
else
503
 
  test -d ./-p && rmdir ./-p
504
 
  as_mkdir_p=false
505
 
fi
506
 
 
507
 
if test -x / >/dev/null 2>&1; then
508
 
  as_test_x='test -x'
509
 
else
510
 
  if ls -dL / >/dev/null 2>&1; then
511
 
    as_ls_L_option=L
512
 
  else
513
 
    as_ls_L_option=
514
 
  fi
515
 
  as_test_x='
516
 
    eval sh -c '\''
517
 
      if test -d "$1"; then
518
 
        test -d "$1/.";
519
 
      else
520
 
        case $1 in #(
521
 
        -*)set "./$1";;
522
 
        esac;
523
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524
 
        ???[sx]*):;;*)false;;esac;fi
525
 
    '\'' sh
526
 
  '
527
 
fi
528
 
as_executable_p=$as_test_x
529
 
 
530
 
# Sed expression to map a string onto a valid CPP name.
531
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
 
 
533
 
# Sed expression to map a string onto a valid variable name.
534
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
 
 
536
 
 
537
 
 
538
 
# Check that we are running under the correct shell.
539
 
SHELL=${CONFIG_SHELL-/bin/sh}
540
 
 
541
 
case X$lt_ECHO in
542
 
X*--fallback-echo)
543
 
  # Remove one level of quotation (which was required for Make).
544
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545
 
  ;;
546
 
esac
547
 
 
548
 
ECHO=${lt_ECHO-echo}
549
 
if test "X$1" = X--no-reexec; then
550
 
  # Discard the --no-reexec flag, and continue.
551
 
  shift
552
 
elif test "X$1" = X--fallback-echo; then
553
 
  # Avoid inline document here, it may be left over
554
 
  :
555
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556
 
  # Yippee, $ECHO works!
557
 
  :
558
 
else
559
 
  # Restart under the correct shell.
560
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
561
 
fi
562
 
 
563
 
if test "X$1" = X--fallback-echo; then
564
 
  # used as fallback echo
565
 
  shift
566
 
  cat <<_LT_EOF
567
 
$*
568
 
_LT_EOF
569
 
  exit 0
570
 
fi
571
 
 
572
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
573
 
# if CDPATH is set.
574
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
 
 
576
 
if test -z "$lt_ECHO"; then
577
 
  if test "X${echo_test_string+set}" != Xset; then
578
 
    # find a string as large as possible, as long as the shell can cope with it
579
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583
 
      then
584
 
        break
585
 
      fi
586
 
    done
587
 
  fi
588
 
 
589
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
592
 
    :
593
 
  else
594
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
595
 
    # backslashes.  This makes it impossible to quote backslashes using
596
 
    #   echo "$something" | sed 's/\\/\\\\/g'
597
 
    #
598
 
    # So, first we look for a working echo in the user's PATH.
599
 
 
600
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601
 
    for dir in $PATH /usr/ucb; do
602
 
      IFS="$lt_save_ifs"
603
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
607
 
        ECHO="$dir/echo"
608
 
        break
609
 
      fi
610
 
    done
611
 
    IFS="$lt_save_ifs"
612
 
 
613
 
    if test "X$ECHO" = Xecho; then
614
 
      # We didn't find a better echo, so look for alternatives.
615
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
618
 
        # This shell has a builtin print -r that does the trick.
619
 
        ECHO='print -r'
620
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
622
 
        # If we have ksh, try running configure again with it.
623
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624
 
        export ORIGINAL_CONFIG_SHELL
625
 
        CONFIG_SHELL=/bin/ksh
626
 
        export CONFIG_SHELL
627
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628
 
      else
629
 
        # Try using printf.
630
 
        ECHO='printf %s\n'
631
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
634
 
          # Cool, printf works
635
 
          :
636
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637
 
             test "X$echo_testing_string" = 'X\t' &&
638
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
640
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641
 
          export CONFIG_SHELL
642
 
          SHELL="$CONFIG_SHELL"
643
 
          export SHELL
644
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
645
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646
 
             test "X$echo_testing_string" = 'X\t' &&
647
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
649
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
650
 
        else
651
 
          # maybe with a smaller string...
652
 
          prev=:
653
 
 
654
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656
 
            then
657
 
              break
658
 
            fi
659
 
            prev="$cmd"
660
 
          done
661
 
 
662
 
          if test "$prev" != 'sed 50q "$0"'; then
663
 
            echo_test_string=`eval $prev`
664
 
            export echo_test_string
665
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666
 
          else
667
 
            # Oops.  We lost completely, so just stick with echo.
668
 
            ECHO=echo
669
 
          fi
670
 
        fi
671
 
      fi
672
 
    fi
673
 
  fi
674
 
fi
675
 
 
676
 
# Copy echo and quote the copy suitably for passing to libtool from
677
 
# the Makefile, instead of quoting the original, which is used later.
678
 
lt_ECHO=$ECHO
679
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
 
fi
682
 
 
683
 
 
684
 
 
685
 
 
686
 
test -n "$DJDIR" || exec 7<&0 </dev/null
687
 
exec 6>&1
688
 
 
689
 
# Name of the host.
690
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
691
 
# so uname gets run too.
692
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
 
 
694
 
#
695
 
# Initializations.
696
 
#
697
 
ac_default_prefix=/usr/local
698
 
ac_clean_files=
699
 
ac_config_libobj_dir=.
700
 
LIBOBJS=
701
 
cross_compiling=no
702
 
subdirs=
703
 
MFLAGS=
704
 
MAKEFLAGS=
705
 
 
706
 
# Identity of this package.
707
 
PACKAGE_NAME='Varnish'
708
 
PACKAGE_TARNAME='varnish'
709
 
PACKAGE_VERSION='2.1.3'
710
 
PACKAGE_STRING='Varnish 2.1.3'
711
 
PACKAGE_BUGREPORT='varnish-dev@varnish-cache.org'
712
 
PACKAGE_URL=''
713
 
 
714
 
ac_unique_file="include/varnishapi.h"
715
 
# Factoring default headers for most tests.
716
 
ac_includes_default="\
717
 
#include <stdio.h>
718
 
#ifdef HAVE_SYS_TYPES_H
719
 
# include <sys/types.h>
720
 
#endif
721
 
#ifdef HAVE_SYS_STAT_H
722
 
# include <sys/stat.h>
723
 
#endif
724
 
#ifdef STDC_HEADERS
725
 
# include <stdlib.h>
726
 
# include <stddef.h>
727
 
#else
728
 
# ifdef HAVE_STDLIB_H
729
 
#  include <stdlib.h>
730
 
# endif
731
 
#endif
732
 
#ifdef HAVE_STRING_H
733
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734
 
#  include <memory.h>
735
 
# endif
736
 
# include <string.h>
737
 
#endif
738
 
#ifdef HAVE_STRINGS_H
739
 
# include <strings.h>
740
 
#endif
741
 
#ifdef HAVE_INTTYPES_H
742
 
# include <inttypes.h>
743
 
#endif
744
 
#ifdef HAVE_STDINT_H
745
 
# include <stdint.h>
746
 
#endif
747
 
#ifdef HAVE_UNISTD_H
748
 
# include <unistd.h>
749
 
#endif"
750
 
 
751
 
ac_subst_vars='am__EXEEXT_FALSE
752
 
am__EXEEXT_TRUE
753
 
LTLIBOBJS
754
 
LIBOBJS
755
 
JEMALLOC_LDADD
756
 
JEMALLOC_SUBDIR
757
 
VCC_CC
758
 
ENABLE_TESTS_FALSE
759
 
ENABLE_TESTS_TRUE
760
 
varnishconfdir
761
 
VARNISH_STATE_DIR
762
 
TCLSH
763
 
LIBUMEM
764
 
PCRE_CONFIG
765
 
PCRE_LIBS
766
 
PCRE_CFLAGS
767
 
PKG_CONFIG_LIBDIR
768
 
PKG_CONFIG_PATH
769
 
PKG_CONFIG
770
 
LIBM
771
 
NET_LIBS
772
 
PTHREAD_LIBS
773
 
HAVE_CURSES_FALSE
774
 
HAVE_CURSES_TRUE
775
 
CURSES_LIBS
776
 
DL_LIBS
777
 
RT_LIBS
778
 
HAVE_XSLTPROC_FALSE
779
 
HAVE_XSLTPROC_TRUE
780
 
XSLTPROC
781
 
OTOOL64
782
 
OTOOL
783
 
LIPO
784
 
NMEDIT
785
 
DSYMUTIL
786
 
lt_ECHO
787
 
RANLIB
788
 
AR
789
 
OBJDUMP
790
 
LN_S
791
 
NM
792
 
ac_ct_DUMPBIN
793
 
DUMPBIN
794
 
LD
795
 
FGREP
796
 
SED
797
 
LIBTOOL
798
 
EGREP
799
 
GREP
800
 
CPP
801
 
am__fastdepCC_FALSE
802
 
am__fastdepCC_TRUE
803
 
CCDEPMODE
804
 
AMDEPBACKSLASH
805
 
AMDEP_FALSE
806
 
AMDEP_TRUE
807
 
am__quote
808
 
am__include
809
 
DEPDIR
810
 
OBJEXT
811
 
EXEEXT
812
 
ac_ct_CC
813
 
CPPFLAGS
814
 
LDFLAGS
815
 
CFLAGS
816
 
CC
817
 
am__untar
818
 
am__tar
819
 
AMTAR
820
 
am__leading_dot
821
 
SET_MAKE
822
 
AWK
823
 
mkdir_p
824
 
MKDIR_P
825
 
INSTALL_STRIP_PROGRAM
826
 
STRIP
827
 
install_sh
828
 
MAKEINFO
829
 
AUTOHEADER
830
 
AUTOMAKE
831
 
AUTOCONF
832
 
ACLOCAL
833
 
VERSION
834
 
PACKAGE
835
 
CYGPATH_W
836
 
am__isrc
837
 
INSTALL_DATA
838
 
INSTALL_SCRIPT
839
 
INSTALL_PROGRAM
840
 
target_os
841
 
target_vendor
842
 
target_cpu
843
 
target
844
 
host_os
845
 
host_vendor
846
 
host_cpu
847
 
host
848
 
build_os
849
 
build_vendor
850
 
build_cpu
851
 
build
852
 
target_alias
853
 
host_alias
854
 
build_alias
855
 
LIBS
856
 
ECHO_T
857
 
ECHO_N
858
 
ECHO_C
859
 
DEFS
860
 
mandir
861
 
localedir
862
 
libdir
863
 
psdir
864
 
pdfdir
865
 
dvidir
866
 
htmldir
867
 
infodir
868
 
docdir
869
 
oldincludedir
870
 
includedir
871
 
localstatedir
872
 
sharedstatedir
873
 
sysconfdir
874
 
datadir
875
 
datarootdir
876
 
libexecdir
877
 
sbindir
878
 
bindir
879
 
program_transform_name
880
 
prefix
881
 
exec_prefix
882
 
PACKAGE_URL
883
 
PACKAGE_BUGREPORT
884
 
PACKAGE_STRING
885
 
PACKAGE_VERSION
886
 
PACKAGE_TARNAME
887
 
PACKAGE_NAME
888
 
PATH_SEPARATOR
889
 
SHELL'
890
 
ac_subst_files=''
891
 
ac_user_opts='
892
 
enable_option_checking
893
 
enable_dependency_tracking
894
 
enable_shared
895
 
enable_static
896
 
with_pic
897
 
enable_fast_install
898
 
with_gnu_ld
899
 
enable_libtool_lock
900
 
with_pcre_config
901
 
enable_largefile
902
 
enable_kqueue
903
 
enable_epoll
904
 
enable_ports
905
 
enable_developer_warnings
906
 
enable_debugging_symbols
907
 
enable_diagnostics
908
 
enable_extra_developer_warnings
909
 
enable_stack_protector
910
 
enable_tests
911
 
enable_werror
912
 
enable_jemalloc
913
 
'
914
 
      ac_precious_vars='build_alias
915
 
host_alias
916
 
target_alias
917
 
CC
918
 
CFLAGS
919
 
LDFLAGS
920
 
LIBS
921
 
CPPFLAGS
922
 
CPP
923
 
PKG_CONFIG
924
 
PKG_CONFIG_PATH
925
 
PKG_CONFIG_LIBDIR
926
 
PCRE_CFLAGS
927
 
PCRE_LIBS
928
 
VCC_CC'
929
 
 
930
 
 
931
 
# Initialize some variables set by options.
932
 
ac_init_help=
933
 
ac_init_version=false
934
 
ac_unrecognized_opts=
935
 
ac_unrecognized_sep=
936
 
# The variables have the same names as the options, with
937
 
# dashes changed to underlines.
938
 
cache_file=/dev/null
939
 
exec_prefix=NONE
940
 
no_create=
941
 
no_recursion=
942
 
prefix=NONE
943
 
program_prefix=NONE
944
 
program_suffix=NONE
945
 
program_transform_name=s,x,x,
946
 
silent=
947
 
site=
948
 
srcdir=
949
 
verbose=
950
 
x_includes=NONE
951
 
x_libraries=NONE
952
 
 
953
 
# Installation directory options.
954
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
955
 
# and all the variables that are supposed to be based on exec_prefix
956
 
# by default will actually change.
957
 
# Use braces instead of parens because sh, perl, etc. also accept them.
958
 
# (The list follows the same order as the GNU Coding Standards.)
959
 
bindir='${exec_prefix}/bin'
960
 
sbindir='${exec_prefix}/sbin'
961
 
libexecdir='${exec_prefix}/libexec'
962
 
datarootdir='${prefix}/share'
963
 
datadir='${datarootdir}'
964
 
sysconfdir='${prefix}/etc'
965
 
sharedstatedir='${prefix}/com'
966
 
localstatedir='${prefix}/var'
967
 
includedir='${prefix}/include'
968
 
oldincludedir='/usr/include'
969
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970
 
infodir='${datarootdir}/info'
971
 
htmldir='${docdir}'
972
 
dvidir='${docdir}'
973
 
pdfdir='${docdir}'
974
 
psdir='${docdir}'
975
 
libdir='${exec_prefix}/lib'
976
 
localedir='${datarootdir}/locale'
977
 
mandir='${datarootdir}/man'
978
 
 
979
 
ac_prev=
980
 
ac_dashdash=
981
 
for ac_option
982
 
do
983
 
  # If the previous option needs an argument, assign it.
984
 
  if test -n "$ac_prev"; then
985
 
    eval $ac_prev=\$ac_option
986
 
    ac_prev=
987
 
    continue
988
 
  fi
989
 
 
990
 
  case $ac_option in
991
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992
 
  *)    ac_optarg=yes ;;
993
 
  esac
994
 
 
995
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
996
 
 
997
 
  case $ac_dashdash$ac_option in
998
 
  --)
999
 
    ac_dashdash=yes ;;
1000
 
 
1001
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002
 
    ac_prev=bindir ;;
1003
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004
 
    bindir=$ac_optarg ;;
1005
 
 
1006
 
  -build | --build | --buil | --bui | --bu)
1007
 
    ac_prev=build_alias ;;
1008
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009
 
    build_alias=$ac_optarg ;;
1010
 
 
1011
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1012
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013
 
    ac_prev=cache_file ;;
1014
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016
 
    cache_file=$ac_optarg ;;
1017
 
 
1018
 
  --config-cache | -C)
1019
 
    cache_file=config.cache ;;
1020
 
 
1021
 
  -datadir | --datadir | --datadi | --datad)
1022
 
    ac_prev=datadir ;;
1023
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024
 
    datadir=$ac_optarg ;;
1025
 
 
1026
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027
 
  | --dataroo | --dataro | --datar)
1028
 
    ac_prev=datarootdir ;;
1029
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031
 
    datarootdir=$ac_optarg ;;
1032
 
 
1033
 
  -disable-* | --disable-*)
1034
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035
 
    # Reject names that are not valid shell variable names.
1036
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037
 
      as_fn_error "invalid feature name: $ac_useropt"
1038
 
    ac_useropt_orig=$ac_useropt
1039
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040
 
    case $ac_user_opts in
1041
 
      *"
1042
 
"enable_$ac_useropt"
1043
 
"*) ;;
1044
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045
 
         ac_unrecognized_sep=', ';;
1046
 
    esac
1047
 
    eval enable_$ac_useropt=no ;;
1048
 
 
1049
 
  -docdir | --docdir | --docdi | --doc | --do)
1050
 
    ac_prev=docdir ;;
1051
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052
 
    docdir=$ac_optarg ;;
1053
 
 
1054
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055
 
    ac_prev=dvidir ;;
1056
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057
 
    dvidir=$ac_optarg ;;
1058
 
 
1059
 
  -enable-* | --enable-*)
1060
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061
 
    # Reject names that are not valid shell variable names.
1062
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063
 
      as_fn_error "invalid feature name: $ac_useropt"
1064
 
    ac_useropt_orig=$ac_useropt
1065
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066
 
    case $ac_user_opts in
1067
 
      *"
1068
 
"enable_$ac_useropt"
1069
 
"*) ;;
1070
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071
 
         ac_unrecognized_sep=', ';;
1072
 
    esac
1073
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1074
 
 
1075
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077
 
  | --exec | --exe | --ex)
1078
 
    ac_prev=exec_prefix ;;
1079
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081
 
  | --exec=* | --exe=* | --ex=*)
1082
 
    exec_prefix=$ac_optarg ;;
1083
 
 
1084
 
  -gas | --gas | --ga | --g)
1085
 
    # Obsolete; use --with-gas.
1086
 
    with_gas=yes ;;
1087
 
 
1088
 
  -help | --help | --hel | --he | -h)
1089
 
    ac_init_help=long ;;
1090
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091
 
    ac_init_help=recursive ;;
1092
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093
 
    ac_init_help=short ;;
1094
 
 
1095
 
  -host | --host | --hos | --ho)
1096
 
    ac_prev=host_alias ;;
1097
 
  -host=* | --host=* | --hos=* | --ho=*)
1098
 
    host_alias=$ac_optarg ;;
1099
 
 
1100
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101
 
    ac_prev=htmldir ;;
1102
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103
 
  | --ht=*)
1104
 
    htmldir=$ac_optarg ;;
1105
 
 
1106
 
  -includedir | --includedir | --includedi | --included | --include \
1107
 
  | --includ | --inclu | --incl | --inc)
1108
 
    ac_prev=includedir ;;
1109
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1111
 
    includedir=$ac_optarg ;;
1112
 
 
1113
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1114
 
    ac_prev=infodir ;;
1115
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116
 
    infodir=$ac_optarg ;;
1117
 
 
1118
 
  -libdir | --libdir | --libdi | --libd)
1119
 
    ac_prev=libdir ;;
1120
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121
 
    libdir=$ac_optarg ;;
1122
 
 
1123
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124
 
  | --libexe | --libex | --libe)
1125
 
    ac_prev=libexecdir ;;
1126
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127
 
  | --libexe=* | --libex=* | --libe=*)
1128
 
    libexecdir=$ac_optarg ;;
1129
 
 
1130
 
  -localedir | --localedir | --localedi | --localed | --locale)
1131
 
    ac_prev=localedir ;;
1132
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133
 
    localedir=$ac_optarg ;;
1134
 
 
1135
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1136
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1137
 
    ac_prev=localstatedir ;;
1138
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140
 
    localstatedir=$ac_optarg ;;
1141
 
 
1142
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143
 
    ac_prev=mandir ;;
1144
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145
 
    mandir=$ac_optarg ;;
1146
 
 
1147
 
  -nfp | --nfp | --nf)
1148
 
    # Obsolete; use --without-fp.
1149
 
    with_fp=no ;;
1150
 
 
1151
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152
 
  | --no-cr | --no-c | -n)
1153
 
    no_create=yes ;;
1154
 
 
1155
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157
 
    no_recursion=yes ;;
1158
 
 
1159
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161
 
  | --oldin | --oldi | --old | --ol | --o)
1162
 
    ac_prev=oldincludedir ;;
1163
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166
 
    oldincludedir=$ac_optarg ;;
1167
 
 
1168
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169
 
    ac_prev=prefix ;;
1170
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171
 
    prefix=$ac_optarg ;;
1172
 
 
1173
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174
 
  | --program-pre | --program-pr | --program-p)
1175
 
    ac_prev=program_prefix ;;
1176
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178
 
    program_prefix=$ac_optarg ;;
1179
 
 
1180
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181
 
  | --program-suf | --program-su | --program-s)
1182
 
    ac_prev=program_suffix ;;
1183
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185
 
    program_suffix=$ac_optarg ;;
1186
 
 
1187
 
  -program-transform-name | --program-transform-name \
1188
 
  | --program-transform-nam | --program-transform-na \
1189
 
  | --program-transform-n | --program-transform- \
1190
 
  | --program-transform | --program-transfor \
1191
 
  | --program-transfo | --program-transf \
1192
 
  | --program-trans | --program-tran \
1193
 
  | --progr-tra | --program-tr | --program-t)
1194
 
    ac_prev=program_transform_name ;;
1195
 
  -program-transform-name=* | --program-transform-name=* \
1196
 
  | --program-transform-nam=* | --program-transform-na=* \
1197
 
  | --program-transform-n=* | --program-transform-=* \
1198
 
  | --program-transform=* | --program-transfor=* \
1199
 
  | --program-transfo=* | --program-transf=* \
1200
 
  | --program-trans=* | --program-tran=* \
1201
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1202
 
    program_transform_name=$ac_optarg ;;
1203
 
 
1204
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205
 
    ac_prev=pdfdir ;;
1206
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207
 
    pdfdir=$ac_optarg ;;
1208
 
 
1209
 
  -psdir | --psdir | --psdi | --psd | --ps)
1210
 
    ac_prev=psdir ;;
1211
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212
 
    psdir=$ac_optarg ;;
1213
 
 
1214
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215
 
  | -silent | --silent | --silen | --sile | --sil)
1216
 
    silent=yes ;;
1217
 
 
1218
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219
 
    ac_prev=sbindir ;;
1220
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221
 
  | --sbi=* | --sb=*)
1222
 
    sbindir=$ac_optarg ;;
1223
 
 
1224
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226
 
  | --sharedst | --shareds | --shared | --share | --shar \
1227
 
  | --sha | --sh)
1228
 
    ac_prev=sharedstatedir ;;
1229
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232
 
  | --sha=* | --sh=*)
1233
 
    sharedstatedir=$ac_optarg ;;
1234
 
 
1235
 
  -site | --site | --sit)
1236
 
    ac_prev=site ;;
1237
 
  -site=* | --site=* | --sit=*)
1238
 
    site=$ac_optarg ;;
1239
 
 
1240
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241
 
    ac_prev=srcdir ;;
1242
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243
 
    srcdir=$ac_optarg ;;
1244
 
 
1245
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1247
 
    ac_prev=sysconfdir ;;
1248
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250
 
    sysconfdir=$ac_optarg ;;
1251
 
 
1252
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1253
 
    ac_prev=target_alias ;;
1254
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255
 
    target_alias=$ac_optarg ;;
1256
 
 
1257
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258
 
    verbose=yes ;;
1259
 
 
1260
 
  -version | --version | --versio | --versi | --vers | -V)
1261
 
    ac_init_version=: ;;
1262
 
 
1263
 
  -with-* | --with-*)
1264
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265
 
    # Reject names that are not valid shell variable names.
1266
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267
 
      as_fn_error "invalid package name: $ac_useropt"
1268
 
    ac_useropt_orig=$ac_useropt
1269
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270
 
    case $ac_user_opts in
1271
 
      *"
1272
 
"with_$ac_useropt"
1273
 
"*) ;;
1274
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275
 
         ac_unrecognized_sep=', ';;
1276
 
    esac
1277
 
    eval with_$ac_useropt=\$ac_optarg ;;
1278
 
 
1279
 
  -without-* | --without-*)
1280
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281
 
    # Reject names that are not valid shell variable names.
1282
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283
 
      as_fn_error "invalid package name: $ac_useropt"
1284
 
    ac_useropt_orig=$ac_useropt
1285
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286
 
    case $ac_user_opts in
1287
 
      *"
1288
 
"with_$ac_useropt"
1289
 
"*) ;;
1290
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291
 
         ac_unrecognized_sep=', ';;
1292
 
    esac
1293
 
    eval with_$ac_useropt=no ;;
1294
 
 
1295
 
  --x)
1296
 
    # Obsolete; use --with-x.
1297
 
    with_x=yes ;;
1298
 
 
1299
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300
 
  | --x-incl | --x-inc | --x-in | --x-i)
1301
 
    ac_prev=x_includes ;;
1302
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304
 
    x_includes=$ac_optarg ;;
1305
 
 
1306
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308
 
    ac_prev=x_libraries ;;
1309
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311
 
    x_libraries=$ac_optarg ;;
1312
 
 
1313
 
  -*) as_fn_error "unrecognized option: \`$ac_option'
1314
 
Try \`$0 --help' for more information."
1315
 
    ;;
1316
 
 
1317
 
  *=*)
1318
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319
 
    # Reject names that are not valid shell variable names.
1320
 
    case $ac_envvar in #(
1321
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1322
 
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1323
 
    esac
1324
 
    eval $ac_envvar=\$ac_optarg
1325
 
    export $ac_envvar ;;
1326
 
 
1327
 
  *)
1328
 
    # FIXME: should be removed in autoconf 3.0.
1329
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333
 
    ;;
1334
 
 
1335
 
  esac
1336
 
done
1337
 
 
1338
 
if test -n "$ac_prev"; then
1339
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340
 
  as_fn_error "missing argument to $ac_option"
1341
 
fi
1342
 
 
1343
 
if test -n "$ac_unrecognized_opts"; then
1344
 
  case $enable_option_checking in
1345
 
    no) ;;
1346
 
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1347
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348
 
  esac
1349
 
fi
1350
 
 
1351
 
# Check all directory arguments for consistency.
1352
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1354
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355
 
                libdir localedir mandir
1356
 
do
1357
 
  eval ac_val=\$$ac_var
1358
 
  # Remove trailing slashes.
1359
 
  case $ac_val in
1360
 
    */ )
1361
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362
 
      eval $ac_var=\$ac_val;;
1363
 
  esac
1364
 
  # Be sure to have absolute directory names.
1365
 
  case $ac_val in
1366
 
    [\\/$]* | ?:[\\/]* )  continue;;
1367
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368
 
  esac
1369
 
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1370
 
done
1371
 
 
1372
 
# There might be people who depend on the old broken behavior: `$host'
1373
 
# used to hold the argument of --host etc.
1374
 
# FIXME: To remove some day.
1375
 
build=$build_alias
1376
 
host=$host_alias
1377
 
target=$target_alias
1378
 
 
1379
 
# FIXME: To remove some day.
1380
 
if test "x$host_alias" != x; then
1381
 
  if test "x$build_alias" = x; then
1382
 
    cross_compiling=maybe
1383
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1385
 
  elif test "x$build_alias" != "x$host_alias"; then
1386
 
    cross_compiling=yes
1387
 
  fi
1388
 
fi
1389
 
 
1390
 
ac_tool_prefix=
1391
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
 
 
1393
 
test "$silent" = yes && exec 6>/dev/null
1394
 
 
1395
 
 
1396
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397
 
ac_ls_di=`ls -di .` &&
1398
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399
 
  as_fn_error "working directory cannot be determined"
1400
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401
 
  as_fn_error "pwd does not report name of working directory"
1402
 
 
1403
 
 
1404
 
# Find the source files, if location was not specified.
1405
 
if test -z "$srcdir"; then
1406
 
  ac_srcdir_defaulted=yes
1407
 
  # Try the directory containing this script, then the parent directory.
1408
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1409
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1411
 
         X"$as_myself" : 'X\(//\)$' \| \
1412
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413
 
$as_echo X"$as_myself" |
1414
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415
 
            s//\1/
1416
 
            q
1417
 
          }
1418
 
          /^X\(\/\/\)[^/].*/{
1419
 
            s//\1/
1420
 
            q
1421
 
          }
1422
 
          /^X\(\/\/\)$/{
1423
 
            s//\1/
1424
 
            q
1425
 
          }
1426
 
          /^X\(\/\).*/{
1427
 
            s//\1/
1428
 
            q
1429
 
          }
1430
 
          s/.*/./; q'`
1431
 
  srcdir=$ac_confdir
1432
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1433
 
    srcdir=..
1434
 
  fi
1435
 
else
1436
 
  ac_srcdir_defaulted=no
1437
 
fi
1438
 
if test ! -r "$srcdir/$ac_unique_file"; then
1439
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440
 
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1441
 
fi
1442
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443
 
ac_abs_confdir=`(
1444
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1445
 
        pwd)`
1446
 
# When building in place, set srcdir=.
1447
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1448
 
  srcdir=.
1449
 
fi
1450
 
# Remove unnecessary trailing slashes from srcdir.
1451
 
# Double slashes in file names in object file debugging info
1452
 
# mess up M-x gdb in Emacs.
1453
 
case $srcdir in
1454
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455
 
esac
1456
 
for ac_var in $ac_precious_vars; do
1457
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1459
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461
 
done
1462
 
 
1463
 
#
1464
 
# Report the --help message.
1465
 
#
1466
 
if test "$ac_init_help" = "long"; then
1467
 
  # Omit some internal or obsolete options to make the list less imposing.
1468
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1469
 
  cat <<_ACEOF
1470
 
\`configure' configures Varnish 2.1.3 to adapt to many kinds of systems.
1471
 
 
1472
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1473
 
 
1474
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1476
 
 
1477
 
Defaults for the options are specified in brackets.
1478
 
 
1479
 
Configuration:
1480
 
  -h, --help              display this help and exit
1481
 
      --help=short        display options specific to this package
1482
 
      --help=recursive    display the short help of all the included packages
1483
 
  -V, --version           display version information and exit
1484
 
  -q, --quiet, --silent   do not print \`checking...' messages
1485
 
      --cache-file=FILE   cache test results in FILE [disabled]
1486
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1487
 
  -n, --no-create         do not create output files
1488
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1489
 
 
1490
 
Installation directories:
1491
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1492
 
                          [$ac_default_prefix]
1493
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1494
 
                          [PREFIX]
1495
 
 
1496
 
By default, \`make install' will install all the files in
1497
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1498
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499
 
for instance \`--prefix=\$HOME'.
1500
 
 
1501
 
For better control, use the options below.
1502
 
 
1503
 
Fine tuning of the installation directories:
1504
 
  --bindir=DIR            user executables [EPREFIX/bin]
1505
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1506
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1507
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1508
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1509
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1510
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1511
 
  --includedir=DIR        C header files [PREFIX/include]
1512
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1513
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1514
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1515
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1516
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1517
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1518
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/varnish]
1519
 
  --htmldir=DIR           html documentation [DOCDIR]
1520
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1521
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1522
 
  --psdir=DIR             ps documentation [DOCDIR]
1523
 
_ACEOF
1524
 
 
1525
 
  cat <<\_ACEOF
1526
 
 
1527
 
Program names:
1528
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1529
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1530
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1531
 
 
1532
 
System types:
1533
 
  --build=BUILD     configure for building on BUILD [guessed]
1534
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1535
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1536
 
_ACEOF
1537
 
fi
1538
 
 
1539
 
if test -n "$ac_init_help"; then
1540
 
  case $ac_init_help in
1541
 
     short | recursive ) echo "Configuration of Varnish 2.1.3:";;
1542
 
   esac
1543
 
  cat <<\_ACEOF
1544
 
 
1545
 
Optional Features:
1546
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1547
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549
 
  --disable-dependency-tracking  speeds up one-time build
1550
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1551
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1552
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1553
 
  --enable-fast-install[=PKGS]
1554
 
                          optimize for fast installation [default=yes]
1555
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1556
 
  --disable-largefile     omit support for large files
1557
 
  --enable-kqueue         use kqueue if available (default is YES)
1558
 
  --enable-epoll          use epoll if available (default is YES)
1559
 
  --enable-ports          use ports if available (default is YES)
1560
 
  --enable-developer-warnings
1561
 
                          enable strict warnings (default is NO)
1562
 
  --enable-debugging-symbols
1563
 
                          enable debugging symbols (default is NO)
1564
 
  --enable-diagnostics    enable run-time diagnostics (default is NO)
1565
 
  --enable-extra-developer-warnings
1566
 
                          enable even stricter warnings (default is NO)
1567
 
  --enable-stack-protector
1568
 
                          enable stack protector (default is NO)
1569
 
  --enable-tests          build test programs (default is NO)
1570
 
  --enable-werror         use -Werror (default is NO)
1571
 
  --disable-jemalloc      do not use jemalloc (default is yes on Linux, no
1572
 
                          everywhere else)
1573
 
 
1574
 
Optional Packages:
1575
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1578
 
                          both]
1579
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580
 
  --with-pcre-config=PATH Location of PCRE pcre-config (auto)
1581
 
 
1582
 
Some influential environment variables:
1583
 
  CC          C compiler command
1584
 
  CFLAGS      C compiler flags
1585
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1586
 
              nonstandard directory <lib dir>
1587
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1588
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1589
 
              you have headers in a nonstandard directory <include dir>
1590
 
  CPP         C preprocessor
1591
 
  PKG_CONFIG  path to pkg-config utility
1592
 
  PKG_CONFIG_PATH
1593
 
              directories to add to pkg-config's search path
1594
 
  PKG_CONFIG_LIBDIR
1595
 
              path overriding pkg-config's built-in search path
1596
 
  PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1597
 
  PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1598
 
  VCC_CC      C compiler command line for VCL code
1599
 
 
1600
 
Use these variables to override the choices made by `configure' or to help
1601
 
it to find libraries and programs with nonstandard names/locations.
1602
 
 
1603
 
Report bugs to <varnish-dev@varnish-cache.org>.
1604
 
_ACEOF
1605
 
ac_status=$?
1606
 
fi
1607
 
 
1608
 
if test "$ac_init_help" = "recursive"; then
1609
 
  # If there are subdirs, report their specific --help.
1610
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611
 
    test -d "$ac_dir" ||
1612
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613
 
      continue
1614
 
    ac_builddir=.
1615
 
 
1616
 
case "$ac_dir" in
1617
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618
 
*)
1619
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620
 
  # A ".." for each directory in $ac_dir_suffix.
1621
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622
 
  case $ac_top_builddir_sub in
1623
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625
 
  esac ;;
1626
 
esac
1627
 
ac_abs_top_builddir=$ac_pwd
1628
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629
 
# for backward compatibility:
1630
 
ac_top_builddir=$ac_top_build_prefix
1631
 
 
1632
 
case $srcdir in
1633
 
  .)  # We are building in place.
1634
 
    ac_srcdir=.
1635
 
    ac_top_srcdir=$ac_top_builddir_sub
1636
 
    ac_abs_top_srcdir=$ac_pwd ;;
1637
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1638
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1639
 
    ac_top_srcdir=$srcdir
1640
 
    ac_abs_top_srcdir=$srcdir ;;
1641
 
  *) # Relative name.
1642
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1644
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645
 
esac
1646
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
 
 
1648
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1649
 
    # Check for guested configure.
1650
 
    if test -f "$ac_srcdir/configure.gnu"; then
1651
 
      echo &&
1652
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653
 
    elif test -f "$ac_srcdir/configure"; then
1654
 
      echo &&
1655
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1656
 
    else
1657
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658
 
    fi || ac_status=$?
1659
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1660
 
  done
1661
 
fi
1662
 
 
1663
 
test -n "$ac_init_help" && exit $ac_status
1664
 
if $ac_init_version; then
1665
 
  cat <<\_ACEOF
1666
 
Varnish configure 2.1.3
1667
 
generated by GNU Autoconf 2.65
1668
 
 
1669
 
Copyright (C) 2009 Free Software Foundation, Inc.
1670
 
This configure script is free software; the Free Software Foundation
1671
 
gives unlimited permission to copy, distribute and modify it.
1672
 
 
1673
 
Copyright (c) 2006 Verdens Gang AS
1674
 
Copyright (c) 2006-2010 Redpill Linpro AS
1675
 
Copyright (c) 2010 Varnish Software AS
1676
 
_ACEOF
1677
 
  exit
1678
 
fi
1679
 
 
1680
 
## ------------------------ ##
1681
 
## Autoconf initialization. ##
1682
 
## ------------------------ ##
1683
 
 
1684
 
# ac_fn_c_try_compile LINENO
1685
 
# --------------------------
1686
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1687
 
ac_fn_c_try_compile ()
1688
 
{
1689
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690
 
  rm -f conftest.$ac_objext
1691
 
  if { { ac_try="$ac_compile"
1692
 
case "(($ac_try" in
1693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694
 
  *) ac_try_echo=$ac_try;;
1695
 
esac
1696
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697
 
$as_echo "$ac_try_echo"; } >&5
1698
 
  (eval "$ac_compile") 2>conftest.err
1699
 
  ac_status=$?
1700
 
  if test -s conftest.err; then
1701
 
    grep -v '^ *+' conftest.err >conftest.er1
1702
 
    cat conftest.er1 >&5
1703
 
    mv -f conftest.er1 conftest.err
1704
 
  fi
1705
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706
 
  test $ac_status = 0; } && {
1707
 
         test -z "$ac_c_werror_flag" ||
1708
 
         test ! -s conftest.err
1709
 
       } && test -s conftest.$ac_objext; then :
1710
 
  ac_retval=0
1711
 
else
1712
 
  $as_echo "$as_me: failed program was:" >&5
1713
 
sed 's/^/| /' conftest.$ac_ext >&5
1714
 
 
1715
 
        ac_retval=1
1716
 
fi
1717
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718
 
  as_fn_set_status $ac_retval
1719
 
 
1720
 
} # ac_fn_c_try_compile
1721
 
 
1722
 
# ac_fn_c_try_cpp LINENO
1723
 
# ----------------------
1724
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1725
 
ac_fn_c_try_cpp ()
1726
 
{
1727
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1729
 
case "(($ac_try" in
1730
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731
 
  *) ac_try_echo=$ac_try;;
1732
 
esac
1733
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734
 
$as_echo "$ac_try_echo"; } >&5
1735
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1736
 
  ac_status=$?
1737
 
  if test -s conftest.err; then
1738
 
    grep -v '^ *+' conftest.err >conftest.er1
1739
 
    cat conftest.er1 >&5
1740
 
    mv -f conftest.er1 conftest.err
1741
 
  fi
1742
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743
 
  test $ac_status = 0; } >/dev/null && {
1744
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1745
 
         test ! -s conftest.err
1746
 
       }; then :
1747
 
  ac_retval=0
1748
 
else
1749
 
  $as_echo "$as_me: failed program was:" >&5
1750
 
sed 's/^/| /' conftest.$ac_ext >&5
1751
 
 
1752
 
    ac_retval=1
1753
 
fi
1754
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755
 
  as_fn_set_status $ac_retval
1756
 
 
1757
 
} # ac_fn_c_try_cpp
1758
 
 
1759
 
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1760
 
# -------------------------------------------------------
1761
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1762
 
# the include files in INCLUDES and setting the cache variable VAR
1763
 
# accordingly.
1764
 
ac_fn_c_check_header_mongrel ()
1765
 
{
1766
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767
 
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769
 
$as_echo_n "checking for $2... " >&6; }
1770
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771
 
  $as_echo_n "(cached) " >&6
1772
 
fi
1773
 
eval ac_res=\$$3
1774
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775
 
$as_echo "$ac_res" >&6; }
1776
 
else
1777
 
  # Is the header compilable?
1778
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1779
 
$as_echo_n "checking $2 usability... " >&6; }
1780
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781
 
/* end confdefs.h.  */
1782
 
$4
1783
 
#include <$2>
1784
 
_ACEOF
1785
 
if ac_fn_c_try_compile "$LINENO"; then :
1786
 
  ac_header_compiler=yes
1787
 
else
1788
 
  ac_header_compiler=no
1789
 
fi
1790
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1792
 
$as_echo "$ac_header_compiler" >&6; }
1793
 
 
1794
 
# Is the header present?
1795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1796
 
$as_echo_n "checking $2 presence... " >&6; }
1797
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798
 
/* end confdefs.h.  */
1799
 
#include <$2>
1800
 
_ACEOF
1801
 
if ac_fn_c_try_cpp "$LINENO"; then :
1802
 
  ac_header_preproc=yes
1803
 
else
1804
 
  ac_header_preproc=no
1805
 
fi
1806
 
rm -f conftest.err conftest.$ac_ext
1807
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1808
 
$as_echo "$ac_header_preproc" >&6; }
1809
 
 
1810
 
# So?  What about this header?
1811
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1812
 
  yes:no: )
1813
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1814
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1815
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817
 
    ;;
1818
 
  no:yes:* )
1819
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1820
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1821
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1822
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1823
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1824
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1825
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1826
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1827
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829
 
( cat <<\_ASBOX
1830
 
## -------------------------------------------- ##
1831
 
## Report this to varnish-dev@varnish-cache.org ##
1832
 
## -------------------------------------------- ##
1833
 
_ASBOX
1834
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1835
 
    ;;
1836
 
esac
1837
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838
 
$as_echo_n "checking for $2... " >&6; }
1839
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1840
 
  $as_echo_n "(cached) " >&6
1841
 
else
1842
 
  eval "$3=\$ac_header_compiler"
1843
 
fi
1844
 
eval ac_res=\$$3
1845
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846
 
$as_echo "$ac_res" >&6; }
1847
 
fi
1848
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849
 
 
1850
 
} # ac_fn_c_check_header_mongrel
1851
 
 
1852
 
# ac_fn_c_try_run LINENO
1853
 
# ----------------------
1854
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1855
 
# that executables *can* be run.
1856
 
ac_fn_c_try_run ()
1857
 
{
1858
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859
 
  if { { ac_try="$ac_link"
1860
 
case "(($ac_try" in
1861
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862
 
  *) ac_try_echo=$ac_try;;
1863
 
esac
1864
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865
 
$as_echo "$ac_try_echo"; } >&5
1866
 
  (eval "$ac_link") 2>&5
1867
 
  ac_status=$?
1868
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870
 
  { { case "(($ac_try" in
1871
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872
 
  *) ac_try_echo=$ac_try;;
1873
 
esac
1874
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875
 
$as_echo "$ac_try_echo"; } >&5
1876
 
  (eval "$ac_try") 2>&5
1877
 
  ac_status=$?
1878
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879
 
  test $ac_status = 0; }; }; then :
1880
 
  ac_retval=0
1881
 
else
1882
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1883
 
       $as_echo "$as_me: failed program was:" >&5
1884
 
sed 's/^/| /' conftest.$ac_ext >&5
1885
 
 
1886
 
       ac_retval=$ac_status
1887
 
fi
1888
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890
 
  as_fn_set_status $ac_retval
1891
 
 
1892
 
} # ac_fn_c_try_run
1893
 
 
1894
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1895
 
# -------------------------------------------------------
1896
 
# Tests whether HEADER exists and can be compiled using the include files in
1897
 
# INCLUDES, setting the cache variable VAR accordingly.
1898
 
ac_fn_c_check_header_compile ()
1899
 
{
1900
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902
 
$as_echo_n "checking for $2... " >&6; }
1903
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904
 
  $as_echo_n "(cached) " >&6
1905
 
else
1906
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907
 
/* end confdefs.h.  */
1908
 
$4
1909
 
#include <$2>
1910
 
_ACEOF
1911
 
if ac_fn_c_try_compile "$LINENO"; then :
1912
 
  eval "$3=yes"
1913
 
else
1914
 
  eval "$3=no"
1915
 
fi
1916
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917
 
fi
1918
 
eval ac_res=\$$3
1919
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920
 
$as_echo "$ac_res" >&6; }
1921
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922
 
 
1923
 
} # ac_fn_c_check_header_compile
1924
 
 
1925
 
# ac_fn_c_try_link LINENO
1926
 
# -----------------------
1927
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1928
 
ac_fn_c_try_link ()
1929
 
{
1930
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1932
 
  if { { ac_try="$ac_link"
1933
 
case "(($ac_try" in
1934
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935
 
  *) ac_try_echo=$ac_try;;
1936
 
esac
1937
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938
 
$as_echo "$ac_try_echo"; } >&5
1939
 
  (eval "$ac_link") 2>conftest.err
1940
 
  ac_status=$?
1941
 
  if test -s conftest.err; then
1942
 
    grep -v '^ *+' conftest.err >conftest.er1
1943
 
    cat conftest.er1 >&5
1944
 
    mv -f conftest.er1 conftest.err
1945
 
  fi
1946
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947
 
  test $ac_status = 0; } && {
1948
 
         test -z "$ac_c_werror_flag" ||
1949
 
         test ! -s conftest.err
1950
 
       } && test -s conftest$ac_exeext && {
1951
 
         test "$cross_compiling" = yes ||
1952
 
         $as_test_x conftest$ac_exeext
1953
 
       }; then :
1954
 
  ac_retval=0
1955
 
else
1956
 
  $as_echo "$as_me: failed program was:" >&5
1957
 
sed 's/^/| /' conftest.$ac_ext >&5
1958
 
 
1959
 
        ac_retval=1
1960
 
fi
1961
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963
 
  # interfere with the next link command; also delete a directory that is
1964
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1965
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967
 
  as_fn_set_status $ac_retval
1968
 
 
1969
 
} # ac_fn_c_try_link
1970
 
 
1971
 
# ac_fn_c_check_func LINENO FUNC VAR
1972
 
# ----------------------------------
1973
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1974
 
ac_fn_c_check_func ()
1975
 
{
1976
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978
 
$as_echo_n "checking for $2... " >&6; }
1979
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1980
 
  $as_echo_n "(cached) " >&6
1981
 
else
1982
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983
 
/* end confdefs.h.  */
1984
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1985
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1986
 
#define $2 innocuous_$2
1987
 
 
1988
 
/* System header to define __stub macros and hopefully few prototypes,
1989
 
    which can conflict with char $2 (); below.
1990
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1991
 
    <limits.h> exists even on freestanding compilers.  */
1992
 
 
1993
 
#ifdef __STDC__
1994
 
# include <limits.h>
1995
 
#else
1996
 
# include <assert.h>
1997
 
#endif
1998
 
 
1999
 
#undef $2
2000
 
 
2001
 
/* Override any GCC internal prototype to avoid an error.
2002
 
   Use char because int might match the return type of a GCC
2003
 
   builtin and then its argument prototype would still apply.  */
2004
 
#ifdef __cplusplus
2005
 
extern "C"
2006
 
#endif
2007
 
char $2 ();
2008
 
/* The GNU C library defines this for functions which it implements
2009
 
    to always fail with ENOSYS.  Some functions are actually named
2010
 
    something starting with __ and the normal name is an alias.  */
2011
 
#if defined __stub_$2 || defined __stub___$2
2012
 
choke me
2013
 
#endif
2014
 
 
2015
 
int
2016
 
main ()
2017
 
{
2018
 
return $2 ();
2019
 
  ;
2020
 
  return 0;
2021
 
}
2022
 
_ACEOF
2023
 
if ac_fn_c_try_link "$LINENO"; then :
2024
 
  eval "$3=yes"
2025
 
else
2026
 
  eval "$3=no"
2027
 
fi
2028
 
rm -f core conftest.err conftest.$ac_objext \
2029
 
    conftest$ac_exeext conftest.$ac_ext
2030
 
fi
2031
 
eval ac_res=\$$3
2032
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033
 
$as_echo "$ac_res" >&6; }
2034
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035
 
 
2036
 
} # ac_fn_c_check_func
2037
 
 
2038
 
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2039
 
# ----------------------------------------------------
2040
 
# Tries to find if the field MEMBER exists in type AGGR, after including
2041
 
# INCLUDES, setting cache variable VAR accordingly.
2042
 
ac_fn_c_check_member ()
2043
 
{
2044
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2046
 
$as_echo_n "checking for $2.$3... " >&6; }
2047
 
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2048
 
  $as_echo_n "(cached) " >&6
2049
 
else
2050
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051
 
/* end confdefs.h.  */
2052
 
$5
2053
 
int
2054
 
main ()
2055
 
{
2056
 
static $2 ac_aggr;
2057
 
if (ac_aggr.$3)
2058
 
return 0;
2059
 
  ;
2060
 
  return 0;
2061
 
}
2062
 
_ACEOF
2063
 
if ac_fn_c_try_compile "$LINENO"; then :
2064
 
  eval "$4=yes"
2065
 
else
2066
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067
 
/* end confdefs.h.  */
2068
 
$5
2069
 
int
2070
 
main ()
2071
 
{
2072
 
static $2 ac_aggr;
2073
 
if (sizeof ac_aggr.$3)
2074
 
return 0;
2075
 
  ;
2076
 
  return 0;
2077
 
}
2078
 
_ACEOF
2079
 
if ac_fn_c_try_compile "$LINENO"; then :
2080
 
  eval "$4=yes"
2081
 
else
2082
 
  eval "$4=no"
2083
 
fi
2084
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085
 
fi
2086
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087
 
fi
2088
 
eval ac_res=\$$4
2089
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090
 
$as_echo "$ac_res" >&6; }
2091
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092
 
 
2093
 
} # ac_fn_c_check_member
2094
 
 
2095
 
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2096
 
# -------------------------------------------
2097
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
2098
 
# variable VAR accordingly.
2099
 
ac_fn_c_check_type ()
2100
 
{
2101
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103
 
$as_echo_n "checking for $2... " >&6; }
2104
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105
 
  $as_echo_n "(cached) " >&6
2106
 
else
2107
 
  eval "$3=no"
2108
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109
 
/* end confdefs.h.  */
2110
 
$4
2111
 
int
2112
 
main ()
2113
 
{
2114
 
if (sizeof ($2))
2115
 
         return 0;
2116
 
  ;
2117
 
  return 0;
2118
 
}
2119
 
_ACEOF
2120
 
if ac_fn_c_try_compile "$LINENO"; then :
2121
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122
 
/* end confdefs.h.  */
2123
 
$4
2124
 
int
2125
 
main ()
2126
 
{
2127
 
if (sizeof (($2)))
2128
 
            return 0;
2129
 
  ;
2130
 
  return 0;
2131
 
}
2132
 
_ACEOF
2133
 
if ac_fn_c_try_compile "$LINENO"; then :
2134
 
 
2135
 
else
2136
 
  eval "$3=yes"
2137
 
fi
2138
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139
 
fi
2140
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141
 
fi
2142
 
eval ac_res=\$$3
2143
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144
 
$as_echo "$ac_res" >&6; }
2145
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146
 
 
2147
 
} # ac_fn_c_check_type
2148
 
 
2149
 
# ac_fn_c_check_decl LINENO SYMBOL VAR
2150
 
# ------------------------------------
2151
 
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2152
 
ac_fn_c_check_decl ()
2153
 
{
2154
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2156
 
$as_echo_n "checking whether $2 is declared... " >&6; }
2157
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2158
 
  $as_echo_n "(cached) " >&6
2159
 
else
2160
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161
 
/* end confdefs.h.  */
2162
 
$4
2163
 
int
2164
 
main ()
2165
 
{
2166
 
#ifndef $2
2167
 
  (void) $2;
2168
 
#endif
2169
 
 
2170
 
  ;
2171
 
  return 0;
2172
 
}
2173
 
_ACEOF
2174
 
if ac_fn_c_try_compile "$LINENO"; then :
2175
 
  eval "$3=yes"
2176
 
else
2177
 
  eval "$3=no"
2178
 
fi
2179
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180
 
fi
2181
 
eval ac_res=\$$3
2182
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183
 
$as_echo "$ac_res" >&6; }
2184
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185
 
 
2186
 
} # ac_fn_c_check_decl
2187
 
cat >config.log <<_ACEOF
2188
 
This file contains any messages produced by compilers while
2189
 
running configure, to aid debugging if configure makes a mistake.
2190
 
 
2191
 
It was created by Varnish $as_me 2.1.3, which was
2192
 
generated by GNU Autoconf 2.65.  Invocation command line was
2193
 
 
2194
 
  $ $0 $@
2195
 
 
2196
 
_ACEOF
2197
 
exec 5>>config.log
2198
 
{
2199
 
cat <<_ASUNAME
2200
 
## --------- ##
2201
 
## Platform. ##
2202
 
## --------- ##
2203
 
 
2204
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2205
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2206
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2207
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2208
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2209
 
 
2210
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2211
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2212
 
 
2213
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2214
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2215
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2216
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2217
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2218
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2219
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2220
 
 
2221
 
_ASUNAME
2222
 
 
2223
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224
 
for as_dir in $PATH
2225
 
do
2226
 
  IFS=$as_save_IFS
2227
 
  test -z "$as_dir" && as_dir=.
2228
 
    $as_echo "PATH: $as_dir"
2229
 
  done
2230
 
IFS=$as_save_IFS
2231
 
 
2232
 
} >&5
2233
 
 
2234
 
cat >&5 <<_ACEOF
2235
 
 
2236
 
 
2237
 
## ----------- ##
2238
 
## Core tests. ##
2239
 
## ----------- ##
2240
 
 
2241
 
_ACEOF
2242
 
 
2243
 
 
2244
 
# Keep a trace of the command line.
2245
 
# Strip out --no-create and --no-recursion so they do not pile up.
2246
 
# Strip out --silent because we don't want to record it for future runs.
2247
 
# Also quote any args containing shell meta-characters.
2248
 
# Make two passes to allow for proper duplicate-argument suppression.
2249
 
ac_configure_args=
2250
 
ac_configure_args0=
2251
 
ac_configure_args1=
2252
 
ac_must_keep_next=false
2253
 
for ac_pass in 1 2
2254
 
do
2255
 
  for ac_arg
2256
 
  do
2257
 
    case $ac_arg in
2258
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2259
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2260
 
    | -silent | --silent | --silen | --sile | --sil)
2261
 
      continue ;;
2262
 
    *\'*)
2263
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2264
 
    esac
2265
 
    case $ac_pass in
2266
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2267
 
    2)
2268
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2269
 
      if test $ac_must_keep_next = true; then
2270
 
        ac_must_keep_next=false # Got value, back to normal.
2271
 
      else
2272
 
        case $ac_arg in
2273
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2274
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2275
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2276
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2277
 
            case "$ac_configure_args0 " in
2278
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2279
 
            esac
2280
 
            ;;
2281
 
          -* ) ac_must_keep_next=true ;;
2282
 
        esac
2283
 
      fi
2284
 
      as_fn_append ac_configure_args " '$ac_arg'"
2285
 
      ;;
2286
 
    esac
2287
 
  done
2288
 
done
2289
 
{ ac_configure_args0=; unset ac_configure_args0;}
2290
 
{ ac_configure_args1=; unset ac_configure_args1;}
2291
 
 
2292
 
# When interrupted or exit'd, cleanup temporary files, and complete
2293
 
# config.log.  We remove comments because anyway the quotes in there
2294
 
# would cause problems or look ugly.
2295
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2296
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2297
 
trap 'exit_status=$?
2298
 
  # Save into config.log some information that might help in debugging.
2299
 
  {
2300
 
    echo
2301
 
 
2302
 
    cat <<\_ASBOX
2303
 
## ---------------- ##
2304
 
## Cache variables. ##
2305
 
## ---------------- ##
2306
 
_ASBOX
2307
 
    echo
2308
 
    # The following way of writing the cache mishandles newlines in values,
2309
 
(
2310
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311
 
    eval ac_val=\$$ac_var
2312
 
    case $ac_val in #(
2313
 
    *${as_nl}*)
2314
 
      case $ac_var in #(
2315
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2317
 
      esac
2318
 
      case $ac_var in #(
2319
 
      _ | IFS | as_nl) ;; #(
2320
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2322
 
      esac ;;
2323
 
    esac
2324
 
  done
2325
 
  (set) 2>&1 |
2326
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327
 
    *${as_nl}ac_space=\ *)
2328
 
      sed -n \
2329
 
        "s/'\''/'\''\\\\'\'''\''/g;
2330
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2331
 
      ;; #(
2332
 
    *)
2333
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2334
 
      ;;
2335
 
    esac |
2336
 
    sort
2337
 
)
2338
 
    echo
2339
 
 
2340
 
    cat <<\_ASBOX
2341
 
## ----------------- ##
2342
 
## Output variables. ##
2343
 
## ----------------- ##
2344
 
_ASBOX
2345
 
    echo
2346
 
    for ac_var in $ac_subst_vars
2347
 
    do
2348
 
      eval ac_val=\$$ac_var
2349
 
      case $ac_val in
2350
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351
 
      esac
2352
 
      $as_echo "$ac_var='\''$ac_val'\''"
2353
 
    done | sort
2354
 
    echo
2355
 
 
2356
 
    if test -n "$ac_subst_files"; then
2357
 
      cat <<\_ASBOX
2358
 
## ------------------- ##
2359
 
## File substitutions. ##
2360
 
## ------------------- ##
2361
 
_ASBOX
2362
 
      echo
2363
 
      for ac_var in $ac_subst_files
2364
 
      do
2365
 
        eval ac_val=\$$ac_var
2366
 
        case $ac_val in
2367
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368
 
        esac
2369
 
        $as_echo "$ac_var='\''$ac_val'\''"
2370
 
      done | sort
2371
 
      echo
2372
 
    fi
2373
 
 
2374
 
    if test -s confdefs.h; then
2375
 
      cat <<\_ASBOX
2376
 
## ----------- ##
2377
 
## confdefs.h. ##
2378
 
## ----------- ##
2379
 
_ASBOX
2380
 
      echo
2381
 
      cat confdefs.h
2382
 
      echo
2383
 
    fi
2384
 
    test "$ac_signal" != 0 &&
2385
 
      $as_echo "$as_me: caught signal $ac_signal"
2386
 
    $as_echo "$as_me: exit $exit_status"
2387
 
  } >&5
2388
 
  rm -f core *.core core.conftest.* &&
2389
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2390
 
    exit $exit_status
2391
 
' 0
2392
 
for ac_signal in 1 2 13 15; do
2393
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2394
 
done
2395
 
ac_signal=0
2396
 
 
2397
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2398
 
rm -f -r conftest* confdefs.h
2399
 
 
2400
 
$as_echo "/* confdefs.h */" > confdefs.h
2401
 
 
2402
 
# Predefined preprocessor variables.
2403
 
 
2404
 
cat >>confdefs.h <<_ACEOF
2405
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2406
 
_ACEOF
2407
 
 
2408
 
cat >>confdefs.h <<_ACEOF
2409
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2410
 
_ACEOF
2411
 
 
2412
 
cat >>confdefs.h <<_ACEOF
2413
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2414
 
_ACEOF
2415
 
 
2416
 
cat >>confdefs.h <<_ACEOF
2417
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2418
 
_ACEOF
2419
 
 
2420
 
cat >>confdefs.h <<_ACEOF
2421
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2422
 
_ACEOF
2423
 
 
2424
 
cat >>confdefs.h <<_ACEOF
2425
 
#define PACKAGE_URL "$PACKAGE_URL"
2426
 
_ACEOF
2427
 
 
2428
 
 
2429
 
# Let the site file select an alternate cache file if it wants to.
2430
 
# Prefer an explicitly selected file to automatically selected ones.
2431
 
ac_site_file1=NONE
2432
 
ac_site_file2=NONE
2433
 
if test -n "$CONFIG_SITE"; then
2434
 
  ac_site_file1=$CONFIG_SITE
2435
 
elif test "x$prefix" != xNONE; then
2436
 
  ac_site_file1=$prefix/share/config.site
2437
 
  ac_site_file2=$prefix/etc/config.site
2438
 
else
2439
 
  ac_site_file1=$ac_default_prefix/share/config.site
2440
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2441
 
fi
2442
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2443
 
do
2444
 
  test "x$ac_site_file" = xNONE && continue
2445
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2446
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2447
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2448
 
    sed 's/^/| /' "$ac_site_file" >&5
2449
 
    . "$ac_site_file"
2450
 
  fi
2451
 
done
2452
 
 
2453
 
if test -r "$cache_file"; then
2454
 
  # Some versions of bash will fail to source /dev/null (special files
2455
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2456
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2457
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2458
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2459
 
    case $cache_file in
2460
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2461
 
      *)                      . "./$cache_file";;
2462
 
    esac
2463
 
  fi
2464
 
else
2465
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2466
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2467
 
  >$cache_file
2468
 
fi
2469
 
 
2470
 
# Check that the precious variables saved in the cache have kept the same
2471
 
# value.
2472
 
ac_cache_corrupted=false
2473
 
for ac_var in $ac_precious_vars; do
2474
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2475
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2476
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2477
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2478
 
  case $ac_old_set,$ac_new_set in
2479
 
    set,)
2480
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2481
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2482
 
      ac_cache_corrupted=: ;;
2483
 
    ,set)
2484
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2485
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2486
 
      ac_cache_corrupted=: ;;
2487
 
    ,);;
2488
 
    *)
2489
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2490
 
        # differences in whitespace do not lead to failure.
2491
 
        ac_old_val_w=`echo x $ac_old_val`
2492
 
        ac_new_val_w=`echo x $ac_new_val`
2493
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2494
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2495
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2496
 
          ac_cache_corrupted=:
2497
 
        else
2498
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2499
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2500
 
          eval $ac_var=\$ac_old_val
2501
 
        fi
2502
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2503
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2504
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2505
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2506
 
      fi;;
2507
 
  esac
2508
 
  # Pass precious variables to config.status.
2509
 
  if test "$ac_new_set" = set; then
2510
 
    case $ac_new_val in
2511
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2512
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2513
 
    esac
2514
 
    case " $ac_configure_args " in
2515
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2516
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2517
 
    esac
2518
 
  fi
2519
 
done
2520
 
if $ac_cache_corrupted; then
2521
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2524
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2525
 
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2526
 
fi
2527
 
## -------------------- ##
2528
 
## Main body of script. ##
2529
 
## -------------------- ##
2530
 
 
2531
 
ac_ext=c
2532
 
ac_cpp='$CPP $CPPFLAGS'
2533
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
 
 
2537
 
 
2538
 
 
2539
 
ac_config_headers="$ac_config_headers config.h"
2540
 
 
2541
 
 
2542
 
ac_aux_dir=
2543
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2544
 
  for ac_t in install-sh install.sh shtool; do
2545
 
    if test -f "$ac_dir/$ac_t"; then
2546
 
      ac_aux_dir=$ac_dir
2547
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2548
 
      break 2
2549
 
    fi
2550
 
  done
2551
 
done
2552
 
if test -z "$ac_aux_dir"; then
2553
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2554
 
fi
2555
 
 
2556
 
# These three variables are undocumented and unsupported,
2557
 
# and are intended to be withdrawn in a future Autoconf release.
2558
 
# They can cause serious problems if a builder's source tree is in a directory
2559
 
# whose full name contains unusual characters.
2560
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2561
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2562
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2563
 
 
2564
 
 
2565
 
# Make sure we can run config.sub.
2566
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2567
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2568
 
 
2569
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2570
 
$as_echo_n "checking build system type... " >&6; }
2571
 
if test "${ac_cv_build+set}" = set; then :
2572
 
  $as_echo_n "(cached) " >&6
2573
 
else
2574
 
  ac_build_alias=$build_alias
2575
 
test "x$ac_build_alias" = x &&
2576
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2577
 
test "x$ac_build_alias" = x &&
2578
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2579
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2580
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2581
 
 
2582
 
fi
2583
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2584
 
$as_echo "$ac_cv_build" >&6; }
2585
 
case $ac_cv_build in
2586
 
*-*-*) ;;
2587
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2588
 
esac
2589
 
build=$ac_cv_build
2590
 
ac_save_IFS=$IFS; IFS='-'
2591
 
set x $ac_cv_build
2592
 
shift
2593
 
build_cpu=$1
2594
 
build_vendor=$2
2595
 
shift; shift
2596
 
# Remember, the first character of IFS is used to create $*,
2597
 
# except with old shells:
2598
 
build_os=$*
2599
 
IFS=$ac_save_IFS
2600
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2601
 
 
2602
 
 
2603
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2604
 
$as_echo_n "checking host system type... " >&6; }
2605
 
if test "${ac_cv_host+set}" = set; then :
2606
 
  $as_echo_n "(cached) " >&6
2607
 
else
2608
 
  if test "x$host_alias" = x; then
2609
 
  ac_cv_host=$ac_cv_build
2610
 
else
2611
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2612
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2613
 
fi
2614
 
 
2615
 
fi
2616
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2617
 
$as_echo "$ac_cv_host" >&6; }
2618
 
case $ac_cv_host in
2619
 
*-*-*) ;;
2620
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2621
 
esac
2622
 
host=$ac_cv_host
2623
 
ac_save_IFS=$IFS; IFS='-'
2624
 
set x $ac_cv_host
2625
 
shift
2626
 
host_cpu=$1
2627
 
host_vendor=$2
2628
 
shift; shift
2629
 
# Remember, the first character of IFS is used to create $*,
2630
 
# except with old shells:
2631
 
host_os=$*
2632
 
IFS=$ac_save_IFS
2633
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2634
 
 
2635
 
 
2636
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2637
 
$as_echo_n "checking target system type... " >&6; }
2638
 
if test "${ac_cv_target+set}" = set; then :
2639
 
  $as_echo_n "(cached) " >&6
2640
 
else
2641
 
  if test "x$target_alias" = x; then
2642
 
  ac_cv_target=$ac_cv_host
2643
 
else
2644
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2645
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2646
 
fi
2647
 
 
2648
 
fi
2649
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2650
 
$as_echo "$ac_cv_target" >&6; }
2651
 
case $ac_cv_target in
2652
 
*-*-*) ;;
2653
 
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2654
 
esac
2655
 
target=$ac_cv_target
2656
 
ac_save_IFS=$IFS; IFS='-'
2657
 
set x $ac_cv_target
2658
 
shift
2659
 
target_cpu=$1
2660
 
target_vendor=$2
2661
 
shift; shift
2662
 
# Remember, the first character of IFS is used to create $*,
2663
 
# except with old shells:
2664
 
target_os=$*
2665
 
IFS=$ac_save_IFS
2666
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2667
 
 
2668
 
 
2669
 
# The aliases save the names the user supplied, while $host etc.
2670
 
# will get canonicalized.
2671
 
test -n "$target_alias" &&
2672
 
  test "$program_prefix$program_suffix$program_transform_name" = \
2673
 
    NONENONEs,x,x, &&
2674
 
  program_prefix=${target_alias}-
2675
 
 
2676
 
ac_ext=c
2677
 
ac_cpp='$CPP $CPPFLAGS'
2678
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681
 
 
2682
 
 
2683
 
am__api_version='1.11'
2684
 
 
2685
 
# Find a good install program.  We prefer a C program (faster),
2686
 
# so one script is as good as another.  But avoid the broken or
2687
 
# incompatible versions:
2688
 
# SysV /etc/install, /usr/sbin/install
2689
 
# SunOS /usr/etc/install
2690
 
# IRIX /sbin/install
2691
 
# AIX /bin/install
2692
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2693
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2694
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2695
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2696
 
# OS/2's system install, which has a completely different semantic
2697
 
# ./install, which can be erroneously created by make from ./install.sh.
2698
 
# Reject install programs that cannot install multiple files.
2699
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2700
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2701
 
if test -z "$INSTALL"; then
2702
 
if test "${ac_cv_path_install+set}" = set; then :
2703
 
  $as_echo_n "(cached) " >&6
2704
 
else
2705
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706
 
for as_dir in $PATH
2707
 
do
2708
 
  IFS=$as_save_IFS
2709
 
  test -z "$as_dir" && as_dir=.
2710
 
    # Account for people who put trailing slashes in PATH elements.
2711
 
case $as_dir/ in #((
2712
 
  ./ | .// | /[cC]/* | \
2713
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2714
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2715
 
  /usr/ucb/* ) ;;
2716
 
  *)
2717
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2718
 
    # Don't use installbsd from OSF since it installs stuff as root
2719
 
    # by default.
2720
 
    for ac_prog in ginstall scoinst install; do
2721
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2722
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2723
 
          if test $ac_prog = install &&
2724
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725
 
            # AIX install.  It has an incompatible calling convention.
2726
 
            :
2727
 
          elif test $ac_prog = install &&
2728
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729
 
            # program-specific install script used by HP pwplus--don't use.
2730
 
            :
2731
 
          else
2732
 
            rm -rf conftest.one conftest.two conftest.dir
2733
 
            echo one > conftest.one
2734
 
            echo two > conftest.two
2735
 
            mkdir conftest.dir
2736
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2737
 
              test -s conftest.one && test -s conftest.two &&
2738
 
              test -s conftest.dir/conftest.one &&
2739
 
              test -s conftest.dir/conftest.two
2740
 
            then
2741
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2742
 
              break 3
2743
 
            fi
2744
 
          fi
2745
 
        fi
2746
 
      done
2747
 
    done
2748
 
    ;;
2749
 
esac
2750
 
 
2751
 
  done
2752
 
IFS=$as_save_IFS
2753
 
 
2754
 
rm -rf conftest.one conftest.two conftest.dir
2755
 
 
2756
 
fi
2757
 
  if test "${ac_cv_path_install+set}" = set; then
2758
 
    INSTALL=$ac_cv_path_install
2759
 
  else
2760
 
    # As a last resort, use the slow shell script.  Don't cache a
2761
 
    # value for INSTALL within a source directory, because that will
2762
 
    # break other packages using the cache if that directory is
2763
 
    # removed, or if the value is a relative name.
2764
 
    INSTALL=$ac_install_sh
2765
 
  fi
2766
 
fi
2767
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2768
 
$as_echo "$INSTALL" >&6; }
2769
 
 
2770
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2771
 
# It thinks the first close brace ends the variable substitution.
2772
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2773
 
 
2774
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2775
 
 
2776
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2777
 
 
2778
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2779
 
$as_echo_n "checking whether build environment is sane... " >&6; }
2780
 
# Just in case
2781
 
sleep 1
2782
 
echo timestamp > conftest.file
2783
 
# Reject unsafe characters in $srcdir or the absolute working directory
2784
 
# name.  Accept space and tab only in the latter.
2785
 
am_lf='
2786
 
'
2787
 
case `pwd` in
2788
 
  *[\\\"\#\$\&\'\`$am_lf]*)
2789
 
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2790
 
esac
2791
 
case $srcdir in
2792
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2793
 
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2794
 
esac
2795
 
 
2796
 
# Do `set' in a subshell so we don't clobber the current shell's
2797
 
# arguments.  Must try -L first in case configure is actually a
2798
 
# symlink; some systems play weird games with the mod time of symlinks
2799
 
# (eg FreeBSD returns the mod time of the symlink's containing
2800
 
# directory).
2801
 
if (
2802
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2803
 
   if test "$*" = "X"; then
2804
 
      # -L didn't work.
2805
 
      set X `ls -t "$srcdir/configure" conftest.file`
2806
 
   fi
2807
 
   rm -f conftest.file
2808
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2809
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2810
 
 
2811
 
      # If neither matched, then we have a broken ls.  This can happen
2812
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2813
 
      # broken ls alias from the environment.  This has actually
2814
 
      # happened.  Such a system could not be considered "sane".
2815
 
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2816
 
alias in your environment" "$LINENO" 5
2817
 
   fi
2818
 
 
2819
 
   test "$2" = conftest.file
2820
 
   )
2821
 
then
2822
 
   # Ok.
2823
 
   :
2824
 
else
2825
 
   as_fn_error "newly created file is older than distributed files!
2826
 
Check your system clock" "$LINENO" 5
2827
 
fi
2828
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829
 
$as_echo "yes" >&6; }
2830
 
test "$program_prefix" != NONE &&
2831
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832
 
# Use a double $ so make ignores it.
2833
 
test "$program_suffix" != NONE &&
2834
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835
 
# Double any \ or $.
2836
 
# By default was `s,x,x', remove it if useless.
2837
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2839
 
 
2840
 
# expand $ac_aux_dir to an absolute path
2841
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2842
 
 
2843
 
if test x"${MISSING+set}" != xset; then
2844
 
  case $am_aux_dir in
2845
 
  *\ * | *\     *)
2846
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2847
 
  *)
2848
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2849
 
  esac
2850
 
fi
2851
 
# Use eval to expand $SHELL
2852
 
if eval "$MISSING --run true"; then
2853
 
  am_missing_run="$MISSING --run "
2854
 
else
2855
 
  am_missing_run=
2856
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2857
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2858
 
fi
2859
 
 
2860
 
if test x"${install_sh}" != xset; then
2861
 
  case $am_aux_dir in
2862
 
  *\ * | *\     *)
2863
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2864
 
  *)
2865
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2866
 
  esac
2867
 
fi
2868
 
 
2869
 
# Installed binaries are usually stripped using `strip' when the user
2870
 
# run `make install-strip'.  However `strip' might not be the right
2871
 
# tool to use in cross-compilation environments, therefore Automake
2872
 
# will honor the `STRIP' environment variable to overrule this program.
2873
 
if test "$cross_compiling" != no; then
2874
 
  if test -n "$ac_tool_prefix"; then
2875
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2877
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878
 
$as_echo_n "checking for $ac_word... " >&6; }
2879
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
2880
 
  $as_echo_n "(cached) " >&6
2881
 
else
2882
 
  if test -n "$STRIP"; then
2883
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884
 
else
2885
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886
 
for as_dir in $PATH
2887
 
do
2888
 
  IFS=$as_save_IFS
2889
 
  test -z "$as_dir" && as_dir=.
2890
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2891
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894
 
    break 2
2895
 
  fi
2896
 
done
2897
 
  done
2898
 
IFS=$as_save_IFS
2899
 
 
2900
 
fi
2901
 
fi
2902
 
STRIP=$ac_cv_prog_STRIP
2903
 
if test -n "$STRIP"; then
2904
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905
 
$as_echo "$STRIP" >&6; }
2906
 
else
2907
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908
 
$as_echo "no" >&6; }
2909
 
fi
2910
 
 
2911
 
 
2912
 
fi
2913
 
if test -z "$ac_cv_prog_STRIP"; then
2914
 
  ac_ct_STRIP=$STRIP
2915
 
  # Extract the first word of "strip", so it can be a program name with args.
2916
 
set dummy strip; ac_word=$2
2917
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918
 
$as_echo_n "checking for $ac_word... " >&6; }
2919
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2920
 
  $as_echo_n "(cached) " >&6
2921
 
else
2922
 
  if test -n "$ac_ct_STRIP"; then
2923
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924
 
else
2925
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926
 
for as_dir in $PATH
2927
 
do
2928
 
  IFS=$as_save_IFS
2929
 
  test -z "$as_dir" && as_dir=.
2930
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2931
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932
 
    ac_cv_prog_ac_ct_STRIP="strip"
2933
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934
 
    break 2
2935
 
  fi
2936
 
done
2937
 
  done
2938
 
IFS=$as_save_IFS
2939
 
 
2940
 
fi
2941
 
fi
2942
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943
 
if test -n "$ac_ct_STRIP"; then
2944
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945
 
$as_echo "$ac_ct_STRIP" >&6; }
2946
 
else
2947
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948
 
$as_echo "no" >&6; }
2949
 
fi
2950
 
 
2951
 
  if test "x$ac_ct_STRIP" = x; then
2952
 
    STRIP=":"
2953
 
  else
2954
 
    case $cross_compiling:$ac_tool_warned in
2955
 
yes:)
2956
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958
 
ac_tool_warned=yes ;;
2959
 
esac
2960
 
    STRIP=$ac_ct_STRIP
2961
 
  fi
2962
 
else
2963
 
  STRIP="$ac_cv_prog_STRIP"
2964
 
fi
2965
 
 
2966
 
fi
2967
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2968
 
 
2969
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2970
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2971
 
if test -z "$MKDIR_P"; then
2972
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
2973
 
  $as_echo_n "(cached) " >&6
2974
 
else
2975
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977
 
do
2978
 
  IFS=$as_save_IFS
2979
 
  test -z "$as_dir" && as_dir=.
2980
 
    for ac_prog in mkdir gmkdir; do
2981
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2982
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2983
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2984
 
             'mkdir (GNU coreutils) '* | \
2985
 
             'mkdir (coreutils) '* | \
2986
 
             'mkdir (fileutils) '4.1*)
2987
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2988
 
               break 3;;
2989
 
           esac
2990
 
         done
2991
 
       done
2992
 
  done
2993
 
IFS=$as_save_IFS
2994
 
 
2995
 
fi
2996
 
 
2997
 
  test -d ./--version && rmdir ./--version
2998
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2999
 
    MKDIR_P="$ac_cv_path_mkdir -p"
3000
 
  else
3001
 
    # As a last resort, use the slow shell script.  Don't cache a
3002
 
    # value for MKDIR_P within a source directory, because that will
3003
 
    # break other packages using the cache if that directory is
3004
 
    # removed, or if the value is a relative name.
3005
 
    MKDIR_P="$ac_install_sh -d"
3006
 
  fi
3007
 
fi
3008
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3009
 
$as_echo "$MKDIR_P" >&6; }
3010
 
 
3011
 
mkdir_p="$MKDIR_P"
3012
 
case $mkdir_p in
3013
 
  [\\/$]* | ?:[\\/]*) ;;
3014
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3015
 
esac
3016
 
 
3017
 
for ac_prog in gawk mawk nawk awk
3018
 
do
3019
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3020
 
set dummy $ac_prog; ac_word=$2
3021
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022
 
$as_echo_n "checking for $ac_word... " >&6; }
3023
 
if test "${ac_cv_prog_AWK+set}" = set; then :
3024
 
  $as_echo_n "(cached) " >&6
3025
 
else
3026
 
  if test -n "$AWK"; then
3027
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3028
 
else
3029
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030
 
for as_dir in $PATH
3031
 
do
3032
 
  IFS=$as_save_IFS
3033
 
  test -z "$as_dir" && as_dir=.
3034
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3035
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036
 
    ac_cv_prog_AWK="$ac_prog"
3037
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038
 
    break 2
3039
 
  fi
3040
 
done
3041
 
  done
3042
 
IFS=$as_save_IFS
3043
 
 
3044
 
fi
3045
 
fi
3046
 
AWK=$ac_cv_prog_AWK
3047
 
if test -n "$AWK"; then
3048
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3049
 
$as_echo "$AWK" >&6; }
3050
 
else
3051
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052
 
$as_echo "no" >&6; }
3053
 
fi
3054
 
 
3055
 
 
3056
 
  test -n "$AWK" && break
3057
 
done
3058
 
 
3059
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3060
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3061
 
set x ${MAKE-make}
3062
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3063
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3064
 
  $as_echo_n "(cached) " >&6
3065
 
else
3066
 
  cat >conftest.make <<\_ACEOF
3067
 
SHELL = /bin/sh
3068
 
all:
3069
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3070
 
_ACEOF
3071
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3072
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3073
 
  *@@@%%%=?*=@@@%%%*)
3074
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3075
 
  *)
3076
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
3077
 
esac
3078
 
rm -f conftest.make
3079
 
fi
3080
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3081
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082
 
$as_echo "yes" >&6; }
3083
 
  SET_MAKE=
3084
 
else
3085
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086
 
$as_echo "no" >&6; }
3087
 
  SET_MAKE="MAKE=${MAKE-make}"
3088
 
fi
3089
 
 
3090
 
rm -rf .tst 2>/dev/null
3091
 
mkdir .tst 2>/dev/null
3092
 
if test -d .tst; then
3093
 
  am__leading_dot=.
3094
 
else
3095
 
  am__leading_dot=_
3096
 
fi
3097
 
rmdir .tst 2>/dev/null
3098
 
 
3099
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3100
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3101
 
  # is not polluted with repeated "-I."
3102
 
  am__isrc=' -I$(srcdir)'
3103
 
  # test to see if srcdir already configured
3104
 
  if test -f $srcdir/config.status; then
3105
 
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3106
 
  fi
3107
 
fi
3108
 
 
3109
 
# test whether we have cygpath
3110
 
if test -z "$CYGPATH_W"; then
3111
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
3112
 
    CYGPATH_W='cygpath -w'
3113
 
  else
3114
 
    CYGPATH_W=echo
3115
 
  fi
3116
 
fi
3117
 
 
3118
 
 
3119
 
# Define the identity of the package.
3120
 
 PACKAGE='varnish'
3121
 
 VERSION='2.1.3'
3122
 
 
3123
 
 
3124
 
cat >>confdefs.h <<_ACEOF
3125
 
#define PACKAGE "$PACKAGE"
3126
 
_ACEOF
3127
 
 
3128
 
 
3129
 
cat >>confdefs.h <<_ACEOF
3130
 
#define VERSION "$VERSION"
3131
 
_ACEOF
3132
 
 
3133
 
# Some tools Automake needs.
3134
 
 
3135
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3136
 
 
3137
 
 
3138
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3139
 
 
3140
 
 
3141
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3142
 
 
3143
 
 
3144
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3145
 
 
3146
 
 
3147
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3148
 
 
3149
 
# We need awk for the "check" target.  The system "awk" is bad on
3150
 
# some platforms.
3151
 
# Always define AMTAR for backward compatibility.
3152
 
 
3153
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
3154
 
 
3155
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3156
 
 
3157
 
 
3158
 
 
3159
 
 
3160
 
 
3161
 
 
3162
 
# Checks for programs.
3163
 
DEPDIR="${am__leading_dot}deps"
3164
 
 
3165
 
ac_config_commands="$ac_config_commands depfiles"
3166
 
 
3167
 
 
3168
 
am_make=${MAKE-make}
3169
 
cat > confinc << 'END'
3170
 
am__doit:
3171
 
        @echo this is the am__doit target
3172
 
.PHONY: am__doit
3173
 
END
3174
 
# If we don't find an include directive, just comment out the code.
3175
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3176
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3177
 
am__include="#"
3178
 
am__quote=
3179
 
_am_result=none
3180
 
# First try GNU make style include.
3181
 
echo "include confinc" > confmf
3182
 
# Ignore all kinds of additional output from `make'.
3183
 
case `$am_make -s -f confmf 2> /dev/null` in #(
3184
 
*the\ am__doit\ target*)
3185
 
  am__include=include
3186
 
  am__quote=
3187
 
  _am_result=GNU
3188
 
  ;;
3189
 
esac
3190
 
# Now try BSD make style include.
3191
 
if test "$am__include" = "#"; then
3192
 
   echo '.include "confinc"' > confmf
3193
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
3194
 
   *the\ am__doit\ target*)
3195
 
     am__include=.include
3196
 
     am__quote="\""
3197
 
     _am_result=BSD
3198
 
     ;;
3199
 
   esac
3200
 
fi
3201
 
 
3202
 
 
3203
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3204
 
$as_echo "$_am_result" >&6; }
3205
 
rm -f confinc confmf
3206
 
 
3207
 
# Check whether --enable-dependency-tracking was given.
3208
 
if test "${enable_dependency_tracking+set}" = set; then :
3209
 
  enableval=$enable_dependency_tracking;
3210
 
fi
3211
 
 
3212
 
if test "x$enable_dependency_tracking" != xno; then
3213
 
  am_depcomp="$ac_aux_dir/depcomp"
3214
 
  AMDEPBACKSLASH='\'
3215
 
fi
3216
 
 if test "x$enable_dependency_tracking" != xno; then
3217
 
  AMDEP_TRUE=
3218
 
  AMDEP_FALSE='#'
3219
 
else
3220
 
  AMDEP_TRUE='#'
3221
 
  AMDEP_FALSE=
3222
 
fi
3223
 
 
3224
 
 
3225
 
ac_ext=c
3226
 
ac_cpp='$CPP $CPPFLAGS'
3227
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
 
if test -n "$ac_tool_prefix"; then
3231
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3232
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3233
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234
 
$as_echo_n "checking for $ac_word... " >&6; }
3235
 
if test "${ac_cv_prog_CC+set}" = set; then :
3236
 
  $as_echo_n "(cached) " >&6
3237
 
else
3238
 
  if test -n "$CC"; then
3239
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3240
 
else
3241
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242
 
for as_dir in $PATH
3243
 
do
3244
 
  IFS=$as_save_IFS
3245
 
  test -z "$as_dir" && as_dir=.
3246
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3247
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3249
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250
 
    break 2
3251
 
  fi
3252
 
done
3253
 
  done
3254
 
IFS=$as_save_IFS
3255
 
 
3256
 
fi
3257
 
fi
3258
 
CC=$ac_cv_prog_CC
3259
 
if test -n "$CC"; then
3260
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261
 
$as_echo "$CC" >&6; }
3262
 
else
3263
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264
 
$as_echo "no" >&6; }
3265
 
fi
3266
 
 
3267
 
 
3268
 
fi
3269
 
if test -z "$ac_cv_prog_CC"; then
3270
 
  ac_ct_CC=$CC
3271
 
  # Extract the first word of "gcc", so it can be a program name with args.
3272
 
set dummy gcc; ac_word=$2
3273
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274
 
$as_echo_n "checking for $ac_word... " >&6; }
3275
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3276
 
  $as_echo_n "(cached) " >&6
3277
 
else
3278
 
  if test -n "$ac_ct_CC"; then
3279
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280
 
else
3281
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282
 
for as_dir in $PATH
3283
 
do
3284
 
  IFS=$as_save_IFS
3285
 
  test -z "$as_dir" && as_dir=.
3286
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3287
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288
 
    ac_cv_prog_ac_ct_CC="gcc"
3289
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290
 
    break 2
3291
 
  fi
3292
 
done
3293
 
  done
3294
 
IFS=$as_save_IFS
3295
 
 
3296
 
fi
3297
 
fi
3298
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299
 
if test -n "$ac_ct_CC"; then
3300
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3301
 
$as_echo "$ac_ct_CC" >&6; }
3302
 
else
3303
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304
 
$as_echo "no" >&6; }
3305
 
fi
3306
 
 
3307
 
  if test "x$ac_ct_CC" = x; then
3308
 
    CC=""
3309
 
  else
3310
 
    case $cross_compiling:$ac_tool_warned in
3311
 
yes:)
3312
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314
 
ac_tool_warned=yes ;;
3315
 
esac
3316
 
    CC=$ac_ct_CC
3317
 
  fi
3318
 
else
3319
 
  CC="$ac_cv_prog_CC"
3320
 
fi
3321
 
 
3322
 
if test -z "$CC"; then
3323
 
          if test -n "$ac_tool_prefix"; then
3324
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3325
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3326
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327
 
$as_echo_n "checking for $ac_word... " >&6; }
3328
 
if test "${ac_cv_prog_CC+set}" = set; then :
3329
 
  $as_echo_n "(cached) " >&6
3330
 
else
3331
 
  if test -n "$CC"; then
3332
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3333
 
else
3334
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335
 
for as_dir in $PATH
3336
 
do
3337
 
  IFS=$as_save_IFS
3338
 
  test -z "$as_dir" && as_dir=.
3339
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3340
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3342
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343
 
    break 2
3344
 
  fi
3345
 
done
3346
 
  done
3347
 
IFS=$as_save_IFS
3348
 
 
3349
 
fi
3350
 
fi
3351
 
CC=$ac_cv_prog_CC
3352
 
if test -n "$CC"; then
3353
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354
 
$as_echo "$CC" >&6; }
3355
 
else
3356
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357
 
$as_echo "no" >&6; }
3358
 
fi
3359
 
 
3360
 
 
3361
 
  fi
3362
 
fi
3363
 
if test -z "$CC"; then
3364
 
  # Extract the first word of "cc", so it can be a program name with args.
3365
 
set dummy cc; ac_word=$2
3366
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367
 
$as_echo_n "checking for $ac_word... " >&6; }
3368
 
if test "${ac_cv_prog_CC+set}" = set; then :
3369
 
  $as_echo_n "(cached) " >&6
3370
 
else
3371
 
  if test -n "$CC"; then
3372
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3373
 
else
3374
 
  ac_prog_rejected=no
3375
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376
 
for as_dir in $PATH
3377
 
do
3378
 
  IFS=$as_save_IFS
3379
 
  test -z "$as_dir" && as_dir=.
3380
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3381
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3383
 
       ac_prog_rejected=yes
3384
 
       continue
3385
 
     fi
3386
 
    ac_cv_prog_CC="cc"
3387
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388
 
    break 2
3389
 
  fi
3390
 
done
3391
 
  done
3392
 
IFS=$as_save_IFS
3393
 
 
3394
 
if test $ac_prog_rejected = yes; then
3395
 
  # We found a bogon in the path, so make sure we never use it.
3396
 
  set dummy $ac_cv_prog_CC
3397
 
  shift
3398
 
  if test $# != 0; then
3399
 
    # We chose a different compiler from the bogus one.
3400
 
    # However, it has the same basename, so the bogon will be chosen
3401
 
    # first if we set CC to just the basename; use the full file name.
3402
 
    shift
3403
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3404
 
  fi
3405
 
fi
3406
 
fi
3407
 
fi
3408
 
CC=$ac_cv_prog_CC
3409
 
if test -n "$CC"; then
3410
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411
 
$as_echo "$CC" >&6; }
3412
 
else
3413
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414
 
$as_echo "no" >&6; }
3415
 
fi
3416
 
 
3417
 
 
3418
 
fi
3419
 
if test -z "$CC"; then
3420
 
  if test -n "$ac_tool_prefix"; then
3421
 
  for ac_prog in cl.exe
3422
 
  do
3423
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3424
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3425
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426
 
$as_echo_n "checking for $ac_word... " >&6; }
3427
 
if test "${ac_cv_prog_CC+set}" = set; then :
3428
 
  $as_echo_n "(cached) " >&6
3429
 
else
3430
 
  if test -n "$CC"; then
3431
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3432
 
else
3433
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434
 
for as_dir in $PATH
3435
 
do
3436
 
  IFS=$as_save_IFS
3437
 
  test -z "$as_dir" && as_dir=.
3438
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3439
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3441
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442
 
    break 2
3443
 
  fi
3444
 
done
3445
 
  done
3446
 
IFS=$as_save_IFS
3447
 
 
3448
 
fi
3449
 
fi
3450
 
CC=$ac_cv_prog_CC
3451
 
if test -n "$CC"; then
3452
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453
 
$as_echo "$CC" >&6; }
3454
 
else
3455
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456
 
$as_echo "no" >&6; }
3457
 
fi
3458
 
 
3459
 
 
3460
 
    test -n "$CC" && break
3461
 
  done
3462
 
fi
3463
 
if test -z "$CC"; then
3464
 
  ac_ct_CC=$CC
3465
 
  for ac_prog in cl.exe
3466
 
do
3467
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3468
 
set dummy $ac_prog; ac_word=$2
3469
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470
 
$as_echo_n "checking for $ac_word... " >&6; }
3471
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3472
 
  $as_echo_n "(cached) " >&6
3473
 
else
3474
 
  if test -n "$ac_ct_CC"; then
3475
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3476
 
else
3477
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478
 
for as_dir in $PATH
3479
 
do
3480
 
  IFS=$as_save_IFS
3481
 
  test -z "$as_dir" && as_dir=.
3482
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3483
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3485
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486
 
    break 2
3487
 
  fi
3488
 
done
3489
 
  done
3490
 
IFS=$as_save_IFS
3491
 
 
3492
 
fi
3493
 
fi
3494
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3495
 
if test -n "$ac_ct_CC"; then
3496
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3497
 
$as_echo "$ac_ct_CC" >&6; }
3498
 
else
3499
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500
 
$as_echo "no" >&6; }
3501
 
fi
3502
 
 
3503
 
 
3504
 
  test -n "$ac_ct_CC" && break
3505
 
done
3506
 
 
3507
 
  if test "x$ac_ct_CC" = x; then
3508
 
    CC=""
3509
 
  else
3510
 
    case $cross_compiling:$ac_tool_warned in
3511
 
yes:)
3512
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514
 
ac_tool_warned=yes ;;
3515
 
esac
3516
 
    CC=$ac_ct_CC
3517
 
  fi
3518
 
fi
3519
 
 
3520
 
fi
3521
 
 
3522
 
 
3523
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525
 
as_fn_error "no acceptable C compiler found in \$PATH
3526
 
See \`config.log' for more details." "$LINENO" 5; }
3527
 
 
3528
 
# Provide some information about the compiler.
3529
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3530
 
set X $ac_compile
3531
 
ac_compiler=$2
3532
 
for ac_option in --version -v -V -qversion; do
3533
 
  { { ac_try="$ac_compiler $ac_option >&5"
3534
 
case "(($ac_try" in
3535
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536
 
  *) ac_try_echo=$ac_try;;
3537
 
esac
3538
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539
 
$as_echo "$ac_try_echo"; } >&5
3540
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3541
 
  ac_status=$?
3542
 
  if test -s conftest.err; then
3543
 
    sed '10a\
3544
 
... rest of stderr output deleted ...
3545
 
         10q' conftest.err >conftest.er1
3546
 
    cat conftest.er1 >&5
3547
 
  fi
3548
 
  rm -f conftest.er1 conftest.err
3549
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550
 
  test $ac_status = 0; }
3551
 
done
3552
 
 
3553
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554
 
/* end confdefs.h.  */
3555
 
 
3556
 
int
3557
 
main ()
3558
 
{
3559
 
 
3560
 
  ;
3561
 
  return 0;
3562
 
}
3563
 
_ACEOF
3564
 
ac_clean_files_save=$ac_clean_files
3565
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3566
 
# Try to create an executable without -o first, disregard a.out.
3567
 
# It will help us diagnose broken compilers, and finding out an intuition
3568
 
# of exeext.
3569
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3570
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3571
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3572
 
 
3573
 
# The possible output files:
3574
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3575
 
 
3576
 
ac_rmfiles=
3577
 
for ac_file in $ac_files
3578
 
do
3579
 
  case $ac_file in
3580
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3581
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3582
 
  esac
3583
 
done
3584
 
rm -f $ac_rmfiles
3585
 
 
3586
 
if { { ac_try="$ac_link_default"
3587
 
case "(($ac_try" in
3588
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589
 
  *) ac_try_echo=$ac_try;;
3590
 
esac
3591
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592
 
$as_echo "$ac_try_echo"; } >&5
3593
 
  (eval "$ac_link_default") 2>&5
3594
 
  ac_status=$?
3595
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596
 
  test $ac_status = 0; }; then :
3597
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3598
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3599
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3600
 
# so that the user can short-circuit this test for compilers unknown to
3601
 
# Autoconf.
3602
 
for ac_file in $ac_files ''
3603
 
do
3604
 
  test -f "$ac_file" || continue
3605
 
  case $ac_file in
3606
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3607
 
        ;;
3608
 
    [ab].out )
3609
 
        # We found the default executable, but exeext='' is most
3610
 
        # certainly right.
3611
 
        break;;
3612
 
    *.* )
3613
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3614
 
        then :; else
3615
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616
 
        fi
3617
 
        # We set ac_cv_exeext here because the later test for it is not
3618
 
        # safe: cross compilers may not add the suffix if given an `-o'
3619
 
        # argument, so we may need to know it at that point already.
3620
 
        # Even if this section looks crufty: it has the advantage of
3621
 
        # actually working.
3622
 
        break;;
3623
 
    * )
3624
 
        break;;
3625
 
  esac
3626
 
done
3627
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3628
 
 
3629
 
else
3630
 
  ac_file=''
3631
 
fi
3632
 
if test -z "$ac_file"; then :
3633
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634
 
$as_echo "no" >&6; }
3635
 
$as_echo "$as_me: failed program was:" >&5
3636
 
sed 's/^/| /' conftest.$ac_ext >&5
3637
 
 
3638
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640
 
{ as_fn_set_status 77
3641
 
as_fn_error "C compiler cannot create executables
3642
 
See \`config.log' for more details." "$LINENO" 5; }; }
3643
 
else
3644
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3645
 
$as_echo "yes" >&6; }
3646
 
fi
3647
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3648
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3649
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3650
 
$as_echo "$ac_file" >&6; }
3651
 
ac_exeext=$ac_cv_exeext
3652
 
 
3653
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3654
 
ac_clean_files=$ac_clean_files_save
3655
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3656
 
$as_echo_n "checking for suffix of executables... " >&6; }
3657
 
if { { ac_try="$ac_link"
3658
 
case "(($ac_try" in
3659
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660
 
  *) ac_try_echo=$ac_try;;
3661
 
esac
3662
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663
 
$as_echo "$ac_try_echo"; } >&5
3664
 
  (eval "$ac_link") 2>&5
3665
 
  ac_status=$?
3666
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667
 
  test $ac_status = 0; }; then :
3668
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3669
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3670
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3671
 
# `rm'.
3672
 
for ac_file in conftest.exe conftest conftest.*; do
3673
 
  test -f "$ac_file" || continue
3674
 
  case $ac_file in
3675
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3676
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3677
 
          break;;
3678
 
    * ) break;;
3679
 
  esac
3680
 
done
3681
 
else
3682
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684
 
as_fn_error "cannot compute suffix of executables: cannot compile and link
3685
 
See \`config.log' for more details." "$LINENO" 5; }
3686
 
fi
3687
 
rm -f conftest conftest$ac_cv_exeext
3688
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3689
 
$as_echo "$ac_cv_exeext" >&6; }
3690
 
 
3691
 
rm -f conftest.$ac_ext
3692
 
EXEEXT=$ac_cv_exeext
3693
 
ac_exeext=$EXEEXT
3694
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695
 
/* end confdefs.h.  */
3696
 
#include <stdio.h>
3697
 
int
3698
 
main ()
3699
 
{
3700
 
FILE *f = fopen ("conftest.out", "w");
3701
 
 return ferror (f) || fclose (f) != 0;
3702
 
 
3703
 
  ;
3704
 
  return 0;
3705
 
}
3706
 
_ACEOF
3707
 
ac_clean_files="$ac_clean_files conftest.out"
3708
 
# Check that the compiler produces executables we can run.  If not, either
3709
 
# the compiler is broken, or we cross compile.
3710
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3711
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3712
 
if test "$cross_compiling" != yes; then
3713
 
  { { ac_try="$ac_link"
3714
 
case "(($ac_try" in
3715
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716
 
  *) ac_try_echo=$ac_try;;
3717
 
esac
3718
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719
 
$as_echo "$ac_try_echo"; } >&5
3720
 
  (eval "$ac_link") 2>&5
3721
 
  ac_status=$?
3722
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723
 
  test $ac_status = 0; }
3724
 
  if { ac_try='./conftest$ac_cv_exeext'
3725
 
  { { case "(($ac_try" in
3726
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727
 
  *) ac_try_echo=$ac_try;;
3728
 
esac
3729
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730
 
$as_echo "$ac_try_echo"; } >&5
3731
 
  (eval "$ac_try") 2>&5
3732
 
  ac_status=$?
3733
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734
 
  test $ac_status = 0; }; }; then
3735
 
    cross_compiling=no
3736
 
  else
3737
 
    if test "$cross_compiling" = maybe; then
3738
 
        cross_compiling=yes
3739
 
    else
3740
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742
 
as_fn_error "cannot run C compiled programs.
3743
 
If you meant to cross compile, use \`--host'.
3744
 
See \`config.log' for more details." "$LINENO" 5; }
3745
 
    fi
3746
 
  fi
3747
 
fi
3748
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3749
 
$as_echo "$cross_compiling" >&6; }
3750
 
 
3751
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3752
 
ac_clean_files=$ac_clean_files_save
3753
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3754
 
$as_echo_n "checking for suffix of object files... " >&6; }
3755
 
if test "${ac_cv_objext+set}" = set; then :
3756
 
  $as_echo_n "(cached) " >&6
3757
 
else
3758
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759
 
/* end confdefs.h.  */
3760
 
 
3761
 
int
3762
 
main ()
3763
 
{
3764
 
 
3765
 
  ;
3766
 
  return 0;
3767
 
}
3768
 
_ACEOF
3769
 
rm -f conftest.o conftest.obj
3770
 
if { { ac_try="$ac_compile"
3771
 
case "(($ac_try" in
3772
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773
 
  *) ac_try_echo=$ac_try;;
3774
 
esac
3775
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776
 
$as_echo "$ac_try_echo"; } >&5
3777
 
  (eval "$ac_compile") 2>&5
3778
 
  ac_status=$?
3779
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780
 
  test $ac_status = 0; }; then :
3781
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3782
 
  test -f "$ac_file" || continue;
3783
 
  case $ac_file in
3784
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3785
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3786
 
       break;;
3787
 
  esac
3788
 
done
3789
 
else
3790
 
  $as_echo "$as_me: failed program was:" >&5
3791
 
sed 's/^/| /' conftest.$ac_ext >&5
3792
 
 
3793
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795
 
as_fn_error "cannot compute suffix of object files: cannot compile
3796
 
See \`config.log' for more details." "$LINENO" 5; }
3797
 
fi
3798
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3799
 
fi
3800
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3801
 
$as_echo "$ac_cv_objext" >&6; }
3802
 
OBJEXT=$ac_cv_objext
3803
 
ac_objext=$OBJEXT
3804
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3805
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3806
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3807
 
  $as_echo_n "(cached) " >&6
3808
 
else
3809
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810
 
/* end confdefs.h.  */
3811
 
 
3812
 
int
3813
 
main ()
3814
 
{
3815
 
#ifndef __GNUC__
3816
 
       choke me
3817
 
#endif
3818
 
 
3819
 
  ;
3820
 
  return 0;
3821
 
}
3822
 
_ACEOF
3823
 
if ac_fn_c_try_compile "$LINENO"; then :
3824
 
  ac_compiler_gnu=yes
3825
 
else
3826
 
  ac_compiler_gnu=no
3827
 
fi
3828
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3830
 
 
3831
 
fi
3832
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3833
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3834
 
if test $ac_compiler_gnu = yes; then
3835
 
  GCC=yes
3836
 
else
3837
 
  GCC=
3838
 
fi
3839
 
ac_test_CFLAGS=${CFLAGS+set}
3840
 
ac_save_CFLAGS=$CFLAGS
3841
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3842
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3843
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
3844
 
  $as_echo_n "(cached) " >&6
3845
 
else
3846
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3847
 
   ac_c_werror_flag=yes
3848
 
   ac_cv_prog_cc_g=no
3849
 
   CFLAGS="-g"
3850
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851
 
/* end confdefs.h.  */
3852
 
 
3853
 
int
3854
 
main ()
3855
 
{
3856
 
 
3857
 
  ;
3858
 
  return 0;
3859
 
}
3860
 
_ACEOF
3861
 
if ac_fn_c_try_compile "$LINENO"; then :
3862
 
  ac_cv_prog_cc_g=yes
3863
 
else
3864
 
  CFLAGS=""
3865
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866
 
/* end confdefs.h.  */
3867
 
 
3868
 
int
3869
 
main ()
3870
 
{
3871
 
 
3872
 
  ;
3873
 
  return 0;
3874
 
}
3875
 
_ACEOF
3876
 
if ac_fn_c_try_compile "$LINENO"; then :
3877
 
 
3878
 
else
3879
 
  ac_c_werror_flag=$ac_save_c_werror_flag
3880
 
         CFLAGS="-g"
3881
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882
 
/* end confdefs.h.  */
3883
 
 
3884
 
int
3885
 
main ()
3886
 
{
3887
 
 
3888
 
  ;
3889
 
  return 0;
3890
 
}
3891
 
_ACEOF
3892
 
if ac_fn_c_try_compile "$LINENO"; then :
3893
 
  ac_cv_prog_cc_g=yes
3894
 
fi
3895
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896
 
fi
3897
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898
 
fi
3899
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3901
 
fi
3902
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3903
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
3904
 
if test "$ac_test_CFLAGS" = set; then
3905
 
  CFLAGS=$ac_save_CFLAGS
3906
 
elif test $ac_cv_prog_cc_g = yes; then
3907
 
  if test "$GCC" = yes; then
3908
 
    CFLAGS="-g -O2"
3909
 
  else
3910
 
    CFLAGS="-g"
3911
 
  fi
3912
 
else
3913
 
  if test "$GCC" = yes; then
3914
 
    CFLAGS="-O2"
3915
 
  else
3916
 
    CFLAGS=
3917
 
  fi
3918
 
fi
3919
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3920
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3921
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3922
 
  $as_echo_n "(cached) " >&6
3923
 
else
3924
 
  ac_cv_prog_cc_c89=no
3925
 
ac_save_CC=$CC
3926
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927
 
/* end confdefs.h.  */
3928
 
#include <stdarg.h>
3929
 
#include <stdio.h>
3930
 
#include <sys/types.h>
3931
 
#include <sys/stat.h>
3932
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3933
 
struct buf { int x; };
3934
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935
 
static char *e (p, i)
3936
 
     char **p;
3937
 
     int i;
3938
 
{
3939
 
  return p[i];
3940
 
}
3941
 
static char *f (char * (*g) (char **, int), char **p, ...)
3942
 
{
3943
 
  char *s;
3944
 
  va_list v;
3945
 
  va_start (v,p);
3946
 
  s = g (p, va_arg (v,int));
3947
 
  va_end (v);
3948
 
  return s;
3949
 
}
3950
 
 
3951
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3952
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3953
 
   These don't provoke an error unfortunately, instead are silently treated
3954
 
   as 'x'.  The following induces an error, until -std is added to get
3955
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3956
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3957
 
   that's true only with -std.  */
3958
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959
 
 
3960
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961
 
   inside strings and character constants.  */
3962
 
#define FOO(x) 'x'
3963
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
 
 
3965
 
int test (int i, double x);
3966
 
struct s1 {int (*f) (int a);};
3967
 
struct s2 {int (*f) (double a);};
3968
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969
 
int argc;
3970
 
char **argv;
3971
 
int
3972
 
main ()
3973
 
{
3974
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3975
 
  ;
3976
 
  return 0;
3977
 
}
3978
 
_ACEOF
3979
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981
 
do
3982
 
  CC="$ac_save_CC $ac_arg"
3983
 
  if ac_fn_c_try_compile "$LINENO"; then :
3984
 
  ac_cv_prog_cc_c89=$ac_arg
3985
 
fi
3986
 
rm -f core conftest.err conftest.$ac_objext
3987
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3988
 
done
3989
 
rm -f conftest.$ac_ext
3990
 
CC=$ac_save_CC
3991
 
 
3992
 
fi
3993
 
# AC_CACHE_VAL
3994
 
case "x$ac_cv_prog_cc_c89" in
3995
 
  x)
3996
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997
 
$as_echo "none needed" >&6; } ;;
3998
 
  xno)
3999
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000
 
$as_echo "unsupported" >&6; } ;;
4001
 
  *)
4002
 
    CC="$CC $ac_cv_prog_cc_c89"
4003
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4005
 
esac
4006
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
4007
 
 
4008
 
fi
4009
 
 
4010
 
ac_ext=c
4011
 
ac_cpp='$CPP $CPPFLAGS'
4012
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
 
 
4016
 
depcc="$CC"   am_compiler_list=
4017
 
 
4018
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4019
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4020
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4021
 
  $as_echo_n "(cached) " >&6
4022
 
else
4023
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4025
 
  # making bogus files that we don't know about and never remove.  For
4026
 
  # instance it was reported that on HP-UX the gcc test will end up
4027
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4028
 
  # in D'.
4029
 
  mkdir conftest.dir
4030
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4031
 
  # using a relative directory.
4032
 
  cp "$am_depcomp" conftest.dir
4033
 
  cd conftest.dir
4034
 
  # We will build objects and dependencies in a subdirectory because
4035
 
  # it helps to detect inapplicable dependency modes.  For instance
4036
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4037
 
  # side effect of compilation, but ICC will put the dependencies in
4038
 
  # the current directory while Tru64 will put them in the object
4039
 
  # directory.
4040
 
  mkdir sub
4041
 
 
4042
 
  am_cv_CC_dependencies_compiler_type=none
4043
 
  if test "$am_compiler_list" = ""; then
4044
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4045
 
  fi
4046
 
  am__universal=false
4047
 
  case " $depcc " in #(
4048
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4049
 
     esac
4050
 
 
4051
 
  for depmode in $am_compiler_list; do
4052
 
    # Setup a source with many dependencies, because some compilers
4053
 
    # like to wrap large dependency lists on column 80 (with \), and
4054
 
    # we should not choose a depcomp mode which is confused by this.
4055
 
    #
4056
 
    # We need to recreate these files for each test, as the compiler may
4057
 
    # overwrite some of them when testing with obscure command lines.
4058
 
    # This happens at least with the AIX C compiler.
4059
 
    : > sub/conftest.c
4060
 
    for i in 1 2 3 4 5 6; do
4061
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4062
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4063
 
      # Solaris 8's {/usr,}/bin/sh.
4064
 
      touch sub/conftst$i.h
4065
 
    done
4066
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4067
 
 
4068
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4069
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4070
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4071
 
    # versions had trouble with output in subdirs
4072
 
    am__obj=sub/conftest.${OBJEXT-o}
4073
 
    am__minus_obj="-o $am__obj"
4074
 
    case $depmode in
4075
 
    gcc)
4076
 
      # This depmode causes a compiler race in universal mode.
4077
 
      test "$am__universal" = false || continue
4078
 
      ;;
4079
 
    nosideeffect)
4080
 
      # after this tag, mechanisms are not by side-effect, so they'll
4081
 
      # only be used when explicitly requested
4082
 
      if test "x$enable_dependency_tracking" = xyes; then
4083
 
        continue
4084
 
      else
4085
 
        break
4086
 
      fi
4087
 
      ;;
4088
 
    msvisualcpp | msvcmsys)
4089
 
      # This compiler won't grok `-c -o', but also, the minuso test has
4090
 
      # not run yet.  These depmodes are late enough in the game, and
4091
 
      # so weak that their functioning should not be impacted.
4092
 
      am__obj=conftest.${OBJEXT-o}
4093
 
      am__minus_obj=
4094
 
      ;;
4095
 
    none) break ;;
4096
 
    esac
4097
 
    if depmode=$depmode \
4098
 
       source=sub/conftest.c object=$am__obj \
4099
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4100
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4101
 
         >/dev/null 2>conftest.err &&
4102
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4103
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4104
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4105
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4106
 
      # icc doesn't choke on unknown options, it will just issue warnings
4107
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4108
 
      # that says an option was ignored or not supported.
4109
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4110
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4111
 
      # The diagnosis changed in icc 8.0:
4112
 
      #   icc: Command line remark: option '-MP' not supported
4113
 
      if (grep 'ignoring option' conftest.err ||
4114
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4115
 
        am_cv_CC_dependencies_compiler_type=$depmode
4116
 
        break
4117
 
      fi
4118
 
    fi
4119
 
  done
4120
 
 
4121
 
  cd ..
4122
 
  rm -rf conftest.dir
4123
 
else
4124
 
  am_cv_CC_dependencies_compiler_type=none
4125
 
fi
4126
 
 
4127
 
fi
4128
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4129
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4130
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4131
 
 
4132
 
 if
4133
 
  test "x$enable_dependency_tracking" != xno \
4134
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4135
 
  am__fastdepCC_TRUE=
4136
 
  am__fastdepCC_FALSE='#'
4137
 
else
4138
 
  am__fastdepCC_TRUE='#'
4139
 
  am__fastdepCC_FALSE=
4140
 
fi
4141
 
 
4142
 
 
4143
 
 
4144
 
ac_ext=c
4145
 
ac_cpp='$CPP $CPPFLAGS'
4146
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4150
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4151
 
# On Suns, sometimes $CPP names a directory.
4152
 
if test -n "$CPP" && test -d "$CPP"; then
4153
 
  CPP=
4154
 
fi
4155
 
if test -z "$CPP"; then
4156
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
4157
 
  $as_echo_n "(cached) " >&6
4158
 
else
4159
 
      # Double quotes because CPP needs to be expanded
4160
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4161
 
    do
4162
 
      ac_preproc_ok=false
4163
 
for ac_c_preproc_warn_flag in '' yes
4164
 
do
4165
 
  # Use a header file that comes with gcc, so configuring glibc
4166
 
  # with a fresh cross-compiler works.
4167
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168
 
  # <limits.h> exists even on freestanding compilers.
4169
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4170
 
  # not just through cpp. "Syntax error" is here to catch this case.
4171
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172
 
/* end confdefs.h.  */
4173
 
#ifdef __STDC__
4174
 
# include <limits.h>
4175
 
#else
4176
 
# include <assert.h>
4177
 
#endif
4178
 
                     Syntax error
4179
 
_ACEOF
4180
 
if ac_fn_c_try_cpp "$LINENO"; then :
4181
 
 
4182
 
else
4183
 
  # Broken: fails on valid input.
4184
 
continue
4185
 
fi
4186
 
rm -f conftest.err conftest.$ac_ext
4187
 
 
4188
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4189
 
  # can be detected and how.
4190
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191
 
/* end confdefs.h.  */
4192
 
#include <ac_nonexistent.h>
4193
 
_ACEOF
4194
 
if ac_fn_c_try_cpp "$LINENO"; then :
4195
 
  # Broken: success on invalid input.
4196
 
continue
4197
 
else
4198
 
  # Passes both tests.
4199
 
ac_preproc_ok=:
4200
 
break
4201
 
fi
4202
 
rm -f conftest.err conftest.$ac_ext
4203
 
 
4204
 
done
4205
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206
 
rm -f conftest.err conftest.$ac_ext
4207
 
if $ac_preproc_ok; then :
4208
 
  break
4209
 
fi
4210
 
 
4211
 
    done
4212
 
    ac_cv_prog_CPP=$CPP
4213
 
 
4214
 
fi
4215
 
  CPP=$ac_cv_prog_CPP
4216
 
else
4217
 
  ac_cv_prog_CPP=$CPP
4218
 
fi
4219
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4220
 
$as_echo "$CPP" >&6; }
4221
 
ac_preproc_ok=false
4222
 
for ac_c_preproc_warn_flag in '' yes
4223
 
do
4224
 
  # Use a header file that comes with gcc, so configuring glibc
4225
 
  # with a fresh cross-compiler works.
4226
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227
 
  # <limits.h> exists even on freestanding compilers.
4228
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4229
 
  # not just through cpp. "Syntax error" is here to catch this case.
4230
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231
 
/* end confdefs.h.  */
4232
 
#ifdef __STDC__
4233
 
# include <limits.h>
4234
 
#else
4235
 
# include <assert.h>
4236
 
#endif
4237
 
                     Syntax error
4238
 
_ACEOF
4239
 
if ac_fn_c_try_cpp "$LINENO"; then :
4240
 
 
4241
 
else
4242
 
  # Broken: fails on valid input.
4243
 
continue
4244
 
fi
4245
 
rm -f conftest.err conftest.$ac_ext
4246
 
 
4247
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4248
 
  # can be detected and how.
4249
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250
 
/* end confdefs.h.  */
4251
 
#include <ac_nonexistent.h>
4252
 
_ACEOF
4253
 
if ac_fn_c_try_cpp "$LINENO"; then :
4254
 
  # Broken: success on invalid input.
4255
 
continue
4256
 
else
4257
 
  # Passes both tests.
4258
 
ac_preproc_ok=:
4259
 
break
4260
 
fi
4261
 
rm -f conftest.err conftest.$ac_ext
4262
 
 
4263
 
done
4264
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4265
 
rm -f conftest.err conftest.$ac_ext
4266
 
if $ac_preproc_ok; then :
4267
 
 
4268
 
else
4269
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271
 
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4272
 
See \`config.log' for more details." "$LINENO" 5; }
4273
 
fi
4274
 
 
4275
 
ac_ext=c
4276
 
ac_cpp='$CPP $CPPFLAGS'
4277
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
 
 
4281
 
 
4282
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4283
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4284
 
if test "${ac_cv_path_GREP+set}" = set; then :
4285
 
  $as_echo_n "(cached) " >&6
4286
 
else
4287
 
  if test -z "$GREP"; then
4288
 
  ac_path_GREP_found=false
4289
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4290
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292
 
do
4293
 
  IFS=$as_save_IFS
4294
 
  test -z "$as_dir" && as_dir=.
4295
 
    for ac_prog in grep ggrep; do
4296
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4297
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4298
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4299
 
# Check for GNU ac_path_GREP and select it if it is found.
4300
 
  # Check for GNU $ac_path_GREP
4301
 
case `"$ac_path_GREP" --version 2>&1` in
4302
 
*GNU*)
4303
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4304
 
*)
4305
 
  ac_count=0
4306
 
  $as_echo_n 0123456789 >"conftest.in"
4307
 
  while :
4308
 
  do
4309
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4310
 
    mv "conftest.tmp" "conftest.in"
4311
 
    cp "conftest.in" "conftest.nl"
4312
 
    $as_echo 'GREP' >> "conftest.nl"
4313
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4316
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4317
 
      # Best one so far, save it but keep looking for a better one
4318
 
      ac_cv_path_GREP="$ac_path_GREP"
4319
 
      ac_path_GREP_max=$ac_count
4320
 
    fi
4321
 
    # 10*(2^10) chars as input seems more than enough
4322
 
    test $ac_count -gt 10 && break
4323
 
  done
4324
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325
 
esac
4326
 
 
4327
 
      $ac_path_GREP_found && break 3
4328
 
    done
4329
 
  done
4330
 
  done
4331
 
IFS=$as_save_IFS
4332
 
  if test -z "$ac_cv_path_GREP"; then
4333
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4334
 
  fi
4335
 
else
4336
 
  ac_cv_path_GREP=$GREP
4337
 
fi
4338
 
 
4339
 
fi
4340
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4341
 
$as_echo "$ac_cv_path_GREP" >&6; }
4342
 
 GREP="$ac_cv_path_GREP"
4343
 
 
4344
 
 
4345
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4346
 
$as_echo_n "checking for egrep... " >&6; }
4347
 
if test "${ac_cv_path_EGREP+set}" = set; then :
4348
 
  $as_echo_n "(cached) " >&6
4349
 
else
4350
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4351
 
   then ac_cv_path_EGREP="$GREP -E"
4352
 
   else
4353
 
     if test -z "$EGREP"; then
4354
 
  ac_path_EGREP_found=false
4355
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4356
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358
 
do
4359
 
  IFS=$as_save_IFS
4360
 
  test -z "$as_dir" && as_dir=.
4361
 
    for ac_prog in egrep; do
4362
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4363
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4364
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4365
 
# Check for GNU ac_path_EGREP and select it if it is found.
4366
 
  # Check for GNU $ac_path_EGREP
4367
 
case `"$ac_path_EGREP" --version 2>&1` in
4368
 
*GNU*)
4369
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4370
 
*)
4371
 
  ac_count=0
4372
 
  $as_echo_n 0123456789 >"conftest.in"
4373
 
  while :
4374
 
  do
4375
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4376
 
    mv "conftest.tmp" "conftest.in"
4377
 
    cp "conftest.in" "conftest.nl"
4378
 
    $as_echo 'EGREP' >> "conftest.nl"
4379
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4382
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4383
 
      # Best one so far, save it but keep looking for a better one
4384
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4385
 
      ac_path_EGREP_max=$ac_count
4386
 
    fi
4387
 
    # 10*(2^10) chars as input seems more than enough
4388
 
    test $ac_count -gt 10 && break
4389
 
  done
4390
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391
 
esac
4392
 
 
4393
 
      $ac_path_EGREP_found && break 3
4394
 
    done
4395
 
  done
4396
 
  done
4397
 
IFS=$as_save_IFS
4398
 
  if test -z "$ac_cv_path_EGREP"; then
4399
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400
 
  fi
4401
 
else
4402
 
  ac_cv_path_EGREP=$EGREP
4403
 
fi
4404
 
 
4405
 
   fi
4406
 
fi
4407
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4408
 
$as_echo "$ac_cv_path_EGREP" >&6; }
4409
 
 EGREP="$ac_cv_path_EGREP"
4410
 
 
4411
 
 
4412
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4413
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4414
 
if test "${ac_cv_header_stdc+set}" = set; then :
4415
 
  $as_echo_n "(cached) " >&6
4416
 
else
4417
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418
 
/* end confdefs.h.  */
4419
 
#include <stdlib.h>
4420
 
#include <stdarg.h>
4421
 
#include <string.h>
4422
 
#include <float.h>
4423
 
 
4424
 
int
4425
 
main ()
4426
 
{
4427
 
 
4428
 
  ;
4429
 
  return 0;
4430
 
}
4431
 
_ACEOF
4432
 
if ac_fn_c_try_compile "$LINENO"; then :
4433
 
  ac_cv_header_stdc=yes
4434
 
else
4435
 
  ac_cv_header_stdc=no
4436
 
fi
4437
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438
 
 
4439
 
if test $ac_cv_header_stdc = yes; then
4440
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4441
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442
 
/* end confdefs.h.  */
4443
 
#include <string.h>
4444
 
 
4445
 
_ACEOF
4446
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4447
 
  $EGREP "memchr" >/dev/null 2>&1; then :
4448
 
 
4449
 
else
4450
 
  ac_cv_header_stdc=no
4451
 
fi
4452
 
rm -f conftest*
4453
 
 
4454
 
fi
4455
 
 
4456
 
if test $ac_cv_header_stdc = yes; then
4457
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4458
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459
 
/* end confdefs.h.  */
4460
 
#include <stdlib.h>
4461
 
 
4462
 
_ACEOF
4463
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4464
 
  $EGREP "free" >/dev/null 2>&1; then :
4465
 
 
4466
 
else
4467
 
  ac_cv_header_stdc=no
4468
 
fi
4469
 
rm -f conftest*
4470
 
 
4471
 
fi
4472
 
 
4473
 
if test $ac_cv_header_stdc = yes; then
4474
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4475
 
  if test "$cross_compiling" = yes; then :
4476
 
  :
4477
 
else
4478
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479
 
/* end confdefs.h.  */
4480
 
#include <ctype.h>
4481
 
#include <stdlib.h>
4482
 
#if ((' ' & 0x0FF) == 0x020)
4483
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4484
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4485
 
#else
4486
 
# define ISLOWER(c) \
4487
 
                   (('a' <= (c) && (c) <= 'i') \
4488
 
                     || ('j' <= (c) && (c) <= 'r') \
4489
 
                     || ('s' <= (c) && (c) <= 'z'))
4490
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4491
 
#endif
4492
 
 
4493
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4494
 
int
4495
 
main ()
4496
 
{
4497
 
  int i;
4498
 
  for (i = 0; i < 256; i++)
4499
 
    if (XOR (islower (i), ISLOWER (i))
4500
 
        || toupper (i) != TOUPPER (i))
4501
 
      return 2;
4502
 
  return 0;
4503
 
}
4504
 
_ACEOF
4505
 
if ac_fn_c_try_run "$LINENO"; then :
4506
 
 
4507
 
else
4508
 
  ac_cv_header_stdc=no
4509
 
fi
4510
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4511
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4512
 
fi
4513
 
 
4514
 
fi
4515
 
fi
4516
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4517
 
$as_echo "$ac_cv_header_stdc" >&6; }
4518
 
if test $ac_cv_header_stdc = yes; then
4519
 
 
4520
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4521
 
 
4522
 
fi
4523
 
 
4524
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4525
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4526
 
                  inttypes.h stdint.h unistd.h
4527
 
do :
4528
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4529
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4530
 
"
4531
 
eval as_val=\$$as_ac_Header
4532
 
   if test "x$as_val" = x""yes; then :
4533
 
  cat >>confdefs.h <<_ACEOF
4534
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535
 
_ACEOF
4536
 
 
4537
 
fi
4538
 
 
4539
 
done
4540
 
 
4541
 
 
4542
 
 
4543
 
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4544
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4545
 
  MINIX=yes
4546
 
else
4547
 
  MINIX=
4548
 
fi
4549
 
 
4550
 
 
4551
 
  if test "$MINIX" = yes; then
4552
 
 
4553
 
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4554
 
 
4555
 
 
4556
 
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4557
 
 
4558
 
 
4559
 
$as_echo "#define _MINIX 1" >>confdefs.h
4560
 
 
4561
 
  fi
4562
 
 
4563
 
 
4564
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4565
 
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4566
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4567
 
  $as_echo_n "(cached) " >&6
4568
 
else
4569
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570
 
/* end confdefs.h.  */
4571
 
 
4572
 
#         define __EXTENSIONS__ 1
4573
 
          $ac_includes_default
4574
 
int
4575
 
main ()
4576
 
{
4577
 
 
4578
 
  ;
4579
 
  return 0;
4580
 
}
4581
 
_ACEOF
4582
 
if ac_fn_c_try_compile "$LINENO"; then :
4583
 
  ac_cv_safe_to_define___extensions__=yes
4584
 
else
4585
 
  ac_cv_safe_to_define___extensions__=no
4586
 
fi
4587
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588
 
fi
4589
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4590
 
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4591
 
  test $ac_cv_safe_to_define___extensions__ = yes &&
4592
 
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4593
 
 
4594
 
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4595
 
 
4596
 
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4597
 
 
4598
 
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4599
 
 
4600
 
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4601
 
 
4602
 
 
4603
 
 
4604
 
ac_ext=c
4605
 
ac_cpp='$CPP $CPPFLAGS'
4606
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
 
if test -n "$ac_tool_prefix"; then
4610
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4611
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4612
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613
 
$as_echo_n "checking for $ac_word... " >&6; }
4614
 
if test "${ac_cv_prog_CC+set}" = set; then :
4615
 
  $as_echo_n "(cached) " >&6
4616
 
else
4617
 
  if test -n "$CC"; then
4618
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4619
 
else
4620
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621
 
for as_dir in $PATH
4622
 
do
4623
 
  IFS=$as_save_IFS
4624
 
  test -z "$as_dir" && as_dir=.
4625
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4626
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4628
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629
 
    break 2
4630
 
  fi
4631
 
done
4632
 
  done
4633
 
IFS=$as_save_IFS
4634
 
 
4635
 
fi
4636
 
fi
4637
 
CC=$ac_cv_prog_CC
4638
 
if test -n "$CC"; then
4639
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4640
 
$as_echo "$CC" >&6; }
4641
 
else
4642
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643
 
$as_echo "no" >&6; }
4644
 
fi
4645
 
 
4646
 
 
4647
 
fi
4648
 
if test -z "$ac_cv_prog_CC"; then
4649
 
  ac_ct_CC=$CC
4650
 
  # Extract the first word of "gcc", so it can be a program name with args.
4651
 
set dummy gcc; ac_word=$2
4652
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653
 
$as_echo_n "checking for $ac_word... " >&6; }
4654
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4655
 
  $as_echo_n "(cached) " >&6
4656
 
else
4657
 
  if test -n "$ac_ct_CC"; then
4658
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4659
 
else
4660
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661
 
for as_dir in $PATH
4662
 
do
4663
 
  IFS=$as_save_IFS
4664
 
  test -z "$as_dir" && as_dir=.
4665
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4666
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667
 
    ac_cv_prog_ac_ct_CC="gcc"
4668
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669
 
    break 2
4670
 
  fi
4671
 
done
4672
 
  done
4673
 
IFS=$as_save_IFS
4674
 
 
4675
 
fi
4676
 
fi
4677
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4678
 
if test -n "$ac_ct_CC"; then
4679
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4680
 
$as_echo "$ac_ct_CC" >&6; }
4681
 
else
4682
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683
 
$as_echo "no" >&6; }
4684
 
fi
4685
 
 
4686
 
  if test "x$ac_ct_CC" = x; then
4687
 
    CC=""
4688
 
  else
4689
 
    case $cross_compiling:$ac_tool_warned in
4690
 
yes:)
4691
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693
 
ac_tool_warned=yes ;;
4694
 
esac
4695
 
    CC=$ac_ct_CC
4696
 
  fi
4697
 
else
4698
 
  CC="$ac_cv_prog_CC"
4699
 
fi
4700
 
 
4701
 
if test -z "$CC"; then
4702
 
          if test -n "$ac_tool_prefix"; then
4703
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4704
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
4705
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706
 
$as_echo_n "checking for $ac_word... " >&6; }
4707
 
if test "${ac_cv_prog_CC+set}" = set; then :
4708
 
  $as_echo_n "(cached) " >&6
4709
 
else
4710
 
  if test -n "$CC"; then
4711
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4712
 
else
4713
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714
 
for as_dir in $PATH
4715
 
do
4716
 
  IFS=$as_save_IFS
4717
 
  test -z "$as_dir" && as_dir=.
4718
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4719
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4721
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722
 
    break 2
4723
 
  fi
4724
 
done
4725
 
  done
4726
 
IFS=$as_save_IFS
4727
 
 
4728
 
fi
4729
 
fi
4730
 
CC=$ac_cv_prog_CC
4731
 
if test -n "$CC"; then
4732
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4733
 
$as_echo "$CC" >&6; }
4734
 
else
4735
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736
 
$as_echo "no" >&6; }
4737
 
fi
4738
 
 
4739
 
 
4740
 
  fi
4741
 
fi
4742
 
if test -z "$CC"; then
4743
 
  # Extract the first word of "cc", so it can be a program name with args.
4744
 
set dummy cc; ac_word=$2
4745
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746
 
$as_echo_n "checking for $ac_word... " >&6; }
4747
 
if test "${ac_cv_prog_CC+set}" = set; then :
4748
 
  $as_echo_n "(cached) " >&6
4749
 
else
4750
 
  if test -n "$CC"; then
4751
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4752
 
else
4753
 
  ac_prog_rejected=no
4754
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755
 
for as_dir in $PATH
4756
 
do
4757
 
  IFS=$as_save_IFS
4758
 
  test -z "$as_dir" && as_dir=.
4759
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4760
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4762
 
       ac_prog_rejected=yes
4763
 
       continue
4764
 
     fi
4765
 
    ac_cv_prog_CC="cc"
4766
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767
 
    break 2
4768
 
  fi
4769
 
done
4770
 
  done
4771
 
IFS=$as_save_IFS
4772
 
 
4773
 
if test $ac_prog_rejected = yes; then
4774
 
  # We found a bogon in the path, so make sure we never use it.
4775
 
  set dummy $ac_cv_prog_CC
4776
 
  shift
4777
 
  if test $# != 0; then
4778
 
    # We chose a different compiler from the bogus one.
4779
 
    # However, it has the same basename, so the bogon will be chosen
4780
 
    # first if we set CC to just the basename; use the full file name.
4781
 
    shift
4782
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4783
 
  fi
4784
 
fi
4785
 
fi
4786
 
fi
4787
 
CC=$ac_cv_prog_CC
4788
 
if test -n "$CC"; then
4789
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4790
 
$as_echo "$CC" >&6; }
4791
 
else
4792
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793
 
$as_echo "no" >&6; }
4794
 
fi
4795
 
 
4796
 
 
4797
 
fi
4798
 
if test -z "$CC"; then
4799
 
  if test -n "$ac_tool_prefix"; then
4800
 
  for ac_prog in cl.exe
4801
 
  do
4802
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805
 
$as_echo_n "checking for $ac_word... " >&6; }
4806
 
if test "${ac_cv_prog_CC+set}" = set; then :
4807
 
  $as_echo_n "(cached) " >&6
4808
 
else
4809
 
  if test -n "$CC"; then
4810
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4811
 
else
4812
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813
 
for as_dir in $PATH
4814
 
do
4815
 
  IFS=$as_save_IFS
4816
 
  test -z "$as_dir" && as_dir=.
4817
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4818
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4820
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821
 
    break 2
4822
 
  fi
4823
 
done
4824
 
  done
4825
 
IFS=$as_save_IFS
4826
 
 
4827
 
fi
4828
 
fi
4829
 
CC=$ac_cv_prog_CC
4830
 
if test -n "$CC"; then
4831
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4832
 
$as_echo "$CC" >&6; }
4833
 
else
4834
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835
 
$as_echo "no" >&6; }
4836
 
fi
4837
 
 
4838
 
 
4839
 
    test -n "$CC" && break
4840
 
  done
4841
 
fi
4842
 
if test -z "$CC"; then
4843
 
  ac_ct_CC=$CC
4844
 
  for ac_prog in cl.exe
4845
 
do
4846
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4847
 
set dummy $ac_prog; ac_word=$2
4848
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849
 
$as_echo_n "checking for $ac_word... " >&6; }
4850
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4851
 
  $as_echo_n "(cached) " >&6
4852
 
else
4853
 
  if test -n "$ac_ct_CC"; then
4854
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4855
 
else
4856
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857
 
for as_dir in $PATH
4858
 
do
4859
 
  IFS=$as_save_IFS
4860
 
  test -z "$as_dir" && as_dir=.
4861
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4862
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
4864
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865
 
    break 2
4866
 
  fi
4867
 
done
4868
 
  done
4869
 
IFS=$as_save_IFS
4870
 
 
4871
 
fi
4872
 
fi
4873
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4874
 
if test -n "$ac_ct_CC"; then
4875
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4876
 
$as_echo "$ac_ct_CC" >&6; }
4877
 
else
4878
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879
 
$as_echo "no" >&6; }
4880
 
fi
4881
 
 
4882
 
 
4883
 
  test -n "$ac_ct_CC" && break
4884
 
done
4885
 
 
4886
 
  if test "x$ac_ct_CC" = x; then
4887
 
    CC=""
4888
 
  else
4889
 
    case $cross_compiling:$ac_tool_warned in
4890
 
yes:)
4891
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893
 
ac_tool_warned=yes ;;
4894
 
esac
4895
 
    CC=$ac_ct_CC
4896
 
  fi
4897
 
fi
4898
 
 
4899
 
fi
4900
 
 
4901
 
 
4902
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4903
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4904
 
as_fn_error "no acceptable C compiler found in \$PATH
4905
 
See \`config.log' for more details." "$LINENO" 5; }
4906
 
 
4907
 
# Provide some information about the compiler.
4908
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4909
 
set X $ac_compile
4910
 
ac_compiler=$2
4911
 
for ac_option in --version -v -V -qversion; do
4912
 
  { { ac_try="$ac_compiler $ac_option >&5"
4913
 
case "(($ac_try" in
4914
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915
 
  *) ac_try_echo=$ac_try;;
4916
 
esac
4917
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918
 
$as_echo "$ac_try_echo"; } >&5
4919
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4920
 
  ac_status=$?
4921
 
  if test -s conftest.err; then
4922
 
    sed '10a\
4923
 
... rest of stderr output deleted ...
4924
 
         10q' conftest.err >conftest.er1
4925
 
    cat conftest.er1 >&5
4926
 
  fi
4927
 
  rm -f conftest.er1 conftest.err
4928
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929
 
  test $ac_status = 0; }
4930
 
done
4931
 
 
4932
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4933
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4934
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4935
 
  $as_echo_n "(cached) " >&6
4936
 
else
4937
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938
 
/* end confdefs.h.  */
4939
 
 
4940
 
int
4941
 
main ()
4942
 
{
4943
 
#ifndef __GNUC__
4944
 
       choke me
4945
 
#endif
4946
 
 
4947
 
  ;
4948
 
  return 0;
4949
 
}
4950
 
_ACEOF
4951
 
if ac_fn_c_try_compile "$LINENO"; then :
4952
 
  ac_compiler_gnu=yes
4953
 
else
4954
 
  ac_compiler_gnu=no
4955
 
fi
4956
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4958
 
 
4959
 
fi
4960
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4961
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4962
 
if test $ac_compiler_gnu = yes; then
4963
 
  GCC=yes
4964
 
else
4965
 
  GCC=
4966
 
fi
4967
 
ac_test_CFLAGS=${CFLAGS+set}
4968
 
ac_save_CFLAGS=$CFLAGS
4969
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4970
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4971
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
4972
 
  $as_echo_n "(cached) " >&6
4973
 
else
4974
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4975
 
   ac_c_werror_flag=yes
4976
 
   ac_cv_prog_cc_g=no
4977
 
   CFLAGS="-g"
4978
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979
 
/* end confdefs.h.  */
4980
 
 
4981
 
int
4982
 
main ()
4983
 
{
4984
 
 
4985
 
  ;
4986
 
  return 0;
4987
 
}
4988
 
_ACEOF
4989
 
if ac_fn_c_try_compile "$LINENO"; then :
4990
 
  ac_cv_prog_cc_g=yes
4991
 
else
4992
 
  CFLAGS=""
4993
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994
 
/* end confdefs.h.  */
4995
 
 
4996
 
int
4997
 
main ()
4998
 
{
4999
 
 
5000
 
  ;
5001
 
  return 0;
5002
 
}
5003
 
_ACEOF
5004
 
if ac_fn_c_try_compile "$LINENO"; then :
5005
 
 
5006
 
else
5007
 
  ac_c_werror_flag=$ac_save_c_werror_flag
5008
 
         CFLAGS="-g"
5009
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010
 
/* end confdefs.h.  */
5011
 
 
5012
 
int
5013
 
main ()
5014
 
{
5015
 
 
5016
 
  ;
5017
 
  return 0;
5018
 
}
5019
 
_ACEOF
5020
 
if ac_fn_c_try_compile "$LINENO"; then :
5021
 
  ac_cv_prog_cc_g=yes
5022
 
fi
5023
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024
 
fi
5025
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026
 
fi
5027
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028
 
   ac_c_werror_flag=$ac_save_c_werror_flag
5029
 
fi
5030
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5031
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
5032
 
if test "$ac_test_CFLAGS" = set; then
5033
 
  CFLAGS=$ac_save_CFLAGS
5034
 
elif test $ac_cv_prog_cc_g = yes; then
5035
 
  if test "$GCC" = yes; then
5036
 
    CFLAGS="-g -O2"
5037
 
  else
5038
 
    CFLAGS="-g"
5039
 
  fi
5040
 
else
5041
 
  if test "$GCC" = yes; then
5042
 
    CFLAGS="-O2"
5043
 
  else
5044
 
    CFLAGS=
5045
 
  fi
5046
 
fi
5047
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5048
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5049
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5050
 
  $as_echo_n "(cached) " >&6
5051
 
else
5052
 
  ac_cv_prog_cc_c89=no
5053
 
ac_save_CC=$CC
5054
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055
 
/* end confdefs.h.  */
5056
 
#include <stdarg.h>
5057
 
#include <stdio.h>
5058
 
#include <sys/types.h>
5059
 
#include <sys/stat.h>
5060
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5061
 
struct buf { int x; };
5062
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5063
 
static char *e (p, i)
5064
 
     char **p;
5065
 
     int i;
5066
 
{
5067
 
  return p[i];
5068
 
}
5069
 
static char *f (char * (*g) (char **, int), char **p, ...)
5070
 
{
5071
 
  char *s;
5072
 
  va_list v;
5073
 
  va_start (v,p);
5074
 
  s = g (p, va_arg (v,int));
5075
 
  va_end (v);
5076
 
  return s;
5077
 
}
5078
 
 
5079
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5080
 
   function prototypes and stuff, but not '\xHH' hex character constants.
5081
 
   These don't provoke an error unfortunately, instead are silently treated
5082
 
   as 'x'.  The following induces an error, until -std is added to get
5083
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5084
 
   array size at least.  It's necessary to write '\x00'==0 to get something
5085
 
   that's true only with -std.  */
5086
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5087
 
 
5088
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5089
 
   inside strings and character constants.  */
5090
 
#define FOO(x) 'x'
5091
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5092
 
 
5093
 
int test (int i, double x);
5094
 
struct s1 {int (*f) (int a);};
5095
 
struct s2 {int (*f) (double a);};
5096
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5097
 
int argc;
5098
 
char **argv;
5099
 
int
5100
 
main ()
5101
 
{
5102
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5103
 
  ;
5104
 
  return 0;
5105
 
}
5106
 
_ACEOF
5107
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5108
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5109
 
do
5110
 
  CC="$ac_save_CC $ac_arg"
5111
 
  if ac_fn_c_try_compile "$LINENO"; then :
5112
 
  ac_cv_prog_cc_c89=$ac_arg
5113
 
fi
5114
 
rm -f core conftest.err conftest.$ac_objext
5115
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5116
 
done
5117
 
rm -f conftest.$ac_ext
5118
 
CC=$ac_save_CC
5119
 
 
5120
 
fi
5121
 
# AC_CACHE_VAL
5122
 
case "x$ac_cv_prog_cc_c89" in
5123
 
  x)
5124
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5125
 
$as_echo "none needed" >&6; } ;;
5126
 
  xno)
5127
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5128
 
$as_echo "unsupported" >&6; } ;;
5129
 
  *)
5130
 
    CC="$CC $ac_cv_prog_cc_c89"
5131
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5132
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5133
 
esac
5134
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
5135
 
 
5136
 
fi
5137
 
 
5138
 
ac_ext=c
5139
 
ac_cpp='$CPP $CPPFLAGS'
5140
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
 
 
5144
 
depcc="$CC"   am_compiler_list=
5145
 
 
5146
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5147
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
5148
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5149
 
  $as_echo_n "(cached) " >&6
5150
 
else
5151
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5152
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5153
 
  # making bogus files that we don't know about and never remove.  For
5154
 
  # instance it was reported that on HP-UX the gcc test will end up
5155
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5156
 
  # in D'.
5157
 
  mkdir conftest.dir
5158
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5159
 
  # using a relative directory.
5160
 
  cp "$am_depcomp" conftest.dir
5161
 
  cd conftest.dir
5162
 
  # We will build objects and dependencies in a subdirectory because
5163
 
  # it helps to detect inapplicable dependency modes.  For instance
5164
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5165
 
  # side effect of compilation, but ICC will put the dependencies in
5166
 
  # the current directory while Tru64 will put them in the object
5167
 
  # directory.
5168
 
  mkdir sub
5169
 
 
5170
 
  am_cv_CC_dependencies_compiler_type=none
5171
 
  if test "$am_compiler_list" = ""; then
5172
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5173
 
  fi
5174
 
  am__universal=false
5175
 
  case " $depcc " in #(
5176
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5177
 
     esac
5178
 
 
5179
 
  for depmode in $am_compiler_list; do
5180
 
    # Setup a source with many dependencies, because some compilers
5181
 
    # like to wrap large dependency lists on column 80 (with \), and
5182
 
    # we should not choose a depcomp mode which is confused by this.
5183
 
    #
5184
 
    # We need to recreate these files for each test, as the compiler may
5185
 
    # overwrite some of them when testing with obscure command lines.
5186
 
    # This happens at least with the AIX C compiler.
5187
 
    : > sub/conftest.c
5188
 
    for i in 1 2 3 4 5 6; do
5189
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5190
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5191
 
      # Solaris 8's {/usr,}/bin/sh.
5192
 
      touch sub/conftst$i.h
5193
 
    done
5194
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5195
 
 
5196
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5197
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5198
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
5199
 
    # versions had trouble with output in subdirs
5200
 
    am__obj=sub/conftest.${OBJEXT-o}
5201
 
    am__minus_obj="-o $am__obj"
5202
 
    case $depmode in
5203
 
    gcc)
5204
 
      # This depmode causes a compiler race in universal mode.
5205
 
      test "$am__universal" = false || continue
5206
 
      ;;
5207
 
    nosideeffect)
5208
 
      # after this tag, mechanisms are not by side-effect, so they'll
5209
 
      # only be used when explicitly requested
5210
 
      if test "x$enable_dependency_tracking" = xyes; then
5211
 
        continue
5212
 
      else
5213
 
        break
5214
 
      fi
5215
 
      ;;
5216
 
    msvisualcpp | msvcmsys)
5217
 
      # This compiler won't grok `-c -o', but also, the minuso test has
5218
 
      # not run yet.  These depmodes are late enough in the game, and
5219
 
      # so weak that their functioning should not be impacted.
5220
 
      am__obj=conftest.${OBJEXT-o}
5221
 
      am__minus_obj=
5222
 
      ;;
5223
 
    none) break ;;
5224
 
    esac
5225
 
    if depmode=$depmode \
5226
 
       source=sub/conftest.c object=$am__obj \
5227
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5228
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5229
 
         >/dev/null 2>conftest.err &&
5230
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5231
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5232
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5233
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5234
 
      # icc doesn't choke on unknown options, it will just issue warnings
5235
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5236
 
      # that says an option was ignored or not supported.
5237
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5238
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5239
 
      # The diagnosis changed in icc 8.0:
5240
 
      #   icc: Command line remark: option '-MP' not supported
5241
 
      if (grep 'ignoring option' conftest.err ||
5242
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5243
 
        am_cv_CC_dependencies_compiler_type=$depmode
5244
 
        break
5245
 
      fi
5246
 
    fi
5247
 
  done
5248
 
 
5249
 
  cd ..
5250
 
  rm -rf conftest.dir
5251
 
else
5252
 
  am_cv_CC_dependencies_compiler_type=none
5253
 
fi
5254
 
 
5255
 
fi
5256
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5257
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5258
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5259
 
 
5260
 
 if
5261
 
  test "x$enable_dependency_tracking" != xno \
5262
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5263
 
  am__fastdepCC_TRUE=
5264
 
  am__fastdepCC_FALSE='#'
5265
 
else
5266
 
  am__fastdepCC_TRUE='#'
5267
 
  am__fastdepCC_FALSE=
5268
 
fi
5269
 
 
5270
 
 
5271
 
   case $ac_cv_prog_cc_stdc in #(
5272
 
  no) :
5273
 
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5274
 
  *) :
5275
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5276
 
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5277
 
if test "${ac_cv_prog_cc_c99+set}" = set; then :
5278
 
  $as_echo_n "(cached) " >&6
5279
 
else
5280
 
  ac_cv_prog_cc_c99=no
5281
 
ac_save_CC=$CC
5282
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283
 
/* end confdefs.h.  */
5284
 
#include <stdarg.h>
5285
 
#include <stdbool.h>
5286
 
#include <stdlib.h>
5287
 
#include <wchar.h>
5288
 
#include <stdio.h>
5289
 
 
5290
 
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5291
 
#define debug(...) fprintf (stderr, __VA_ARGS__)
5292
 
#define showlist(...) puts (#__VA_ARGS__)
5293
 
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5294
 
static void
5295
 
test_varargs_macros (void)
5296
 
{
5297
 
  int x = 1234;
5298
 
  int y = 5678;
5299
 
  debug ("Flag");
5300
 
  debug ("X = %d\n", x);
5301
 
  showlist (The first, second, and third items.);
5302
 
  report (x>y, "x is %d but y is %d", x, y);
5303
 
}
5304
 
 
5305
 
// Check long long types.
5306
 
#define BIG64 18446744073709551615ull
5307
 
#define BIG32 4294967295ul
5308
 
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5309
 
#if !BIG_OK
5310
 
  your preprocessor is broken;
5311
 
#endif
5312
 
#if BIG_OK
5313
 
#else
5314
 
  your preprocessor is broken;
5315
 
#endif
5316
 
static long long int bignum = -9223372036854775807LL;
5317
 
static unsigned long long int ubignum = BIG64;
5318
 
 
5319
 
struct incomplete_array
5320
 
{
5321
 
  int datasize;
5322
 
  double data[];
5323
 
};
5324
 
 
5325
 
struct named_init {
5326
 
  int number;
5327
 
  const wchar_t *name;
5328
 
  double average;
5329
 
};
5330
 
 
5331
 
typedef const char *ccp;
5332
 
 
5333
 
static inline int
5334
 
test_restrict (ccp restrict text)
5335
 
{
5336
 
  // See if C++-style comments work.
5337
 
  // Iterate through items via the restricted pointer.
5338
 
  // Also check for declarations in for loops.
5339
 
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5340
 
    continue;
5341
 
  return 0;
5342
 
}
5343
 
 
5344
 
// Check varargs and va_copy.
5345
 
static void
5346
 
test_varargs (const char *format, ...)
5347
 
{
5348
 
  va_list args;
5349
 
  va_start (args, format);
5350
 
  va_list args_copy;
5351
 
  va_copy (args_copy, args);
5352
 
 
5353
 
  const char *str;
5354
 
  int number;
5355
 
  float fnumber;
5356
 
 
5357
 
  while (*format)
5358
 
    {
5359
 
      switch (*format++)
5360
 
        {
5361
 
        case 's': // string
5362
 
          str = va_arg (args_copy, const char *);
5363
 
          break;
5364
 
        case 'd': // int
5365
 
          number = va_arg (args_copy, int);
5366
 
          break;
5367
 
        case 'f': // float
5368
 
          fnumber = va_arg (args_copy, double);
5369
 
          break;
5370
 
        default:
5371
 
          break;
5372
 
        }
5373
 
    }
5374
 
  va_end (args_copy);
5375
 
  va_end (args);
5376
 
}
5377
 
 
5378
 
int
5379
 
main ()
5380
 
{
5381
 
 
5382
 
  // Check bool.
5383
 
  _Bool success = false;
5384
 
 
5385
 
  // Check restrict.
5386
 
  if (test_restrict ("String literal") == 0)
5387
 
    success = true;
5388
 
  char *restrict newvar = "Another string";
5389
 
 
5390
 
  // Check varargs.
5391
 
  test_varargs ("s, d' f .", "string", 65, 34.234);
5392
 
  test_varargs_macros ();
5393
 
 
5394
 
  // Check flexible array members.
5395
 
  struct incomplete_array *ia =
5396
 
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5397
 
  ia->datasize = 10;
5398
 
  for (int i = 0; i < ia->datasize; ++i)
5399
 
    ia->data[i] = i * 1.234;
5400
 
 
5401
 
  // Check named initializers.
5402
 
  struct named_init ni = {
5403
 
    .number = 34,
5404
 
    .name = L"Test wide string",
5405
 
    .average = 543.34343,
5406
 
  };
5407
 
 
5408
 
  ni.number = 58;
5409
 
 
5410
 
  int dynamic_array[ni.number];
5411
 
  dynamic_array[ni.number - 1] = 543;
5412
 
 
5413
 
  // work around unused variable warnings
5414
 
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5415
 
          || dynamic_array[ni.number - 1] != 543);
5416
 
 
5417
 
  ;
5418
 
  return 0;
5419
 
}
5420
 
_ACEOF
5421
 
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5422
 
do
5423
 
  CC="$ac_save_CC $ac_arg"
5424
 
  if ac_fn_c_try_compile "$LINENO"; then :
5425
 
  ac_cv_prog_cc_c99=$ac_arg
5426
 
fi
5427
 
rm -f core conftest.err conftest.$ac_objext
5428
 
  test "x$ac_cv_prog_cc_c99" != "xno" && break
5429
 
done
5430
 
rm -f conftest.$ac_ext
5431
 
CC=$ac_save_CC
5432
 
 
5433
 
fi
5434
 
# AC_CACHE_VAL
5435
 
case "x$ac_cv_prog_cc_c99" in
5436
 
  x)
5437
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5438
 
$as_echo "none needed" >&6; } ;;
5439
 
  xno)
5440
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5441
 
$as_echo "unsupported" >&6; } ;;
5442
 
  *)
5443
 
    CC="$CC $ac_cv_prog_cc_c99"
5444
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5445
 
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5446
 
esac
5447
 
if test "x$ac_cv_prog_cc_c99" != xno; then :
5448
 
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5449
 
else
5450
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5451
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5452
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5453
 
  $as_echo_n "(cached) " >&6
5454
 
else
5455
 
  ac_cv_prog_cc_c89=no
5456
 
ac_save_CC=$CC
5457
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458
 
/* end confdefs.h.  */
5459
 
#include <stdarg.h>
5460
 
#include <stdio.h>
5461
 
#include <sys/types.h>
5462
 
#include <sys/stat.h>
5463
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5464
 
struct buf { int x; };
5465
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5466
 
static char *e (p, i)
5467
 
     char **p;
5468
 
     int i;
5469
 
{
5470
 
  return p[i];
5471
 
}
5472
 
static char *f (char * (*g) (char **, int), char **p, ...)
5473
 
{
5474
 
  char *s;
5475
 
  va_list v;
5476
 
  va_start (v,p);
5477
 
  s = g (p, va_arg (v,int));
5478
 
  va_end (v);
5479
 
  return s;
5480
 
}
5481
 
 
5482
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5483
 
   function prototypes and stuff, but not '\xHH' hex character constants.
5484
 
   These don't provoke an error unfortunately, instead are silently treated
5485
 
   as 'x'.  The following induces an error, until -std is added to get
5486
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5487
 
   array size at least.  It's necessary to write '\x00'==0 to get something
5488
 
   that's true only with -std.  */
5489
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5490
 
 
5491
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5492
 
   inside strings and character constants.  */
5493
 
#define FOO(x) 'x'
5494
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5495
 
 
5496
 
int test (int i, double x);
5497
 
struct s1 {int (*f) (int a);};
5498
 
struct s2 {int (*f) (double a);};
5499
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5500
 
int argc;
5501
 
char **argv;
5502
 
int
5503
 
main ()
5504
 
{
5505
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5506
 
  ;
5507
 
  return 0;
5508
 
}
5509
 
_ACEOF
5510
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5511
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5512
 
do
5513
 
  CC="$ac_save_CC $ac_arg"
5514
 
  if ac_fn_c_try_compile "$LINENO"; then :
5515
 
  ac_cv_prog_cc_c89=$ac_arg
5516
 
fi
5517
 
rm -f core conftest.err conftest.$ac_objext
5518
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5519
 
done
5520
 
rm -f conftest.$ac_ext
5521
 
CC=$ac_save_CC
5522
 
 
5523
 
fi
5524
 
# AC_CACHE_VAL
5525
 
case "x$ac_cv_prog_cc_c89" in
5526
 
  x)
5527
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5528
 
$as_echo "none needed" >&6; } ;;
5529
 
  xno)
5530
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5531
 
$as_echo "unsupported" >&6; } ;;
5532
 
  *)
5533
 
    CC="$CC $ac_cv_prog_cc_c89"
5534
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5535
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5536
 
esac
5537
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
5538
 
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5539
 
else
5540
 
  ac_cv_prog_cc_stdc=no
5541
 
fi
5542
 
 
5543
 
fi
5544
 
 ;;
5545
 
esac
5546
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5547
 
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5548
 
  if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5549
 
  $as_echo_n "(cached) " >&6
5550
 
fi
5551
 
 
5552
 
  case $ac_cv_prog_cc_stdc in #(
5553
 
  no) :
5554
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5555
 
$as_echo "unsupported" >&6; } ;; #(
5556
 
  '') :
5557
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5558
 
$as_echo "none needed" >&6; } ;; #(
5559
 
  *) :
5560
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5561
 
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5562
 
esac
5563
 
 
5564
 
if test "x$ac_cv_prog_cc_c99" = xno; then
5565
 
  as_fn_error "Could not find a C99 compatible compiler" "$LINENO" 5
5566
 
fi
5567
 
ac_ext=c
5568
 
ac_cpp='$CPP $CPPFLAGS'
5569
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5572
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5573
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5574
 
# On Suns, sometimes $CPP names a directory.
5575
 
if test -n "$CPP" && test -d "$CPP"; then
5576
 
  CPP=
5577
 
fi
5578
 
if test -z "$CPP"; then
5579
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
5580
 
  $as_echo_n "(cached) " >&6
5581
 
else
5582
 
      # Double quotes because CPP needs to be expanded
5583
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5584
 
    do
5585
 
      ac_preproc_ok=false
5586
 
for ac_c_preproc_warn_flag in '' yes
5587
 
do
5588
 
  # Use a header file that comes with gcc, so configuring glibc
5589
 
  # with a fresh cross-compiler works.
5590
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591
 
  # <limits.h> exists even on freestanding compilers.
5592
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5593
 
  # not just through cpp. "Syntax error" is here to catch this case.
5594
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595
 
/* end confdefs.h.  */
5596
 
#ifdef __STDC__
5597
 
# include <limits.h>
5598
 
#else
5599
 
# include <assert.h>
5600
 
#endif
5601
 
                     Syntax error
5602
 
_ACEOF
5603
 
if ac_fn_c_try_cpp "$LINENO"; then :
5604
 
 
5605
 
else
5606
 
  # Broken: fails on valid input.
5607
 
continue
5608
 
fi
5609
 
rm -f conftest.err conftest.$ac_ext
5610
 
 
5611
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5612
 
  # can be detected and how.
5613
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614
 
/* end confdefs.h.  */
5615
 
#include <ac_nonexistent.h>
5616
 
_ACEOF
5617
 
if ac_fn_c_try_cpp "$LINENO"; then :
5618
 
  # Broken: success on invalid input.
5619
 
continue
5620
 
else
5621
 
  # Passes both tests.
5622
 
ac_preproc_ok=:
5623
 
break
5624
 
fi
5625
 
rm -f conftest.err conftest.$ac_ext
5626
 
 
5627
 
done
5628
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629
 
rm -f conftest.err conftest.$ac_ext
5630
 
if $ac_preproc_ok; then :
5631
 
  break
5632
 
fi
5633
 
 
5634
 
    done
5635
 
    ac_cv_prog_CPP=$CPP
5636
 
 
5637
 
fi
5638
 
  CPP=$ac_cv_prog_CPP
5639
 
else
5640
 
  ac_cv_prog_CPP=$CPP
5641
 
fi
5642
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5643
 
$as_echo "$CPP" >&6; }
5644
 
ac_preproc_ok=false
5645
 
for ac_c_preproc_warn_flag in '' yes
5646
 
do
5647
 
  # Use a header file that comes with gcc, so configuring glibc
5648
 
  # with a fresh cross-compiler works.
5649
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650
 
  # <limits.h> exists even on freestanding compilers.
5651
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5652
 
  # not just through cpp. "Syntax error" is here to catch this case.
5653
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654
 
/* end confdefs.h.  */
5655
 
#ifdef __STDC__
5656
 
# include <limits.h>
5657
 
#else
5658
 
# include <assert.h>
5659
 
#endif
5660
 
                     Syntax error
5661
 
_ACEOF
5662
 
if ac_fn_c_try_cpp "$LINENO"; then :
5663
 
 
5664
 
else
5665
 
  # Broken: fails on valid input.
5666
 
continue
5667
 
fi
5668
 
rm -f conftest.err conftest.$ac_ext
5669
 
 
5670
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5671
 
  # can be detected and how.
5672
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673
 
/* end confdefs.h.  */
5674
 
#include <ac_nonexistent.h>
5675
 
_ACEOF
5676
 
if ac_fn_c_try_cpp "$LINENO"; then :
5677
 
  # Broken: success on invalid input.
5678
 
continue
5679
 
else
5680
 
  # Passes both tests.
5681
 
ac_preproc_ok=:
5682
 
break
5683
 
fi
5684
 
rm -f conftest.err conftest.$ac_ext
5685
 
 
5686
 
done
5687
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688
 
rm -f conftest.err conftest.$ac_ext
5689
 
if $ac_preproc_ok; then :
5690
 
 
5691
 
else
5692
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5693
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5694
 
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5695
 
See \`config.log' for more details." "$LINENO" 5; }
5696
 
fi
5697
 
 
5698
 
ac_ext=c
5699
 
ac_cpp='$CPP $CPPFLAGS'
5700
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
 
 
5704
 
 
5705
 
case `pwd` in
5706
 
  *\ * | *\     *)
5707
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5708
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5709
 
esac
5710
 
 
5711
 
 
5712
 
 
5713
 
macro_version='2.2.6b'
5714
 
macro_revision='1.3017'
5715
 
 
5716
 
 
5717
 
 
5718
 
 
5719
 
 
5720
 
 
5721
 
 
5722
 
 
5723
 
 
5724
 
 
5725
 
 
5726
 
 
5727
 
 
5728
 
ltmain="$ac_aux_dir/ltmain.sh"
5729
 
 
5730
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5731
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5732
 
if test "${ac_cv_path_SED+set}" = set; then :
5733
 
  $as_echo_n "(cached) " >&6
5734
 
else
5735
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5736
 
     for ac_i in 1 2 3 4 5 6 7; do
5737
 
       ac_script="$ac_script$as_nl$ac_script"
5738
 
     done
5739
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5740
 
     { ac_script=; unset ac_script;}
5741
 
     if test -z "$SED"; then
5742
 
  ac_path_SED_found=false
5743
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5744
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745
 
for as_dir in $PATH
5746
 
do
5747
 
  IFS=$as_save_IFS
5748
 
  test -z "$as_dir" && as_dir=.
5749
 
    for ac_prog in sed gsed; do
5750
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5751
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5752
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5753
 
# Check for GNU ac_path_SED and select it if it is found.
5754
 
  # Check for GNU $ac_path_SED
5755
 
case `"$ac_path_SED" --version 2>&1` in
5756
 
*GNU*)
5757
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5758
 
*)
5759
 
  ac_count=0
5760
 
  $as_echo_n 0123456789 >"conftest.in"
5761
 
  while :
5762
 
  do
5763
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5764
 
    mv "conftest.tmp" "conftest.in"
5765
 
    cp "conftest.in" "conftest.nl"
5766
 
    $as_echo '' >> "conftest.nl"
5767
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5770
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5771
 
      # Best one so far, save it but keep looking for a better one
5772
 
      ac_cv_path_SED="$ac_path_SED"
5773
 
      ac_path_SED_max=$ac_count
5774
 
    fi
5775
 
    # 10*(2^10) chars as input seems more than enough
5776
 
    test $ac_count -gt 10 && break
5777
 
  done
5778
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5779
 
esac
5780
 
 
5781
 
      $ac_path_SED_found && break 3
5782
 
    done
5783
 
  done
5784
 
  done
5785
 
IFS=$as_save_IFS
5786
 
  if test -z "$ac_cv_path_SED"; then
5787
 
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5788
 
  fi
5789
 
else
5790
 
  ac_cv_path_SED=$SED
5791
 
fi
5792
 
 
5793
 
fi
5794
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5795
 
$as_echo "$ac_cv_path_SED" >&6; }
5796
 
 SED="$ac_cv_path_SED"
5797
 
  rm -f conftest.sed
5798
 
 
5799
 
test -z "$SED" && SED=sed
5800
 
Xsed="$SED -e 1s/^X//"
5801
 
 
5802
 
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5813
 
$as_echo_n "checking for fgrep... " >&6; }
5814
 
if test "${ac_cv_path_FGREP+set}" = set; then :
5815
 
  $as_echo_n "(cached) " >&6
5816
 
else
5817
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5818
 
   then ac_cv_path_FGREP="$GREP -F"
5819
 
   else
5820
 
     if test -z "$FGREP"; then
5821
 
  ac_path_FGREP_found=false
5822
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5823
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5825
 
do
5826
 
  IFS=$as_save_IFS
5827
 
  test -z "$as_dir" && as_dir=.
5828
 
    for ac_prog in fgrep; do
5829
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5830
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5831
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5832
 
# Check for GNU ac_path_FGREP and select it if it is found.
5833
 
  # Check for GNU $ac_path_FGREP
5834
 
case `"$ac_path_FGREP" --version 2>&1` in
5835
 
*GNU*)
5836
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5837
 
*)
5838
 
  ac_count=0
5839
 
  $as_echo_n 0123456789 >"conftest.in"
5840
 
  while :
5841
 
  do
5842
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5843
 
    mv "conftest.tmp" "conftest.in"
5844
 
    cp "conftest.in" "conftest.nl"
5845
 
    $as_echo 'FGREP' >> "conftest.nl"
5846
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5847
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5848
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5849
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5850
 
      # Best one so far, save it but keep looking for a better one
5851
 
      ac_cv_path_FGREP="$ac_path_FGREP"
5852
 
      ac_path_FGREP_max=$ac_count
5853
 
    fi
5854
 
    # 10*(2^10) chars as input seems more than enough
5855
 
    test $ac_count -gt 10 && break
5856
 
  done
5857
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5858
 
esac
5859
 
 
5860
 
      $ac_path_FGREP_found && break 3
5861
 
    done
5862
 
  done
5863
 
  done
5864
 
IFS=$as_save_IFS
5865
 
  if test -z "$ac_cv_path_FGREP"; then
5866
 
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5867
 
  fi
5868
 
else
5869
 
  ac_cv_path_FGREP=$FGREP
5870
 
fi
5871
 
 
5872
 
   fi
5873
 
fi
5874
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5875
 
$as_echo "$ac_cv_path_FGREP" >&6; }
5876
 
 FGREP="$ac_cv_path_FGREP"
5877
 
 
5878
 
 
5879
 
test -z "$GREP" && GREP=grep
5880
 
 
5881
 
 
5882
 
 
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
 
 
5895
 
 
5896
 
 
5897
 
 
5898
 
 
5899
 
# Check whether --with-gnu-ld was given.
5900
 
if test "${with_gnu_ld+set}" = set; then :
5901
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5902
 
else
5903
 
  with_gnu_ld=no
5904
 
fi
5905
 
 
5906
 
ac_prog=ld
5907
 
if test "$GCC" = yes; then
5908
 
  # Check if gcc -print-prog-name=ld gives a path.
5909
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5910
 
$as_echo_n "checking for ld used by $CC... " >&6; }
5911
 
  case $host in
5912
 
  *-*-mingw*)
5913
 
    # gcc leaves a trailing carriage return which upsets mingw
5914
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5915
 
  *)
5916
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5917
 
  esac
5918
 
  case $ac_prog in
5919
 
    # Accept absolute paths.
5920
 
    [\\/]* | ?:[\\/]*)
5921
 
      re_direlt='/[^/][^/]*/\.\./'
5922
 
      # Canonicalize the pathname of ld
5923
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5924
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5925
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5926
 
      done
5927
 
      test -z "$LD" && LD="$ac_prog"
5928
 
      ;;
5929
 
  "")
5930
 
    # If it fails, then pretend we aren't using GCC.
5931
 
    ac_prog=ld
5932
 
    ;;
5933
 
  *)
5934
 
    # If it is relative, then search for the first ld in PATH.
5935
 
    with_gnu_ld=unknown
5936
 
    ;;
5937
 
  esac
5938
 
elif test "$with_gnu_ld" = yes; then
5939
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5940
 
$as_echo_n "checking for GNU ld... " >&6; }
5941
 
else
5942
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5943
 
$as_echo_n "checking for non-GNU ld... " >&6; }
5944
 
fi
5945
 
if test "${lt_cv_path_LD+set}" = set; then :
5946
 
  $as_echo_n "(cached) " >&6
5947
 
else
5948
 
  if test -z "$LD"; then
5949
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5950
 
  for ac_dir in $PATH; do
5951
 
    IFS="$lt_save_ifs"
5952
 
    test -z "$ac_dir" && ac_dir=.
5953
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5954
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
5955
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5956
 
      # but apparently some variants of GNU ld only accept -v.
5957
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5958
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5959
 
      *GNU* | *'with BFD'*)
5960
 
        test "$with_gnu_ld" != no && break
5961
 
        ;;
5962
 
      *)
5963
 
        test "$with_gnu_ld" != yes && break
5964
 
        ;;
5965
 
      esac
5966
 
    fi
5967
 
  done
5968
 
  IFS="$lt_save_ifs"
5969
 
else
5970
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5971
 
fi
5972
 
fi
5973
 
 
5974
 
LD="$lt_cv_path_LD"
5975
 
if test -n "$LD"; then
5976
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5977
 
$as_echo "$LD" >&6; }
5978
 
else
5979
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980
 
$as_echo "no" >&6; }
5981
 
fi
5982
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5983
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5984
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5985
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5986
 
  $as_echo_n "(cached) " >&6
5987
 
else
5988
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5989
 
case `$LD -v 2>&1 </dev/null` in
5990
 
*GNU* | *'with BFD'*)
5991
 
  lt_cv_prog_gnu_ld=yes
5992
 
  ;;
5993
 
*)
5994
 
  lt_cv_prog_gnu_ld=no
5995
 
  ;;
5996
 
esac
5997
 
fi
5998
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5999
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6000
 
with_gnu_ld=$lt_cv_prog_gnu_ld
6001
 
 
6002
 
 
6003
 
 
6004
 
 
6005
 
 
6006
 
 
6007
 
 
6008
 
 
6009
 
 
6010
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6011
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6012
 
if test "${lt_cv_path_NM+set}" = set; then :
6013
 
  $as_echo_n "(cached) " >&6
6014
 
else
6015
 
  if test -n "$NM"; then
6016
 
  # Let the user override the test.
6017
 
  lt_cv_path_NM="$NM"
6018
 
else
6019
 
  lt_nm_to_check="${ac_tool_prefix}nm"
6020
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6021
 
    lt_nm_to_check="$lt_nm_to_check nm"
6022
 
  fi
6023
 
  for lt_tmp_nm in $lt_nm_to_check; do
6024
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6025
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6026
 
      IFS="$lt_save_ifs"
6027
 
      test -z "$ac_dir" && ac_dir=.
6028
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
6029
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6030
 
        # Check to see if the nm accepts a BSD-compat flag.
6031
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6032
 
        #   nm: unknown option "B" ignored
6033
 
        # Tru64's nm complains that /dev/null is an invalid object file
6034
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6035
 
        */dev/null* | *'Invalid file or object type'*)
6036
 
          lt_cv_path_NM="$tmp_nm -B"
6037
 
          break
6038
 
          ;;
6039
 
        *)
6040
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6041
 
          */dev/null*)
6042
 
            lt_cv_path_NM="$tmp_nm -p"
6043
 
            break
6044
 
            ;;
6045
 
          *)
6046
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6047
 
            continue # so that we can try to find one that supports BSD flags
6048
 
            ;;
6049
 
          esac
6050
 
          ;;
6051
 
        esac
6052
 
      fi
6053
 
    done
6054
 
    IFS="$lt_save_ifs"
6055
 
  done
6056
 
  : ${lt_cv_path_NM=no}
6057
 
fi
6058
 
fi
6059
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6060
 
$as_echo "$lt_cv_path_NM" >&6; }
6061
 
if test "$lt_cv_path_NM" != "no"; then
6062
 
  NM="$lt_cv_path_NM"
6063
 
else
6064
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
6065
 
  if test -n "$ac_tool_prefix"; then
6066
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6067
 
  do
6068
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6069
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6070
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071
 
$as_echo_n "checking for $ac_word... " >&6; }
6072
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6073
 
  $as_echo_n "(cached) " >&6
6074
 
else
6075
 
  if test -n "$DUMPBIN"; then
6076
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6077
 
else
6078
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079
 
for as_dir in $PATH
6080
 
do
6081
 
  IFS=$as_save_IFS
6082
 
  test -z "$as_dir" && as_dir=.
6083
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6084
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6086
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087
 
    break 2
6088
 
  fi
6089
 
done
6090
 
  done
6091
 
IFS=$as_save_IFS
6092
 
 
6093
 
fi
6094
 
fi
6095
 
DUMPBIN=$ac_cv_prog_DUMPBIN
6096
 
if test -n "$DUMPBIN"; then
6097
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6098
 
$as_echo "$DUMPBIN" >&6; }
6099
 
else
6100
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101
 
$as_echo "no" >&6; }
6102
 
fi
6103
 
 
6104
 
 
6105
 
    test -n "$DUMPBIN" && break
6106
 
  done
6107
 
fi
6108
 
if test -z "$DUMPBIN"; then
6109
 
  ac_ct_DUMPBIN=$DUMPBIN
6110
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6111
 
do
6112
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6113
 
set dummy $ac_prog; ac_word=$2
6114
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115
 
$as_echo_n "checking for $ac_word... " >&6; }
6116
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6117
 
  $as_echo_n "(cached) " >&6
6118
 
else
6119
 
  if test -n "$ac_ct_DUMPBIN"; then
6120
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6121
 
else
6122
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123
 
for as_dir in $PATH
6124
 
do
6125
 
  IFS=$as_save_IFS
6126
 
  test -z "$as_dir" && as_dir=.
6127
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6128
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6130
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131
 
    break 2
6132
 
  fi
6133
 
done
6134
 
  done
6135
 
IFS=$as_save_IFS
6136
 
 
6137
 
fi
6138
 
fi
6139
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6140
 
if test -n "$ac_ct_DUMPBIN"; then
6141
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6142
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
6143
 
else
6144
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145
 
$as_echo "no" >&6; }
6146
 
fi
6147
 
 
6148
 
 
6149
 
  test -n "$ac_ct_DUMPBIN" && break
6150
 
done
6151
 
 
6152
 
  if test "x$ac_ct_DUMPBIN" = x; then
6153
 
    DUMPBIN=":"
6154
 
  else
6155
 
    case $cross_compiling:$ac_tool_warned in
6156
 
yes:)
6157
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159
 
ac_tool_warned=yes ;;
6160
 
esac
6161
 
    DUMPBIN=$ac_ct_DUMPBIN
6162
 
  fi
6163
 
fi
6164
 
 
6165
 
 
6166
 
  if test "$DUMPBIN" != ":"; then
6167
 
    NM="$DUMPBIN"
6168
 
  fi
6169
 
fi
6170
 
test -z "$NM" && NM=nm
6171
 
 
6172
 
 
6173
 
 
6174
 
 
6175
 
 
6176
 
 
6177
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6178
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6179
 
if test "${lt_cv_nm_interface+set}" = set; then :
6180
 
  $as_echo_n "(cached) " >&6
6181
 
else
6182
 
  lt_cv_nm_interface="BSD nm"
6183
 
  echo "int some_variable = 0;" > conftest.$ac_ext
6184
 
  (eval echo "\"\$as_me:6184: $ac_compile\"" >&5)
6185
 
  (eval "$ac_compile" 2>conftest.err)
6186
 
  cat conftest.err >&5
6187
 
  (eval echo "\"\$as_me:6187: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6188
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6189
 
  cat conftest.err >&5
6190
 
  (eval echo "\"\$as_me:6190: output\"" >&5)
6191
 
  cat conftest.out >&5
6192
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6193
 
    lt_cv_nm_interface="MS dumpbin"
6194
 
  fi
6195
 
  rm -f conftest*
6196
 
fi
6197
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6198
 
$as_echo "$lt_cv_nm_interface" >&6; }
6199
 
 
6200
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6201
 
$as_echo_n "checking whether ln -s works... " >&6; }
6202
 
LN_S=$as_ln_s
6203
 
if test "$LN_S" = "ln -s"; then
6204
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6205
 
$as_echo "yes" >&6; }
6206
 
else
6207
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6208
 
$as_echo "no, using $LN_S" >&6; }
6209
 
fi
6210
 
 
6211
 
# find the maximum length of command line arguments
6212
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6213
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6214
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6215
 
  $as_echo_n "(cached) " >&6
6216
 
else
6217
 
    i=0
6218
 
  teststring="ABCD"
6219
 
 
6220
 
  case $build_os in
6221
 
  msdosdjgpp*)
6222
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6223
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6224
 
    # during glob expansion).  Even if it were fixed, the result of this
6225
 
    # check would be larger than it should be.
6226
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6227
 
    ;;
6228
 
 
6229
 
  gnu*)
6230
 
    # Under GNU Hurd, this test is not required because there is
6231
 
    # no limit to the length of command line arguments.
6232
 
    # Libtool will interpret -1 as no limit whatsoever
6233
 
    lt_cv_sys_max_cmd_len=-1;
6234
 
    ;;
6235
 
 
6236
 
  cygwin* | mingw* | cegcc*)
6237
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6238
 
    # about 5 minutes as the teststring grows exponentially.
6239
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6240
 
    # you end up with a "frozen" computer, even though with patience
6241
 
    # the test eventually succeeds (with a max line length of 256k).
6242
 
    # Instead, let's just punt: use the minimum linelength reported by
6243
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6244
 
    lt_cv_sys_max_cmd_len=8192;
6245
 
    ;;
6246
 
 
6247
 
  amigaos*)
6248
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6249
 
    # So we just punt and use a minimum line length of 8192.
6250
 
    lt_cv_sys_max_cmd_len=8192;
6251
 
    ;;
6252
 
 
6253
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6254
 
    # This has been around since 386BSD, at least.  Likely further.
6255
 
    if test -x /sbin/sysctl; then
6256
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6257
 
    elif test -x /usr/sbin/sysctl; then
6258
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6259
 
    else
6260
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6261
 
    fi
6262
 
    # And add a safety zone
6263
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6265
 
    ;;
6266
 
 
6267
 
  interix*)
6268
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6269
 
    lt_cv_sys_max_cmd_len=196608
6270
 
    ;;
6271
 
 
6272
 
  osf*)
6273
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6274
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6275
 
    # nice to cause kernel panics so lets avoid the loop below.
6276
 
    # First set a reasonable default.
6277
 
    lt_cv_sys_max_cmd_len=16384
6278
 
    #
6279
 
    if test -x /sbin/sysconfig; then
6280
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6281
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6282
 
      esac
6283
 
    fi
6284
 
    ;;
6285
 
  sco3.2v5*)
6286
 
    lt_cv_sys_max_cmd_len=102400
6287
 
    ;;
6288
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6289
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6290
 
    if test -n "$kargmax"; then
6291
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6292
 
    else
6293
 
      lt_cv_sys_max_cmd_len=32768
6294
 
    fi
6295
 
    ;;
6296
 
  *)
6297
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6298
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6299
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6300
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6301
 
    else
6302
 
      # Make teststring a little bigger before we do anything with it.
6303
 
      # a 1K string should be a reasonable start.
6304
 
      for i in 1 2 3 4 5 6 7 8 ; do
6305
 
        teststring=$teststring$teststring
6306
 
      done
6307
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6308
 
      # If test is not a shell built-in, we'll probably end up computing a
6309
 
      # maximum length that is only half of the actual maximum length, but
6310
 
      # we can't tell.
6311
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6312
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6313
 
              test $i != 17 # 1/2 MB should be enough
6314
 
      do
6315
 
        i=`expr $i + 1`
6316
 
        teststring=$teststring$teststring
6317
 
      done
6318
 
      # Only check the string length outside the loop.
6319
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6320
 
      teststring=
6321
 
      # Add a significant safety factor because C++ compilers can tack on
6322
 
      # massive amounts of additional arguments before passing them to the
6323
 
      # linker.  It appears as though 1/2 is a usable value.
6324
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6325
 
    fi
6326
 
    ;;
6327
 
  esac
6328
 
 
6329
 
fi
6330
 
 
6331
 
if test -n $lt_cv_sys_max_cmd_len ; then
6332
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6333
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6334
 
else
6335
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6336
 
$as_echo "none" >&6; }
6337
 
fi
6338
 
max_cmd_len=$lt_cv_sys_max_cmd_len
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
 
6345
 
: ${CP="cp -f"}
6346
 
: ${MV="mv -f"}
6347
 
: ${RM="rm -f"}
6348
 
 
6349
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6350
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6351
 
# Try some XSI features
6352
 
xsi_shell=no
6353
 
( _lt_dummy="a/b/c"
6354
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6355
 
      = c,a/b,, \
6356
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
6357
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6358
 
  && xsi_shell=yes
6359
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6360
 
$as_echo "$xsi_shell" >&6; }
6361
 
 
6362
 
 
6363
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6364
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6365
 
lt_shell_append=no
6366
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6367
 
    >/dev/null 2>&1 \
6368
 
  && lt_shell_append=yes
6369
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6370
 
$as_echo "$lt_shell_append" >&6; }
6371
 
 
6372
 
 
6373
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6374
 
  lt_unset=unset
6375
 
else
6376
 
  lt_unset=false
6377
 
fi
6378
 
 
6379
 
 
6380
 
 
6381
 
 
6382
 
 
6383
 
# test EBCDIC or ASCII
6384
 
case `echo X|tr X '\101'` in
6385
 
 A) # ASCII based system
6386
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6387
 
  lt_SP2NL='tr \040 \012'
6388
 
  lt_NL2SP='tr \015\012 \040\040'
6389
 
  ;;
6390
 
 *) # EBCDIC based system
6391
 
  lt_SP2NL='tr \100 \n'
6392
 
  lt_NL2SP='tr \r\n \100\100'
6393
 
  ;;
6394
 
esac
6395
 
 
6396
 
 
6397
 
 
6398
 
 
6399
 
 
6400
 
 
6401
 
 
6402
 
 
6403
 
 
6404
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6405
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6406
 
if test "${lt_cv_ld_reload_flag+set}" = set; then :
6407
 
  $as_echo_n "(cached) " >&6
6408
 
else
6409
 
  lt_cv_ld_reload_flag='-r'
6410
 
fi
6411
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6412
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6413
 
reload_flag=$lt_cv_ld_reload_flag
6414
 
case $reload_flag in
6415
 
"" | " "*) ;;
6416
 
*) reload_flag=" $reload_flag" ;;
6417
 
esac
6418
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6419
 
case $host_os in
6420
 
  darwin*)
6421
 
    if test "$GCC" = yes; then
6422
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6423
 
    else
6424
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6425
 
    fi
6426
 
    ;;
6427
 
esac
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
 
 
6435
 
 
6436
 
 
6437
 
if test -n "$ac_tool_prefix"; then
6438
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6439
 
set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+set}" = set; then :
6443
 
  $as_echo_n "(cached) " >&6
6444
 
else
6445
 
  if test -n "$OBJDUMP"; then
6446
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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
 
OBJDUMP=$ac_cv_prog_OBJDUMP
6466
 
if test -n "$OBJDUMP"; then
6467
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6468
 
$as_echo "$OBJDUMP" >&6; }
6469
 
else
6470
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471
 
$as_echo "no" >&6; }
6472
 
fi
6473
 
 
6474
 
 
6475
 
fi
6476
 
if test -z "$ac_cv_prog_OBJDUMP"; then
6477
 
  ac_ct_OBJDUMP=$OBJDUMP
6478
 
  # Extract the first word of "objdump", so it can be a program name with args.
6479
 
set dummy objdump; ac_word=$2
6480
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481
 
$as_echo_n "checking for $ac_word... " >&6; }
6482
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6483
 
  $as_echo_n "(cached) " >&6
6484
 
else
6485
 
  if test -n "$ac_ct_OBJDUMP"; then
6486
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6487
 
else
6488
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489
 
for as_dir in $PATH
6490
 
do
6491
 
  IFS=$as_save_IFS
6492
 
  test -z "$as_dir" && as_dir=.
6493
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6494
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6496
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497
 
    break 2
6498
 
  fi
6499
 
done
6500
 
  done
6501
 
IFS=$as_save_IFS
6502
 
 
6503
 
fi
6504
 
fi
6505
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6506
 
if test -n "$ac_ct_OBJDUMP"; then
6507
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6508
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
6509
 
else
6510
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511
 
$as_echo "no" >&6; }
6512
 
fi
6513
 
 
6514
 
  if test "x$ac_ct_OBJDUMP" = x; then
6515
 
    OBJDUMP="false"
6516
 
  else
6517
 
    case $cross_compiling:$ac_tool_warned in
6518
 
yes:)
6519
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521
 
ac_tool_warned=yes ;;
6522
 
esac
6523
 
    OBJDUMP=$ac_ct_OBJDUMP
6524
 
  fi
6525
 
else
6526
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6527
 
fi
6528
 
 
6529
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6530
 
 
6531
 
 
6532
 
 
6533
 
 
6534
 
 
6535
 
 
6536
 
 
6537
 
 
6538
 
 
6539
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6540
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6541
 
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6542
 
  $as_echo_n "(cached) " >&6
6543
 
else
6544
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6545
 
lt_cv_file_magic_test_file=
6546
 
lt_cv_deplibs_check_method='unknown'
6547
 
# Need to set the preceding variable on all platforms that support
6548
 
# interlibrary dependencies.
6549
 
# 'none' -- dependencies not supported.
6550
 
# `unknown' -- same as none, but documents that we really don't know.
6551
 
# 'pass_all' -- all dependencies passed with no checks.
6552
 
# 'test_compile' -- check by making test program.
6553
 
# 'file_magic [[regex]]' -- check by looking for files in library path
6554
 
# which responds to the $file_magic_cmd with a given extended regex.
6555
 
# If you have `file' or equivalent on your system and you're not sure
6556
 
# whether `pass_all' will *always* work, you probably want this one.
6557
 
 
6558
 
case $host_os in
6559
 
aix[4-9]*)
6560
 
  lt_cv_deplibs_check_method=pass_all
6561
 
  ;;
6562
 
 
6563
 
beos*)
6564
 
  lt_cv_deplibs_check_method=pass_all
6565
 
  ;;
6566
 
 
6567
 
bsdi[45]*)
6568
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6569
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6570
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6571
 
  ;;
6572
 
 
6573
 
cygwin*)
6574
 
  # func_win32_libid is a shell function defined in ltmain.sh
6575
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6576
 
  lt_cv_file_magic_cmd='func_win32_libid'
6577
 
  ;;
6578
 
 
6579
 
mingw* | pw32*)
6580
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
6581
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6582
 
  # unless we find 'file', for example because we are cross-compiling.
6583
 
  if ( file / ) >/dev/null 2>&1; then
6584
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6585
 
    lt_cv_file_magic_cmd='func_win32_libid'
6586
 
  else
6587
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6588
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6589
 
  fi
6590
 
  ;;
6591
 
 
6592
 
cegcc)
6593
 
  # use the weaker test based on 'objdump'. See mingw*.
6594
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6595
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6596
 
  ;;
6597
 
 
6598
 
darwin* | rhapsody*)
6599
 
  lt_cv_deplibs_check_method=pass_all
6600
 
  ;;
6601
 
 
6602
 
freebsd* | dragonfly*)
6603
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6604
 
    case $host_cpu in
6605
 
    i*86 )
6606
 
      # Not sure whether the presence of OpenBSD here was a mistake.
6607
 
      # Let's accept both of them until this is cleared up.
6608
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6609
 
      lt_cv_file_magic_cmd=/usr/bin/file
6610
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6611
 
      ;;
6612
 
    esac
6613
 
  else
6614
 
    lt_cv_deplibs_check_method=pass_all
6615
 
  fi
6616
 
  ;;
6617
 
 
6618
 
gnu*)
6619
 
  lt_cv_deplibs_check_method=pass_all
6620
 
  ;;
6621
 
 
6622
 
hpux10.20* | hpux11*)
6623
 
  lt_cv_file_magic_cmd=/usr/bin/file
6624
 
  case $host_cpu in
6625
 
  ia64*)
6626
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6627
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6628
 
    ;;
6629
 
  hppa*64*)
6630
 
    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]'
6631
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6632
 
    ;;
6633
 
  *)
6634
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6635
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6636
 
    ;;
6637
 
  esac
6638
 
  ;;
6639
 
 
6640
 
interix[3-9]*)
6641
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6642
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6643
 
  ;;
6644
 
 
6645
 
irix5* | irix6* | nonstopux*)
6646
 
  case $LD in
6647
 
  *-32|*"-32 ") libmagic=32-bit;;
6648
 
  *-n32|*"-n32 ") libmagic=N32;;
6649
 
  *-64|*"-64 ") libmagic=64-bit;;
6650
 
  *) libmagic=never-match;;
6651
 
  esac
6652
 
  lt_cv_deplibs_check_method=pass_all
6653
 
  ;;
6654
 
 
6655
 
# This must be Linux ELF.
6656
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6657
 
  lt_cv_deplibs_check_method=pass_all
6658
 
  ;;
6659
 
 
6660
 
netbsd* | netbsdelf*-gnu)
6661
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6662
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6663
 
  else
6664
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6665
 
  fi
6666
 
  ;;
6667
 
 
6668
 
newos6*)
6669
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6670
 
  lt_cv_file_magic_cmd=/usr/bin/file
6671
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6672
 
  ;;
6673
 
 
6674
 
*nto* | *qnx*)
6675
 
  lt_cv_deplibs_check_method=pass_all
6676
 
  ;;
6677
 
 
6678
 
openbsd*)
6679
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6680
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6681
 
  else
6682
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6683
 
  fi
6684
 
  ;;
6685
 
 
6686
 
osf3* | osf4* | osf5*)
6687
 
  lt_cv_deplibs_check_method=pass_all
6688
 
  ;;
6689
 
 
6690
 
rdos*)
6691
 
  lt_cv_deplibs_check_method=pass_all
6692
 
  ;;
6693
 
 
6694
 
solaris*)
6695
 
  lt_cv_deplibs_check_method=pass_all
6696
 
  ;;
6697
 
 
6698
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6699
 
  lt_cv_deplibs_check_method=pass_all
6700
 
  ;;
6701
 
 
6702
 
sysv4 | sysv4.3*)
6703
 
  case $host_vendor in
6704
 
  motorola)
6705
 
    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]'
6706
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6707
 
    ;;
6708
 
  ncr)
6709
 
    lt_cv_deplibs_check_method=pass_all
6710
 
    ;;
6711
 
  sequent)
6712
 
    lt_cv_file_magic_cmd='/bin/file'
6713
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6714
 
    ;;
6715
 
  sni)
6716
 
    lt_cv_file_magic_cmd='/bin/file'
6717
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6718
 
    lt_cv_file_magic_test_file=/lib/libc.so
6719
 
    ;;
6720
 
  siemens)
6721
 
    lt_cv_deplibs_check_method=pass_all
6722
 
    ;;
6723
 
  pc)
6724
 
    lt_cv_deplibs_check_method=pass_all
6725
 
    ;;
6726
 
  esac
6727
 
  ;;
6728
 
 
6729
 
tpf*)
6730
 
  lt_cv_deplibs_check_method=pass_all
6731
 
  ;;
6732
 
esac
6733
 
 
6734
 
fi
6735
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6736
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6737
 
file_magic_cmd=$lt_cv_file_magic_cmd
6738
 
deplibs_check_method=$lt_cv_deplibs_check_method
6739
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6740
 
 
6741
 
 
6742
 
 
6743
 
 
6744
 
 
6745
 
 
6746
 
 
6747
 
 
6748
 
 
6749
 
 
6750
 
 
6751
 
 
6752
 
if test -n "$ac_tool_prefix"; then
6753
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6754
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6755
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756
 
$as_echo_n "checking for $ac_word... " >&6; }
6757
 
if test "${ac_cv_prog_AR+set}" = set; then :
6758
 
  $as_echo_n "(cached) " >&6
6759
 
else
6760
 
  if test -n "$AR"; then
6761
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6762
 
else
6763
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764
 
for as_dir in $PATH
6765
 
do
6766
 
  IFS=$as_save_IFS
6767
 
  test -z "$as_dir" && as_dir=.
6768
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6769
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6771
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772
 
    break 2
6773
 
  fi
6774
 
done
6775
 
  done
6776
 
IFS=$as_save_IFS
6777
 
 
6778
 
fi
6779
 
fi
6780
 
AR=$ac_cv_prog_AR
6781
 
if test -n "$AR"; then
6782
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6783
 
$as_echo "$AR" >&6; }
6784
 
else
6785
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786
 
$as_echo "no" >&6; }
6787
 
fi
6788
 
 
6789
 
 
6790
 
fi
6791
 
if test -z "$ac_cv_prog_AR"; then
6792
 
  ac_ct_AR=$AR
6793
 
  # Extract the first word of "ar", so it can be a program name with args.
6794
 
set dummy ar; ac_word=$2
6795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796
 
$as_echo_n "checking for $ac_word... " >&6; }
6797
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6798
 
  $as_echo_n "(cached) " >&6
6799
 
else
6800
 
  if test -n "$ac_ct_AR"; then
6801
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6802
 
else
6803
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804
 
for as_dir in $PATH
6805
 
do
6806
 
  IFS=$as_save_IFS
6807
 
  test -z "$as_dir" && as_dir=.
6808
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6809
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810
 
    ac_cv_prog_ac_ct_AR="ar"
6811
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812
 
    break 2
6813
 
  fi
6814
 
done
6815
 
  done
6816
 
IFS=$as_save_IFS
6817
 
 
6818
 
fi
6819
 
fi
6820
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6821
 
if test -n "$ac_ct_AR"; then
6822
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6823
 
$as_echo "$ac_ct_AR" >&6; }
6824
 
else
6825
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826
 
$as_echo "no" >&6; }
6827
 
fi
6828
 
 
6829
 
  if test "x$ac_ct_AR" = x; then
6830
 
    AR="false"
6831
 
  else
6832
 
    case $cross_compiling:$ac_tool_warned in
6833
 
yes:)
6834
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836
 
ac_tool_warned=yes ;;
6837
 
esac
6838
 
    AR=$ac_ct_AR
6839
 
  fi
6840
 
else
6841
 
  AR="$ac_cv_prog_AR"
6842
 
fi
6843
 
 
6844
 
test -z "$AR" && AR=ar
6845
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6846
 
 
6847
 
 
6848
 
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
if test -n "$ac_tool_prefix"; then
6858
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6859
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861
 
$as_echo_n "checking for $ac_word... " >&6; }
6862
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
6863
 
  $as_echo_n "(cached) " >&6
6864
 
else
6865
 
  if test -n "$STRIP"; then
6866
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6867
 
else
6868
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869
 
for as_dir in $PATH
6870
 
do
6871
 
  IFS=$as_save_IFS
6872
 
  test -z "$as_dir" && as_dir=.
6873
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6874
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6876
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877
 
    break 2
6878
 
  fi
6879
 
done
6880
 
  done
6881
 
IFS=$as_save_IFS
6882
 
 
6883
 
fi
6884
 
fi
6885
 
STRIP=$ac_cv_prog_STRIP
6886
 
if test -n "$STRIP"; then
6887
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6888
 
$as_echo "$STRIP" >&6; }
6889
 
else
6890
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891
 
$as_echo "no" >&6; }
6892
 
fi
6893
 
 
6894
 
 
6895
 
fi
6896
 
if test -z "$ac_cv_prog_STRIP"; then
6897
 
  ac_ct_STRIP=$STRIP
6898
 
  # Extract the first word of "strip", so it can be a program name with args.
6899
 
set dummy strip; ac_word=$2
6900
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901
 
$as_echo_n "checking for $ac_word... " >&6; }
6902
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6903
 
  $as_echo_n "(cached) " >&6
6904
 
else
6905
 
  if test -n "$ac_ct_STRIP"; then
6906
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6907
 
else
6908
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909
 
for as_dir in $PATH
6910
 
do
6911
 
  IFS=$as_save_IFS
6912
 
  test -z "$as_dir" && as_dir=.
6913
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6914
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915
 
    ac_cv_prog_ac_ct_STRIP="strip"
6916
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917
 
    break 2
6918
 
  fi
6919
 
done
6920
 
  done
6921
 
IFS=$as_save_IFS
6922
 
 
6923
 
fi
6924
 
fi
6925
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6926
 
if test -n "$ac_ct_STRIP"; then
6927
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6928
 
$as_echo "$ac_ct_STRIP" >&6; }
6929
 
else
6930
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931
 
$as_echo "no" >&6; }
6932
 
fi
6933
 
 
6934
 
  if test "x$ac_ct_STRIP" = x; then
6935
 
    STRIP=":"
6936
 
  else
6937
 
    case $cross_compiling:$ac_tool_warned in
6938
 
yes:)
6939
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6940
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6941
 
ac_tool_warned=yes ;;
6942
 
esac
6943
 
    STRIP=$ac_ct_STRIP
6944
 
  fi
6945
 
else
6946
 
  STRIP="$ac_cv_prog_STRIP"
6947
 
fi
6948
 
 
6949
 
test -z "$STRIP" && STRIP=:
6950
 
 
6951
 
 
6952
 
 
6953
 
 
6954
 
 
6955
 
 
6956
 
if test -n "$ac_tool_prefix"; then
6957
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6958
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6959
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960
 
$as_echo_n "checking for $ac_word... " >&6; }
6961
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6962
 
  $as_echo_n "(cached) " >&6
6963
 
else
6964
 
  if test -n "$RANLIB"; then
6965
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6966
 
else
6967
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968
 
for as_dir in $PATH
6969
 
do
6970
 
  IFS=$as_save_IFS
6971
 
  test -z "$as_dir" && as_dir=.
6972
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6973
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6975
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976
 
    break 2
6977
 
  fi
6978
 
done
6979
 
  done
6980
 
IFS=$as_save_IFS
6981
 
 
6982
 
fi
6983
 
fi
6984
 
RANLIB=$ac_cv_prog_RANLIB
6985
 
if test -n "$RANLIB"; then
6986
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6987
 
$as_echo "$RANLIB" >&6; }
6988
 
else
6989
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990
 
$as_echo "no" >&6; }
6991
 
fi
6992
 
 
6993
 
 
6994
 
fi
6995
 
if test -z "$ac_cv_prog_RANLIB"; then
6996
 
  ac_ct_RANLIB=$RANLIB
6997
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6998
 
set dummy ranlib; ac_word=$2
6999
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000
 
$as_echo_n "checking for $ac_word... " >&6; }
7001
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7002
 
  $as_echo_n "(cached) " >&6
7003
 
else
7004
 
  if test -n "$ac_ct_RANLIB"; then
7005
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7006
 
else
7007
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008
 
for as_dir in $PATH
7009
 
do
7010
 
  IFS=$as_save_IFS
7011
 
  test -z "$as_dir" && as_dir=.
7012
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7013
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7015
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016
 
    break 2
7017
 
  fi
7018
 
done
7019
 
  done
7020
 
IFS=$as_save_IFS
7021
 
 
7022
 
fi
7023
 
fi
7024
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7025
 
if test -n "$ac_ct_RANLIB"; then
7026
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7027
 
$as_echo "$ac_ct_RANLIB" >&6; }
7028
 
else
7029
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030
 
$as_echo "no" >&6; }
7031
 
fi
7032
 
 
7033
 
  if test "x$ac_ct_RANLIB" = x; then
7034
 
    RANLIB=":"
7035
 
  else
7036
 
    case $cross_compiling:$ac_tool_warned in
7037
 
yes:)
7038
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040
 
ac_tool_warned=yes ;;
7041
 
esac
7042
 
    RANLIB=$ac_ct_RANLIB
7043
 
  fi
7044
 
else
7045
 
  RANLIB="$ac_cv_prog_RANLIB"
7046
 
fi
7047
 
 
7048
 
test -z "$RANLIB" && RANLIB=:
7049
 
 
7050
 
 
7051
 
 
7052
 
 
7053
 
 
7054
 
 
7055
 
# Determine commands to create old-style static archives.
7056
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7057
 
old_postinstall_cmds='chmod 644 $oldlib'
7058
 
old_postuninstall_cmds=
7059
 
 
7060
 
if test -n "$RANLIB"; then
7061
 
  case $host_os in
7062
 
  openbsd*)
7063
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7064
 
    ;;
7065
 
  *)
7066
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7067
 
    ;;
7068
 
  esac
7069
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7070
 
fi
7071
 
 
7072
 
 
7073
 
 
7074
 
 
7075
 
 
7076
 
 
7077
 
 
7078
 
 
7079
 
 
7080
 
 
7081
 
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
 
7088
 
 
7089
 
 
7090
 
 
7091
 
 
7092
 
 
7093
 
 
7094
 
 
7095
 
 
7096
 
 
7097
 
 
7098
 
 
7099
 
 
7100
 
 
7101
 
 
7102
 
 
7103
 
 
7104
 
 
7105
 
# If no C compiler was specified, use CC.
7106
 
LTCC=${LTCC-"$CC"}
7107
 
 
7108
 
# If no C compiler flags were specified, use CFLAGS.
7109
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7110
 
 
7111
 
# Allow CC to be a program name with arguments.
7112
 
compiler=$CC
7113
 
 
7114
 
 
7115
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
7116
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7117
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7118
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7119
 
  $as_echo_n "(cached) " >&6
7120
 
else
7121
 
 
7122
 
# These are sane defaults that work on at least a few old systems.
7123
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7124
 
 
7125
 
# Character class describing NM global symbol codes.
7126
 
symcode='[BCDEGRST]'
7127
 
 
7128
 
# Regexp to match symbols that can be accessed directly from C.
7129
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7130
 
 
7131
 
# Define system-specific variables.
7132
 
case $host_os in
7133
 
aix*)
7134
 
  symcode='[BCDT]'
7135
 
  ;;
7136
 
cygwin* | mingw* | pw32* | cegcc*)
7137
 
  symcode='[ABCDGISTW]'
7138
 
  ;;
7139
 
hpux*)
7140
 
  if test "$host_cpu" = ia64; then
7141
 
    symcode='[ABCDEGRST]'
7142
 
  fi
7143
 
  ;;
7144
 
irix* | nonstopux*)
7145
 
  symcode='[BCDEGRST]'
7146
 
  ;;
7147
 
osf*)
7148
 
  symcode='[BCDEGQRST]'
7149
 
  ;;
7150
 
solaris*)
7151
 
  symcode='[BDRT]'
7152
 
  ;;
7153
 
sco3.2v5*)
7154
 
  symcode='[DT]'
7155
 
  ;;
7156
 
sysv4.2uw2*)
7157
 
  symcode='[DT]'
7158
 
  ;;
7159
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7160
 
  symcode='[ABDT]'
7161
 
  ;;
7162
 
sysv4)
7163
 
  symcode='[DFNSTU]'
7164
 
  ;;
7165
 
esac
7166
 
 
7167
 
# If we're using GNU nm, then use its standard symbol codes.
7168
 
case `$NM -V 2>&1` in
7169
 
*GNU* | *'with BFD'*)
7170
 
  symcode='[ABCDGIRSTW]' ;;
7171
 
esac
7172
 
 
7173
 
# Transform an extracted symbol line into a proper C declaration.
7174
 
# Some systems (esp. on ia64) link data and code symbols differently,
7175
 
# so use this general approach.
7176
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7177
 
 
7178
 
# Transform an extracted symbol line into symbol name and symbol address
7179
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7180
 
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'"
7181
 
 
7182
 
# Handle CRLF in mingw tool chain
7183
 
opt_cr=
7184
 
case $build_os in
7185
 
mingw*)
7186
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7187
 
  ;;
7188
 
esac
7189
 
 
7190
 
# Try without a prefix underscore, then with it.
7191
 
for ac_symprfx in "" "_"; do
7192
 
 
7193
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7194
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7195
 
 
7196
 
  # Write the raw and C identifiers.
7197
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7198
 
    # Fake it for dumpbin and say T for any non-static function
7199
 
    # and D for any global variable.
7200
 
    # Also find C++ and __fastcall symbols from MSVC++,
7201
 
    # which start with @ or ?.
7202
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
7203
 
"     {last_section=section; section=\$ 3};"\
7204
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7205
 
"     \$ 0!~/External *\|/{next};"\
7206
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7207
 
"     {if(hide[section]) next};"\
7208
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7209
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7210
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7211
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7212
 
"     ' prfx=^$ac_symprfx"
7213
 
  else
7214
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7215
 
  fi
7216
 
 
7217
 
  # Check to see that the pipe works correctly.
7218
 
  pipe_works=no
7219
 
 
7220
 
  rm -f conftest*
7221
 
  cat > conftest.$ac_ext <<_LT_EOF
7222
 
#ifdef __cplusplus
7223
 
extern "C" {
7224
 
#endif
7225
 
char nm_test_var;
7226
 
void nm_test_func(void);
7227
 
void nm_test_func(void){}
7228
 
#ifdef __cplusplus
7229
 
}
7230
 
#endif
7231
 
int main(){nm_test_var='a';nm_test_func();return(0);}
7232
 
_LT_EOF
7233
 
 
7234
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7235
 
  (eval $ac_compile) 2>&5
7236
 
  ac_status=$?
7237
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238
 
  test $ac_status = 0; }; then
7239
 
    # Now try to grab the symbols.
7240
 
    nlist=conftest.nm
7241
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7242
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7243
 
  ac_status=$?
7244
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245
 
  test $ac_status = 0; } && test -s "$nlist"; then
7246
 
      # Try sorting and uniquifying the output.
7247
 
      if sort "$nlist" | uniq > "$nlist"T; then
7248
 
        mv -f "$nlist"T "$nlist"
7249
 
      else
7250
 
        rm -f "$nlist"T
7251
 
      fi
7252
 
 
7253
 
      # Make sure that we snagged all the symbols we need.
7254
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7255
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7256
 
          cat <<_LT_EOF > conftest.$ac_ext
7257
 
#ifdef __cplusplus
7258
 
extern "C" {
7259
 
#endif
7260
 
 
7261
 
_LT_EOF
7262
 
          # Now generate the symbol file.
7263
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7264
 
 
7265
 
          cat <<_LT_EOF >> conftest.$ac_ext
7266
 
 
7267
 
/* The mapping between symbol names and symbols.  */
7268
 
const struct {
7269
 
  const char *name;
7270
 
  void       *address;
7271
 
}
7272
 
lt__PROGRAM__LTX_preloaded_symbols[] =
7273
 
{
7274
 
  { "@PROGRAM@", (void *) 0 },
7275
 
_LT_EOF
7276
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7277
 
          cat <<\_LT_EOF >> conftest.$ac_ext
7278
 
  {0, (void *) 0}
7279
 
};
7280
 
 
7281
 
/* This works around a problem in FreeBSD linker */
7282
 
#ifdef FREEBSD_WORKAROUND
7283
 
static const void *lt_preloaded_setup() {
7284
 
  return lt__PROGRAM__LTX_preloaded_symbols;
7285
 
}
7286
 
#endif
7287
 
 
7288
 
#ifdef __cplusplus
7289
 
}
7290
 
#endif
7291
 
_LT_EOF
7292
 
          # Now try linking the two files.
7293
 
          mv conftest.$ac_objext conftstm.$ac_objext
7294
 
          lt_save_LIBS="$LIBS"
7295
 
          lt_save_CFLAGS="$CFLAGS"
7296
 
          LIBS="conftstm.$ac_objext"
7297
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7298
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7299
 
  (eval $ac_link) 2>&5
7300
 
  ac_status=$?
7301
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7303
 
            pipe_works=yes
7304
 
          fi
7305
 
          LIBS="$lt_save_LIBS"
7306
 
          CFLAGS="$lt_save_CFLAGS"
7307
 
        else
7308
 
          echo "cannot find nm_test_func in $nlist" >&5
7309
 
        fi
7310
 
      else
7311
 
        echo "cannot find nm_test_var in $nlist" >&5
7312
 
      fi
7313
 
    else
7314
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7315
 
    fi
7316
 
  else
7317
 
    echo "$progname: failed program was:" >&5
7318
 
    cat conftest.$ac_ext >&5
7319
 
  fi
7320
 
  rm -rf conftest* conftst*
7321
 
 
7322
 
  # Do not use the global_symbol_pipe unless it works.
7323
 
  if test "$pipe_works" = yes; then
7324
 
    break
7325
 
  else
7326
 
    lt_cv_sys_global_symbol_pipe=
7327
 
  fi
7328
 
done
7329
 
 
7330
 
fi
7331
 
 
7332
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7333
 
  lt_cv_sys_global_symbol_to_cdecl=
7334
 
fi
7335
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7336
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7337
 
$as_echo "failed" >&6; }
7338
 
else
7339
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7340
 
$as_echo "ok" >&6; }
7341
 
fi
7342
 
 
7343
 
 
7344
 
 
7345
 
 
7346
 
 
7347
 
 
7348
 
 
7349
 
 
7350
 
 
7351
 
 
7352
 
 
7353
 
 
7354
 
 
7355
 
 
7356
 
 
7357
 
 
7358
 
 
7359
 
 
7360
 
 
7361
 
 
7362
 
 
7363
 
 
7364
 
# Check whether --enable-libtool-lock was given.
7365
 
if test "${enable_libtool_lock+set}" = set; then :
7366
 
  enableval=$enable_libtool_lock;
7367
 
fi
7368
 
 
7369
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7370
 
 
7371
 
# Some flags need to be propagated to the compiler or linker for good
7372
 
# libtool support.
7373
 
case $host in
7374
 
ia64-*-hpux*)
7375
 
  # Find out which ABI we are using.
7376
 
  echo 'int i;' > conftest.$ac_ext
7377
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378
 
  (eval $ac_compile) 2>&5
7379
 
  ac_status=$?
7380
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381
 
  test $ac_status = 0; }; then
7382
 
    case `/usr/bin/file conftest.$ac_objext` in
7383
 
      *ELF-32*)
7384
 
        HPUX_IA64_MODE="32"
7385
 
        ;;
7386
 
      *ELF-64*)
7387
 
        HPUX_IA64_MODE="64"
7388
 
        ;;
7389
 
    esac
7390
 
  fi
7391
 
  rm -rf conftest*
7392
 
  ;;
7393
 
*-*-irix6*)
7394
 
  # Find out which ABI we are using.
7395
 
  echo '#line 7395 "configure"' > conftest.$ac_ext
7396
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397
 
  (eval $ac_compile) 2>&5
7398
 
  ac_status=$?
7399
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400
 
  test $ac_status = 0; }; then
7401
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
7402
 
      case `/usr/bin/file conftest.$ac_objext` in
7403
 
        *32-bit*)
7404
 
          LD="${LD-ld} -melf32bsmip"
7405
 
          ;;
7406
 
        *N32*)
7407
 
          LD="${LD-ld} -melf32bmipn32"
7408
 
          ;;
7409
 
        *64-bit*)
7410
 
          LD="${LD-ld} -melf64bmip"
7411
 
        ;;
7412
 
      esac
7413
 
    else
7414
 
      case `/usr/bin/file conftest.$ac_objext` in
7415
 
        *32-bit*)
7416
 
          LD="${LD-ld} -32"
7417
 
          ;;
7418
 
        *N32*)
7419
 
          LD="${LD-ld} -n32"
7420
 
          ;;
7421
 
        *64-bit*)
7422
 
          LD="${LD-ld} -64"
7423
 
          ;;
7424
 
      esac
7425
 
    fi
7426
 
  fi
7427
 
  rm -rf conftest*
7428
 
  ;;
7429
 
 
7430
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7431
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7432
 
  # Find out which ABI we are using.
7433
 
  echo 'int i;' > conftest.$ac_ext
7434
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435
 
  (eval $ac_compile) 2>&5
7436
 
  ac_status=$?
7437
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438
 
  test $ac_status = 0; }; then
7439
 
    case `/usr/bin/file conftest.o` in
7440
 
      *32-bit*)
7441
 
        case $host in
7442
 
          x86_64-*kfreebsd*-gnu)
7443
 
            LD="${LD-ld} -m elf_i386_fbsd"
7444
 
            ;;
7445
 
          x86_64-*linux*)
7446
 
            LD="${LD-ld} -m elf_i386"
7447
 
            ;;
7448
 
          ppc64-*linux*|powerpc64-*linux*)
7449
 
            LD="${LD-ld} -m elf32ppclinux"
7450
 
            ;;
7451
 
          s390x-*linux*)
7452
 
            LD="${LD-ld} -m elf_s390"
7453
 
            ;;
7454
 
          sparc64-*linux*)
7455
 
            LD="${LD-ld} -m elf32_sparc"
7456
 
            ;;
7457
 
        esac
7458
 
        ;;
7459
 
      *64-bit*)
7460
 
        case $host in
7461
 
          x86_64-*kfreebsd*-gnu)
7462
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
7463
 
            ;;
7464
 
          x86_64-*linux*)
7465
 
            LD="${LD-ld} -m elf_x86_64"
7466
 
            ;;
7467
 
          ppc*-*linux*|powerpc*-*linux*)
7468
 
            LD="${LD-ld} -m elf64ppc"
7469
 
            ;;
7470
 
          s390*-*linux*|s390*-*tpf*)
7471
 
            LD="${LD-ld} -m elf64_s390"
7472
 
            ;;
7473
 
          sparc*-*linux*)
7474
 
            LD="${LD-ld} -m elf64_sparc"
7475
 
            ;;
7476
 
        esac
7477
 
        ;;
7478
 
    esac
7479
 
  fi
7480
 
  rm -rf conftest*
7481
 
  ;;
7482
 
 
7483
 
*-*-sco3.2v5*)
7484
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7485
 
  SAVE_CFLAGS="$CFLAGS"
7486
 
  CFLAGS="$CFLAGS -belf"
7487
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7488
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7489
 
if test "${lt_cv_cc_needs_belf+set}" = set; then :
7490
 
  $as_echo_n "(cached) " >&6
7491
 
else
7492
 
  ac_ext=c
7493
 
ac_cpp='$CPP $CPPFLAGS'
7494
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
 
 
7498
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499
 
/* end confdefs.h.  */
7500
 
 
7501
 
int
7502
 
main ()
7503
 
{
7504
 
 
7505
 
  ;
7506
 
  return 0;
7507
 
}
7508
 
_ACEOF
7509
 
if ac_fn_c_try_link "$LINENO"; then :
7510
 
  lt_cv_cc_needs_belf=yes
7511
 
else
7512
 
  lt_cv_cc_needs_belf=no
7513
 
fi
7514
 
rm -f core conftest.err conftest.$ac_objext \
7515
 
    conftest$ac_exeext conftest.$ac_ext
7516
 
     ac_ext=c
7517
 
ac_cpp='$CPP $CPPFLAGS'
7518
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521
 
 
7522
 
fi
7523
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7524
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7525
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7526
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7527
 
    CFLAGS="$SAVE_CFLAGS"
7528
 
  fi
7529
 
  ;;
7530
 
sparc*-*solaris*)
7531
 
  # Find out which ABI we are using.
7532
 
  echo 'int i;' > conftest.$ac_ext
7533
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7534
 
  (eval $ac_compile) 2>&5
7535
 
  ac_status=$?
7536
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537
 
  test $ac_status = 0; }; then
7538
 
    case `/usr/bin/file conftest.o` in
7539
 
    *64-bit*)
7540
 
      case $lt_cv_prog_gnu_ld in
7541
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7542
 
      *)
7543
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7544
 
          LD="${LD-ld} -64"
7545
 
        fi
7546
 
        ;;
7547
 
      esac
7548
 
      ;;
7549
 
    esac
7550
 
  fi
7551
 
  rm -rf conftest*
7552
 
  ;;
7553
 
esac
7554
 
 
7555
 
need_locks="$enable_libtool_lock"
7556
 
 
7557
 
 
7558
 
  case $host_os in
7559
 
    rhapsody* | darwin*)
7560
 
    if test -n "$ac_tool_prefix"; then
7561
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7562
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7563
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564
 
$as_echo_n "checking for $ac_word... " >&6; }
7565
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7566
 
  $as_echo_n "(cached) " >&6
7567
 
else
7568
 
  if test -n "$DSYMUTIL"; then
7569
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7570
 
else
7571
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572
 
for as_dir in $PATH
7573
 
do
7574
 
  IFS=$as_save_IFS
7575
 
  test -z "$as_dir" && as_dir=.
7576
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7577
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7579
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580
 
    break 2
7581
 
  fi
7582
 
done
7583
 
  done
7584
 
IFS=$as_save_IFS
7585
 
 
7586
 
fi
7587
 
fi
7588
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7589
 
if test -n "$DSYMUTIL"; then
7590
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7591
 
$as_echo "$DSYMUTIL" >&6; }
7592
 
else
7593
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594
 
$as_echo "no" >&6; }
7595
 
fi
7596
 
 
7597
 
 
7598
 
fi
7599
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
7600
 
  ac_ct_DSYMUTIL=$DSYMUTIL
7601
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
7602
 
set dummy dsymutil; ac_word=$2
7603
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604
 
$as_echo_n "checking for $ac_word... " >&6; }
7605
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7606
 
  $as_echo_n "(cached) " >&6
7607
 
else
7608
 
  if test -n "$ac_ct_DSYMUTIL"; then
7609
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7610
 
else
7611
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612
 
for as_dir in $PATH
7613
 
do
7614
 
  IFS=$as_save_IFS
7615
 
  test -z "$as_dir" && as_dir=.
7616
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7617
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7619
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620
 
    break 2
7621
 
  fi
7622
 
done
7623
 
  done
7624
 
IFS=$as_save_IFS
7625
 
 
7626
 
fi
7627
 
fi
7628
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7629
 
if test -n "$ac_ct_DSYMUTIL"; then
7630
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7631
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7632
 
else
7633
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634
 
$as_echo "no" >&6; }
7635
 
fi
7636
 
 
7637
 
  if test "x$ac_ct_DSYMUTIL" = x; then
7638
 
    DSYMUTIL=":"
7639
 
  else
7640
 
    case $cross_compiling:$ac_tool_warned in
7641
 
yes:)
7642
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644
 
ac_tool_warned=yes ;;
7645
 
esac
7646
 
    DSYMUTIL=$ac_ct_DSYMUTIL
7647
 
  fi
7648
 
else
7649
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7650
 
fi
7651
 
 
7652
 
    if test -n "$ac_tool_prefix"; then
7653
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7654
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7655
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656
 
$as_echo_n "checking for $ac_word... " >&6; }
7657
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7658
 
  $as_echo_n "(cached) " >&6
7659
 
else
7660
 
  if test -n "$NMEDIT"; then
7661
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7662
 
else
7663
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664
 
for as_dir in $PATH
7665
 
do
7666
 
  IFS=$as_save_IFS
7667
 
  test -z "$as_dir" && as_dir=.
7668
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7669
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7671
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672
 
    break 2
7673
 
  fi
7674
 
done
7675
 
  done
7676
 
IFS=$as_save_IFS
7677
 
 
7678
 
fi
7679
 
fi
7680
 
NMEDIT=$ac_cv_prog_NMEDIT
7681
 
if test -n "$NMEDIT"; then
7682
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7683
 
$as_echo "$NMEDIT" >&6; }
7684
 
else
7685
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686
 
$as_echo "no" >&6; }
7687
 
fi
7688
 
 
7689
 
 
7690
 
fi
7691
 
if test -z "$ac_cv_prog_NMEDIT"; then
7692
 
  ac_ct_NMEDIT=$NMEDIT
7693
 
  # Extract the first word of "nmedit", so it can be a program name with args.
7694
 
set dummy nmedit; ac_word=$2
7695
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696
 
$as_echo_n "checking for $ac_word... " >&6; }
7697
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7698
 
  $as_echo_n "(cached) " >&6
7699
 
else
7700
 
  if test -n "$ac_ct_NMEDIT"; then
7701
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7702
 
else
7703
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704
 
for as_dir in $PATH
7705
 
do
7706
 
  IFS=$as_save_IFS
7707
 
  test -z "$as_dir" && as_dir=.
7708
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7709
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7711
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712
 
    break 2
7713
 
  fi
7714
 
done
7715
 
  done
7716
 
IFS=$as_save_IFS
7717
 
 
7718
 
fi
7719
 
fi
7720
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7721
 
if test -n "$ac_ct_NMEDIT"; then
7722
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7723
 
$as_echo "$ac_ct_NMEDIT" >&6; }
7724
 
else
7725
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726
 
$as_echo "no" >&6; }
7727
 
fi
7728
 
 
7729
 
  if test "x$ac_ct_NMEDIT" = x; then
7730
 
    NMEDIT=":"
7731
 
  else
7732
 
    case $cross_compiling:$ac_tool_warned in
7733
 
yes:)
7734
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7735
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7736
 
ac_tool_warned=yes ;;
7737
 
esac
7738
 
    NMEDIT=$ac_ct_NMEDIT
7739
 
  fi
7740
 
else
7741
 
  NMEDIT="$ac_cv_prog_NMEDIT"
7742
 
fi
7743
 
 
7744
 
    if test -n "$ac_tool_prefix"; then
7745
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7746
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7747
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748
 
$as_echo_n "checking for $ac_word... " >&6; }
7749
 
if test "${ac_cv_prog_LIPO+set}" = set; then :
7750
 
  $as_echo_n "(cached) " >&6
7751
 
else
7752
 
  if test -n "$LIPO"; then
7753
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7754
 
else
7755
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756
 
for as_dir in $PATH
7757
 
do
7758
 
  IFS=$as_save_IFS
7759
 
  test -z "$as_dir" && as_dir=.
7760
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7761
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7763
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764
 
    break 2
7765
 
  fi
7766
 
done
7767
 
  done
7768
 
IFS=$as_save_IFS
7769
 
 
7770
 
fi
7771
 
fi
7772
 
LIPO=$ac_cv_prog_LIPO
7773
 
if test -n "$LIPO"; then
7774
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7775
 
$as_echo "$LIPO" >&6; }
7776
 
else
7777
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778
 
$as_echo "no" >&6; }
7779
 
fi
7780
 
 
7781
 
 
7782
 
fi
7783
 
if test -z "$ac_cv_prog_LIPO"; then
7784
 
  ac_ct_LIPO=$LIPO
7785
 
  # Extract the first word of "lipo", so it can be a program name with args.
7786
 
set dummy lipo; ac_word=$2
7787
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788
 
$as_echo_n "checking for $ac_word... " >&6; }
7789
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7790
 
  $as_echo_n "(cached) " >&6
7791
 
else
7792
 
  if test -n "$ac_ct_LIPO"; then
7793
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7794
 
else
7795
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796
 
for as_dir in $PATH
7797
 
do
7798
 
  IFS=$as_save_IFS
7799
 
  test -z "$as_dir" && as_dir=.
7800
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7801
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802
 
    ac_cv_prog_ac_ct_LIPO="lipo"
7803
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804
 
    break 2
7805
 
  fi
7806
 
done
7807
 
  done
7808
 
IFS=$as_save_IFS
7809
 
 
7810
 
fi
7811
 
fi
7812
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7813
 
if test -n "$ac_ct_LIPO"; then
7814
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7815
 
$as_echo "$ac_ct_LIPO" >&6; }
7816
 
else
7817
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818
 
$as_echo "no" >&6; }
7819
 
fi
7820
 
 
7821
 
  if test "x$ac_ct_LIPO" = x; then
7822
 
    LIPO=":"
7823
 
  else
7824
 
    case $cross_compiling:$ac_tool_warned in
7825
 
yes:)
7826
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828
 
ac_tool_warned=yes ;;
7829
 
esac
7830
 
    LIPO=$ac_ct_LIPO
7831
 
  fi
7832
 
else
7833
 
  LIPO="$ac_cv_prog_LIPO"
7834
 
fi
7835
 
 
7836
 
    if test -n "$ac_tool_prefix"; then
7837
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7838
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
7839
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840
 
$as_echo_n "checking for $ac_word... " >&6; }
7841
 
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7842
 
  $as_echo_n "(cached) " >&6
7843
 
else
7844
 
  if test -n "$OTOOL"; then
7845
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7846
 
else
7847
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848
 
for as_dir in $PATH
7849
 
do
7850
 
  IFS=$as_save_IFS
7851
 
  test -z "$as_dir" && as_dir=.
7852
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7853
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7855
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856
 
    break 2
7857
 
  fi
7858
 
done
7859
 
  done
7860
 
IFS=$as_save_IFS
7861
 
 
7862
 
fi
7863
 
fi
7864
 
OTOOL=$ac_cv_prog_OTOOL
7865
 
if test -n "$OTOOL"; then
7866
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7867
 
$as_echo "$OTOOL" >&6; }
7868
 
else
7869
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870
 
$as_echo "no" >&6; }
7871
 
fi
7872
 
 
7873
 
 
7874
 
fi
7875
 
if test -z "$ac_cv_prog_OTOOL"; then
7876
 
  ac_ct_OTOOL=$OTOOL
7877
 
  # Extract the first word of "otool", so it can be a program name with args.
7878
 
set dummy otool; ac_word=$2
7879
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880
 
$as_echo_n "checking for $ac_word... " >&6; }
7881
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7882
 
  $as_echo_n "(cached) " >&6
7883
 
else
7884
 
  if test -n "$ac_ct_OTOOL"; then
7885
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7886
 
else
7887
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888
 
for as_dir in $PATH
7889
 
do
7890
 
  IFS=$as_save_IFS
7891
 
  test -z "$as_dir" && as_dir=.
7892
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7893
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894
 
    ac_cv_prog_ac_ct_OTOOL="otool"
7895
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896
 
    break 2
7897
 
  fi
7898
 
done
7899
 
  done
7900
 
IFS=$as_save_IFS
7901
 
 
7902
 
fi
7903
 
fi
7904
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7905
 
if test -n "$ac_ct_OTOOL"; then
7906
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7907
 
$as_echo "$ac_ct_OTOOL" >&6; }
7908
 
else
7909
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910
 
$as_echo "no" >&6; }
7911
 
fi
7912
 
 
7913
 
  if test "x$ac_ct_OTOOL" = x; then
7914
 
    OTOOL=":"
7915
 
  else
7916
 
    case $cross_compiling:$ac_tool_warned in
7917
 
yes:)
7918
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920
 
ac_tool_warned=yes ;;
7921
 
esac
7922
 
    OTOOL=$ac_ct_OTOOL
7923
 
  fi
7924
 
else
7925
 
  OTOOL="$ac_cv_prog_OTOOL"
7926
 
fi
7927
 
 
7928
 
    if test -n "$ac_tool_prefix"; then
7929
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7930
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7931
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932
 
$as_echo_n "checking for $ac_word... " >&6; }
7933
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7934
 
  $as_echo_n "(cached) " >&6
7935
 
else
7936
 
  if test -n "$OTOOL64"; then
7937
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7938
 
else
7939
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940
 
for as_dir in $PATH
7941
 
do
7942
 
  IFS=$as_save_IFS
7943
 
  test -z "$as_dir" && as_dir=.
7944
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7945
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7946
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7947
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948
 
    break 2
7949
 
  fi
7950
 
done
7951
 
  done
7952
 
IFS=$as_save_IFS
7953
 
 
7954
 
fi
7955
 
fi
7956
 
OTOOL64=$ac_cv_prog_OTOOL64
7957
 
if test -n "$OTOOL64"; then
7958
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7959
 
$as_echo "$OTOOL64" >&6; }
7960
 
else
7961
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962
 
$as_echo "no" >&6; }
7963
 
fi
7964
 
 
7965
 
 
7966
 
fi
7967
 
if test -z "$ac_cv_prog_OTOOL64"; then
7968
 
  ac_ct_OTOOL64=$OTOOL64
7969
 
  # Extract the first word of "otool64", so it can be a program name with args.
7970
 
set dummy otool64; ac_word=$2
7971
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972
 
$as_echo_n "checking for $ac_word... " >&6; }
7973
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7974
 
  $as_echo_n "(cached) " >&6
7975
 
else
7976
 
  if test -n "$ac_ct_OTOOL64"; then
7977
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7978
 
else
7979
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980
 
for as_dir in $PATH
7981
 
do
7982
 
  IFS=$as_save_IFS
7983
 
  test -z "$as_dir" && as_dir=.
7984
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7985
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7987
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988
 
    break 2
7989
 
  fi
7990
 
done
7991
 
  done
7992
 
IFS=$as_save_IFS
7993
 
 
7994
 
fi
7995
 
fi
7996
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7997
 
if test -n "$ac_ct_OTOOL64"; then
7998
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7999
 
$as_echo "$ac_ct_OTOOL64" >&6; }
8000
 
else
8001
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002
 
$as_echo "no" >&6; }
8003
 
fi
8004
 
 
8005
 
  if test "x$ac_ct_OTOOL64" = x; then
8006
 
    OTOOL64=":"
8007
 
  else
8008
 
    case $cross_compiling:$ac_tool_warned in
8009
 
yes:)
8010
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012
 
ac_tool_warned=yes ;;
8013
 
esac
8014
 
    OTOOL64=$ac_ct_OTOOL64
8015
 
  fi
8016
 
else
8017
 
  OTOOL64="$ac_cv_prog_OTOOL64"
8018
 
fi
8019
 
 
8020
 
 
8021
 
 
8022
 
 
8023
 
 
8024
 
 
8025
 
 
8026
 
 
8027
 
 
8028
 
 
8029
 
 
8030
 
 
8031
 
 
8032
 
 
8033
 
 
8034
 
 
8035
 
 
8036
 
 
8037
 
 
8038
 
 
8039
 
 
8040
 
 
8041
 
 
8042
 
 
8043
 
 
8044
 
 
8045
 
 
8046
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8047
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
8048
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8049
 
  $as_echo_n "(cached) " >&6
8050
 
else
8051
 
  lt_cv_apple_cc_single_mod=no
8052
 
      if test -z "${LT_MULTI_MODULE}"; then
8053
 
        # By default we will add the -single_module flag. You can override
8054
 
        # by either setting the environment variable LT_MULTI_MODULE
8055
 
        # non-empty at configure time, or by adding -multi_module to the
8056
 
        # link flags.
8057
 
        rm -rf libconftest.dylib*
8058
 
        echo "int foo(void){return 1;}" > conftest.c
8059
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8060
 
-dynamiclib -Wl,-single_module conftest.c" >&5
8061
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8062
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8063
 
        _lt_result=$?
8064
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8065
 
          lt_cv_apple_cc_single_mod=yes
8066
 
        else
8067
 
          cat conftest.err >&5
8068
 
        fi
8069
 
        rm -rf libconftest.dylib*
8070
 
        rm -f conftest.*
8071
 
      fi
8072
 
fi
8073
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8074
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8075
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8076
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8077
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8078
 
  $as_echo_n "(cached) " >&6
8079
 
else
8080
 
  lt_cv_ld_exported_symbols_list=no
8081
 
      save_LDFLAGS=$LDFLAGS
8082
 
      echo "_main" > conftest.sym
8083
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8084
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085
 
/* end confdefs.h.  */
8086
 
 
8087
 
int
8088
 
main ()
8089
 
{
8090
 
 
8091
 
  ;
8092
 
  return 0;
8093
 
}
8094
 
_ACEOF
8095
 
if ac_fn_c_try_link "$LINENO"; then :
8096
 
  lt_cv_ld_exported_symbols_list=yes
8097
 
else
8098
 
  lt_cv_ld_exported_symbols_list=no
8099
 
fi
8100
 
rm -f core conftest.err conftest.$ac_objext \
8101
 
    conftest$ac_exeext conftest.$ac_ext
8102
 
        LDFLAGS="$save_LDFLAGS"
8103
 
 
8104
 
fi
8105
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8106
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8107
 
    case $host_os in
8108
 
    rhapsody* | darwin1.[012])
8109
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8110
 
    darwin1.*)
8111
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8112
 
    darwin*) # darwin 5.x on
8113
 
      # if running on 10.5 or later, the deployment target defaults
8114
 
      # to the OS version, if on x86, and 10.4, the deployment
8115
 
      # target defaults to 10.4. Don't you love it?
8116
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8117
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8118
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8119
 
        10.[012]*)
8120
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8121
 
        10.*)
8122
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8123
 
      esac
8124
 
    ;;
8125
 
  esac
8126
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8127
 
      _lt_dar_single_mod='$single_module'
8128
 
    fi
8129
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8130
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8131
 
    else
8132
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8133
 
    fi
8134
 
    if test "$DSYMUTIL" != ":"; then
8135
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8136
 
    else
8137
 
      _lt_dsymutil=
8138
 
    fi
8139
 
    ;;
8140
 
  esac
8141
 
 
8142
 
for ac_header in dlfcn.h
8143
 
do :
8144
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8145
 
"
8146
 
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8147
 
  cat >>confdefs.h <<_ACEOF
8148
 
#define HAVE_DLFCN_H 1
8149
 
_ACEOF
8150
 
 
8151
 
fi
8152
 
 
8153
 
done
8154
 
 
8155
 
 
8156
 
 
8157
 
# Set options
8158
 
 
8159
 
 
8160
 
 
8161
 
        enable_dlopen=no
8162
 
 
8163
 
 
8164
 
  enable_win32_dll=no
8165
 
 
8166
 
 
8167
 
            # Check whether --enable-shared was given.
8168
 
if test "${enable_shared+set}" = set; then :
8169
 
  enableval=$enable_shared; p=${PACKAGE-default}
8170
 
    case $enableval in
8171
 
    yes) enable_shared=yes ;;
8172
 
    no) enable_shared=no ;;
8173
 
    *)
8174
 
      enable_shared=no
8175
 
      # Look at the argument we got.  We use all the common list separators.
8176
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8177
 
      for pkg in $enableval; do
8178
 
        IFS="$lt_save_ifs"
8179
 
        if test "X$pkg" = "X$p"; then
8180
 
          enable_shared=yes
8181
 
        fi
8182
 
      done
8183
 
      IFS="$lt_save_ifs"
8184
 
      ;;
8185
 
    esac
8186
 
else
8187
 
  enable_shared=yes
8188
 
fi
8189
 
 
8190
 
 
8191
 
 
8192
 
 
8193
 
 
8194
 
 
8195
 
 
8196
 
 
8197
 
 
8198
 
  # Check whether --enable-static was given.
8199
 
if test "${enable_static+set}" = set; then :
8200
 
  enableval=$enable_static; p=${PACKAGE-default}
8201
 
    case $enableval in
8202
 
    yes) enable_static=yes ;;
8203
 
    no) enable_static=no ;;
8204
 
    *)
8205
 
     enable_static=no
8206
 
      # Look at the argument we got.  We use all the common list separators.
8207
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208
 
      for pkg in $enableval; do
8209
 
        IFS="$lt_save_ifs"
8210
 
        if test "X$pkg" = "X$p"; then
8211
 
          enable_static=yes
8212
 
        fi
8213
 
      done
8214
 
      IFS="$lt_save_ifs"
8215
 
      ;;
8216
 
    esac
8217
 
else
8218
 
  enable_static=yes
8219
 
fi
8220
 
 
8221
 
 
8222
 
 
8223
 
 
8224
 
 
8225
 
 
8226
 
 
8227
 
 
8228
 
 
8229
 
 
8230
 
# Check whether --with-pic was given.
8231
 
if test "${with_pic+set}" = set; then :
8232
 
  withval=$with_pic; pic_mode="$withval"
8233
 
else
8234
 
  pic_mode=default
8235
 
fi
8236
 
 
8237
 
 
8238
 
test -z "$pic_mode" && pic_mode=default
8239
 
 
8240
 
 
8241
 
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
 
  # Check whether --enable-fast-install was given.
8247
 
if test "${enable_fast_install+set}" = set; then :
8248
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
8249
 
    case $enableval in
8250
 
    yes) enable_fast_install=yes ;;
8251
 
    no) enable_fast_install=no ;;
8252
 
    *)
8253
 
      enable_fast_install=no
8254
 
      # Look at the argument we got.  We use all the common list separators.
8255
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8256
 
      for pkg in $enableval; do
8257
 
        IFS="$lt_save_ifs"
8258
 
        if test "X$pkg" = "X$p"; then
8259
 
          enable_fast_install=yes
8260
 
        fi
8261
 
      done
8262
 
      IFS="$lt_save_ifs"
8263
 
      ;;
8264
 
    esac
8265
 
else
8266
 
  enable_fast_install=yes
8267
 
fi
8268
 
 
8269
 
 
8270
 
 
8271
 
 
8272
 
 
8273
 
 
8274
 
 
8275
 
 
8276
 
 
8277
 
 
8278
 
 
8279
 
# This can be used to rebuild libtool when needed
8280
 
LIBTOOL_DEPS="$ltmain"
8281
 
 
8282
 
# Always use our own libtool.
8283
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8284
 
 
8285
 
 
8286
 
 
8287
 
 
8288
 
 
8289
 
 
8290
 
 
8291
 
 
8292
 
 
8293
 
 
8294
 
 
8295
 
 
8296
 
 
8297
 
 
8298
 
 
8299
 
 
8300
 
 
8301
 
 
8302
 
 
8303
 
 
8304
 
 
8305
 
 
8306
 
 
8307
 
 
8308
 
 
8309
 
test -z "$LN_S" && LN_S="ln -s"
8310
 
 
8311
 
 
8312
 
 
8313
 
 
8314
 
 
8315
 
 
8316
 
 
8317
 
 
8318
 
 
8319
 
 
8320
 
 
8321
 
 
8322
 
 
8323
 
 
8324
 
if test -n "${ZSH_VERSION+set}" ; then
8325
 
   setopt NO_GLOB_SUBST
8326
 
fi
8327
 
 
8328
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8329
 
$as_echo_n "checking for objdir... " >&6; }
8330
 
if test "${lt_cv_objdir+set}" = set; then :
8331
 
  $as_echo_n "(cached) " >&6
8332
 
else
8333
 
  rm -f .libs 2>/dev/null
8334
 
mkdir .libs 2>/dev/null
8335
 
if test -d .libs; then
8336
 
  lt_cv_objdir=.libs
8337
 
else
8338
 
  # MS-DOS does not allow filenames that begin with a dot.
8339
 
  lt_cv_objdir=_libs
8340
 
fi
8341
 
rmdir .libs 2>/dev/null
8342
 
fi
8343
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8344
 
$as_echo "$lt_cv_objdir" >&6; }
8345
 
objdir=$lt_cv_objdir
8346
 
 
8347
 
 
8348
 
 
8349
 
 
8350
 
 
8351
 
cat >>confdefs.h <<_ACEOF
8352
 
#define LT_OBJDIR "$lt_cv_objdir/"
8353
 
_ACEOF
8354
 
 
8355
 
 
8356
 
 
8357
 
 
8358
 
 
8359
 
 
8360
 
 
8361
 
 
8362
 
 
8363
 
 
8364
 
 
8365
 
 
8366
 
 
8367
 
 
8368
 
 
8369
 
 
8370
 
 
8371
 
case $host_os in
8372
 
aix3*)
8373
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
8374
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8375
 
  # vanish in a puff of smoke.
8376
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
8377
 
    COLLECT_NAMES=
8378
 
    export COLLECT_NAMES
8379
 
  fi
8380
 
  ;;
8381
 
esac
8382
 
 
8383
 
# Sed substitution that helps us do robust quoting.  It backslashifies
8384
 
# metacharacters that are still active within double-quoted strings.
8385
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8386
 
 
8387
 
# Same as above, but do not quote variable references.
8388
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8389
 
 
8390
 
# Sed substitution to delay expansion of an escaped shell variable in a
8391
 
# double_quote_subst'ed string.
8392
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8393
 
 
8394
 
# Sed substitution to delay expansion of an escaped single quote.
8395
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8396
 
 
8397
 
# Sed substitution to avoid accidental globbing in evaled expressions
8398
 
no_glob_subst='s/\*/\\\*/g'
8399
 
 
8400
 
# Global variables:
8401
 
ofile=libtool
8402
 
can_build_shared=yes
8403
 
 
8404
 
# All known linkers require a `.a' archive for static linking (except MSVC,
8405
 
# which needs '.lib').
8406
 
libext=a
8407
 
 
8408
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
8409
 
 
8410
 
old_CC="$CC"
8411
 
old_CFLAGS="$CFLAGS"
8412
 
 
8413
 
# Set sane defaults for various variables
8414
 
test -z "$CC" && CC=cc
8415
 
test -z "$LTCC" && LTCC=$CC
8416
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8417
 
test -z "$LD" && LD=ld
8418
 
test -z "$ac_objext" && ac_objext=o
8419
 
 
8420
 
for cc_temp in $compiler""; do
8421
 
  case $cc_temp in
8422
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8423
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8424
 
    \-*) ;;
8425
 
    *) break;;
8426
 
  esac
8427
 
done
8428
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8429
 
 
8430
 
 
8431
 
# Only perform the check for file, if the check method requires it
8432
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8433
 
case $deplibs_check_method in
8434
 
file_magic*)
8435
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8436
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8437
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8438
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8439
 
  $as_echo_n "(cached) " >&6
8440
 
else
8441
 
  case $MAGIC_CMD in
8442
 
[\\/*] |  ?:[\\/]*)
8443
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8444
 
  ;;
8445
 
*)
8446
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8447
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8448
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8449
 
  for ac_dir in $ac_dummy; do
8450
 
    IFS="$lt_save_ifs"
8451
 
    test -z "$ac_dir" && ac_dir=.
8452
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
8453
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8454
 
      if test -n "$file_magic_test_file"; then
8455
 
        case $deplibs_check_method in
8456
 
        "file_magic "*)
8457
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8458
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8459
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8460
 
            $EGREP "$file_magic_regex" > /dev/null; then
8461
 
            :
8462
 
          else
8463
 
            cat <<_LT_EOF 1>&2
8464
 
 
8465
 
*** Warning: the command libtool uses to detect shared libraries,
8466
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8467
 
*** The result is that libtool may fail to recognize shared libraries
8468
 
*** as such.  This will affect the creation of libtool libraries that
8469
 
*** depend on shared libraries, but programs linked with such libtool
8470
 
*** libraries will work regardless of this problem.  Nevertheless, you
8471
 
*** may want to report the problem to your system manager and/or to
8472
 
*** bug-libtool@gnu.org
8473
 
 
8474
 
_LT_EOF
8475
 
          fi ;;
8476
 
        esac
8477
 
      fi
8478
 
      break
8479
 
    fi
8480
 
  done
8481
 
  IFS="$lt_save_ifs"
8482
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8483
 
  ;;
8484
 
esac
8485
 
fi
8486
 
 
8487
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8488
 
if test -n "$MAGIC_CMD"; then
8489
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8490
 
$as_echo "$MAGIC_CMD" >&6; }
8491
 
else
8492
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493
 
$as_echo "no" >&6; }
8494
 
fi
8495
 
 
8496
 
 
8497
 
 
8498
 
 
8499
 
 
8500
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
8501
 
  if test -n "$ac_tool_prefix"; then
8502
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8503
 
$as_echo_n "checking for file... " >&6; }
8504
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8505
 
  $as_echo_n "(cached) " >&6
8506
 
else
8507
 
  case $MAGIC_CMD in
8508
 
[\\/*] |  ?:[\\/]*)
8509
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8510
 
  ;;
8511
 
*)
8512
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8513
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8514
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8515
 
  for ac_dir in $ac_dummy; do
8516
 
    IFS="$lt_save_ifs"
8517
 
    test -z "$ac_dir" && ac_dir=.
8518
 
    if test -f $ac_dir/file; then
8519
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8520
 
      if test -n "$file_magic_test_file"; then
8521
 
        case $deplibs_check_method in
8522
 
        "file_magic "*)
8523
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8524
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8526
 
            $EGREP "$file_magic_regex" > /dev/null; then
8527
 
            :
8528
 
          else
8529
 
            cat <<_LT_EOF 1>&2
8530
 
 
8531
 
*** Warning: the command libtool uses to detect shared libraries,
8532
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8533
 
*** The result is that libtool may fail to recognize shared libraries
8534
 
*** as such.  This will affect the creation of libtool libraries that
8535
 
*** depend on shared libraries, but programs linked with such libtool
8536
 
*** libraries will work regardless of this problem.  Nevertheless, you
8537
 
*** may want to report the problem to your system manager and/or to
8538
 
*** bug-libtool@gnu.org
8539
 
 
8540
 
_LT_EOF
8541
 
          fi ;;
8542
 
        esac
8543
 
      fi
8544
 
      break
8545
 
    fi
8546
 
  done
8547
 
  IFS="$lt_save_ifs"
8548
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8549
 
  ;;
8550
 
esac
8551
 
fi
8552
 
 
8553
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8554
 
if test -n "$MAGIC_CMD"; then
8555
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8556
 
$as_echo "$MAGIC_CMD" >&6; }
8557
 
else
8558
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559
 
$as_echo "no" >&6; }
8560
 
fi
8561
 
 
8562
 
 
8563
 
  else
8564
 
    MAGIC_CMD=:
8565
 
  fi
8566
 
fi
8567
 
 
8568
 
  fi
8569
 
  ;;
8570
 
esac
8571
 
 
8572
 
# Use C for the default configuration in the libtool script
8573
 
 
8574
 
lt_save_CC="$CC"
8575
 
ac_ext=c
8576
 
ac_cpp='$CPP $CPPFLAGS'
8577
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
 
 
8581
 
 
8582
 
# Source file extension for C test sources.
8583
 
ac_ext=c
8584
 
 
8585
 
# Object file extension for compiled C test sources.
8586
 
objext=o
8587
 
objext=$objext
8588
 
 
8589
 
# Code to be used in simple compile tests
8590
 
lt_simple_compile_test_code="int some_variable = 0;"
8591
 
 
8592
 
# Code to be used in simple link tests
8593
 
lt_simple_link_test_code='int main(){return(0);}'
8594
 
 
8595
 
 
8596
 
 
8597
 
 
8598
 
 
8599
 
 
8600
 
 
8601
 
# If no C compiler was specified, use CC.
8602
 
LTCC=${LTCC-"$CC"}
8603
 
 
8604
 
# If no C compiler flags were specified, use CFLAGS.
8605
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8606
 
 
8607
 
# Allow CC to be a program name with arguments.
8608
 
compiler=$CC
8609
 
 
8610
 
# Save the default compiler, since it gets overwritten when the other
8611
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8612
 
compiler_DEFAULT=$CC
8613
 
 
8614
 
# save warnings/boilerplate of simple test code
8615
 
ac_outfile=conftest.$ac_objext
8616
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8617
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8618
 
_lt_compiler_boilerplate=`cat conftest.err`
8619
 
$RM conftest*
8620
 
 
8621
 
ac_outfile=conftest.$ac_objext
8622
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8623
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8624
 
_lt_linker_boilerplate=`cat conftest.err`
8625
 
$RM -r conftest*
8626
 
 
8627
 
 
8628
 
if test -n "$compiler"; then
8629
 
 
8630
 
lt_prog_compiler_no_builtin_flag=
8631
 
 
8632
 
if test "$GCC" = yes; then
8633
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8634
 
 
8635
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8638
 
  $as_echo_n "(cached) " >&6
8639
 
else
8640
 
  lt_cv_prog_compiler_rtti_exceptions=no
8641
 
   ac_outfile=conftest.$ac_objext
8642
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8644
 
   # Insert the option either (1) after the last *FLAGS variable, or
8645
 
   # (2) before a word containing "conftest.", or (3) at the end.
8646
 
   # Note that $ac_compile itself does not contain backslashes and begins
8647
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8648
 
   # The option is referenced via a variable to avoid confusing sed.
8649
 
   lt_compile=`echo "$ac_compile" | $SED \
8650
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652
 
   -e 's:$: $lt_compiler_flag:'`
8653
 
   (eval echo "\"\$as_me:8653: $lt_compile\"" >&5)
8654
 
   (eval "$lt_compile" 2>conftest.err)
8655
 
   ac_status=$?
8656
 
   cat conftest.err >&5
8657
 
   echo "$as_me:8657: \$? = $ac_status" >&5
8658
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8659
 
     # The compiler can only warn and ignore the option if not recognized
8660
 
     # So say no if there are warnings other than the usual output.
8661
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8662
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664
 
       lt_cv_prog_compiler_rtti_exceptions=yes
8665
 
     fi
8666
 
   fi
8667
 
   $RM conftest*
8668
 
 
8669
 
fi
8670
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8672
 
 
8673
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8674
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8675
 
else
8676
 
    :
8677
 
fi
8678
 
 
8679
 
fi
8680
 
 
8681
 
 
8682
 
 
8683
 
 
8684
 
 
8685
 
 
8686
 
  lt_prog_compiler_wl=
8687
 
lt_prog_compiler_pic=
8688
 
lt_prog_compiler_static=
8689
 
 
8690
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8691
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8692
 
 
8693
 
  if test "$GCC" = yes; then
8694
 
    lt_prog_compiler_wl='-Wl,'
8695
 
    lt_prog_compiler_static='-static'
8696
 
 
8697
 
    case $host_os in
8698
 
      aix*)
8699
 
      # All AIX code is PIC.
8700
 
      if test "$host_cpu" = ia64; then
8701
 
        # AIX 5 now supports IA64 processor
8702
 
        lt_prog_compiler_static='-Bstatic'
8703
 
      fi
8704
 
      ;;
8705
 
 
8706
 
    amigaos*)
8707
 
      case $host_cpu in
8708
 
      powerpc)
8709
 
            # see comment about AmigaOS4 .so support
8710
 
            lt_prog_compiler_pic='-fPIC'
8711
 
        ;;
8712
 
      m68k)
8713
 
            # FIXME: we need at least 68020 code to build shared libraries, but
8714
 
            # adding the `-m68020' flag to GCC prevents building anything better,
8715
 
            # like `-m68040'.
8716
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8717
 
        ;;
8718
 
      esac
8719
 
      ;;
8720
 
 
8721
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8722
 
      # PIC is the default for these OSes.
8723
 
      ;;
8724
 
 
8725
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8726
 
      # This hack is so that the source file can tell whether it is being
8727
 
      # built for inclusion in a dll (and should export symbols for example).
8728
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8729
 
      # (--disable-auto-import) libraries
8730
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8731
 
      ;;
8732
 
 
8733
 
    darwin* | rhapsody*)
8734
 
      # PIC is the default on this platform
8735
 
      # Common symbols not allowed in MH_DYLIB files
8736
 
      lt_prog_compiler_pic='-fno-common'
8737
 
      ;;
8738
 
 
8739
 
    hpux*)
8740
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8741
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8742
 
      # sets the default TLS model and affects inlining.
8743
 
      case $host_cpu in
8744
 
      hppa*64*)
8745
 
        # +Z the default
8746
 
        ;;
8747
 
      *)
8748
 
        lt_prog_compiler_pic='-fPIC'
8749
 
        ;;
8750
 
      esac
8751
 
      ;;
8752
 
 
8753
 
    interix[3-9]*)
8754
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8755
 
      # Instead, we relocate shared libraries at runtime.
8756
 
      ;;
8757
 
 
8758
 
    msdosdjgpp*)
8759
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8760
 
      # on systems that don't support them.
8761
 
      lt_prog_compiler_can_build_shared=no
8762
 
      enable_shared=no
8763
 
      ;;
8764
 
 
8765
 
    *nto* | *qnx*)
8766
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8767
 
      # it will coredump.
8768
 
      lt_prog_compiler_pic='-fPIC -shared'
8769
 
      ;;
8770
 
 
8771
 
    sysv4*MP*)
8772
 
      if test -d /usr/nec; then
8773
 
        lt_prog_compiler_pic=-Kconform_pic
8774
 
      fi
8775
 
      ;;
8776
 
 
8777
 
    *)
8778
 
      lt_prog_compiler_pic='-fPIC'
8779
 
      ;;
8780
 
    esac
8781
 
  else
8782
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8783
 
    case $host_os in
8784
 
    aix*)
8785
 
      lt_prog_compiler_wl='-Wl,'
8786
 
      if test "$host_cpu" = ia64; then
8787
 
        # AIX 5 now supports IA64 processor
8788
 
        lt_prog_compiler_static='-Bstatic'
8789
 
      else
8790
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8791
 
      fi
8792
 
      ;;
8793
 
 
8794
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8795
 
      # This hack is so that the source file can tell whether it is being
8796
 
      # built for inclusion in a dll (and should export symbols for example).
8797
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8798
 
      ;;
8799
 
 
8800
 
    hpux9* | hpux10* | hpux11*)
8801
 
      lt_prog_compiler_wl='-Wl,'
8802
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8803
 
      # not for PA HP-UX.
8804
 
      case $host_cpu in
8805
 
      hppa*64*|ia64*)
8806
 
        # +Z the default
8807
 
        ;;
8808
 
      *)
8809
 
        lt_prog_compiler_pic='+Z'
8810
 
        ;;
8811
 
      esac
8812
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8813
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8814
 
      ;;
8815
 
 
8816
 
    irix5* | irix6* | nonstopux*)
8817
 
      lt_prog_compiler_wl='-Wl,'
8818
 
      # PIC (with -KPIC) is the default.
8819
 
      lt_prog_compiler_static='-non_shared'
8820
 
      ;;
8821
 
 
8822
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8823
 
      case $cc_basename in
8824
 
      # old Intel for x86_64 which still supported -KPIC.
8825
 
      ecc*)
8826
 
        lt_prog_compiler_wl='-Wl,'
8827
 
        lt_prog_compiler_pic='-KPIC'
8828
 
        lt_prog_compiler_static='-static'
8829
 
        ;;
8830
 
      # icc used to be incompatible with GCC.
8831
 
      # ICC 10 doesn't accept -KPIC any more.
8832
 
      icc* | ifort*)
8833
 
        lt_prog_compiler_wl='-Wl,'
8834
 
        lt_prog_compiler_pic='-fPIC'
8835
 
        lt_prog_compiler_static='-static'
8836
 
        ;;
8837
 
      # Lahey Fortran 8.1.
8838
 
      lf95*)
8839
 
        lt_prog_compiler_wl='-Wl,'
8840
 
        lt_prog_compiler_pic='--shared'
8841
 
        lt_prog_compiler_static='--static'
8842
 
        ;;
8843
 
      pgcc* | pgf77* | pgf90* | pgf95*)
8844
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
8845
 
        # which looks to be a dead project)
8846
 
        lt_prog_compiler_wl='-Wl,'
8847
 
        lt_prog_compiler_pic='-fpic'
8848
 
        lt_prog_compiler_static='-Bstatic'
8849
 
        ;;
8850
 
      ccc*)
8851
 
        lt_prog_compiler_wl='-Wl,'
8852
 
        # All Alpha code is PIC.
8853
 
        lt_prog_compiler_static='-non_shared'
8854
 
        ;;
8855
 
      xl*)
8856
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
8857
 
        lt_prog_compiler_wl='-Wl,'
8858
 
        lt_prog_compiler_pic='-qpic'
8859
 
        lt_prog_compiler_static='-qstaticlink'
8860
 
        ;;
8861
 
      *)
8862
 
        case `$CC -V 2>&1 | sed 5q` in
8863
 
        *Sun\ C*)
8864
 
          # Sun C 5.9
8865
 
          lt_prog_compiler_pic='-KPIC'
8866
 
          lt_prog_compiler_static='-Bstatic'
8867
 
          lt_prog_compiler_wl='-Wl,'
8868
 
          ;;
8869
 
        *Sun\ F*)
8870
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8871
 
          lt_prog_compiler_pic='-KPIC'
8872
 
          lt_prog_compiler_static='-Bstatic'
8873
 
          lt_prog_compiler_wl=''
8874
 
          ;;
8875
 
        esac
8876
 
        ;;
8877
 
      esac
8878
 
      ;;
8879
 
 
8880
 
    newsos6)
8881
 
      lt_prog_compiler_pic='-KPIC'
8882
 
      lt_prog_compiler_static='-Bstatic'
8883
 
      ;;
8884
 
 
8885
 
    *nto* | *qnx*)
8886
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8887
 
      # it will coredump.
8888
 
      lt_prog_compiler_pic='-fPIC -shared'
8889
 
      ;;
8890
 
 
8891
 
    osf3* | osf4* | osf5*)
8892
 
      lt_prog_compiler_wl='-Wl,'
8893
 
      # All OSF/1 code is PIC.
8894
 
      lt_prog_compiler_static='-non_shared'
8895
 
      ;;
8896
 
 
8897
 
    rdos*)
8898
 
      lt_prog_compiler_static='-non_shared'
8899
 
      ;;
8900
 
 
8901
 
    solaris*)
8902
 
      lt_prog_compiler_pic='-KPIC'
8903
 
      lt_prog_compiler_static='-Bstatic'
8904
 
      case $cc_basename in
8905
 
      f77* | f90* | f95*)
8906
 
        lt_prog_compiler_wl='-Qoption ld ';;
8907
 
      *)
8908
 
        lt_prog_compiler_wl='-Wl,';;
8909
 
      esac
8910
 
      ;;
8911
 
 
8912
 
    sunos4*)
8913
 
      lt_prog_compiler_wl='-Qoption ld '
8914
 
      lt_prog_compiler_pic='-PIC'
8915
 
      lt_prog_compiler_static='-Bstatic'
8916
 
      ;;
8917
 
 
8918
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
8919
 
      lt_prog_compiler_wl='-Wl,'
8920
 
      lt_prog_compiler_pic='-KPIC'
8921
 
      lt_prog_compiler_static='-Bstatic'
8922
 
      ;;
8923
 
 
8924
 
    sysv4*MP*)
8925
 
      if test -d /usr/nec ;then
8926
 
        lt_prog_compiler_pic='-Kconform_pic'
8927
 
        lt_prog_compiler_static='-Bstatic'
8928
 
      fi
8929
 
      ;;
8930
 
 
8931
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8932
 
      lt_prog_compiler_wl='-Wl,'
8933
 
      lt_prog_compiler_pic='-KPIC'
8934
 
      lt_prog_compiler_static='-Bstatic'
8935
 
      ;;
8936
 
 
8937
 
    unicos*)
8938
 
      lt_prog_compiler_wl='-Wl,'
8939
 
      lt_prog_compiler_can_build_shared=no
8940
 
      ;;
8941
 
 
8942
 
    uts4*)
8943
 
      lt_prog_compiler_pic='-pic'
8944
 
      lt_prog_compiler_static='-Bstatic'
8945
 
      ;;
8946
 
 
8947
 
    *)
8948
 
      lt_prog_compiler_can_build_shared=no
8949
 
      ;;
8950
 
    esac
8951
 
  fi
8952
 
 
8953
 
case $host_os in
8954
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8955
 
  *djgpp*)
8956
 
    lt_prog_compiler_pic=
8957
 
    ;;
8958
 
  *)
8959
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8960
 
    ;;
8961
 
esac
8962
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8963
 
$as_echo "$lt_prog_compiler_pic" >&6; }
8964
 
 
8965
 
 
8966
 
 
8967
 
 
8968
 
 
8969
 
 
8970
 
#
8971
 
# Check to make sure the PIC flag actually works.
8972
 
#
8973
 
if test -n "$lt_prog_compiler_pic"; then
8974
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8975
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8976
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8977
 
  $as_echo_n "(cached) " >&6
8978
 
else
8979
 
  lt_cv_prog_compiler_pic_works=no
8980
 
   ac_outfile=conftest.$ac_objext
8981
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8982
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8983
 
   # Insert the option either (1) after the last *FLAGS variable, or
8984
 
   # (2) before a word containing "conftest.", or (3) at the end.
8985
 
   # Note that $ac_compile itself does not contain backslashes and begins
8986
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8987
 
   # The option is referenced via a variable to avoid confusing sed.
8988
 
   lt_compile=`echo "$ac_compile" | $SED \
8989
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8990
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8991
 
   -e 's:$: $lt_compiler_flag:'`
8992
 
   (eval echo "\"\$as_me:8992: $lt_compile\"" >&5)
8993
 
   (eval "$lt_compile" 2>conftest.err)
8994
 
   ac_status=$?
8995
 
   cat conftest.err >&5
8996
 
   echo "$as_me:8996: \$? = $ac_status" >&5
8997
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8998
 
     # The compiler can only warn and ignore the option if not recognized
8999
 
     # So say no if there are warnings other than the usual output.
9000
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9001
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9002
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9003
 
       lt_cv_prog_compiler_pic_works=yes
9004
 
     fi
9005
 
   fi
9006
 
   $RM conftest*
9007
 
 
9008
 
fi
9009
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9010
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9011
 
 
9012
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9013
 
    case $lt_prog_compiler_pic in
9014
 
     "" | " "*) ;;
9015
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9016
 
     esac
9017
 
else
9018
 
    lt_prog_compiler_pic=
9019
 
     lt_prog_compiler_can_build_shared=no
9020
 
fi
9021
 
 
9022
 
fi
9023
 
 
9024
 
 
9025
 
 
9026
 
 
9027
 
 
9028
 
 
9029
 
#
9030
 
# Check to make sure the static flag actually works.
9031
 
#
9032
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9033
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9034
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9035
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9036
 
  $as_echo_n "(cached) " >&6
9037
 
else
9038
 
  lt_cv_prog_compiler_static_works=no
9039
 
   save_LDFLAGS="$LDFLAGS"
9040
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9041
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9042
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9043
 
     # The linker can only warn and ignore the option if not recognized
9044
 
     # So say no if there are warnings
9045
 
     if test -s conftest.err; then
9046
 
       # Append any errors to the config.log.
9047
 
       cat conftest.err 1>&5
9048
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9049
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050
 
       if diff conftest.exp conftest.er2 >/dev/null; then
9051
 
         lt_cv_prog_compiler_static_works=yes
9052
 
       fi
9053
 
     else
9054
 
       lt_cv_prog_compiler_static_works=yes
9055
 
     fi
9056
 
   fi
9057
 
   $RM -r conftest*
9058
 
   LDFLAGS="$save_LDFLAGS"
9059
 
 
9060
 
fi
9061
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9062
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9063
 
 
9064
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9065
 
    :
9066
 
else
9067
 
    lt_prog_compiler_static=
9068
 
fi
9069
 
 
9070
 
 
9071
 
 
9072
 
 
9073
 
 
9074
 
 
9075
 
 
9076
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9077
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9078
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9079
 
  $as_echo_n "(cached) " >&6
9080
 
else
9081
 
  lt_cv_prog_compiler_c_o=no
9082
 
   $RM -r conftest 2>/dev/null
9083
 
   mkdir conftest
9084
 
   cd conftest
9085
 
   mkdir out
9086
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087
 
 
9088
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9089
 
   # Insert the option either (1) after the last *FLAGS variable, or
9090
 
   # (2) before a word containing "conftest.", or (3) at the end.
9091
 
   # Note that $ac_compile itself does not contain backslashes and begins
9092
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9093
 
   lt_compile=`echo "$ac_compile" | $SED \
9094
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096
 
   -e 's:$: $lt_compiler_flag:'`
9097
 
   (eval echo "\"\$as_me:9097: $lt_compile\"" >&5)
9098
 
   (eval "$lt_compile" 2>out/conftest.err)
9099
 
   ac_status=$?
9100
 
   cat out/conftest.err >&5
9101
 
   echo "$as_me:9101: \$? = $ac_status" >&5
9102
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9103
 
   then
9104
 
     # The compiler can only warn and ignore the option if not recognized
9105
 
     # So say no if there are warnings
9106
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9107
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9108
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9109
 
       lt_cv_prog_compiler_c_o=yes
9110
 
     fi
9111
 
   fi
9112
 
   chmod u+w . 2>&5
9113
 
   $RM conftest*
9114
 
   # SGI C++ compiler will create directory out/ii_files/ for
9115
 
   # template instantiation
9116
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9117
 
   $RM out/* && rmdir out
9118
 
   cd ..
9119
 
   $RM -r conftest
9120
 
   $RM conftest*
9121
 
 
9122
 
fi
9123
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9124
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9125
 
 
9126
 
 
9127
 
 
9128
 
 
9129
 
 
9130
 
 
9131
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9132
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9133
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9134
 
  $as_echo_n "(cached) " >&6
9135
 
else
9136
 
  lt_cv_prog_compiler_c_o=no
9137
 
   $RM -r conftest 2>/dev/null
9138
 
   mkdir conftest
9139
 
   cd conftest
9140
 
   mkdir out
9141
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9142
 
 
9143
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9144
 
   # Insert the option either (1) after the last *FLAGS variable, or
9145
 
   # (2) before a word containing "conftest.", or (3) at the end.
9146
 
   # Note that $ac_compile itself does not contain backslashes and begins
9147
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9148
 
   lt_compile=`echo "$ac_compile" | $SED \
9149
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9150
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9151
 
   -e 's:$: $lt_compiler_flag:'`
9152
 
   (eval echo "\"\$as_me:9152: $lt_compile\"" >&5)
9153
 
   (eval "$lt_compile" 2>out/conftest.err)
9154
 
   ac_status=$?
9155
 
   cat out/conftest.err >&5
9156
 
   echo "$as_me:9156: \$? = $ac_status" >&5
9157
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9158
 
   then
9159
 
     # The compiler can only warn and ignore the option if not recognized
9160
 
     # So say no if there are warnings
9161
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9162
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9163
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9164
 
       lt_cv_prog_compiler_c_o=yes
9165
 
     fi
9166
 
   fi
9167
 
   chmod u+w . 2>&5
9168
 
   $RM conftest*
9169
 
   # SGI C++ compiler will create directory out/ii_files/ for
9170
 
   # template instantiation
9171
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9172
 
   $RM out/* && rmdir out
9173
 
   cd ..
9174
 
   $RM -r conftest
9175
 
   $RM conftest*
9176
 
 
9177
 
fi
9178
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9179
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9180
 
 
9181
 
 
9182
 
 
9183
 
 
9184
 
hard_links="nottested"
9185
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9186
 
  # do not overwrite the value of need_locks provided by the user
9187
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9188
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
9189
 
  hard_links=yes
9190
 
  $RM conftest*
9191
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9192
 
  touch conftest.a
9193
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
9194
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9195
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9196
 
$as_echo "$hard_links" >&6; }
9197
 
  if test "$hard_links" = no; then
9198
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9199
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9200
 
    need_locks=warn
9201
 
  fi
9202
 
else
9203
 
  need_locks=no
9204
 
fi
9205
 
 
9206
 
 
9207
 
 
9208
 
 
9209
 
 
9210
 
 
9211
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9212
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9213
 
 
9214
 
  runpath_var=
9215
 
  allow_undefined_flag=
9216
 
  always_export_symbols=no
9217
 
  archive_cmds=
9218
 
  archive_expsym_cmds=
9219
 
  compiler_needs_object=no
9220
 
  enable_shared_with_static_runtimes=no
9221
 
  export_dynamic_flag_spec=
9222
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9223
 
  hardcode_automatic=no
9224
 
  hardcode_direct=no
9225
 
  hardcode_direct_absolute=no
9226
 
  hardcode_libdir_flag_spec=
9227
 
  hardcode_libdir_flag_spec_ld=
9228
 
  hardcode_libdir_separator=
9229
 
  hardcode_minus_L=no
9230
 
  hardcode_shlibpath_var=unsupported
9231
 
  inherit_rpath=no
9232
 
  link_all_deplibs=unknown
9233
 
  module_cmds=
9234
 
  module_expsym_cmds=
9235
 
  old_archive_from_new_cmds=
9236
 
  old_archive_from_expsyms_cmds=
9237
 
  thread_safe_flag_spec=
9238
 
  whole_archive_flag_spec=
9239
 
  # include_expsyms should be a list of space-separated symbols to be *always*
9240
 
  # included in the symbol list
9241
 
  include_expsyms=
9242
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
9243
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9244
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9245
 
  # as well as any symbol that contains `d'.
9246
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9247
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9248
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
9249
 
  # the symbol is explicitly referenced.  Since portable code cannot
9250
 
  # rely on this symbol name, it's probably fine to never include it in
9251
 
  # preloaded symbol tables.
9252
 
  # Exclude shared library initialization/finalization symbols.
9253
 
  extract_expsyms_cmds=
9254
 
 
9255
 
  case $host_os in
9256
 
  cygwin* | mingw* | pw32* | cegcc*)
9257
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9258
 
    # When not using gcc, we currently assume that we are using
9259
 
    # Microsoft Visual C++.
9260
 
    if test "$GCC" != yes; then
9261
 
      with_gnu_ld=no
9262
 
    fi
9263
 
    ;;
9264
 
  interix*)
9265
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9266
 
    with_gnu_ld=yes
9267
 
    ;;
9268
 
  openbsd*)
9269
 
    with_gnu_ld=no
9270
 
    ;;
9271
 
  linux* | k*bsd*-gnu)
9272
 
    link_all_deplibs=no
9273
 
    ;;
9274
 
  esac
9275
 
 
9276
 
  ld_shlibs=yes
9277
 
  if test "$with_gnu_ld" = yes; then
9278
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
9279
 
    wlarc='${wl}'
9280
 
 
9281
 
    # Set some defaults for GNU ld with shared library support. These
9282
 
    # are reset later if shared libraries are not supported. Putting them
9283
 
    # here allows them to be overridden if necessary.
9284
 
    runpath_var=LD_RUN_PATH
9285
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
9287
 
    # ancient GNU ld didn't support --whole-archive et. al.
9288
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9289
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9290
 
    else
9291
 
      whole_archive_flag_spec=
9292
 
    fi
9293
 
    supports_anon_versioning=no
9294
 
    case `$LD -v 2>&1` in
9295
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
9296
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9297
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9298
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9299
 
      *\ 2.11.*) ;; # other 2.11 versions
9300
 
      *) supports_anon_versioning=yes ;;
9301
 
    esac
9302
 
 
9303
 
    # See if GNU ld supports shared libraries.
9304
 
    case $host_os in
9305
 
    aix[3-9]*)
9306
 
      # On AIX/PPC, the GNU linker is very broken
9307
 
      if test "$host_cpu" != ia64; then
9308
 
        ld_shlibs=no
9309
 
        cat <<_LT_EOF 1>&2
9310
 
 
9311
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9312
 
*** to be unable to reliably create shared libraries on AIX.
9313
 
*** Therefore, libtool is disabling shared libraries support.  If you
9314
 
*** really care for shared libraries, you may want to modify your PATH
9315
 
*** so that a non-GNU linker is found, and then restart.
9316
 
 
9317
 
_LT_EOF
9318
 
      fi
9319
 
      ;;
9320
 
 
9321
 
    amigaos*)
9322
 
      case $host_cpu in
9323
 
      powerpc)
9324
 
            # see comment about AmigaOS4 .so support
9325
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326
 
            archive_expsym_cmds=''
9327
 
        ;;
9328
 
      m68k)
9329
 
            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)'
9330
 
            hardcode_libdir_flag_spec='-L$libdir'
9331
 
            hardcode_minus_L=yes
9332
 
        ;;
9333
 
      esac
9334
 
      ;;
9335
 
 
9336
 
    beos*)
9337
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338
 
        allow_undefined_flag=unsupported
9339
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9340
 
        # support --undefined.  This deserves some investigation.  FIXME
9341
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342
 
      else
9343
 
        ld_shlibs=no
9344
 
      fi
9345
 
      ;;
9346
 
 
9347
 
    cygwin* | mingw* | pw32* | cegcc*)
9348
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9349
 
      # as there is no search path for DLLs.
9350
 
      hardcode_libdir_flag_spec='-L$libdir'
9351
 
      allow_undefined_flag=unsupported
9352
 
      always_export_symbols=no
9353
 
      enable_shared_with_static_runtimes=yes
9354
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9355
 
 
9356
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9357
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9358
 
        # If the export-symbols file already is a .def file (1st line
9359
 
        # is EXPORTS), use it as is; otherwise, prepend...
9360
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9361
 
          cp $export_symbols $output_objdir/$soname.def;
9362
 
        else
9363
 
          echo EXPORTS > $output_objdir/$soname.def;
9364
 
          cat $export_symbols >> $output_objdir/$soname.def;
9365
 
        fi~
9366
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9367
 
      else
9368
 
        ld_shlibs=no
9369
 
      fi
9370
 
      ;;
9371
 
 
9372
 
    interix[3-9]*)
9373
 
      hardcode_direct=no
9374
 
      hardcode_shlibpath_var=no
9375
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9376
 
      export_dynamic_flag_spec='${wl}-E'
9377
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9378
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9379
 
      # default) and relocated if they conflict, which is a slow very memory
9380
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
9381
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9382
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9383
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9384
 
      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'
9385
 
      ;;
9386
 
 
9387
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9388
 
      tmp_diet=no
9389
 
      if test "$host_os" = linux-dietlibc; then
9390
 
        case $cc_basename in
9391
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9392
 
        esac
9393
 
      fi
9394
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9395
 
         && test "$tmp_diet" = no
9396
 
      then
9397
 
        tmp_addflag=
9398
 
        tmp_sharedflag='-shared'
9399
 
        case $cc_basename,$host_cpu in
9400
 
        pgcc*)                          # Portland Group C compiler
9401
 
          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'
9402
 
          tmp_addflag=' $pic_flag'
9403
 
          ;;
9404
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9405
 
          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'
9406
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
9407
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9408
 
          tmp_addflag=' -i_dynamic' ;;
9409
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9410
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9411
 
        ifc* | ifort*)                  # Intel Fortran compiler
9412
 
          tmp_addflag=' -nofor_main' ;;
9413
 
        lf95*)                          # Lahey Fortran 8.1
9414
 
          whole_archive_flag_spec=
9415
 
          tmp_sharedflag='--shared' ;;
9416
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9417
 
          tmp_sharedflag='-qmkshrobj'
9418
 
          tmp_addflag= ;;
9419
 
        esac
9420
 
        case `$CC -V 2>&1 | sed 5q` in
9421
 
        *Sun\ C*)                       # Sun C 5.9
9422
 
          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'
9423
 
          compiler_needs_object=yes
9424
 
          tmp_sharedflag='-G' ;;
9425
 
        *Sun\ F*)                       # Sun Fortran 8.3
9426
 
          tmp_sharedflag='-G' ;;
9427
 
        esac
9428
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429
 
 
9430
 
        if test "x$supports_anon_versioning" = xyes; then
9431
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9432
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9433
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
9434
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9435
 
        fi
9436
 
 
9437
 
        case $cc_basename in
9438
 
        xlf*)
9439
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9440
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9441
 
          hardcode_libdir_flag_spec=
9442
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9443
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9444
 
          if test "x$supports_anon_versioning" = xyes; then
9445
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9446
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9447
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
9448
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9449
 
          fi
9450
 
          ;;
9451
 
        esac
9452
 
      else
9453
 
        ld_shlibs=no
9454
 
      fi
9455
 
      ;;
9456
 
 
9457
 
    netbsd* | netbsdelf*-gnu)
9458
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9459
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9460
 
        wlarc=
9461
 
      else
9462
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9463
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9464
 
      fi
9465
 
      ;;
9466
 
 
9467
 
    solaris*)
9468
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9469
 
        ld_shlibs=no
9470
 
        cat <<_LT_EOF 1>&2
9471
 
 
9472
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9473
 
*** create shared libraries on Solaris systems.  Therefore, libtool
9474
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9475
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
9476
 
*** your PATH or compiler configuration so that the native linker is
9477
 
*** used, and then restart.
9478
 
 
9479
 
_LT_EOF
9480
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483
 
      else
9484
 
        ld_shlibs=no
9485
 
      fi
9486
 
      ;;
9487
 
 
9488
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9489
 
      case `$LD -v 2>&1` in
9490
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9491
 
        ld_shlibs=no
9492
 
        cat <<_LT_EOF 1>&2
9493
 
 
9494
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9495
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9496
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9497
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9498
 
*** your PATH or compiler configuration so that the native linker is
9499
 
*** used, and then restart.
9500
 
 
9501
 
_LT_EOF
9502
 
        ;;
9503
 
        *)
9504
 
          # For security reasons, it is highly recommended that you always
9505
 
          # use absolute paths for naming shared libraries, and exclude the
9506
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
9507
 
          # requires that you compile everything twice, which is a pain.
9508
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9512
 
          else
9513
 
            ld_shlibs=no
9514
 
          fi
9515
 
        ;;
9516
 
      esac
9517
 
      ;;
9518
 
 
9519
 
    sunos4*)
9520
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9521
 
      wlarc=
9522
 
      hardcode_direct=yes
9523
 
      hardcode_shlibpath_var=no
9524
 
      ;;
9525
 
 
9526
 
    *)
9527
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9530
 
      else
9531
 
        ld_shlibs=no
9532
 
      fi
9533
 
      ;;
9534
 
    esac
9535
 
 
9536
 
    if test "$ld_shlibs" = no; then
9537
 
      runpath_var=
9538
 
      hardcode_libdir_flag_spec=
9539
 
      export_dynamic_flag_spec=
9540
 
      whole_archive_flag_spec=
9541
 
    fi
9542
 
  else
9543
 
    # PORTME fill in a description of your system's linker (not GNU ld)
9544
 
    case $host_os in
9545
 
    aix3*)
9546
 
      allow_undefined_flag=unsupported
9547
 
      always_export_symbols=yes
9548
 
      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'
9549
 
      # Note: this linker hardcodes the directories in LIBPATH if there
9550
 
      # are no directories specified by -L.
9551
 
      hardcode_minus_L=yes
9552
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9553
 
        # Neither direct hardcoding nor static linking is supported with a
9554
 
        # broken collect2.
9555
 
        hardcode_direct=unsupported
9556
 
      fi
9557
 
      ;;
9558
 
 
9559
 
    aix[4-9]*)
9560
 
      if test "$host_cpu" = ia64; then
9561
 
        # On IA64, the linker does run time linking by default, so we don't
9562
 
        # have to do anything special.
9563
 
        aix_use_runtimelinking=no
9564
 
        exp_sym_flag='-Bexport'
9565
 
        no_entry_flag=""
9566
 
      else
9567
 
        # If we're using GNU nm, then we don't want the "-C" option.
9568
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9569
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9570
 
          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'
9571
 
        else
9572
 
          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'
9573
 
        fi
9574
 
        aix_use_runtimelinking=no
9575
 
 
9576
 
        # Test if we are trying to use run time linking or normal
9577
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9578
 
        # need to do runtime linking.
9579
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9580
 
          for ld_flag in $LDFLAGS; do
9581
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9582
 
            aix_use_runtimelinking=yes
9583
 
            break
9584
 
          fi
9585
 
          done
9586
 
          ;;
9587
 
        esac
9588
 
 
9589
 
        exp_sym_flag='-bexport'
9590
 
        no_entry_flag='-bnoentry'
9591
 
      fi
9592
 
 
9593
 
      # When large executables or shared objects are built, AIX ld can
9594
 
      # have problems creating the table of contents.  If linking a library
9595
 
      # or program results in "error TOC overflow" add -mminimal-toc to
9596
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9597
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9598
 
 
9599
 
      archive_cmds=''
9600
 
      hardcode_direct=yes
9601
 
      hardcode_direct_absolute=yes
9602
 
      hardcode_libdir_separator=':'
9603
 
      link_all_deplibs=yes
9604
 
      file_list_spec='${wl}-f,'
9605
 
 
9606
 
      if test "$GCC" = yes; then
9607
 
        case $host_os in aix4.[012]|aix4.[012].*)
9608
 
        # We only want to do this on AIX 4.2 and lower, the check
9609
 
        # below for broken collect2 doesn't work under 4.3+
9610
 
          collect2name=`${CC} -print-prog-name=collect2`
9611
 
          if test -f "$collect2name" &&
9612
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9613
 
          then
9614
 
          # We have reworked collect2
9615
 
          :
9616
 
          else
9617
 
          # We have old collect2
9618
 
          hardcode_direct=unsupported
9619
 
          # It fails to find uninstalled libraries when the uninstalled
9620
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9621
 
          # to unsupported forces relinking
9622
 
          hardcode_minus_L=yes
9623
 
          hardcode_libdir_flag_spec='-L$libdir'
9624
 
          hardcode_libdir_separator=
9625
 
          fi
9626
 
          ;;
9627
 
        esac
9628
 
        shared_flag='-shared'
9629
 
        if test "$aix_use_runtimelinking" = yes; then
9630
 
          shared_flag="$shared_flag "'${wl}-G'
9631
 
        fi
9632
 
        link_all_deplibs=no
9633
 
      else
9634
 
        # not using gcc
9635
 
        if test "$host_cpu" = ia64; then
9636
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9637
 
        # chokes on -Wl,-G. The following line is correct:
9638
 
          shared_flag='-G'
9639
 
        else
9640
 
          if test "$aix_use_runtimelinking" = yes; then
9641
 
            shared_flag='${wl}-G'
9642
 
          else
9643
 
            shared_flag='${wl}-bM:SRE'
9644
 
          fi
9645
 
        fi
9646
 
      fi
9647
 
 
9648
 
      export_dynamic_flag_spec='${wl}-bexpall'
9649
 
      # It seems that -bexpall does not export symbols beginning with
9650
 
      # underscore (_), so it is better to generate a list of symbols to export.
9651
 
      always_export_symbols=yes
9652
 
      if test "$aix_use_runtimelinking" = yes; then
9653
 
        # Warning - without using the other runtime loading flags (-brtl),
9654
 
        # -berok will link without error, but may produce a broken library.
9655
 
        allow_undefined_flag='-berok'
9656
 
        # Determine the default libpath from the value encoded in an
9657
 
        # empty executable.
9658
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659
 
/* end confdefs.h.  */
9660
 
 
9661
 
int
9662
 
main ()
9663
 
{
9664
 
 
9665
 
  ;
9666
 
  return 0;
9667
 
}
9668
 
_ACEOF
9669
 
if ac_fn_c_try_link "$LINENO"; then :
9670
 
 
9671
 
lt_aix_libpath_sed='
9672
 
    /Import File Strings/,/^$/ {
9673
 
        /^0/ {
9674
 
            s/^0  *\(.*\)$/\1/
9675
 
            p
9676
 
        }
9677
 
    }'
9678
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9679
 
# Check for a 64-bit object if we didn't find anything.
9680
 
if test -z "$aix_libpath"; then
9681
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9682
 
fi
9683
 
fi
9684
 
rm -f core conftest.err conftest.$ac_objext \
9685
 
    conftest$ac_exeext conftest.$ac_ext
9686
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9687
 
 
9688
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9689
 
        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"
9690
 
      else
9691
 
        if test "$host_cpu" = ia64; then
9692
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9693
 
          allow_undefined_flag="-z nodefs"
9694
 
          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"
9695
 
        else
9696
 
         # Determine the default libpath from the value encoded in an
9697
 
         # empty executable.
9698
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699
 
/* end confdefs.h.  */
9700
 
 
9701
 
int
9702
 
main ()
9703
 
{
9704
 
 
9705
 
  ;
9706
 
  return 0;
9707
 
}
9708
 
_ACEOF
9709
 
if ac_fn_c_try_link "$LINENO"; then :
9710
 
 
9711
 
lt_aix_libpath_sed='
9712
 
    /Import File Strings/,/^$/ {
9713
 
        /^0/ {
9714
 
            s/^0  *\(.*\)$/\1/
9715
 
            p
9716
 
        }
9717
 
    }'
9718
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9719
 
# Check for a 64-bit object if we didn't find anything.
9720
 
if test -z "$aix_libpath"; then
9721
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9722
 
fi
9723
 
fi
9724
 
rm -f core conftest.err conftest.$ac_objext \
9725
 
    conftest$ac_exeext conftest.$ac_ext
9726
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9727
 
 
9728
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9729
 
          # Warning - without using the other run time loading flags,
9730
 
          # -berok will link without error, but may produce a broken library.
9731
 
          no_undefined_flag=' ${wl}-bernotok'
9732
 
          allow_undefined_flag=' ${wl}-berok'
9733
 
          # Exported symbols can be pulled into shared objects from archives
9734
 
          whole_archive_flag_spec='$convenience'
9735
 
          archive_cmds_need_lc=yes
9736
 
          # This is similar to how AIX traditionally builds its shared libraries.
9737
 
          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'
9738
 
        fi
9739
 
      fi
9740
 
      ;;
9741
 
 
9742
 
    amigaos*)
9743
 
      case $host_cpu in
9744
 
      powerpc)
9745
 
            # see comment about AmigaOS4 .so support
9746
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747
 
            archive_expsym_cmds=''
9748
 
        ;;
9749
 
      m68k)
9750
 
            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)'
9751
 
            hardcode_libdir_flag_spec='-L$libdir'
9752
 
            hardcode_minus_L=yes
9753
 
        ;;
9754
 
      esac
9755
 
      ;;
9756
 
 
9757
 
    bsdi[45]*)
9758
 
      export_dynamic_flag_spec=-rdynamic
9759
 
      ;;
9760
 
 
9761
 
    cygwin* | mingw* | pw32* | cegcc*)
9762
 
      # When not using gcc, we currently assume that we are using
9763
 
      # Microsoft Visual C++.
9764
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9765
 
      # no search path for DLLs.
9766
 
      hardcode_libdir_flag_spec=' '
9767
 
      allow_undefined_flag=unsupported
9768
 
      # Tell ltmain to make .lib files, not .a files.
9769
 
      libext=lib
9770
 
      # Tell ltmain to make .dll files, not .so files.
9771
 
      shrext_cmds=".dll"
9772
 
      # FIXME: Setting linknames here is a bad hack.
9773
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9774
 
      # The linker will automatically build a .lib file if we build a DLL.
9775
 
      old_archive_from_new_cmds='true'
9776
 
      # FIXME: Should let the user specify the lib program.
9777
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9778
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9779
 
      enable_shared_with_static_runtimes=yes
9780
 
      ;;
9781
 
 
9782
 
    darwin* | rhapsody*)
9783
 
 
9784
 
 
9785
 
  archive_cmds_need_lc=no
9786
 
  hardcode_direct=no
9787
 
  hardcode_automatic=yes
9788
 
  hardcode_shlibpath_var=unsupported
9789
 
  whole_archive_flag_spec=''
9790
 
  link_all_deplibs=yes
9791
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
9792
 
  case $cc_basename in
9793
 
     ifort*) _lt_dar_can_shared=yes ;;
9794
 
     *) _lt_dar_can_shared=$GCC ;;
9795
 
  esac
9796
 
  if test "$_lt_dar_can_shared" = "yes"; then
9797
 
    output_verbose_link_cmd=echo
9798
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9799
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9800
 
    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}"
9801
 
    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}"
9802
 
 
9803
 
  else
9804
 
  ld_shlibs=no
9805
 
  fi
9806
 
 
9807
 
      ;;
9808
 
 
9809
 
    dgux*)
9810
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811
 
      hardcode_libdir_flag_spec='-L$libdir'
9812
 
      hardcode_shlibpath_var=no
9813
 
      ;;
9814
 
 
9815
 
    freebsd1*)
9816
 
      ld_shlibs=no
9817
 
      ;;
9818
 
 
9819
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9820
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9821
 
    # does not break anything, and helps significantly (at the cost of a little
9822
 
    # extra space).
9823
 
    freebsd2.2*)
9824
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9825
 
      hardcode_libdir_flag_spec='-R$libdir'
9826
 
      hardcode_direct=yes
9827
 
      hardcode_shlibpath_var=no
9828
 
      ;;
9829
 
 
9830
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9831
 
    freebsd2*)
9832
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9833
 
      hardcode_direct=yes
9834
 
      hardcode_minus_L=yes
9835
 
      hardcode_shlibpath_var=no
9836
 
      ;;
9837
 
 
9838
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9839
 
    freebsd* | dragonfly*)
9840
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9841
 
      hardcode_libdir_flag_spec='-R$libdir'
9842
 
      hardcode_direct=yes
9843
 
      hardcode_shlibpath_var=no
9844
 
      ;;
9845
 
 
9846
 
    hpux9*)
9847
 
      if test "$GCC" = yes; then
9848
 
        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'
9849
 
      else
9850
 
        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'
9851
 
      fi
9852
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853
 
      hardcode_libdir_separator=:
9854
 
      hardcode_direct=yes
9855
 
 
9856
 
      # hardcode_minus_L: Not really in the search PATH,
9857
 
      # but as the default location of the library.
9858
 
      hardcode_minus_L=yes
9859
 
      export_dynamic_flag_spec='${wl}-E'
9860
 
      ;;
9861
 
 
9862
 
    hpux10*)
9863
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9864
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865
 
      else
9866
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9867
 
      fi
9868
 
      if test "$with_gnu_ld" = no; then
9869
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9870
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
9871
 
        hardcode_libdir_separator=:
9872
 
        hardcode_direct=yes
9873
 
        hardcode_direct_absolute=yes
9874
 
        export_dynamic_flag_spec='${wl}-E'
9875
 
        # hardcode_minus_L: Not really in the search PATH,
9876
 
        # but as the default location of the library.
9877
 
        hardcode_minus_L=yes
9878
 
      fi
9879
 
      ;;
9880
 
 
9881
 
    hpux11*)
9882
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9883
 
        case $host_cpu in
9884
 
        hppa*64*)
9885
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9886
 
          ;;
9887
 
        ia64*)
9888
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9889
 
          ;;
9890
 
        *)
9891
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892
 
          ;;
9893
 
        esac
9894
 
      else
9895
 
        case $host_cpu in
9896
 
        hppa*64*)
9897
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9898
 
          ;;
9899
 
        ia64*)
9900
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9901
 
          ;;
9902
 
        *)
9903
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904
 
          ;;
9905
 
        esac
9906
 
      fi
9907
 
      if test "$with_gnu_ld" = no; then
9908
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909
 
        hardcode_libdir_separator=:
9910
 
 
9911
 
        case $host_cpu in
9912
 
        hppa*64*|ia64*)
9913
 
          hardcode_direct=no
9914
 
          hardcode_shlibpath_var=no
9915
 
          ;;
9916
 
        *)
9917
 
          hardcode_direct=yes
9918
 
          hardcode_direct_absolute=yes
9919
 
          export_dynamic_flag_spec='${wl}-E'
9920
 
 
9921
 
          # hardcode_minus_L: Not really in the search PATH,
9922
 
          # but as the default location of the library.
9923
 
          hardcode_minus_L=yes
9924
 
          ;;
9925
 
        esac
9926
 
      fi
9927
 
      ;;
9928
 
 
9929
 
    irix5* | irix6* | nonstopux*)
9930
 
      if test "$GCC" = yes; then
9931
 
        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'
9932
 
        # Try to use the -exported_symbol ld option, if it does not
9933
 
        # work, assume that -exports_file does not work either and
9934
 
        # implicitly export all symbols.
9935
 
        save_LDFLAGS="$LDFLAGS"
9936
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9937
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938
 
/* end confdefs.h.  */
9939
 
int foo(void) {}
9940
 
_ACEOF
9941
 
if ac_fn_c_try_link "$LINENO"; then :
9942
 
  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'
9943
 
 
9944
 
fi
9945
 
rm -f core conftest.err conftest.$ac_objext \
9946
 
    conftest$ac_exeext conftest.$ac_ext
9947
 
        LDFLAGS="$save_LDFLAGS"
9948
 
      else
9949
 
        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'
9950
 
        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'
9951
 
      fi
9952
 
      archive_cmds_need_lc='no'
9953
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954
 
      hardcode_libdir_separator=:
9955
 
      inherit_rpath=yes
9956
 
      link_all_deplibs=yes
9957
 
      ;;
9958
 
 
9959
 
    netbsd* | netbsdelf*-gnu)
9960
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9961
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9962
 
      else
9963
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9964
 
      fi
9965
 
      hardcode_libdir_flag_spec='-R$libdir'
9966
 
      hardcode_direct=yes
9967
 
      hardcode_shlibpath_var=no
9968
 
      ;;
9969
 
 
9970
 
    newsos6)
9971
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972
 
      hardcode_direct=yes
9973
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974
 
      hardcode_libdir_separator=:
9975
 
      hardcode_shlibpath_var=no
9976
 
      ;;
9977
 
 
9978
 
    *nto* | *qnx*)
9979
 
      ;;
9980
 
 
9981
 
    openbsd*)
9982
 
      if test -f /usr/libexec/ld.so; then
9983
 
        hardcode_direct=yes
9984
 
        hardcode_shlibpath_var=no
9985
 
        hardcode_direct_absolute=yes
9986
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9987
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9989
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990
 
          export_dynamic_flag_spec='${wl}-E'
9991
 
        else
9992
 
          case $host_os in
9993
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9994
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995
 
             hardcode_libdir_flag_spec='-R$libdir'
9996
 
             ;;
9997
 
           *)
9998
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10000
 
             ;;
10001
 
          esac
10002
 
        fi
10003
 
      else
10004
 
        ld_shlibs=no
10005
 
      fi
10006
 
      ;;
10007
 
 
10008
 
    os2*)
10009
 
      hardcode_libdir_flag_spec='-L$libdir'
10010
 
      hardcode_minus_L=yes
10011
 
      allow_undefined_flag=unsupported
10012
 
      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'
10013
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10014
 
      ;;
10015
 
 
10016
 
    osf3*)
10017
 
      if test "$GCC" = yes; then
10018
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019
 
        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'
10020
 
      else
10021
 
        allow_undefined_flag=' -expect_unresolved \*'
10022
 
        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'
10023
 
      fi
10024
 
      archive_cmds_need_lc='no'
10025
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026
 
      hardcode_libdir_separator=:
10027
 
      ;;
10028
 
 
10029
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10030
 
      if test "$GCC" = yes; then
10031
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10032
 
        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'
10033
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034
 
      else
10035
 
        allow_undefined_flag=' -expect_unresolved \*'
10036
 
        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'
10037
 
        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~
10038
 
        $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'
10039
 
 
10040
 
        # Both c and cxx compiler support -rpath directly
10041
 
        hardcode_libdir_flag_spec='-rpath $libdir'
10042
 
      fi
10043
 
      archive_cmds_need_lc='no'
10044
 
      hardcode_libdir_separator=:
10045
 
      ;;
10046
 
 
10047
 
    solaris*)
10048
 
      no_undefined_flag=' -z defs'
10049
 
      if test "$GCC" = yes; then
10050
 
        wlarc='${wl}'
10051
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10054
 
      else
10055
 
        case `$CC -V 2>&1` in
10056
 
        *"Compilers 5.0"*)
10057
 
          wlarc=''
10058
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10061
 
          ;;
10062
 
        *)
10063
 
          wlarc='${wl}'
10064
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10067
 
          ;;
10068
 
        esac
10069
 
      fi
10070
 
      hardcode_libdir_flag_spec='-R$libdir'
10071
 
      hardcode_shlibpath_var=no
10072
 
      case $host_os in
10073
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10074
 
      *)
10075
 
        # The compiler driver will combine and reorder linker options,
10076
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10077
 
        # but is careful enough not to reorder.
10078
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10079
 
        if test "$GCC" = yes; then
10080
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10081
 
        else
10082
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083
 
        fi
10084
 
        ;;
10085
 
      esac
10086
 
      link_all_deplibs=yes
10087
 
      ;;
10088
 
 
10089
 
    sunos4*)
10090
 
      if test "x$host_vendor" = xsequent; then
10091
 
        # Use $CC to link under sequent, because it throws in some extra .o
10092
 
        # files that make .init and .fini sections work.
10093
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094
 
      else
10095
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10096
 
      fi
10097
 
      hardcode_libdir_flag_spec='-L$libdir'
10098
 
      hardcode_direct=yes
10099
 
      hardcode_minus_L=yes
10100
 
      hardcode_shlibpath_var=no
10101
 
      ;;
10102
 
 
10103
 
    sysv4)
10104
 
      case $host_vendor in
10105
 
        sni)
10106
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107
 
          hardcode_direct=yes # is this really true???
10108
 
        ;;
10109
 
        siemens)
10110
 
          ## LD is ld it makes a PLAMLIB
10111
 
          ## CC just makes a GrossModule.
10112
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10113
 
          reload_cmds='$CC -r -o $output$reload_objs'
10114
 
          hardcode_direct=no
10115
 
        ;;
10116
 
        motorola)
10117
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10119
 
        ;;
10120
 
      esac
10121
 
      runpath_var='LD_RUN_PATH'
10122
 
      hardcode_shlibpath_var=no
10123
 
      ;;
10124
 
 
10125
 
    sysv4.3*)
10126
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127
 
      hardcode_shlibpath_var=no
10128
 
      export_dynamic_flag_spec='-Bexport'
10129
 
      ;;
10130
 
 
10131
 
    sysv4*MP*)
10132
 
      if test -d /usr/nec; then
10133
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134
 
        hardcode_shlibpath_var=no
10135
 
        runpath_var=LD_RUN_PATH
10136
 
        hardcode_runpath_var=yes
10137
 
        ld_shlibs=yes
10138
 
      fi
10139
 
      ;;
10140
 
 
10141
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10142
 
      no_undefined_flag='${wl}-z,text'
10143
 
      archive_cmds_need_lc=no
10144
 
      hardcode_shlibpath_var=no
10145
 
      runpath_var='LD_RUN_PATH'
10146
 
 
10147
 
      if test "$GCC" = yes; then
10148
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150
 
      else
10151
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153
 
      fi
10154
 
      ;;
10155
 
 
10156
 
    sysv5* | sco3.2v5* | sco5v6*)
10157
 
      # Note: We can NOT use -z defs as we might desire, because we do not
10158
 
      # link with -lc, and that would cause any symbols used from libc to
10159
 
      # always be unresolved, which means just about no library would
10160
 
      # ever link correctly.  If we're not using GNU ld we use -z text
10161
 
      # though, which does catch some bad symbols but isn't as heavy-handed
10162
 
      # as -z defs.
10163
 
      no_undefined_flag='${wl}-z,text'
10164
 
      allow_undefined_flag='${wl}-z,nodefs'
10165
 
      archive_cmds_need_lc=no
10166
 
      hardcode_shlibpath_var=no
10167
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10168
 
      hardcode_libdir_separator=':'
10169
 
      link_all_deplibs=yes
10170
 
      export_dynamic_flag_spec='${wl}-Bexport'
10171
 
      runpath_var='LD_RUN_PATH'
10172
 
 
10173
 
      if test "$GCC" = yes; then
10174
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176
 
      else
10177
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179
 
      fi
10180
 
      ;;
10181
 
 
10182
 
    uts4*)
10183
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184
 
      hardcode_libdir_flag_spec='-L$libdir'
10185
 
      hardcode_shlibpath_var=no
10186
 
      ;;
10187
 
 
10188
 
    *)
10189
 
      ld_shlibs=no
10190
 
      ;;
10191
 
    esac
10192
 
 
10193
 
    if test x$host_vendor = xsni; then
10194
 
      case $host in
10195
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10197
 
        ;;
10198
 
      esac
10199
 
    fi
10200
 
  fi
10201
 
 
10202
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10203
 
$as_echo "$ld_shlibs" >&6; }
10204
 
test "$ld_shlibs" = no && can_build_shared=no
10205
 
 
10206
 
with_gnu_ld=$with_gnu_ld
10207
 
 
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
 
 
10214
 
 
10215
 
 
10216
 
 
10217
 
 
10218
 
 
10219
 
 
10220
 
 
10221
 
 
10222
 
#
10223
 
# Do we need to explicitly link libc?
10224
 
#
10225
 
case "x$archive_cmds_need_lc" in
10226
 
x|xyes)
10227
 
  # Assume -lc should be added
10228
 
  archive_cmds_need_lc=yes
10229
 
 
10230
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10231
 
    case $archive_cmds in
10232
 
    *'~'*)
10233
 
      # FIXME: we may have to deal with multi-command sequences.
10234
 
      ;;
10235
 
    '$CC '*)
10236
 
      # Test whether the compiler implicitly links with -lc since on some
10237
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10238
 
      # to ld, don't add -lc before -lgcc.
10239
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10240
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10241
 
      $RM conftest*
10242
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10243
 
 
10244
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245
 
  (eval $ac_compile) 2>&5
10246
 
  ac_status=$?
10247
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248
 
  test $ac_status = 0; } 2>conftest.err; then
10249
 
        soname=conftest
10250
 
        lib=conftest
10251
 
        libobjs=conftest.$ac_objext
10252
 
        deplibs=
10253
 
        wl=$lt_prog_compiler_wl
10254
 
        pic_flag=$lt_prog_compiler_pic
10255
 
        compiler_flags=-v
10256
 
        linker_flags=-v
10257
 
        verstring=
10258
 
        output_objdir=.
10259
 
        libname=conftest
10260
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
10261
 
        allow_undefined_flag=
10262
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10263
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10264
 
  ac_status=$?
10265
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266
 
  test $ac_status = 0; }
10267
 
        then
10268
 
          archive_cmds_need_lc=no
10269
 
        else
10270
 
          archive_cmds_need_lc=yes
10271
 
        fi
10272
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
10273
 
      else
10274
 
        cat conftest.err 1>&5
10275
 
      fi
10276
 
      $RM conftest*
10277
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10278
 
$as_echo "$archive_cmds_need_lc" >&6; }
10279
 
      ;;
10280
 
    esac
10281
 
  fi
10282
 
  ;;
10283
 
esac
10284
 
 
10285
 
 
10286
 
 
10287
 
 
10288
 
 
10289
 
 
10290
 
 
10291
 
 
10292
 
 
10293
 
 
10294
 
 
10295
 
 
10296
 
 
10297
 
 
10298
 
 
10299
 
 
10300
 
 
10301
 
 
10302
 
 
10303
 
 
10304
 
 
10305
 
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
 
10330
 
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
 
 
10420
 
 
10421
 
 
10422
 
 
10423
 
 
10424
 
 
10425
 
 
10426
 
 
10427
 
 
10428
 
 
10429
 
 
10430
 
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
 
 
10436
 
 
10437
 
 
10438
 
 
10439
 
 
10440
 
 
10441
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10442
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10443
 
 
10444
 
if test "$GCC" = yes; then
10445
 
  case $host_os in
10446
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10447
 
    *) lt_awk_arg="/^libraries:/" ;;
10448
 
  esac
10449
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10450
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10451
 
    # if the path contains ";" then we assume it to be the separator
10452
 
    # otherwise default to the standard path separator (i.e. ":") - it is
10453
 
    # assumed that no part of a normal pathname contains ";" but that should
10454
 
    # okay in the real world where ";" in dirpaths is itself problematic.
10455
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10456
 
  else
10457
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10458
 
  fi
10459
 
  # Ok, now we have the path, separated by spaces, we can step through it
10460
 
  # and add multilib dir if necessary.
10461
 
  lt_tmp_lt_search_path_spec=
10462
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10463
 
  for lt_sys_path in $lt_search_path_spec; do
10464
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10465
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10466
 
    else
10467
 
      test -d "$lt_sys_path" && \
10468
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10469
 
    fi
10470
 
  done
10471
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10472
 
BEGIN {RS=" "; FS="/|\n";} {
10473
 
  lt_foo="";
10474
 
  lt_count=0;
10475
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
10476
 
    if ($lt_i != "" && $lt_i != ".") {
10477
 
      if ($lt_i == "..") {
10478
 
        lt_count++;
10479
 
      } else {
10480
 
        if (lt_count == 0) {
10481
 
          lt_foo="/" $lt_i lt_foo;
10482
 
        } else {
10483
 
          lt_count--;
10484
 
        }
10485
 
      }
10486
 
    }
10487
 
  }
10488
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10489
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10490
 
}'`
10491
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10492
 
else
10493
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10494
 
fi
10495
 
library_names_spec=
10496
 
libname_spec='lib$name'
10497
 
soname_spec=
10498
 
shrext_cmds=".so"
10499
 
postinstall_cmds=
10500
 
postuninstall_cmds=
10501
 
finish_cmds=
10502
 
finish_eval=
10503
 
shlibpath_var=
10504
 
shlibpath_overrides_runpath=unknown
10505
 
version_type=none
10506
 
dynamic_linker="$host_os ld.so"
10507
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10508
 
need_lib_prefix=unknown
10509
 
hardcode_into_libs=no
10510
 
 
10511
 
# when you set need_version to no, make sure it does not cause -set_version
10512
 
# flags to be left without arguments
10513
 
need_version=unknown
10514
 
 
10515
 
case $host_os in
10516
 
aix3*)
10517
 
  version_type=linux
10518
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10519
 
  shlibpath_var=LIBPATH
10520
 
 
10521
 
  # AIX 3 has no versioning support, so we append a major version to the name.
10522
 
  soname_spec='${libname}${release}${shared_ext}$major'
10523
 
  ;;
10524
 
 
10525
 
aix[4-9]*)
10526
 
  version_type=linux
10527
 
  need_lib_prefix=no
10528
 
  need_version=no
10529
 
  hardcode_into_libs=yes
10530
 
  if test "$host_cpu" = ia64; then
10531
 
    # AIX 5 supports IA64
10532
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10533
 
    shlibpath_var=LD_LIBRARY_PATH
10534
 
  else
10535
 
    # With GCC up to 2.95.x, collect2 would create an import file
10536
 
    # for dependence libraries.  The import file would start with
10537
 
    # the line `#! .'.  This would cause the generated library to
10538
 
    # depend on `.', always an invalid library.  This was fixed in
10539
 
    # development snapshots of GCC prior to 3.0.
10540
 
    case $host_os in
10541
 
      aix4 | aix4.[01] | aix4.[01].*)
10542
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10543
 
           echo ' yes '
10544
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10545
 
        :
10546
 
      else
10547
 
        can_build_shared=no
10548
 
      fi
10549
 
      ;;
10550
 
    esac
10551
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10552
 
    # soname into executable. Probably we can add versioning support to
10553
 
    # collect2, so additional links can be useful in future.
10554
 
    if test "$aix_use_runtimelinking" = yes; then
10555
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10556
 
      # instead of lib<name>.a to let people know that these are not
10557
 
      # typical AIX shared libraries.
10558
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559
 
    else
10560
 
      # We preserve .a as extension for shared libraries through AIX4.2
10561
 
      # and later when we are not doing run time linking.
10562
 
      library_names_spec='${libname}${release}.a $libname.a'
10563
 
      soname_spec='${libname}${release}${shared_ext}$major'
10564
 
    fi
10565
 
    shlibpath_var=LIBPATH
10566
 
  fi
10567
 
  ;;
10568
 
 
10569
 
amigaos*)
10570
 
  case $host_cpu in
10571
 
  powerpc)
10572
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10573
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10574
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575
 
    ;;
10576
 
  m68k)
10577
 
    library_names_spec='$libname.ixlibrary $libname.a'
10578
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10579
 
    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'
10580
 
    ;;
10581
 
  esac
10582
 
  ;;
10583
 
 
10584
 
beos*)
10585
 
  library_names_spec='${libname}${shared_ext}'
10586
 
  dynamic_linker="$host_os ld.so"
10587
 
  shlibpath_var=LIBRARY_PATH
10588
 
  ;;
10589
 
 
10590
 
bsdi[45]*)
10591
 
  version_type=linux
10592
 
  need_version=no
10593
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594
 
  soname_spec='${libname}${release}${shared_ext}$major'
10595
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10596
 
  shlibpath_var=LD_LIBRARY_PATH
10597
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10598
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10599
 
  # the default ld.so.conf also contains /usr/contrib/lib and
10600
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10601
 
  # libtool to hard-code these into programs
10602
 
  ;;
10603
 
 
10604
 
cygwin* | mingw* | pw32* | cegcc*)
10605
 
  version_type=windows
10606
 
  shrext_cmds=".dll"
10607
 
  need_version=no
10608
 
  need_lib_prefix=no
10609
 
 
10610
 
  case $GCC,$host_os in
10611
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10612
 
    library_names_spec='$libname.dll.a'
10613
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10614
 
    postinstall_cmds='base_file=`basename \${file}`~
10615
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10616
 
      dldir=$destdir/`dirname \$dlpath`~
10617
 
      test -d \$dldir || mkdir -p \$dldir~
10618
 
      $install_prog $dir/$dlname \$dldir/$dlname~
10619
 
      chmod a+x \$dldir/$dlname~
10620
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10621
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10622
 
      fi'
10623
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10624
 
      dlpath=$dir/\$dldll~
10625
 
       $RM \$dlpath'
10626
 
    shlibpath_overrides_runpath=yes
10627
 
 
10628
 
    case $host_os in
10629
 
    cygwin*)
10630
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10631
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10632
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10633
 
      ;;
10634
 
    mingw* | cegcc*)
10635
 
      # MinGW DLLs use traditional 'lib' prefix
10636
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10637
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10638
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10639
 
        # It is most probably a Windows format PATH printed by
10640
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10641
 
        # path with ; separators, and with drive letters. We can handle the
10642
 
        # drive letters (cygwin fileutils understands them), so leave them,
10643
 
        # especially as we might pass files found there to a mingw objdump,
10644
 
        # which wouldn't understand a cygwinified path. Ahh.
10645
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10646
 
      else
10647
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10648
 
      fi
10649
 
      ;;
10650
 
    pw32*)
10651
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10652
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10653
 
      ;;
10654
 
    esac
10655
 
    ;;
10656
 
 
10657
 
  *)
10658
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10659
 
    ;;
10660
 
  esac
10661
 
  dynamic_linker='Win32 ld.exe'
10662
 
  # FIXME: first we should search . and the directory the executable is in
10663
 
  shlibpath_var=PATH
10664
 
  ;;
10665
 
 
10666
 
darwin* | rhapsody*)
10667
 
  dynamic_linker="$host_os dyld"
10668
 
  version_type=darwin
10669
 
  need_lib_prefix=no
10670
 
  need_version=no
10671
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10672
 
  soname_spec='${libname}${release}${major}$shared_ext'
10673
 
  shlibpath_overrides_runpath=yes
10674
 
  shlibpath_var=DYLD_LIBRARY_PATH
10675
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10676
 
 
10677
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10678
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10679
 
  ;;
10680
 
 
10681
 
dgux*)
10682
 
  version_type=linux
10683
 
  need_lib_prefix=no
10684
 
  need_version=no
10685
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10686
 
  soname_spec='${libname}${release}${shared_ext}$major'
10687
 
  shlibpath_var=LD_LIBRARY_PATH
10688
 
  ;;
10689
 
 
10690
 
freebsd1*)
10691
 
  dynamic_linker=no
10692
 
  ;;
10693
 
 
10694
 
freebsd* | dragonfly*)
10695
 
  # DragonFly does not have aout.  When/if they implement a new
10696
 
  # versioning mechanism, adjust this.
10697
 
  if test -x /usr/bin/objformat; then
10698
 
    objformat=`/usr/bin/objformat`
10699
 
  else
10700
 
    case $host_os in
10701
 
    freebsd[123]*) objformat=aout ;;
10702
 
    *) objformat=elf ;;
10703
 
    esac
10704
 
  fi
10705
 
  version_type=freebsd-$objformat
10706
 
  case $version_type in
10707
 
    freebsd-elf*)
10708
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10709
 
      need_version=no
10710
 
      need_lib_prefix=no
10711
 
      ;;
10712
 
    freebsd-*)
10713
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10714
 
      need_version=yes
10715
 
      ;;
10716
 
  esac
10717
 
  shlibpath_var=LD_LIBRARY_PATH
10718
 
  case $host_os in
10719
 
  freebsd2*)
10720
 
    shlibpath_overrides_runpath=yes
10721
 
    ;;
10722
 
  freebsd3.[01]* | freebsdelf3.[01]*)
10723
 
    shlibpath_overrides_runpath=yes
10724
 
    hardcode_into_libs=yes
10725
 
    ;;
10726
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10727
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10728
 
    shlibpath_overrides_runpath=no
10729
 
    hardcode_into_libs=yes
10730
 
    ;;
10731
 
  *) # from 4.6 on, and DragonFly
10732
 
    shlibpath_overrides_runpath=yes
10733
 
    hardcode_into_libs=yes
10734
 
    ;;
10735
 
  esac
10736
 
  ;;
10737
 
 
10738
 
gnu*)
10739
 
  version_type=linux
10740
 
  need_lib_prefix=no
10741
 
  need_version=no
10742
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10743
 
  soname_spec='${libname}${release}${shared_ext}$major'
10744
 
  shlibpath_var=LD_LIBRARY_PATH
10745
 
  hardcode_into_libs=yes
10746
 
  ;;
10747
 
 
10748
 
hpux9* | hpux10* | hpux11*)
10749
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
10750
 
  # link against other versions.
10751
 
  version_type=sunos
10752
 
  need_lib_prefix=no
10753
 
  need_version=no
10754
 
  case $host_cpu in
10755
 
  ia64*)
10756
 
    shrext_cmds='.so'
10757
 
    hardcode_into_libs=yes
10758
 
    dynamic_linker="$host_os dld.so"
10759
 
    shlibpath_var=LD_LIBRARY_PATH
10760
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10761
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762
 
    soname_spec='${libname}${release}${shared_ext}$major'
10763
 
    if test "X$HPUX_IA64_MODE" = X32; then
10764
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10765
 
    else
10766
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10767
 
    fi
10768
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10769
 
    ;;
10770
 
  hppa*64*)
10771
 
    shrext_cmds='.sl'
10772
 
    hardcode_into_libs=yes
10773
 
    dynamic_linker="$host_os dld.sl"
10774
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10775
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10776
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777
 
    soname_spec='${libname}${release}${shared_ext}$major'
10778
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10779
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10780
 
    ;;
10781
 
  *)
10782
 
    shrext_cmds='.sl'
10783
 
    dynamic_linker="$host_os dld.sl"
10784
 
    shlibpath_var=SHLIB_PATH
10785
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10786
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787
 
    soname_spec='${libname}${release}${shared_ext}$major'
10788
 
    ;;
10789
 
  esac
10790
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10791
 
  postinstall_cmds='chmod 555 $lib'
10792
 
  ;;
10793
 
 
10794
 
interix[3-9]*)
10795
 
  version_type=linux
10796
 
  need_lib_prefix=no
10797
 
  need_version=no
10798
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799
 
  soname_spec='${libname}${release}${shared_ext}$major'
10800
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10801
 
  shlibpath_var=LD_LIBRARY_PATH
10802
 
  shlibpath_overrides_runpath=no
10803
 
  hardcode_into_libs=yes
10804
 
  ;;
10805
 
 
10806
 
irix5* | irix6* | nonstopux*)
10807
 
  case $host_os in
10808
 
    nonstopux*) version_type=nonstopux ;;
10809
 
    *)
10810
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
10811
 
                version_type=linux
10812
 
        else
10813
 
                version_type=irix
10814
 
        fi ;;
10815
 
  esac
10816
 
  need_lib_prefix=no
10817
 
  need_version=no
10818
 
  soname_spec='${libname}${release}${shared_ext}$major'
10819
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10820
 
  case $host_os in
10821
 
  irix5* | nonstopux*)
10822
 
    libsuff= shlibsuff=
10823
 
    ;;
10824
 
  *)
10825
 
    case $LD in # libtool.m4 will add one of these switches to LD
10826
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10827
 
      libsuff= shlibsuff= libmagic=32-bit;;
10828
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10829
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10830
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10831
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10832
 
    *) libsuff= shlibsuff= libmagic=never-match;;
10833
 
    esac
10834
 
    ;;
10835
 
  esac
10836
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10837
 
  shlibpath_overrides_runpath=no
10838
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10839
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10840
 
  hardcode_into_libs=yes
10841
 
  ;;
10842
 
 
10843
 
# No shared lib support for Linux oldld, aout, or coff.
10844
 
linux*oldld* | linux*aout* | linux*coff*)
10845
 
  dynamic_linker=no
10846
 
  ;;
10847
 
 
10848
 
# This must be Linux ELF.
10849
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10850
 
  version_type=linux
10851
 
  need_lib_prefix=no
10852
 
  need_version=no
10853
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854
 
  soname_spec='${libname}${release}${shared_ext}$major'
10855
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10856
 
  shlibpath_var=LD_LIBRARY_PATH
10857
 
  shlibpath_overrides_runpath=no
10858
 
  # Some binutils ld are patched to set DT_RUNPATH
10859
 
  save_LDFLAGS=$LDFLAGS
10860
 
  save_libdir=$libdir
10861
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10862
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10863
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864
 
/* end confdefs.h.  */
10865
 
 
10866
 
int
10867
 
main ()
10868
 
{
10869
 
 
10870
 
  ;
10871
 
  return 0;
10872
 
}
10873
 
_ACEOF
10874
 
if ac_fn_c_try_link "$LINENO"; then :
10875
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10876
 
  shlibpath_overrides_runpath=yes
10877
 
fi
10878
 
fi
10879
 
rm -f core conftest.err conftest.$ac_objext \
10880
 
    conftest$ac_exeext conftest.$ac_ext
10881
 
  LDFLAGS=$save_LDFLAGS
10882
 
  libdir=$save_libdir
10883
 
 
10884
 
  # This implies no fast_install, which is unacceptable.
10885
 
  # Some rework will be needed to allow for fast_install
10886
 
  # before this can be enabled.
10887
 
  hardcode_into_libs=yes
10888
 
 
10889
 
  # Append ld.so.conf contents to the search path
10890
 
  if test -f /etc/ld.so.conf; then
10891
 
    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' ' '`
10892
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10893
 
  fi
10894
 
 
10895
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10896
 
  # powerpc, because MkLinux only supported shared libraries with the
10897
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
10898
 
  # most powerpc-linux boxes support dynamic linking these days and
10899
 
  # people can always --disable-shared, the test was removed, and we
10900
 
  # assume the GNU/Linux dynamic linker is in use.
10901
 
  dynamic_linker='GNU/Linux ld.so'
10902
 
  ;;
10903
 
 
10904
 
netbsdelf*-gnu)
10905
 
  version_type=linux
10906
 
  need_lib_prefix=no
10907
 
  need_version=no
10908
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10909
 
  soname_spec='${libname}${release}${shared_ext}$major'
10910
 
  shlibpath_var=LD_LIBRARY_PATH
10911
 
  shlibpath_overrides_runpath=no
10912
 
  hardcode_into_libs=yes
10913
 
  dynamic_linker='NetBSD ld.elf_so'
10914
 
  ;;
10915
 
 
10916
 
netbsd*)
10917
 
  version_type=sunos
10918
 
  need_lib_prefix=no
10919
 
  need_version=no
10920
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10921
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10922
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10923
 
    dynamic_linker='NetBSD (a.out) ld.so'
10924
 
  else
10925
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10926
 
    soname_spec='${libname}${release}${shared_ext}$major'
10927
 
    dynamic_linker='NetBSD ld.elf_so'
10928
 
  fi
10929
 
  shlibpath_var=LD_LIBRARY_PATH
10930
 
  shlibpath_overrides_runpath=yes
10931
 
  hardcode_into_libs=yes
10932
 
  ;;
10933
 
 
10934
 
newsos6)
10935
 
  version_type=linux
10936
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937
 
  shlibpath_var=LD_LIBRARY_PATH
10938
 
  shlibpath_overrides_runpath=yes
10939
 
  ;;
10940
 
 
10941
 
*nto* | *qnx*)
10942
 
  version_type=qnx
10943
 
  need_lib_prefix=no
10944
 
  need_version=no
10945
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946
 
  soname_spec='${libname}${release}${shared_ext}$major'
10947
 
  shlibpath_var=LD_LIBRARY_PATH
10948
 
  shlibpath_overrides_runpath=no
10949
 
  hardcode_into_libs=yes
10950
 
  dynamic_linker='ldqnx.so'
10951
 
  ;;
10952
 
 
10953
 
openbsd*)
10954
 
  version_type=sunos
10955
 
  sys_lib_dlsearch_path_spec="/usr/lib"
10956
 
  need_lib_prefix=no
10957
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10958
 
  case $host_os in
10959
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10960
 
    *)                          need_version=no  ;;
10961
 
  esac
10962
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10963
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10964
 
  shlibpath_var=LD_LIBRARY_PATH
10965
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10966
 
    case $host_os in
10967
 
      openbsd2.[89] | openbsd2.[89].*)
10968
 
        shlibpath_overrides_runpath=no
10969
 
        ;;
10970
 
      *)
10971
 
        shlibpath_overrides_runpath=yes
10972
 
        ;;
10973
 
      esac
10974
 
  else
10975
 
    shlibpath_overrides_runpath=yes
10976
 
  fi
10977
 
  ;;
10978
 
 
10979
 
os2*)
10980
 
  libname_spec='$name'
10981
 
  shrext_cmds=".dll"
10982
 
  need_lib_prefix=no
10983
 
  library_names_spec='$libname${shared_ext} $libname.a'
10984
 
  dynamic_linker='OS/2 ld.exe'
10985
 
  shlibpath_var=LIBPATH
10986
 
  ;;
10987
 
 
10988
 
osf3* | osf4* | osf5*)
10989
 
  version_type=osf
10990
 
  need_lib_prefix=no
10991
 
  need_version=no
10992
 
  soname_spec='${libname}${release}${shared_ext}$major'
10993
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994
 
  shlibpath_var=LD_LIBRARY_PATH
10995
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10996
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10997
 
  ;;
10998
 
 
10999
 
rdos*)
11000
 
  dynamic_linker=no
11001
 
  ;;
11002
 
 
11003
 
solaris*)
11004
 
  version_type=linux
11005
 
  need_lib_prefix=no
11006
 
  need_version=no
11007
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008
 
  soname_spec='${libname}${release}${shared_ext}$major'
11009
 
  shlibpath_var=LD_LIBRARY_PATH
11010
 
  shlibpath_overrides_runpath=yes
11011
 
  hardcode_into_libs=yes
11012
 
  # ldd complains unless libraries are executable
11013
 
  postinstall_cmds='chmod +x $lib'
11014
 
  ;;
11015
 
 
11016
 
sunos4*)
11017
 
  version_type=sunos
11018
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11020
 
  shlibpath_var=LD_LIBRARY_PATH
11021
 
  shlibpath_overrides_runpath=yes
11022
 
  if test "$with_gnu_ld" = yes; then
11023
 
    need_lib_prefix=no
11024
 
  fi
11025
 
  need_version=yes
11026
 
  ;;
11027
 
 
11028
 
sysv4 | sysv4.3*)
11029
 
  version_type=linux
11030
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031
 
  soname_spec='${libname}${release}${shared_ext}$major'
11032
 
  shlibpath_var=LD_LIBRARY_PATH
11033
 
  case $host_vendor in
11034
 
    sni)
11035
 
      shlibpath_overrides_runpath=no
11036
 
      need_lib_prefix=no
11037
 
      runpath_var=LD_RUN_PATH
11038
 
      ;;
11039
 
    siemens)
11040
 
      need_lib_prefix=no
11041
 
      ;;
11042
 
    motorola)
11043
 
      need_lib_prefix=no
11044
 
      need_version=no
11045
 
      shlibpath_overrides_runpath=no
11046
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11047
 
      ;;
11048
 
  esac
11049
 
  ;;
11050
 
 
11051
 
sysv4*MP*)
11052
 
  if test -d /usr/nec ;then
11053
 
    version_type=linux
11054
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11055
 
    soname_spec='$libname${shared_ext}.$major'
11056
 
    shlibpath_var=LD_LIBRARY_PATH
11057
 
  fi
11058
 
  ;;
11059
 
 
11060
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11061
 
  version_type=freebsd-elf
11062
 
  need_lib_prefix=no
11063
 
  need_version=no
11064
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11065
 
  soname_spec='${libname}${release}${shared_ext}$major'
11066
 
  shlibpath_var=LD_LIBRARY_PATH
11067
 
  shlibpath_overrides_runpath=yes
11068
 
  hardcode_into_libs=yes
11069
 
  if test "$with_gnu_ld" = yes; then
11070
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11071
 
  else
11072
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11073
 
    case $host_os in
11074
 
      sco3.2v5*)
11075
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11076
 
        ;;
11077
 
    esac
11078
 
  fi
11079
 
  sys_lib_dlsearch_path_spec='/usr/lib'
11080
 
  ;;
11081
 
 
11082
 
tpf*)
11083
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11084
 
  version_type=linux
11085
 
  need_lib_prefix=no
11086
 
  need_version=no
11087
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088
 
  shlibpath_var=LD_LIBRARY_PATH
11089
 
  shlibpath_overrides_runpath=no
11090
 
  hardcode_into_libs=yes
11091
 
  ;;
11092
 
 
11093
 
uts4*)
11094
 
  version_type=linux
11095
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096
 
  soname_spec='${libname}${release}${shared_ext}$major'
11097
 
  shlibpath_var=LD_LIBRARY_PATH
11098
 
  ;;
11099
 
 
11100
 
*)
11101
 
  dynamic_linker=no
11102
 
  ;;
11103
 
esac
11104
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11105
 
$as_echo "$dynamic_linker" >&6; }
11106
 
test "$dynamic_linker" = no && can_build_shared=no
11107
 
 
11108
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11109
 
if test "$GCC" = yes; then
11110
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11111
 
fi
11112
 
 
11113
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11114
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11115
 
fi
11116
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11117
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11118
 
fi
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
 
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11207
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11208
 
hardcode_action=
11209
 
if test -n "$hardcode_libdir_flag_spec" ||
11210
 
   test -n "$runpath_var" ||
11211
 
   test "X$hardcode_automatic" = "Xyes" ; then
11212
 
 
11213
 
  # We can hardcode non-existent directories.
11214
 
  if test "$hardcode_direct" != no &&
11215
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11216
 
     # have to relink, otherwise we might link with an installed library
11217
 
     # when we should be linking with a yet-to-be-installed one
11218
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11219
 
     test "$hardcode_minus_L" != no; then
11220
 
    # Linking always hardcodes the temporary library directory.
11221
 
    hardcode_action=relink
11222
 
  else
11223
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11224
 
    hardcode_action=immediate
11225
 
  fi
11226
 
else
11227
 
  # We cannot hardcode anything, or else we can only hardcode existing
11228
 
  # directories.
11229
 
  hardcode_action=unsupported
11230
 
fi
11231
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11232
 
$as_echo "$hardcode_action" >&6; }
11233
 
 
11234
 
if test "$hardcode_action" = relink ||
11235
 
   test "$inherit_rpath" = yes; then
11236
 
  # Fast installation is not supported
11237
 
  enable_fast_install=no
11238
 
elif test "$shlibpath_overrides_runpath" = yes ||
11239
 
     test "$enable_shared" = no; then
11240
 
  # Fast installation is not necessary
11241
 
  enable_fast_install=needless
11242
 
fi
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
  if test "x$enable_dlopen" != xyes; then
11250
 
  enable_dlopen=unknown
11251
 
  enable_dlopen_self=unknown
11252
 
  enable_dlopen_self_static=unknown
11253
 
else
11254
 
  lt_cv_dlopen=no
11255
 
  lt_cv_dlopen_libs=
11256
 
 
11257
 
  case $host_os in
11258
 
  beos*)
11259
 
    lt_cv_dlopen="load_add_on"
11260
 
    lt_cv_dlopen_libs=
11261
 
    lt_cv_dlopen_self=yes
11262
 
    ;;
11263
 
 
11264
 
  mingw* | pw32* | cegcc*)
11265
 
    lt_cv_dlopen="LoadLibrary"
11266
 
    lt_cv_dlopen_libs=
11267
 
    ;;
11268
 
 
11269
 
  cygwin*)
11270
 
    lt_cv_dlopen="dlopen"
11271
 
    lt_cv_dlopen_libs=
11272
 
    ;;
11273
 
 
11274
 
  darwin*)
11275
 
  # if libdl is installed we need to link against it
11276
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11277
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11278
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11279
 
  $as_echo_n "(cached) " >&6
11280
 
else
11281
 
  ac_check_lib_save_LIBS=$LIBS
11282
 
LIBS="-ldl  $LIBS"
11283
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284
 
/* end confdefs.h.  */
11285
 
 
11286
 
/* Override any GCC internal prototype to avoid an error.
11287
 
   Use char because int might match the return type of a GCC
11288
 
   builtin and then its argument prototype would still apply.  */
11289
 
#ifdef __cplusplus
11290
 
extern "C"
11291
 
#endif
11292
 
char dlopen ();
11293
 
int
11294
 
main ()
11295
 
{
11296
 
return dlopen ();
11297
 
  ;
11298
 
  return 0;
11299
 
}
11300
 
_ACEOF
11301
 
if ac_fn_c_try_link "$LINENO"; then :
11302
 
  ac_cv_lib_dl_dlopen=yes
11303
 
else
11304
 
  ac_cv_lib_dl_dlopen=no
11305
 
fi
11306
 
rm -f core conftest.err conftest.$ac_objext \
11307
 
    conftest$ac_exeext conftest.$ac_ext
11308
 
LIBS=$ac_check_lib_save_LIBS
11309
 
fi
11310
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11311
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11312
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11313
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11314
 
else
11315
 
 
11316
 
    lt_cv_dlopen="dyld"
11317
 
    lt_cv_dlopen_libs=
11318
 
    lt_cv_dlopen_self=yes
11319
 
 
11320
 
fi
11321
 
 
11322
 
    ;;
11323
 
 
11324
 
  *)
11325
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11326
 
if test "x$ac_cv_func_shl_load" = x""yes; then :
11327
 
  lt_cv_dlopen="shl_load"
11328
 
else
11329
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11330
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11331
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11332
 
  $as_echo_n "(cached) " >&6
11333
 
else
11334
 
  ac_check_lib_save_LIBS=$LIBS
11335
 
LIBS="-ldld  $LIBS"
11336
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337
 
/* end confdefs.h.  */
11338
 
 
11339
 
/* Override any GCC internal prototype to avoid an error.
11340
 
   Use char because int might match the return type of a GCC
11341
 
   builtin and then its argument prototype would still apply.  */
11342
 
#ifdef __cplusplus
11343
 
extern "C"
11344
 
#endif
11345
 
char shl_load ();
11346
 
int
11347
 
main ()
11348
 
{
11349
 
return shl_load ();
11350
 
  ;
11351
 
  return 0;
11352
 
}
11353
 
_ACEOF
11354
 
if ac_fn_c_try_link "$LINENO"; then :
11355
 
  ac_cv_lib_dld_shl_load=yes
11356
 
else
11357
 
  ac_cv_lib_dld_shl_load=no
11358
 
fi
11359
 
rm -f core conftest.err conftest.$ac_objext \
11360
 
    conftest$ac_exeext conftest.$ac_ext
11361
 
LIBS=$ac_check_lib_save_LIBS
11362
 
fi
11363
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11364
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11365
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11366
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11367
 
else
11368
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11369
 
if test "x$ac_cv_func_dlopen" = x""yes; then :
11370
 
  lt_cv_dlopen="dlopen"
11371
 
else
11372
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11373
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11374
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11375
 
  $as_echo_n "(cached) " >&6
11376
 
else
11377
 
  ac_check_lib_save_LIBS=$LIBS
11378
 
LIBS="-ldl  $LIBS"
11379
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380
 
/* end confdefs.h.  */
11381
 
 
11382
 
/* Override any GCC internal prototype to avoid an error.
11383
 
   Use char because int might match the return type of a GCC
11384
 
   builtin and then its argument prototype would still apply.  */
11385
 
#ifdef __cplusplus
11386
 
extern "C"
11387
 
#endif
11388
 
char dlopen ();
11389
 
int
11390
 
main ()
11391
 
{
11392
 
return dlopen ();
11393
 
  ;
11394
 
  return 0;
11395
 
}
11396
 
_ACEOF
11397
 
if ac_fn_c_try_link "$LINENO"; then :
11398
 
  ac_cv_lib_dl_dlopen=yes
11399
 
else
11400
 
  ac_cv_lib_dl_dlopen=no
11401
 
fi
11402
 
rm -f core conftest.err conftest.$ac_objext \
11403
 
    conftest$ac_exeext conftest.$ac_ext
11404
 
LIBS=$ac_check_lib_save_LIBS
11405
 
fi
11406
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11407
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11408
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11409
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11410
 
else
11411
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11412
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11413
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11414
 
  $as_echo_n "(cached) " >&6
11415
 
else
11416
 
  ac_check_lib_save_LIBS=$LIBS
11417
 
LIBS="-lsvld  $LIBS"
11418
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419
 
/* end confdefs.h.  */
11420
 
 
11421
 
/* Override any GCC internal prototype to avoid an error.
11422
 
   Use char because int might match the return type of a GCC
11423
 
   builtin and then its argument prototype would still apply.  */
11424
 
#ifdef __cplusplus
11425
 
extern "C"
11426
 
#endif
11427
 
char dlopen ();
11428
 
int
11429
 
main ()
11430
 
{
11431
 
return dlopen ();
11432
 
  ;
11433
 
  return 0;
11434
 
}
11435
 
_ACEOF
11436
 
if ac_fn_c_try_link "$LINENO"; then :
11437
 
  ac_cv_lib_svld_dlopen=yes
11438
 
else
11439
 
  ac_cv_lib_svld_dlopen=no
11440
 
fi
11441
 
rm -f core conftest.err conftest.$ac_objext \
11442
 
    conftest$ac_exeext conftest.$ac_ext
11443
 
LIBS=$ac_check_lib_save_LIBS
11444
 
fi
11445
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11446
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11447
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11448
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11449
 
else
11450
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11451
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11452
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11453
 
  $as_echo_n "(cached) " >&6
11454
 
else
11455
 
  ac_check_lib_save_LIBS=$LIBS
11456
 
LIBS="-ldld  $LIBS"
11457
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458
 
/* end confdefs.h.  */
11459
 
 
11460
 
/* Override any GCC internal prototype to avoid an error.
11461
 
   Use char because int might match the return type of a GCC
11462
 
   builtin and then its argument prototype would still apply.  */
11463
 
#ifdef __cplusplus
11464
 
extern "C"
11465
 
#endif
11466
 
char dld_link ();
11467
 
int
11468
 
main ()
11469
 
{
11470
 
return dld_link ();
11471
 
  ;
11472
 
  return 0;
11473
 
}
11474
 
_ACEOF
11475
 
if ac_fn_c_try_link "$LINENO"; then :
11476
 
  ac_cv_lib_dld_dld_link=yes
11477
 
else
11478
 
  ac_cv_lib_dld_dld_link=no
11479
 
fi
11480
 
rm -f core conftest.err conftest.$ac_objext \
11481
 
    conftest$ac_exeext conftest.$ac_ext
11482
 
LIBS=$ac_check_lib_save_LIBS
11483
 
fi
11484
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11485
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11486
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11487
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11488
 
fi
11489
 
 
11490
 
 
11491
 
fi
11492
 
 
11493
 
 
11494
 
fi
11495
 
 
11496
 
 
11497
 
fi
11498
 
 
11499
 
 
11500
 
fi
11501
 
 
11502
 
 
11503
 
fi
11504
 
 
11505
 
    ;;
11506
 
  esac
11507
 
 
11508
 
  if test "x$lt_cv_dlopen" != xno; then
11509
 
    enable_dlopen=yes
11510
 
  else
11511
 
    enable_dlopen=no
11512
 
  fi
11513
 
 
11514
 
  case $lt_cv_dlopen in
11515
 
  dlopen)
11516
 
    save_CPPFLAGS="$CPPFLAGS"
11517
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11518
 
 
11519
 
    save_LDFLAGS="$LDFLAGS"
11520
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11521
 
 
11522
 
    save_LIBS="$LIBS"
11523
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
11524
 
 
11525
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11526
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11527
 
if test "${lt_cv_dlopen_self+set}" = set; then :
11528
 
  $as_echo_n "(cached) " >&6
11529
 
else
11530
 
          if test "$cross_compiling" = yes; then :
11531
 
  lt_cv_dlopen_self=cross
11532
 
else
11533
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11534
 
  lt_status=$lt_dlunknown
11535
 
  cat > conftest.$ac_ext <<_LT_EOF
11536
 
#line 11536 "configure"
11537
 
#include "confdefs.h"
11538
 
 
11539
 
#if HAVE_DLFCN_H
11540
 
#include <dlfcn.h>
11541
 
#endif
11542
 
 
11543
 
#include <stdio.h>
11544
 
 
11545
 
#ifdef RTLD_GLOBAL
11546
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11547
 
#else
11548
 
#  ifdef DL_GLOBAL
11549
 
#    define LT_DLGLOBAL         DL_GLOBAL
11550
 
#  else
11551
 
#    define LT_DLGLOBAL         0
11552
 
#  endif
11553
 
#endif
11554
 
 
11555
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11556
 
   find out it does not work in some platform. */
11557
 
#ifndef LT_DLLAZY_OR_NOW
11558
 
#  ifdef RTLD_LAZY
11559
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11560
 
#  else
11561
 
#    ifdef DL_LAZY
11562
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11563
 
#    else
11564
 
#      ifdef RTLD_NOW
11565
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11566
 
#      else
11567
 
#        ifdef DL_NOW
11568
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11569
 
#        else
11570
 
#          define LT_DLLAZY_OR_NOW      0
11571
 
#        endif
11572
 
#      endif
11573
 
#    endif
11574
 
#  endif
11575
 
#endif
11576
 
 
11577
 
void fnord() { int i=42;}
11578
 
int main ()
11579
 
{
11580
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11581
 
  int status = $lt_dlunknown;
11582
 
 
11583
 
  if (self)
11584
 
    {
11585
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11586
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11587
 
      /* dlclose (self); */
11588
 
    }
11589
 
  else
11590
 
    puts (dlerror ());
11591
 
 
11592
 
  return status;
11593
 
}
11594
 
_LT_EOF
11595
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11596
 
  (eval $ac_link) 2>&5
11597
 
  ac_status=$?
11598
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11600
 
    (./conftest; exit; ) >&5 2>/dev/null
11601
 
    lt_status=$?
11602
 
    case x$lt_status in
11603
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11604
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11605
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11606
 
    esac
11607
 
  else :
11608
 
    # compilation failed
11609
 
    lt_cv_dlopen_self=no
11610
 
  fi
11611
 
fi
11612
 
rm -fr conftest*
11613
 
 
11614
 
 
11615
 
fi
11616
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11617
 
$as_echo "$lt_cv_dlopen_self" >&6; }
11618
 
 
11619
 
    if test "x$lt_cv_dlopen_self" = xyes; then
11620
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11621
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11622
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11623
 
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11624
 
  $as_echo_n "(cached) " >&6
11625
 
else
11626
 
          if test "$cross_compiling" = yes; then :
11627
 
  lt_cv_dlopen_self_static=cross
11628
 
else
11629
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11630
 
  lt_status=$lt_dlunknown
11631
 
  cat > conftest.$ac_ext <<_LT_EOF
11632
 
#line 11632 "configure"
11633
 
#include "confdefs.h"
11634
 
 
11635
 
#if HAVE_DLFCN_H
11636
 
#include <dlfcn.h>
11637
 
#endif
11638
 
 
11639
 
#include <stdio.h>
11640
 
 
11641
 
#ifdef RTLD_GLOBAL
11642
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11643
 
#else
11644
 
#  ifdef DL_GLOBAL
11645
 
#    define LT_DLGLOBAL         DL_GLOBAL
11646
 
#  else
11647
 
#    define LT_DLGLOBAL         0
11648
 
#  endif
11649
 
#endif
11650
 
 
11651
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11652
 
   find out it does not work in some platform. */
11653
 
#ifndef LT_DLLAZY_OR_NOW
11654
 
#  ifdef RTLD_LAZY
11655
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11656
 
#  else
11657
 
#    ifdef DL_LAZY
11658
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11659
 
#    else
11660
 
#      ifdef RTLD_NOW
11661
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11662
 
#      else
11663
 
#        ifdef DL_NOW
11664
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11665
 
#        else
11666
 
#          define LT_DLLAZY_OR_NOW      0
11667
 
#        endif
11668
 
#      endif
11669
 
#    endif
11670
 
#  endif
11671
 
#endif
11672
 
 
11673
 
void fnord() { int i=42;}
11674
 
int main ()
11675
 
{
11676
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11677
 
  int status = $lt_dlunknown;
11678
 
 
11679
 
  if (self)
11680
 
    {
11681
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11682
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11683
 
      /* dlclose (self); */
11684
 
    }
11685
 
  else
11686
 
    puts (dlerror ());
11687
 
 
11688
 
  return status;
11689
 
}
11690
 
_LT_EOF
11691
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692
 
  (eval $ac_link) 2>&5
11693
 
  ac_status=$?
11694
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11696
 
    (./conftest; exit; ) >&5 2>/dev/null
11697
 
    lt_status=$?
11698
 
    case x$lt_status in
11699
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11700
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11701
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11702
 
    esac
11703
 
  else :
11704
 
    # compilation failed
11705
 
    lt_cv_dlopen_self_static=no
11706
 
  fi
11707
 
fi
11708
 
rm -fr conftest*
11709
 
 
11710
 
 
11711
 
fi
11712
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11713
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11714
 
    fi
11715
 
 
11716
 
    CPPFLAGS="$save_CPPFLAGS"
11717
 
    LDFLAGS="$save_LDFLAGS"
11718
 
    LIBS="$save_LIBS"
11719
 
    ;;
11720
 
  esac
11721
 
 
11722
 
  case $lt_cv_dlopen_self in
11723
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11724
 
  *) enable_dlopen_self=unknown ;;
11725
 
  esac
11726
 
 
11727
 
  case $lt_cv_dlopen_self_static in
11728
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11729
 
  *) enable_dlopen_self_static=unknown ;;
11730
 
  esac
11731
 
fi
11732
 
 
11733
 
 
11734
 
 
11735
 
 
11736
 
 
11737
 
 
11738
 
 
11739
 
 
11740
 
 
11741
 
 
11742
 
 
11743
 
 
11744
 
 
11745
 
 
11746
 
 
11747
 
 
11748
 
 
11749
 
striplib=
11750
 
old_striplib=
11751
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11752
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11753
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11754
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11755
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11756
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11757
 
$as_echo "yes" >&6; }
11758
 
else
11759
 
# FIXME - insert some real tests, host_os isn't really good enough
11760
 
  case $host_os in
11761
 
  darwin*)
11762
 
    if test -n "$STRIP" ; then
11763
 
      striplib="$STRIP -x"
11764
 
      old_striplib="$STRIP -S"
11765
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11766
 
$as_echo "yes" >&6; }
11767
 
    else
11768
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769
 
$as_echo "no" >&6; }
11770
 
    fi
11771
 
    ;;
11772
 
  *)
11773
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774
 
$as_echo "no" >&6; }
11775
 
    ;;
11776
 
  esac
11777
 
fi
11778
 
 
11779
 
 
11780
 
 
11781
 
 
11782
 
 
11783
 
 
11784
 
 
11785
 
 
11786
 
 
11787
 
 
11788
 
 
11789
 
 
11790
 
  # Report which library types will actually be built
11791
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11792
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11793
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11794
 
$as_echo "$can_build_shared" >&6; }
11795
 
 
11796
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11797
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11798
 
  test "$can_build_shared" = "no" && enable_shared=no
11799
 
 
11800
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11801
 
  # are all built from PIC.
11802
 
  case $host_os in
11803
 
  aix3*)
11804
 
    test "$enable_shared" = yes && enable_static=no
11805
 
    if test -n "$RANLIB"; then
11806
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11807
 
      postinstall_cmds='$RANLIB $lib'
11808
 
    fi
11809
 
    ;;
11810
 
 
11811
 
  aix[4-9]*)
11812
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11813
 
      test "$enable_shared" = yes && enable_static=no
11814
 
    fi
11815
 
    ;;
11816
 
  esac
11817
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11818
 
$as_echo "$enable_shared" >&6; }
11819
 
 
11820
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11821
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11822
 
  # Make sure either enable_shared or enable_static is yes.
11823
 
  test "$enable_shared" = yes || enable_static=yes
11824
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11825
 
$as_echo "$enable_static" >&6; }
11826
 
 
11827
 
 
11828
 
 
11829
 
 
11830
 
fi
11831
 
ac_ext=c
11832
 
ac_cpp='$CPP $CPPFLAGS'
11833
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11836
 
 
11837
 
CC="$lt_save_CC"
11838
 
 
11839
 
 
11840
 
 
11841
 
 
11842
 
 
11843
 
 
11844
 
 
11845
 
 
11846
 
 
11847
 
 
11848
 
 
11849
 
 
11850
 
 
11851
 
        ac_config_commands="$ac_config_commands libtool"
11852
 
 
11853
 
 
11854
 
 
11855
 
 
11856
 
# Only expand once:
11857
 
 
11858
 
 
11859
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11860
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11861
 
set x ${MAKE-make}
11862
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11863
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11864
 
  $as_echo_n "(cached) " >&6
11865
 
else
11866
 
  cat >conftest.make <<\_ACEOF
11867
 
SHELL = /bin/sh
11868
 
all:
11869
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11870
 
_ACEOF
11871
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11872
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11873
 
  *@@@%%%=?*=@@@%%%*)
11874
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11875
 
  *)
11876
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
11877
 
esac
11878
 
rm -f conftest.make
11879
 
fi
11880
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11881
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11882
 
$as_echo "yes" >&6; }
11883
 
  SET_MAKE=
11884
 
else
11885
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886
 
$as_echo "no" >&6; }
11887
 
  SET_MAKE="MAKE=${MAKE-make}"
11888
 
fi
11889
 
 
11890
 
for ac_prog in xsltproc
11891
 
do
11892
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11893
 
set dummy $ac_prog; ac_word=$2
11894
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895
 
$as_echo_n "checking for $ac_word... " >&6; }
11896
 
if test "${ac_cv_prog_XSLTPROC+set}" = set; then :
11897
 
  $as_echo_n "(cached) " >&6
11898
 
else
11899
 
  if test -n "$XSLTPROC"; then
11900
 
  ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
11901
 
else
11902
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903
 
for as_dir in $PATH
11904
 
do
11905
 
  IFS=$as_save_IFS
11906
 
  test -z "$as_dir" && as_dir=.
11907
 
    for ac_exec_ext in '' $ac_executable_extensions; do
11908
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11909
 
    ac_cv_prog_XSLTPROC="$ac_prog"
11910
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911
 
    break 2
11912
 
  fi
11913
 
done
11914
 
  done
11915
 
IFS=$as_save_IFS
11916
 
 
11917
 
fi
11918
 
fi
11919
 
XSLTPROC=$ac_cv_prog_XSLTPROC
11920
 
if test -n "$XSLTPROC"; then
11921
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11922
 
$as_echo "$XSLTPROC" >&6; }
11923
 
else
11924
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925
 
$as_echo "no" >&6; }
11926
 
fi
11927
 
 
11928
 
 
11929
 
  test -n "$XSLTPROC" && break
11930
 
done
11931
 
test -n "$XSLTPROC" || XSLTPROC=""no""
11932
 
 
11933
 
if test "x$XSLTPROC" = "xno"; then
11934
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found ā€“ not building documentation" >&5
11935
 
$as_echo "$as_me: WARNING: xsltproc not found ā€“ not building documentation" >&2;}
11936
 
fi
11937
 
 if test "x$XSLTPROC" != "xno"; then
11938
 
  HAVE_XSLTPROC_TRUE=
11939
 
  HAVE_XSLTPROC_FALSE='#'
11940
 
else
11941
 
  HAVE_XSLTPROC_TRUE='#'
11942
 
  HAVE_XSLTPROC_FALSE=
11943
 
fi
11944
 
 
11945
 
 
11946
 
# Checks for libraries.
11947
 
save_LIBS="${LIBS}"
11948
 
LIBS=""
11949
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11950
 
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11951
 
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
11952
 
  $as_echo_n "(cached) " >&6
11953
 
else
11954
 
  ac_check_lib_save_LIBS=$LIBS
11955
 
LIBS="-lrt  $LIBS"
11956
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957
 
/* end confdefs.h.  */
11958
 
 
11959
 
/* Override any GCC internal prototype to avoid an error.
11960
 
   Use char because int might match the return type of a GCC
11961
 
   builtin and then its argument prototype would still apply.  */
11962
 
#ifdef __cplusplus
11963
 
extern "C"
11964
 
#endif
11965
 
char clock_gettime ();
11966
 
int
11967
 
main ()
11968
 
{
11969
 
return clock_gettime ();
11970
 
  ;
11971
 
  return 0;
11972
 
}
11973
 
_ACEOF
11974
 
if ac_fn_c_try_link "$LINENO"; then :
11975
 
  ac_cv_lib_rt_clock_gettime=yes
11976
 
else
11977
 
  ac_cv_lib_rt_clock_gettime=no
11978
 
fi
11979
 
rm -f core conftest.err conftest.$ac_objext \
11980
 
    conftest$ac_exeext conftest.$ac_ext
11981
 
LIBS=$ac_check_lib_save_LIBS
11982
 
fi
11983
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11984
 
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11985
 
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
11986
 
  cat >>confdefs.h <<_ACEOF
11987
 
#define HAVE_LIBRT 1
11988
 
_ACEOF
11989
 
 
11990
 
  LIBS="-lrt $LIBS"
11991
 
 
11992
 
fi
11993
 
 
11994
 
RT_LIBS="${LIBS}"
11995
 
LIBS="${save_LIBS}"
11996
 
 
11997
 
 
11998
 
save_LIBS="${LIBS}"
11999
 
LIBS=""
12000
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12001
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12002
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12003
 
  $as_echo_n "(cached) " >&6
12004
 
else
12005
 
  ac_check_lib_save_LIBS=$LIBS
12006
 
LIBS="-ldl  $LIBS"
12007
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008
 
/* end confdefs.h.  */
12009
 
 
12010
 
/* Override any GCC internal prototype to avoid an error.
12011
 
   Use char because int might match the return type of a GCC
12012
 
   builtin and then its argument prototype would still apply.  */
12013
 
#ifdef __cplusplus
12014
 
extern "C"
12015
 
#endif
12016
 
char dlopen ();
12017
 
int
12018
 
main ()
12019
 
{
12020
 
return dlopen ();
12021
 
  ;
12022
 
  return 0;
12023
 
}
12024
 
_ACEOF
12025
 
if ac_fn_c_try_link "$LINENO"; then :
12026
 
  ac_cv_lib_dl_dlopen=yes
12027
 
else
12028
 
  ac_cv_lib_dl_dlopen=no
12029
 
fi
12030
 
rm -f core conftest.err conftest.$ac_objext \
12031
 
    conftest$ac_exeext conftest.$ac_ext
12032
 
LIBS=$ac_check_lib_save_LIBS
12033
 
fi
12034
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12035
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12036
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12037
 
  cat >>confdefs.h <<_ACEOF
12038
 
#define HAVE_LIBDL 1
12039
 
_ACEOF
12040
 
 
12041
 
  LIBS="-ldl $LIBS"
12042
 
 
12043
 
fi
12044
 
 
12045
 
DL_LIBS="${LIBS}"
12046
 
LIBS="${save_LIBS}"
12047
 
 
12048
 
 
12049
 
save_LIBS="${LIBS}"
12050
 
LIBS=""
12051
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
12052
 
$as_echo_n "checking for library containing initscr... " >&6; }
12053
 
if test "${ac_cv_search_initscr+set}" = set; then :
12054
 
  $as_echo_n "(cached) " >&6
12055
 
else
12056
 
  ac_func_search_save_LIBS=$LIBS
12057
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058
 
/* end confdefs.h.  */
12059
 
 
12060
 
/* Override any GCC internal prototype to avoid an error.
12061
 
   Use char because int might match the return type of a GCC
12062
 
   builtin and then its argument prototype would still apply.  */
12063
 
#ifdef __cplusplus
12064
 
extern "C"
12065
 
#endif
12066
 
char initscr ();
12067
 
int
12068
 
main ()
12069
 
{
12070
 
return initscr ();
12071
 
  ;
12072
 
  return 0;
12073
 
}
12074
 
_ACEOF
12075
 
for ac_lib in '' curses ncurses; do
12076
 
  if test -z "$ac_lib"; then
12077
 
    ac_res="none required"
12078
 
  else
12079
 
    ac_res=-l$ac_lib
12080
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12081
 
  fi
12082
 
  if ac_fn_c_try_link "$LINENO"; then :
12083
 
  ac_cv_search_initscr=$ac_res
12084
 
fi
12085
 
rm -f core conftest.err conftest.$ac_objext \
12086
 
    conftest$ac_exeext
12087
 
  if test "${ac_cv_search_initscr+set}" = set; then :
12088
 
  break
12089
 
fi
12090
 
done
12091
 
if test "${ac_cv_search_initscr+set}" = set; then :
12092
 
 
12093
 
else
12094
 
  ac_cv_search_initscr=no
12095
 
fi
12096
 
rm conftest.$ac_ext
12097
 
LIBS=$ac_func_search_save_LIBS
12098
 
fi
12099
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
12100
 
$as_echo "$ac_cv_search_initscr" >&6; }
12101
 
ac_res=$ac_cv_search_initscr
12102
 
if test "$ac_res" != no; then :
12103
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12104
 
  have_curses=yes
12105
 
else
12106
 
  have_curses=no
12107
 
fi
12108
 
 
12109
 
CURSES_LIBS="${LIBS}"
12110
 
LIBS="${save_LIBS}"
12111
 
 
12112
 
if test "$have_curses" = no; then
12113
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curses not found; some tools will not be built" >&5
12114
 
$as_echo "$as_me: WARNING: curses not found; some tools will not be built" >&2;}
12115
 
fi
12116
 
 if test x$have_curses = xyes; then
12117
 
  HAVE_CURSES_TRUE=
12118
 
  HAVE_CURSES_FALSE='#'
12119
 
else
12120
 
  HAVE_CURSES_TRUE='#'
12121
 
  HAVE_CURSES_FALSE=
12122
 
fi
12123
 
 
12124
 
 
12125
 
save_LIBS="${LIBS}"
12126
 
LIBS=""
12127
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12128
 
$as_echo_n "checking for library containing pthread_create... " >&6; }
12129
 
if test "${ac_cv_search_pthread_create+set}" = set; then :
12130
 
  $as_echo_n "(cached) " >&6
12131
 
else
12132
 
  ac_func_search_save_LIBS=$LIBS
12133
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134
 
/* end confdefs.h.  */
12135
 
 
12136
 
/* Override any GCC internal prototype to avoid an error.
12137
 
   Use char because int might match the return type of a GCC
12138
 
   builtin and then its argument prototype would still apply.  */
12139
 
#ifdef __cplusplus
12140
 
extern "C"
12141
 
#endif
12142
 
char pthread_create ();
12143
 
int
12144
 
main ()
12145
 
{
12146
 
return pthread_create ();
12147
 
  ;
12148
 
  return 0;
12149
 
}
12150
 
_ACEOF
12151
 
for ac_lib in '' thr pthread c_r; do
12152
 
  if test -z "$ac_lib"; then
12153
 
    ac_res="none required"
12154
 
  else
12155
 
    ac_res=-l$ac_lib
12156
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12157
 
  fi
12158
 
  if ac_fn_c_try_link "$LINENO"; then :
12159
 
  ac_cv_search_pthread_create=$ac_res
12160
 
fi
12161
 
rm -f core conftest.err conftest.$ac_objext \
12162
 
    conftest$ac_exeext
12163
 
  if test "${ac_cv_search_pthread_create+set}" = set; then :
12164
 
  break
12165
 
fi
12166
 
done
12167
 
if test "${ac_cv_search_pthread_create+set}" = set; then :
12168
 
 
12169
 
else
12170
 
  ac_cv_search_pthread_create=no
12171
 
fi
12172
 
rm conftest.$ac_ext
12173
 
LIBS=$ac_func_search_save_LIBS
12174
 
fi
12175
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12176
 
$as_echo "$ac_cv_search_pthread_create" >&6; }
12177
 
ac_res=$ac_cv_search_pthread_create
12178
 
if test "$ac_res" != no; then :
12179
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12180
 
 
12181
 
fi
12182
 
 
12183
 
PTHREAD_LIBS="${LIBS}"
12184
 
LIBS="${save_LIBS}"
12185
 
 
12186
 
 
12187
 
save_LIBS="${LIBS}"
12188
 
LIBS=""
12189
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12190
 
$as_echo_n "checking for socket in -lsocket... " >&6; }
12191
 
if test "${ac_cv_lib_socket_socket+set}" = set; then :
12192
 
  $as_echo_n "(cached) " >&6
12193
 
else
12194
 
  ac_check_lib_save_LIBS=$LIBS
12195
 
LIBS="-lsocket  $LIBS"
12196
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197
 
/* end confdefs.h.  */
12198
 
 
12199
 
/* Override any GCC internal prototype to avoid an error.
12200
 
   Use char because int might match the return type of a GCC
12201
 
   builtin and then its argument prototype would still apply.  */
12202
 
#ifdef __cplusplus
12203
 
extern "C"
12204
 
#endif
12205
 
char socket ();
12206
 
int
12207
 
main ()
12208
 
{
12209
 
return socket ();
12210
 
  ;
12211
 
  return 0;
12212
 
}
12213
 
_ACEOF
12214
 
if ac_fn_c_try_link "$LINENO"; then :
12215
 
  ac_cv_lib_socket_socket=yes
12216
 
else
12217
 
  ac_cv_lib_socket_socket=no
12218
 
fi
12219
 
rm -f core conftest.err conftest.$ac_objext \
12220
 
    conftest$ac_exeext conftest.$ac_ext
12221
 
LIBS=$ac_check_lib_save_LIBS
12222
 
fi
12223
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
12224
 
$as_echo "$ac_cv_lib_socket_socket" >&6; }
12225
 
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
12226
 
  cat >>confdefs.h <<_ACEOF
12227
 
#define HAVE_LIBSOCKET 1
12228
 
_ACEOF
12229
 
 
12230
 
  LIBS="-lsocket $LIBS"
12231
 
 
12232
 
fi
12233
 
 
12234
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5
12235
 
$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
12236
 
if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then :
12237
 
  $as_echo_n "(cached) " >&6
12238
 
else
12239
 
  ac_check_lib_save_LIBS=$LIBS
12240
 
LIBS="-lnsl  $LIBS"
12241
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242
 
/* end confdefs.h.  */
12243
 
 
12244
 
/* Override any GCC internal prototype to avoid an error.
12245
 
   Use char because int might match the return type of a GCC
12246
 
   builtin and then its argument prototype would still apply.  */
12247
 
#ifdef __cplusplus
12248
 
extern "C"
12249
 
#endif
12250
 
char getaddrinfo ();
12251
 
int
12252
 
main ()
12253
 
{
12254
 
return getaddrinfo ();
12255
 
  ;
12256
 
  return 0;
12257
 
}
12258
 
_ACEOF
12259
 
if ac_fn_c_try_link "$LINENO"; then :
12260
 
  ac_cv_lib_nsl_getaddrinfo=yes
12261
 
else
12262
 
  ac_cv_lib_nsl_getaddrinfo=no
12263
 
fi
12264
 
rm -f core conftest.err conftest.$ac_objext \
12265
 
    conftest$ac_exeext conftest.$ac_ext
12266
 
LIBS=$ac_check_lib_save_LIBS
12267
 
fi
12268
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5
12269
 
$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
12270
 
if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then :
12271
 
  cat >>confdefs.h <<_ACEOF
12272
 
#define HAVE_LIBNSL 1
12273
 
_ACEOF
12274
 
 
12275
 
  LIBS="-lnsl $LIBS"
12276
 
 
12277
 
fi
12278
 
 
12279
 
NET_LIBS="${LIBS}"
12280
 
LIBS="${save_LIBS}"
12281
 
 
12282
 
 
12283
 
LIBM=
12284
 
case $host in
12285
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12286
 
  # These system don't have libm, or don't need it
12287
 
  ;;
12288
 
*-ncr-sysv4.3*)
12289
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12290
 
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12291
 
if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
12292
 
  $as_echo_n "(cached) " >&6
12293
 
else
12294
 
  ac_check_lib_save_LIBS=$LIBS
12295
 
LIBS="-lmw  $LIBS"
12296
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297
 
/* end confdefs.h.  */
12298
 
 
12299
 
/* Override any GCC internal prototype to avoid an error.
12300
 
   Use char because int might match the return type of a GCC
12301
 
   builtin and then its argument prototype would still apply.  */
12302
 
#ifdef __cplusplus
12303
 
extern "C"
12304
 
#endif
12305
 
char _mwvalidcheckl ();
12306
 
int
12307
 
main ()
12308
 
{
12309
 
return _mwvalidcheckl ();
12310
 
  ;
12311
 
  return 0;
12312
 
}
12313
 
_ACEOF
12314
 
if ac_fn_c_try_link "$LINENO"; then :
12315
 
  ac_cv_lib_mw__mwvalidcheckl=yes
12316
 
else
12317
 
  ac_cv_lib_mw__mwvalidcheckl=no
12318
 
fi
12319
 
rm -f core conftest.err conftest.$ac_objext \
12320
 
    conftest$ac_exeext conftest.$ac_ext
12321
 
LIBS=$ac_check_lib_save_LIBS
12322
 
fi
12323
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12324
 
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12325
 
if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
12326
 
  LIBM="-lmw"
12327
 
fi
12328
 
 
12329
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12330
 
$as_echo_n "checking for cos in -lm... " >&6; }
12331
 
if test "${ac_cv_lib_m_cos+set}" = set; then :
12332
 
  $as_echo_n "(cached) " >&6
12333
 
else
12334
 
  ac_check_lib_save_LIBS=$LIBS
12335
 
LIBS="-lm  $LIBS"
12336
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337
 
/* end confdefs.h.  */
12338
 
 
12339
 
/* Override any GCC internal prototype to avoid an error.
12340
 
   Use char because int might match the return type of a GCC
12341
 
   builtin and then its argument prototype would still apply.  */
12342
 
#ifdef __cplusplus
12343
 
extern "C"
12344
 
#endif
12345
 
char cos ();
12346
 
int
12347
 
main ()
12348
 
{
12349
 
return cos ();
12350
 
  ;
12351
 
  return 0;
12352
 
}
12353
 
_ACEOF
12354
 
if ac_fn_c_try_link "$LINENO"; then :
12355
 
  ac_cv_lib_m_cos=yes
12356
 
else
12357
 
  ac_cv_lib_m_cos=no
12358
 
fi
12359
 
rm -f core conftest.err conftest.$ac_objext \
12360
 
    conftest$ac_exeext conftest.$ac_ext
12361
 
LIBS=$ac_check_lib_save_LIBS
12362
 
fi
12363
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12364
 
$as_echo "$ac_cv_lib_m_cos" >&6; }
12365
 
if test "x$ac_cv_lib_m_cos" = x""yes; then :
12366
 
  LIBM="$LIBM -lm"
12367
 
fi
12368
 
 
12369
 
  ;;
12370
 
*)
12371
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12372
 
$as_echo_n "checking for cos in -lm... " >&6; }
12373
 
if test "${ac_cv_lib_m_cos+set}" = set; then :
12374
 
  $as_echo_n "(cached) " >&6
12375
 
else
12376
 
  ac_check_lib_save_LIBS=$LIBS
12377
 
LIBS="-lm  $LIBS"
12378
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379
 
/* end confdefs.h.  */
12380
 
 
12381
 
/* Override any GCC internal prototype to avoid an error.
12382
 
   Use char because int might match the return type of a GCC
12383
 
   builtin and then its argument prototype would still apply.  */
12384
 
#ifdef __cplusplus
12385
 
extern "C"
12386
 
#endif
12387
 
char cos ();
12388
 
int
12389
 
main ()
12390
 
{
12391
 
return cos ();
12392
 
  ;
12393
 
  return 0;
12394
 
}
12395
 
_ACEOF
12396
 
if ac_fn_c_try_link "$LINENO"; then :
12397
 
  ac_cv_lib_m_cos=yes
12398
 
else
12399
 
  ac_cv_lib_m_cos=no
12400
 
fi
12401
 
rm -f core conftest.err conftest.$ac_objext \
12402
 
    conftest$ac_exeext conftest.$ac_ext
12403
 
LIBS=$ac_check_lib_save_LIBS
12404
 
fi
12405
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12406
 
$as_echo "$ac_cv_lib_m_cos" >&6; }
12407
 
if test "x$ac_cv_lib_m_cos" = x""yes; then :
12408
 
  LIBM="-lm"
12409
 
fi
12410
 
 
12411
 
  ;;
12412
 
esac
12413
 
 
12414
 
 
12415
 
 
12416
 
 
12417
 
 
12418
 
 
12419
 
 
12420
 
 
12421
 
 
12422
 
 
12423
 
 
12424
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12425
 
        if test -n "$ac_tool_prefix"; then
12426
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12427
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12428
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429
 
$as_echo_n "checking for $ac_word... " >&6; }
12430
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12431
 
  $as_echo_n "(cached) " >&6
12432
 
else
12433
 
  case $PKG_CONFIG in
12434
 
  [\\/]* | ?:[\\/]*)
12435
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12436
 
  ;;
12437
 
  *)
12438
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439
 
for as_dir in $PATH
12440
 
do
12441
 
  IFS=$as_save_IFS
12442
 
  test -z "$as_dir" && as_dir=.
12443
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12444
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12446
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447
 
    break 2
12448
 
  fi
12449
 
done
12450
 
  done
12451
 
IFS=$as_save_IFS
12452
 
 
12453
 
  ;;
12454
 
esac
12455
 
fi
12456
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12457
 
if test -n "$PKG_CONFIG"; then
12458
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12459
 
$as_echo "$PKG_CONFIG" >&6; }
12460
 
else
12461
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462
 
$as_echo "no" >&6; }
12463
 
fi
12464
 
 
12465
 
 
12466
 
fi
12467
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
12468
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
12469
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
12470
 
set dummy pkg-config; ac_word=$2
12471
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472
 
$as_echo_n "checking for $ac_word... " >&6; }
12473
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12474
 
  $as_echo_n "(cached) " >&6
12475
 
else
12476
 
  case $ac_pt_PKG_CONFIG in
12477
 
  [\\/]* | ?:[\\/]*)
12478
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12479
 
  ;;
12480
 
  *)
12481
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482
 
for as_dir in $PATH
12483
 
do
12484
 
  IFS=$as_save_IFS
12485
 
  test -z "$as_dir" && as_dir=.
12486
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12487
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12489
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490
 
    break 2
12491
 
  fi
12492
 
done
12493
 
  done
12494
 
IFS=$as_save_IFS
12495
 
 
12496
 
  ;;
12497
 
esac
12498
 
fi
12499
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12500
 
if test -n "$ac_pt_PKG_CONFIG"; then
12501
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12502
 
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12503
 
else
12504
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505
 
$as_echo "no" >&6; }
12506
 
fi
12507
 
 
12508
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
12509
 
    PKG_CONFIG=""
12510
 
  else
12511
 
    case $cross_compiling:$ac_tool_warned in
12512
 
yes:)
12513
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515
 
ac_tool_warned=yes ;;
12516
 
esac
12517
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
12518
 
  fi
12519
 
else
12520
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12521
 
fi
12522
 
 
12523
 
fi
12524
 
if test -n "$PKG_CONFIG"; then
12525
 
        _pkg_min_version=0.9.0
12526
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12527
 
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12528
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12529
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530
 
$as_echo "yes" >&6; }
12531
 
        else
12532
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533
 
$as_echo "no" >&6; }
12534
 
                PKG_CONFIG=""
12535
 
        fi
12536
 
fi
12537
 
if test -n $PKG_CONFIG; then
12538
 
 
12539
 
pkg_failed=no
12540
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
12541
 
$as_echo_n "checking for PCRE... " >&6; }
12542
 
 
12543
 
if test -n "$PCRE_CFLAGS"; then
12544
 
    pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
12545
 
 elif test -n "$PKG_CONFIG"; then
12546
 
    if test -n "$PKG_CONFIG" && \
12547
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
12548
 
  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
12549
 
  ac_status=$?
12550
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551
 
  test $ac_status = 0; }; then
12552
 
  pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
12553
 
else
12554
 
  pkg_failed=yes
12555
 
fi
12556
 
 else
12557
 
    pkg_failed=untried
12558
 
fi
12559
 
if test -n "$PCRE_LIBS"; then
12560
 
    pkg_cv_PCRE_LIBS="$PCRE_LIBS"
12561
 
 elif test -n "$PKG_CONFIG"; then
12562
 
    if test -n "$PKG_CONFIG" && \
12563
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
12564
 
  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
12565
 
  ac_status=$?
12566
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12567
 
  test $ac_status = 0; }; then
12568
 
  pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
12569
 
else
12570
 
  pkg_failed=yes
12571
 
fi
12572
 
 else
12573
 
    pkg_failed=untried
12574
 
fi
12575
 
 
12576
 
 
12577
 
 
12578
 
if test $pkg_failed = yes; then
12579
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580
 
$as_echo "no" >&6; }
12581
 
 
12582
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12583
 
        _pkg_short_errors_supported=yes
12584
 
else
12585
 
        _pkg_short_errors_supported=no
12586
 
fi
12587
 
        if test $_pkg_short_errors_supported = yes; then
12588
 
                PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre" 2>&1`
12589
 
        else
12590
 
                PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre" 2>&1`
12591
 
        fi
12592
 
        # Put the nasty error message in config.log where it belongs
12593
 
        echo "$PCRE_PKG_ERRORS" >&5
12594
 
 
12595
 
        as_fn_error "Package requirements (libpcre) were not met:
12596
 
 
12597
 
$PCRE_PKG_ERRORS
12598
 
 
12599
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12600
 
installed software in a non-standard prefix.
12601
 
 
12602
 
Alternatively, you may set the environment variables PCRE_CFLAGS
12603
 
and PCRE_LIBS to avoid the need to call pkg-config.
12604
 
See the pkg-config man page for more details." "$LINENO" 5
12605
 
elif test $pkg_failed = untried; then
12606
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607
 
$as_echo "no" >&6; }
12608
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12609
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12610
 
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12611
 
is in your PATH or set the PKG_CONFIG environment variable to the full
12612
 
path to pkg-config.
12613
 
 
12614
 
Alternatively, you may set the environment variables PCRE_CFLAGS
12615
 
and PCRE_LIBS to avoid the need to call pkg-config.
12616
 
See the pkg-config man page for more details.
12617
 
 
12618
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12619
 
See \`config.log' for more details." "$LINENO" 5; }
12620
 
else
12621
 
        PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
12622
 
        PCRE_LIBS=$pkg_cv_PCRE_LIBS
12623
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624
 
$as_echo "yes" >&6; }
12625
 
 
12626
 
fi
12627
 
else
12628
 
   # Extract the first word of "pcre-config", so it can be a program name with args.
12629
 
set dummy pcre-config; ac_word=$2
12630
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631
 
$as_echo_n "checking for $ac_word... " >&6; }
12632
 
if test "${ac_cv_prog_PCRE_CONFIG+set}" = set; then :
12633
 
  $as_echo_n "(cached) " >&6
12634
 
else
12635
 
  if test -n "$PCRE_CONFIG"; then
12636
 
  ac_cv_prog_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test.
12637
 
else
12638
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639
 
for as_dir in $PATH
12640
 
do
12641
 
  IFS=$as_save_IFS
12642
 
  test -z "$as_dir" && as_dir=.
12643
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12644
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12645
 
    ac_cv_prog_PCRE_CONFIG="pcre-config"
12646
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647
 
    break 2
12648
 
  fi
12649
 
done
12650
 
  done
12651
 
IFS=$as_save_IFS
12652
 
 
12653
 
fi
12654
 
fi
12655
 
PCRE_CONFIG=$ac_cv_prog_PCRE_CONFIG
12656
 
if test -n "$PCRE_CONFIG"; then
12657
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
12658
 
$as_echo "$PCRE_CONFIG" >&6; }
12659
 
else
12660
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661
 
$as_echo "no" >&6; }
12662
 
fi
12663
 
 
12664
 
 
12665
 
 
12666
 
# Check whether --with-pcre-config was given.
12667
 
if test "${with_pcre_config+set}" = set; then :
12668
 
  withval=$with_pcre_config; pcre_config="$withval"
12669
 
else
12670
 
  pcre_config=""
12671
 
fi
12672
 
 
12673
 
 
12674
 
  if test "x$pcre_config" != "x" ; then
12675
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pcre_config" >&5
12676
 
$as_echo_n "checking for $pcre_config... " >&6; }
12677
 
 
12678
 
    if test -f $pcre_config ; then
12679
 
      PCRE_CONFIG=$pcre_config
12680
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12681
 
$as_echo "yes" >&6; }
12682
 
    else
12683
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - searching PATH" >&5
12684
 
$as_echo "no - searching PATH" >&6; }
12685
 
    fi
12686
 
  fi
12687
 
  if test "x$PCRE_CONFIG" = "x"; then
12688
 
    for ac_prog in pcre-config
12689
 
do
12690
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12691
 
set dummy $ac_prog; ac_word=$2
12692
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693
 
$as_echo_n "checking for $ac_word... " >&6; }
12694
 
if test "${ac_cv_prog_PCRE_CONFIG+set}" = set; then :
12695
 
  $as_echo_n "(cached) " >&6
12696
 
else
12697
 
  if test -n "$PCRE_CONFIG"; then
12698
 
  ac_cv_prog_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test.
12699
 
else
12700
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701
 
for as_dir in $PATH
12702
 
do
12703
 
  IFS=$as_save_IFS
12704
 
  test -z "$as_dir" && as_dir=.
12705
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12706
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707
 
    ac_cv_prog_PCRE_CONFIG="$ac_prog"
12708
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709
 
    break 2
12710
 
  fi
12711
 
done
12712
 
  done
12713
 
IFS=$as_save_IFS
12714
 
 
12715
 
fi
12716
 
fi
12717
 
PCRE_CONFIG=$ac_cv_prog_PCRE_CONFIG
12718
 
if test -n "$PCRE_CONFIG"; then
12719
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
12720
 
$as_echo "$PCRE_CONFIG" >&6; }
12721
 
else
12722
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723
 
$as_echo "no" >&6; }
12724
 
fi
12725
 
 
12726
 
 
12727
 
  test -n "$PCRE_CONFIG" && break
12728
 
done
12729
 
 
12730
 
  fi
12731
 
  PCRE_CFLAGS=`$PCRE_CONFIG --cflags`
12732
 
  PCRE_LIBS=`$PCRE_CONFIG --libs`
12733
 
fi
12734
 
 
12735
 
 
12736
 
 
12737
 
 
12738
 
# Checks for header files.
12739
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12740
 
$as_echo_n "checking for ANSI C header files... " >&6; }
12741
 
if test "${ac_cv_header_stdc+set}" = set; then :
12742
 
  $as_echo_n "(cached) " >&6
12743
 
else
12744
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745
 
/* end confdefs.h.  */
12746
 
#include <stdlib.h>
12747
 
#include <stdarg.h>
12748
 
#include <string.h>
12749
 
#include <float.h>
12750
 
 
12751
 
int
12752
 
main ()
12753
 
{
12754
 
 
12755
 
  ;
12756
 
  return 0;
12757
 
}
12758
 
_ACEOF
12759
 
if ac_fn_c_try_compile "$LINENO"; then :
12760
 
  ac_cv_header_stdc=yes
12761
 
else
12762
 
  ac_cv_header_stdc=no
12763
 
fi
12764
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765
 
 
12766
 
if test $ac_cv_header_stdc = yes; then
12767
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12768
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769
 
/* end confdefs.h.  */
12770
 
#include <string.h>
12771
 
 
12772
 
_ACEOF
12773
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12774
 
  $EGREP "memchr" >/dev/null 2>&1; then :
12775
 
 
12776
 
else
12777
 
  ac_cv_header_stdc=no
12778
 
fi
12779
 
rm -f conftest*
12780
 
 
12781
 
fi
12782
 
 
12783
 
if test $ac_cv_header_stdc = yes; then
12784
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12785
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786
 
/* end confdefs.h.  */
12787
 
#include <stdlib.h>
12788
 
 
12789
 
_ACEOF
12790
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12791
 
  $EGREP "free" >/dev/null 2>&1; then :
12792
 
 
12793
 
else
12794
 
  ac_cv_header_stdc=no
12795
 
fi
12796
 
rm -f conftest*
12797
 
 
12798
 
fi
12799
 
 
12800
 
if test $ac_cv_header_stdc = yes; then
12801
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12802
 
  if test "$cross_compiling" = yes; then :
12803
 
  :
12804
 
else
12805
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806
 
/* end confdefs.h.  */
12807
 
#include <ctype.h>
12808
 
#include <stdlib.h>
12809
 
#if ((' ' & 0x0FF) == 0x020)
12810
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12811
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12812
 
#else
12813
 
# define ISLOWER(c) \
12814
 
                   (('a' <= (c) && (c) <= 'i') \
12815
 
                     || ('j' <= (c) && (c) <= 'r') \
12816
 
                     || ('s' <= (c) && (c) <= 'z'))
12817
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12818
 
#endif
12819
 
 
12820
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12821
 
int
12822
 
main ()
12823
 
{
12824
 
  int i;
12825
 
  for (i = 0; i < 256; i++)
12826
 
    if (XOR (islower (i), ISLOWER (i))
12827
 
        || toupper (i) != TOUPPER (i))
12828
 
      return 2;
12829
 
  return 0;
12830
 
}
12831
 
_ACEOF
12832
 
if ac_fn_c_try_run "$LINENO"; then :
12833
 
 
12834
 
else
12835
 
  ac_cv_header_stdc=no
12836
 
fi
12837
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12838
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12839
 
fi
12840
 
 
12841
 
fi
12842
 
fi
12843
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12844
 
$as_echo "$ac_cv_header_stdc" >&6; }
12845
 
if test $ac_cv_header_stdc = yes; then
12846
 
 
12847
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12848
 
 
12849
 
fi
12850
 
 
12851
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12852
 
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12853
 
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12854
 
  $as_echo_n "(cached) " >&6
12855
 
else
12856
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857
 
/* end confdefs.h.  */
12858
 
#include <sys/types.h>
12859
 
#include <sys/wait.h>
12860
 
#ifndef WEXITSTATUS
12861
 
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12862
 
#endif
12863
 
#ifndef WIFEXITED
12864
 
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12865
 
#endif
12866
 
 
12867
 
int
12868
 
main ()
12869
 
{
12870
 
  int s;
12871
 
  wait (&s);
12872
 
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12873
 
  ;
12874
 
  return 0;
12875
 
}
12876
 
_ACEOF
12877
 
if ac_fn_c_try_compile "$LINENO"; then :
12878
 
  ac_cv_header_sys_wait_h=yes
12879
 
else
12880
 
  ac_cv_header_sys_wait_h=no
12881
 
fi
12882
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883
 
fi
12884
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12885
 
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12886
 
if test $ac_cv_header_sys_wait_h = yes; then
12887
 
 
12888
 
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12889
 
 
12890
 
fi
12891
 
 
12892
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12893
 
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12894
 
if test "${ac_cv_header_time+set}" = set; then :
12895
 
  $as_echo_n "(cached) " >&6
12896
 
else
12897
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898
 
/* end confdefs.h.  */
12899
 
#include <sys/types.h>
12900
 
#include <sys/time.h>
12901
 
#include <time.h>
12902
 
 
12903
 
int
12904
 
main ()
12905
 
{
12906
 
if ((struct tm *) 0)
12907
 
return 0;
12908
 
  ;
12909
 
  return 0;
12910
 
}
12911
 
_ACEOF
12912
 
if ac_fn_c_try_compile "$LINENO"; then :
12913
 
  ac_cv_header_time=yes
12914
 
else
12915
 
  ac_cv_header_time=no
12916
 
fi
12917
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918
 
fi
12919
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12920
 
$as_echo "$ac_cv_header_time" >&6; }
12921
 
if test $ac_cv_header_time = yes; then
12922
 
 
12923
 
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12924
 
 
12925
 
fi
12926
 
 
12927
 
for ac_header in sys/param.h
12928
 
do :
12929
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12930
 
if test "x$ac_cv_header_sys_param_h" = x""yes; then :
12931
 
  cat >>confdefs.h <<_ACEOF
12932
 
#define HAVE_SYS_PARAM_H 1
12933
 
_ACEOF
12934
 
 
12935
 
fi
12936
 
 
12937
 
done
12938
 
 
12939
 
for ac_header in sys/types.h
12940
 
do :
12941
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12942
 
if test "x$ac_cv_header_sys_types_h" = x""yes; then :
12943
 
  cat >>confdefs.h <<_ACEOF
12944
 
#define HAVE_SYS_TYPES_H 1
12945
 
_ACEOF
12946
 
 
12947
 
fi
12948
 
 
12949
 
done
12950
 
 
12951
 
for ac_header in sys/endian.h
12952
 
do :
12953
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12954
 
if test "x$ac_cv_header_sys_endian_h" = x""yes; then :
12955
 
  cat >>confdefs.h <<_ACEOF
12956
 
#define HAVE_SYS_ENDIAN_H 1
12957
 
_ACEOF
12958
 
 
12959
 
fi
12960
 
 
12961
 
done
12962
 
 
12963
 
for ac_header in sys/filio.h
12964
 
do :
12965
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
12966
 
if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
12967
 
  cat >>confdefs.h <<_ACEOF
12968
 
#define HAVE_SYS_FILIO_H 1
12969
 
_ACEOF
12970
 
 
12971
 
fi
12972
 
 
12973
 
done
12974
 
 
12975
 
for ac_header in sys/mount.h
12976
 
do :
12977
 
  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
12978
 
"
12979
 
if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
12980
 
  cat >>confdefs.h <<_ACEOF
12981
 
#define HAVE_SYS_MOUNT_H 1
12982
 
_ACEOF
12983
 
 
12984
 
fi
12985
 
 
12986
 
done
12987
 
 
12988
 
for ac_header in sys/socket.h
12989
 
do :
12990
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12991
 
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
12992
 
  cat >>confdefs.h <<_ACEOF
12993
 
#define HAVE_SYS_SOCKET_H 1
12994
 
_ACEOF
12995
 
 
12996
 
fi
12997
 
 
12998
 
done
12999
 
 
13000
 
for ac_header in sys/statvfs.h
13001
 
do :
13002
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
13003
 
if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
13004
 
  cat >>confdefs.h <<_ACEOF
13005
 
#define HAVE_SYS_STATVFS_H 1
13006
 
_ACEOF
13007
 
 
13008
 
fi
13009
 
 
13010
 
done
13011
 
 
13012
 
for ac_header in sys/vfs.h
13013
 
do :
13014
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
13015
 
if test "x$ac_cv_header_sys_vfs_h" = x""yes; then :
13016
 
  cat >>confdefs.h <<_ACEOF
13017
 
#define HAVE_SYS_VFS_H 1
13018
 
_ACEOF
13019
 
 
13020
 
fi
13021
 
 
13022
 
done
13023
 
 
13024
 
for ac_header in endian.h
13025
 
do :
13026
 
  ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13027
 
if test "x$ac_cv_header_endian_h" = x""yes; then :
13028
 
  cat >>confdefs.h <<_ACEOF
13029
 
#define HAVE_ENDIAN_H 1
13030
 
_ACEOF
13031
 
 
13032
 
fi
13033
 
 
13034
 
done
13035
 
 
13036
 
for ac_header in execinfo.h
13037
 
do :
13038
 
  ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
13039
 
if test "x$ac_cv_header_execinfo_h" = x""yes; then :
13040
 
  cat >>confdefs.h <<_ACEOF
13041
 
#define HAVE_EXECINFO_H 1
13042
 
_ACEOF
13043
 
 
13044
 
fi
13045
 
 
13046
 
done
13047
 
 
13048
 
for ac_header in netinet/in.h
13049
 
do :
13050
 
  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13051
 
if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13052
 
  cat >>confdefs.h <<_ACEOF
13053
 
#define HAVE_NETINET_IN_H 1
13054
 
_ACEOF
13055
 
 
13056
 
fi
13057
 
 
13058
 
done
13059
 
 
13060
 
for ac_header in pthread_np.h
13061
 
do :
13062
 
  ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
13063
 
if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
13064
 
  cat >>confdefs.h <<_ACEOF
13065
 
#define HAVE_PTHREAD_NP_H 1
13066
 
_ACEOF
13067
 
 
13068
 
fi
13069
 
 
13070
 
done
13071
 
 
13072
 
for ac_header in stddef.h
13073
 
do :
13074
 
  ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
13075
 
if test "x$ac_cv_header_stddef_h" = x""yes; then :
13076
 
  cat >>confdefs.h <<_ACEOF
13077
 
#define HAVE_STDDEF_H 1
13078
 
_ACEOF
13079
 
 
13080
 
fi
13081
 
 
13082
 
done
13083
 
 
13084
 
for ac_header in stdlib.h
13085
 
do :
13086
 
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13087
 
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
13088
 
  cat >>confdefs.h <<_ACEOF
13089
 
#define HAVE_STDLIB_H 1
13090
 
_ACEOF
13091
 
 
13092
 
fi
13093
 
 
13094
 
done
13095
 
 
13096
 
for ac_header in unistd.h
13097
 
do :
13098
 
  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13099
 
if test "x$ac_cv_header_unistd_h" = x""yes; then :
13100
 
  cat >>confdefs.h <<_ACEOF
13101
 
#define HAVE_UNISTD_H 1
13102
 
_ACEOF
13103
 
 
13104
 
fi
13105
 
 
13106
 
done
13107
 
 
13108
 
for ac_header in priv.h
13109
 
do :
13110
 
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
13111
 
if test "x$ac_cv_header_priv_h" = x""yes; then :
13112
 
  cat >>confdefs.h <<_ACEOF
13113
 
#define HAVE_PRIV_H 1
13114
 
_ACEOF
13115
 
 
13116
 
fi
13117
 
 
13118
 
done
13119
 
 
13120
 
 
13121
 
# Checks for typedefs, structures, and compiler characteristics.
13122
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13123
 
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13124
 
if test "${ac_cv_c_const+set}" = set; then :
13125
 
  $as_echo_n "(cached) " >&6
13126
 
else
13127
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128
 
/* end confdefs.h.  */
13129
 
 
13130
 
int
13131
 
main ()
13132
 
{
13133
 
/* FIXME: Include the comments suggested by Paul. */
13134
 
#ifndef __cplusplus
13135
 
  /* Ultrix mips cc rejects this.  */
13136
 
  typedef int charset[2];
13137
 
  const charset cs;
13138
 
  /* SunOS 4.1.1 cc rejects this.  */
13139
 
  char const *const *pcpcc;
13140
 
  char **ppc;
13141
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
13142
 
  struct point {int x, y;};
13143
 
  static struct point const zero = {0,0};
13144
 
  /* AIX XL C 1.02.0.0 rejects this.
13145
 
     It does not let you subtract one const X* pointer from another in
13146
 
     an arm of an if-expression whose if-part is not a constant
13147
 
     expression */
13148
 
  const char *g = "string";
13149
 
  pcpcc = &g + (g ? g-g : 0);
13150
 
  /* HPUX 7.0 cc rejects these. */
13151
 
  ++pcpcc;
13152
 
  ppc = (char**) pcpcc;
13153
 
  pcpcc = (char const *const *) ppc;
13154
 
  { /* SCO 3.2v4 cc rejects this.  */
13155
 
    char *t;
13156
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
13157
 
 
13158
 
    *t++ = 0;
13159
 
    if (s) return 0;
13160
 
  }
13161
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13162
 
    int x[] = {25, 17};
13163
 
    const int *foo = &x[0];
13164
 
    ++foo;
13165
 
  }
13166
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13167
 
    typedef const int *iptr;
13168
 
    iptr p = 0;
13169
 
    ++p;
13170
 
  }
13171
 
  { /* AIX XL C 1.02.0.0 rejects this saying
13172
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13173
 
    struct s { int j; const int *ap[3]; };
13174
 
    struct s *b; b->j = 5;
13175
 
  }
13176
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13177
 
    const int foo = 10;
13178
 
    if (!foo) return 0;
13179
 
  }
13180
 
  return !cs[0] && !zero.x;
13181
 
#endif
13182
 
 
13183
 
  ;
13184
 
  return 0;
13185
 
}
13186
 
_ACEOF
13187
 
if ac_fn_c_try_compile "$LINENO"; then :
13188
 
  ac_cv_c_const=yes
13189
 
else
13190
 
  ac_cv_c_const=no
13191
 
fi
13192
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193
 
fi
13194
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13195
 
$as_echo "$ac_cv_c_const" >&6; }
13196
 
if test $ac_cv_c_const = no; then
13197
 
 
13198
 
$as_echo "#define const /**/" >>confdefs.h
13199
 
 
13200
 
fi
13201
 
 
13202
 
ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
13203
 
#include <sys/types.h>
13204
 
#ifdef HAVE_SYS_SOCKET_H
13205
 
#include <sys/socket.h>
13206
 
#endif
13207
 
 
13208
 
"
13209
 
if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13210
 
 
13211
 
cat >>confdefs.h <<_ACEOF
13212
 
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13213
 
_ACEOF
13214
 
 
13215
 
 
13216
 
fi
13217
 
 
13218
 
 
13219
 
# Checks for library functions.
13220
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13221
 
$as_echo_n "checking return type of signal handlers... " >&6; }
13222
 
if test "${ac_cv_type_signal+set}" = set; then :
13223
 
  $as_echo_n "(cached) " >&6
13224
 
else
13225
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226
 
/* end confdefs.h.  */
13227
 
#include <sys/types.h>
13228
 
#include <signal.h>
13229
 
 
13230
 
int
13231
 
main ()
13232
 
{
13233
 
return *(signal (0, 0)) (0) == 1;
13234
 
  ;
13235
 
  return 0;
13236
 
}
13237
 
_ACEOF
13238
 
if ac_fn_c_try_compile "$LINENO"; then :
13239
 
  ac_cv_type_signal=int
13240
 
else
13241
 
  ac_cv_type_signal=void
13242
 
fi
13243
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244
 
fi
13245
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13246
 
$as_echo "$ac_cv_type_signal" >&6; }
13247
 
 
13248
 
cat >>confdefs.h <<_ACEOF
13249
 
#define RETSIGTYPE $ac_cv_type_signal
13250
 
_ACEOF
13251
 
 
13252
 
 
13253
 
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13254
 
if test "x$ac_cv_type_size_t" = x""yes; then :
13255
 
 
13256
 
else
13257
 
 
13258
 
cat >>confdefs.h <<_ACEOF
13259
 
#define size_t unsigned int
13260
 
_ACEOF
13261
 
 
13262
 
fi
13263
 
 
13264
 
for ac_func in vprintf
13265
 
do :
13266
 
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13267
 
if test "x$ac_cv_func_vprintf" = x""yes; then :
13268
 
  cat >>confdefs.h <<_ACEOF
13269
 
#define HAVE_VPRINTF 1
13270
 
_ACEOF
13271
 
 
13272
 
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13273
 
if test "x$ac_cv_func__doprnt" = x""yes; then :
13274
 
 
13275
 
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13276
 
 
13277
 
fi
13278
 
 
13279
 
fi
13280
 
done
13281
 
 
13282
 
 
13283
 
for ac_func in strerror
13284
 
do :
13285
 
  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13286
 
if test "x$ac_cv_func_strerror" = x""yes; then :
13287
 
  cat >>confdefs.h <<_ACEOF
13288
 
#define HAVE_STRERROR 1
13289
 
_ACEOF
13290
 
 
13291
 
fi
13292
 
done
13293
 
 
13294
 
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13295
 
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
13296
 
  ac_have_decl=1
13297
 
else
13298
 
  ac_have_decl=0
13299
 
fi
13300
 
 
13301
 
cat >>confdefs.h <<_ACEOF
13302
 
#define HAVE_DECL_STRERROR_R $ac_have_decl
13303
 
_ACEOF
13304
 
 
13305
 
for ac_func in strerror_r
13306
 
do :
13307
 
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13308
 
if test "x$ac_cv_func_strerror_r" = x""yes; then :
13309
 
  cat >>confdefs.h <<_ACEOF
13310
 
#define HAVE_STRERROR_R 1
13311
 
_ACEOF
13312
 
 
13313
 
fi
13314
 
done
13315
 
 
13316
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13317
 
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
13318
 
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
13319
 
  $as_echo_n "(cached) " >&6
13320
 
else
13321
 
 
13322
 
    ac_cv_func_strerror_r_char_p=no
13323
 
    if test $ac_cv_have_decl_strerror_r = yes; then
13324
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325
 
/* end confdefs.h.  */
13326
 
$ac_includes_default
13327
 
int
13328
 
main ()
13329
 
{
13330
 
 
13331
 
          char buf[100];
13332
 
          char x = *strerror_r (0, buf, sizeof buf);
13333
 
          char *p = strerror_r (0, buf, sizeof buf);
13334
 
          return !p || x;
13335
 
 
13336
 
  ;
13337
 
  return 0;
13338
 
}
13339
 
_ACEOF
13340
 
if ac_fn_c_try_compile "$LINENO"; then :
13341
 
  ac_cv_func_strerror_r_char_p=yes
13342
 
fi
13343
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344
 
    else
13345
 
      # strerror_r is not declared.  Choose between
13346
 
      # systems that have relatively inaccessible declarations for the
13347
 
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13348
 
      # former has a strerror_r that returns char*, while the latter
13349
 
      # has a strerror_r that returns `int'.
13350
 
      # This test should segfault on the DEC system.
13351
 
      if test "$cross_compiling" = yes; then :
13352
 
  :
13353
 
else
13354
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355
 
/* end confdefs.h.  */
13356
 
$ac_includes_default
13357
 
        extern char *strerror_r ();
13358
 
int
13359
 
main ()
13360
 
{
13361
 
char buf[100];
13362
 
          char x = *strerror_r (0, buf, sizeof buf);
13363
 
          return ! isalpha (x);
13364
 
  ;
13365
 
  return 0;
13366
 
}
13367
 
_ACEOF
13368
 
if ac_fn_c_try_run "$LINENO"; then :
13369
 
  ac_cv_func_strerror_r_char_p=yes
13370
 
fi
13371
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13372
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13373
 
fi
13374
 
 
13375
 
    fi
13376
 
 
13377
 
fi
13378
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13379
 
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13380
 
if test $ac_cv_func_strerror_r_char_p = yes; then
13381
 
 
13382
 
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13383
 
 
13384
 
fi
13385
 
 
13386
 
for ac_func in dladdr
13387
 
do :
13388
 
  ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13389
 
if test "x$ac_cv_func_dladdr" = x""yes; then :
13390
 
  cat >>confdefs.h <<_ACEOF
13391
 
#define HAVE_DLADDR 1
13392
 
_ACEOF
13393
 
 
13394
 
fi
13395
 
done
13396
 
 
13397
 
for ac_func in socket
13398
 
do :
13399
 
  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13400
 
if test "x$ac_cv_func_socket" = x""yes; then :
13401
 
  cat >>confdefs.h <<_ACEOF
13402
 
#define HAVE_SOCKET 1
13403
 
_ACEOF
13404
 
 
13405
 
fi
13406
 
done
13407
 
 
13408
 
for ac_func in strptime
13409
 
do :
13410
 
  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13411
 
if test "x$ac_cv_func_strptime" = x""yes; then :
13412
 
  cat >>confdefs.h <<_ACEOF
13413
 
#define HAVE_STRPTIME 1
13414
 
_ACEOF
13415
 
 
13416
 
fi
13417
 
done
13418
 
 
13419
 
for ac_func in fmtcheck
13420
 
do :
13421
 
  ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
13422
 
if test "x$ac_cv_func_fmtcheck" = x""yes; then :
13423
 
  cat >>confdefs.h <<_ACEOF
13424
 
#define HAVE_FMTCHECK 1
13425
 
_ACEOF
13426
 
 
13427
 
fi
13428
 
done
13429
 
 
13430
 
for ac_func in getdtablesize
13431
 
do :
13432
 
  ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13433
 
if test "x$ac_cv_func_getdtablesize" = x""yes; then :
13434
 
  cat >>confdefs.h <<_ACEOF
13435
 
#define HAVE_GETDTABLESIZE 1
13436
 
_ACEOF
13437
 
 
13438
 
fi
13439
 
done
13440
 
 
13441
 
for ac_func in abort2
13442
 
do :
13443
 
  ac_fn_c_check_func "$LINENO" "abort2" "ac_cv_func_abort2"
13444
 
if test "x$ac_cv_func_abort2" = x""yes; then :
13445
 
  cat >>confdefs.h <<_ACEOF
13446
 
#define HAVE_ABORT2 1
13447
 
_ACEOF
13448
 
 
13449
 
fi
13450
 
done
13451
 
 
13452
 
for ac_func in timegm
13453
 
do :
13454
 
  ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
13455
 
if test "x$ac_cv_func_timegm" = x""yes; then :
13456
 
  cat >>confdefs.h <<_ACEOF
13457
 
#define HAVE_TIMEGM 1
13458
 
_ACEOF
13459
 
 
13460
 
fi
13461
 
done
13462
 
 
13463
 
for ac_func in nanosleep
13464
 
do :
13465
 
  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13466
 
if test "x$ac_cv_func_nanosleep" = x""yes; then :
13467
 
  cat >>confdefs.h <<_ACEOF
13468
 
#define HAVE_NANOSLEEP 1
13469
 
_ACEOF
13470
 
 
13471
 
fi
13472
 
done
13473
 
 
13474
 
for ac_func in setppriv
13475
 
do :
13476
 
  ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
13477
 
if test "x$ac_cv_func_setppriv" = x""yes; then :
13478
 
  cat >>confdefs.h <<_ACEOF
13479
 
#define HAVE_SETPPRIV 1
13480
 
_ACEOF
13481
 
 
13482
 
fi
13483
 
done
13484
 
 
13485
 
 
13486
 
save_LIBS="${LIBS}"
13487
 
LIBS="${PTHREAD_LIBS}"
13488
 
for ac_func in pthread_set_name_np
13489
 
do :
13490
 
  ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
13491
 
if test "x$ac_cv_func_pthread_set_name_np" = x""yes; then :
13492
 
  cat >>confdefs.h <<_ACEOF
13493
 
#define HAVE_PTHREAD_SET_NAME_NP 1
13494
 
_ACEOF
13495
 
 
13496
 
fi
13497
 
done
13498
 
 
13499
 
for ac_func in pthread_mutex_isowned_np
13500
 
do :
13501
 
  ac_fn_c_check_func "$LINENO" "pthread_mutex_isowned_np" "ac_cv_func_pthread_mutex_isowned_np"
13502
 
if test "x$ac_cv_func_pthread_mutex_isowned_np" = x""yes; then :
13503
 
  cat >>confdefs.h <<_ACEOF
13504
 
#define HAVE_PTHREAD_MUTEX_ISOWNED_NP 1
13505
 
_ACEOF
13506
 
 
13507
 
fi
13508
 
done
13509
 
 
13510
 
LIBS="${save_LIBS}"
13511
 
 
13512
 
# sendfile is tricky: there are multiple versions, and most of them
13513
 
# don't work.
13514
 
case $target in
13515
 
*-*-freebsd*)
13516
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sendfile works" >&5
13517
 
$as_echo_n "checking whether sendfile works... " >&6; }
13518
 
if test "${ac_cv_so_sendfile_works+set}" = set; then :
13519
 
  $as_echo_n "(cached) " >&6
13520
 
else
13521
 
  if test "$cross_compiling" = yes; then :
13522
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13523
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13524
 
as_fn_error "cannot run test program while cross compiling
13525
 
See \`config.log' for more details." "$LINENO" 5; }
13526
 
else
13527
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528
 
/* end confdefs.h.  */
13529
 
 
13530
 
        #include <sys/types.h>
13531
 
        #include <sys/socket.h>
13532
 
        #include <sys/uio.h>
13533
 
 
13534
 
int
13535
 
main ()
13536
 
{
13537
 
 
13538
 
                return (SF_SYNC == 0);
13539
 
 
13540
 
  ;
13541
 
  return 0;
13542
 
}
13543
 
_ACEOF
13544
 
if ac_fn_c_try_run "$LINENO"; then :
13545
 
  ac_cv_so_sendfile_works=yes
13546
 
else
13547
 
  ac_cv_so_sendfile_works=no
13548
 
fi
13549
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13550
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13551
 
fi
13552
 
 
13553
 
 
13554
 
fi
13555
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_sendfile_works" >&5
13556
 
$as_echo "$ac_cv_so_sendfile_works" >&6; }
13557
 
        ;;
13558
 
#*-*-solaris*)
13559
 
#       save_LIBS="${LIBS}"
13560
 
#       LIBS="${NET_LIBS}"
13561
 
#       AC_CHECK_LIB(sendfile, sendfile)
13562
 
#       AC_CHECK_FUNCS([sendfile])
13563
 
#       AC_CHECK_FUNCS([sendfilev])
13564
 
#       NET_LIBS="${LIBS}"
13565
 
#       LIBS="${save_LIBS}"
13566
 
*)
13567
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: won't look for sendfile() on $target" >&5
13568
 
$as_echo "$as_me: WARNING: won't look for sendfile() on $target" >&2;}
13569
 
        ;;
13570
 
esac
13571
 
if test "$ac_cv_so_sendfile_works" = yes; then
13572
 
 
13573
 
$as_echo "#define SENDFILE_WORKS 1" >>confdefs.h
13574
 
 
13575
 
fi
13576
 
 
13577
 
# Userland slab allocator, available only on Solaris
13578
 
case $target in
13579
 
*-*-solaris*)
13580
 
        for ac_header in umem.h
13581
 
do :
13582
 
  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
13583
 
if test "x$ac_cv_header_umem_h" = x""yes; then :
13584
 
  cat >>confdefs.h <<_ACEOF
13585
 
#define HAVE_UMEM_H 1
13586
 
_ACEOF
13587
 
 
13588
 
fi
13589
 
 
13590
 
done
13591
 
 
13592
 
        if test "$ac_cv_have_umem_h" = yes; then
13593
 
                save_LIBS="${LIBS}"
13594
 
                LIBS=""
13595
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
13596
 
$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
13597
 
if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
13598
 
  $as_echo_n "(cached) " >&6
13599
 
else
13600
 
  ac_check_lib_save_LIBS=$LIBS
13601
 
LIBS="-lumem  $LIBS"
13602
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603
 
/* end confdefs.h.  */
13604
 
 
13605
 
/* Override any GCC internal prototype to avoid an error.
13606
 
   Use char because int might match the return type of a GCC
13607
 
   builtin and then its argument prototype would still apply.  */
13608
 
#ifdef __cplusplus
13609
 
extern "C"
13610
 
#endif
13611
 
char umem_alloc ();
13612
 
int
13613
 
main ()
13614
 
{
13615
 
return umem_alloc ();
13616
 
  ;
13617
 
  return 0;
13618
 
}
13619
 
_ACEOF
13620
 
if ac_fn_c_try_link "$LINENO"; then :
13621
 
  ac_cv_lib_umem_umem_alloc=yes
13622
 
else
13623
 
  ac_cv_lib_umem_umem_alloc=no
13624
 
fi
13625
 
rm -f core conftest.err conftest.$ac_objext \
13626
 
    conftest$ac_exeext conftest.$ac_ext
13627
 
LIBS=$ac_check_lib_save_LIBS
13628
 
fi
13629
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
13630
 
$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
13631
 
if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
13632
 
  cat >>confdefs.h <<_ACEOF
13633
 
#define HAVE_LIBUMEM 1
13634
 
_ACEOF
13635
 
 
13636
 
  LIBS="-lumem $LIBS"
13637
 
 
13638
 
fi
13639
 
 
13640
 
                LIBUMEM="${LIBS}"
13641
 
                LIBS="${save_LIBS}"
13642
 
        fi
13643
 
        ;;
13644
 
esac
13645
 
 
13646
 
 
13647
 
# These functions are provided by libcompat on platforms where they
13648
 
# are not available
13649
 
for ac_func in setproctitle
13650
 
do :
13651
 
  ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
13652
 
if test "x$ac_cv_func_setproctitle" = x""yes; then :
13653
 
  cat >>confdefs.h <<_ACEOF
13654
 
#define HAVE_SETPROCTITLE 1
13655
 
_ACEOF
13656
 
 
13657
 
fi
13658
 
done
13659
 
 
13660
 
for ac_func in srandomdev
13661
 
do :
13662
 
  ac_fn_c_check_func "$LINENO" "srandomdev" "ac_cv_func_srandomdev"
13663
 
if test "x$ac_cv_func_srandomdev" = x""yes; then :
13664
 
  cat >>confdefs.h <<_ACEOF
13665
 
#define HAVE_SRANDOMDEV 1
13666
 
_ACEOF
13667
 
 
13668
 
fi
13669
 
done
13670
 
 
13671
 
for ac_func in strlcat strlcpy
13672
 
do :
13673
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13674
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13675
 
eval as_val=\$$as_ac_var
13676
 
   if test "x$as_val" = x""yes; then :
13677
 
  cat >>confdefs.h <<_ACEOF
13678
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13679
 
_ACEOF
13680
 
 
13681
 
fi
13682
 
done
13683
 
 
13684
 
for ac_func in strndup
13685
 
do :
13686
 
  ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
13687
 
if test "x$ac_cv_func_strndup" = x""yes; then :
13688
 
  cat >>confdefs.h <<_ACEOF
13689
 
#define HAVE_STRNDUP 1
13690
 
_ACEOF
13691
 
 
13692
 
fi
13693
 
done
13694
 
 
13695
 
for ac_func in backtrace
13696
 
do :
13697
 
  ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13698
 
if test "x$ac_cv_func_backtrace" = x""yes; then :
13699
 
  cat >>confdefs.h <<_ACEOF
13700
 
#define HAVE_BACKTRACE 1
13701
 
_ACEOF
13702
 
 
13703
 
fi
13704
 
done
13705
 
 
13706
 
# white lie - we don't actually test it
13707
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether daemon() works" >&5
13708
 
$as_echo_n "checking whether daemon() works... " >&6; }
13709
 
case $target in
13710
 
*-*-darwin*)
13711
 
        # present but not functional
13712
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713
 
$as_echo "no" >&6; }
13714
 
        ac_cv_func_daemon=no
13715
 
        ;;
13716
 
*)
13717
 
        for ac_func in daemon
13718
 
do :
13719
 
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13720
 
if test "x$ac_cv_func_daemon" = x""yes; then :
13721
 
  cat >>confdefs.h <<_ACEOF
13722
 
#define HAVE_DAEMON 1
13723
 
_ACEOF
13724
 
 
13725
 
fi
13726
 
done
13727
 
 
13728
 
        ;;
13729
 
esac
13730
 
 
13731
 
# Check whether --enable-largefile was given.
13732
 
if test "${enable_largefile+set}" = set; then :
13733
 
  enableval=$enable_largefile;
13734
 
fi
13735
 
 
13736
 
if test "$enable_largefile" != no; then
13737
 
 
13738
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13739
 
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13740
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
13741
 
  $as_echo_n "(cached) " >&6
13742
 
else
13743
 
  ac_cv_sys_largefile_CC=no
13744
 
     if test "$GCC" != yes; then
13745
 
       ac_save_CC=$CC
13746
 
       while :; do
13747
 
         # IRIX 6.2 and later do not support large files by default,
13748
 
         # so use the C compiler's -n32 option if that helps.
13749
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750
 
/* end confdefs.h.  */
13751
 
#include <sys/types.h>
13752
 
 /* Check that off_t can represent 2**63 - 1 correctly.
13753
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13754
 
    since some C++ compilers masquerading as C compilers
13755
 
    incorrectly reject 9223372036854775807.  */
13756
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13757
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13758
 
                       && LARGE_OFF_T % 2147483647 == 1)
13759
 
                      ? 1 : -1];
13760
 
int
13761
 
main ()
13762
 
{
13763
 
 
13764
 
  ;
13765
 
  return 0;
13766
 
}
13767
 
_ACEOF
13768
 
         if ac_fn_c_try_compile "$LINENO"; then :
13769
 
  break
13770
 
fi
13771
 
rm -f core conftest.err conftest.$ac_objext
13772
 
         CC="$CC -n32"
13773
 
         if ac_fn_c_try_compile "$LINENO"; then :
13774
 
  ac_cv_sys_largefile_CC=' -n32'; break
13775
 
fi
13776
 
rm -f core conftest.err conftest.$ac_objext
13777
 
         break
13778
 
       done
13779
 
       CC=$ac_save_CC
13780
 
       rm -f conftest.$ac_ext
13781
 
    fi
13782
 
fi
13783
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13784
 
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13785
 
  if test "$ac_cv_sys_largefile_CC" != no; then
13786
 
    CC=$CC$ac_cv_sys_largefile_CC
13787
 
  fi
13788
 
 
13789
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13790
 
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13791
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
13792
 
  $as_echo_n "(cached) " >&6
13793
 
else
13794
 
  while :; do
13795
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796
 
/* end confdefs.h.  */
13797
 
#include <sys/types.h>
13798
 
 /* Check that off_t can represent 2**63 - 1 correctly.
13799
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13800
 
    since some C++ compilers masquerading as C compilers
13801
 
    incorrectly reject 9223372036854775807.  */
13802
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13803
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13804
 
                       && LARGE_OFF_T % 2147483647 == 1)
13805
 
                      ? 1 : -1];
13806
 
int
13807
 
main ()
13808
 
{
13809
 
 
13810
 
  ;
13811
 
  return 0;
13812
 
}
13813
 
_ACEOF
13814
 
if ac_fn_c_try_compile "$LINENO"; then :
13815
 
  ac_cv_sys_file_offset_bits=no; break
13816
 
fi
13817
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819
 
/* end confdefs.h.  */
13820
 
#define _FILE_OFFSET_BITS 64
13821
 
#include <sys/types.h>
13822
 
 /* Check that off_t can represent 2**63 - 1 correctly.
13823
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13824
 
    since some C++ compilers masquerading as C compilers
13825
 
    incorrectly reject 9223372036854775807.  */
13826
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13827
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13828
 
                       && LARGE_OFF_T % 2147483647 == 1)
13829
 
                      ? 1 : -1];
13830
 
int
13831
 
main ()
13832
 
{
13833
 
 
13834
 
  ;
13835
 
  return 0;
13836
 
}
13837
 
_ACEOF
13838
 
if ac_fn_c_try_compile "$LINENO"; then :
13839
 
  ac_cv_sys_file_offset_bits=64; break
13840
 
fi
13841
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842
 
  ac_cv_sys_file_offset_bits=unknown
13843
 
  break
13844
 
done
13845
 
fi
13846
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13847
 
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13848
 
case $ac_cv_sys_file_offset_bits in #(
13849
 
  no | unknown) ;;
13850
 
  *)
13851
 
cat >>confdefs.h <<_ACEOF
13852
 
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13853
 
_ACEOF
13854
 
;;
13855
 
esac
13856
 
rm -rf conftest*
13857
 
  if test $ac_cv_sys_file_offset_bits = unknown; then
13858
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13859
 
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13860
 
if test "${ac_cv_sys_large_files+set}" = set; then :
13861
 
  $as_echo_n "(cached) " >&6
13862
 
else
13863
 
  while :; do
13864
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865
 
/* end confdefs.h.  */
13866
 
#include <sys/types.h>
13867
 
 /* Check that off_t can represent 2**63 - 1 correctly.
13868
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13869
 
    since some C++ compilers masquerading as C compilers
13870
 
    incorrectly reject 9223372036854775807.  */
13871
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13872
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13873
 
                       && LARGE_OFF_T % 2147483647 == 1)
13874
 
                      ? 1 : -1];
13875
 
int
13876
 
main ()
13877
 
{
13878
 
 
13879
 
  ;
13880
 
  return 0;
13881
 
}
13882
 
_ACEOF
13883
 
if ac_fn_c_try_compile "$LINENO"; then :
13884
 
  ac_cv_sys_large_files=no; break
13885
 
fi
13886
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888
 
/* end confdefs.h.  */
13889
 
#define _LARGE_FILES 1
13890
 
#include <sys/types.h>
13891
 
 /* Check that off_t can represent 2**63 - 1 correctly.
13892
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13893
 
    since some C++ compilers masquerading as C compilers
13894
 
    incorrectly reject 9223372036854775807.  */
13895
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13896
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13897
 
                       && LARGE_OFF_T % 2147483647 == 1)
13898
 
                      ? 1 : -1];
13899
 
int
13900
 
main ()
13901
 
{
13902
 
 
13903
 
  ;
13904
 
  return 0;
13905
 
}
13906
 
_ACEOF
13907
 
if ac_fn_c_try_compile "$LINENO"; then :
13908
 
  ac_cv_sys_large_files=1; break
13909
 
fi
13910
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911
 
  ac_cv_sys_large_files=unknown
13912
 
  break
13913
 
done
13914
 
fi
13915
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13916
 
$as_echo "$ac_cv_sys_large_files" >&6; }
13917
 
case $ac_cv_sys_large_files in #(
13918
 
  no | unknown) ;;
13919
 
  *)
13920
 
cat >>confdefs.h <<_ACEOF
13921
 
#define _LARGE_FILES $ac_cv_sys_large_files
13922
 
_ACEOF
13923
 
;;
13924
 
esac
13925
 
rm -rf conftest*
13926
 
  fi
13927
 
fi
13928
 
 
13929
 
 
13930
 
save_LIBS="${LIBS}"
13931
 
LIBS="${LIBS} ${RT_LIBS}"
13932
 
for ac_func in clock_gettime
13933
 
do :
13934
 
  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13935
 
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
13936
 
  cat >>confdefs.h <<_ACEOF
13937
 
#define HAVE_CLOCK_GETTIME 1
13938
 
_ACEOF
13939
 
 
13940
 
fi
13941
 
done
13942
 
 
13943
 
for ac_func in gethrtime
13944
 
do :
13945
 
  ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
13946
 
if test "x$ac_cv_func_gethrtime" = x""yes; then :
13947
 
  cat >>confdefs.h <<_ACEOF
13948
 
#define HAVE_GETHRTIME 1
13949
 
_ACEOF
13950
 
 
13951
 
fi
13952
 
done
13953
 
 
13954
 
LIBS="${save_LIBS}"
13955
 
 
13956
 
# Check which mechanism to use for the acceptor.  We look for kqueue
13957
 
# only on platforms on which we know that it works, because there are
13958
 
# platforms where a simple AC_CHECK_FUNCS([kqueue]) would succeed but
13959
 
# the build would fail.  We also allow the user to disable mechanisms
13960
 
# he doesn't want to use.
13961
 
 
13962
 
# --enable-kqueue
13963
 
# Check whether --enable-kqueue was given.
13964
 
if test "${enable_kqueue+set}" = set; then :
13965
 
  enableval=$enable_kqueue;
13966
 
else
13967
 
  enable_kqueue=yes
13968
 
fi
13969
 
 
13970
 
 
13971
 
if test "$enable_kqueue" = yes; then
13972
 
        case $target in
13973
 
        *-*-freebsd* | *-*-darwin9* )
13974
 
                for ac_func in kqueue
13975
 
do :
13976
 
  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13977
 
if test "x$ac_cv_func_kqueue" = x""yes; then :
13978
 
  cat >>confdefs.h <<_ACEOF
13979
 
#define HAVE_KQUEUE 1
13980
 
_ACEOF
13981
 
 
13982
 
fi
13983
 
done
13984
 
 
13985
 
                ;;
13986
 
        *-*-bsd*)
13987
 
                # No other BSD has a sufficiently recent implementation
13988
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: won't look for kqueue() on $target" >&5
13989
 
$as_echo "$as_me: WARNING: won't look for kqueue() on $target" >&2;}
13990
 
                ac_cv_func_kqueue=no
13991
 
                ;;
13992
 
        esac
13993
 
else
13994
 
        ac_cv_func_kqueue=no
13995
 
fi
13996
 
 
13997
 
# --enable-epoll
13998
 
# Check whether --enable-epoll was given.
13999
 
if test "${enable_epoll+set}" = set; then :
14000
 
  enableval=$enable_epoll;
14001
 
else
14002
 
  enable_epoll=yes
14003
 
fi
14004
 
 
14005
 
 
14006
 
if test "$enable_epoll" = yes; then
14007
 
        for ac_func in epoll_ctl
14008
 
do :
14009
 
  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
14010
 
if test "x$ac_cv_func_epoll_ctl" = x""yes; then :
14011
 
  cat >>confdefs.h <<_ACEOF
14012
 
#define HAVE_EPOLL_CTL 1
14013
 
_ACEOF
14014
 
 
14015
 
fi
14016
 
done
14017
 
 
14018
 
else
14019
 
        ac_cv_func_epoll_ctl=no
14020
 
fi
14021
 
 
14022
 
# --enable-ports
14023
 
# Check whether --enable-ports was given.
14024
 
if test "${enable_ports+set}" = set; then :
14025
 
  enableval=$enable_ports;
14026
 
else
14027
 
  enable_ports=yes
14028
 
fi
14029
 
 
14030
 
 
14031
 
if test "$enable_ports" = yes; then
14032
 
        for ac_func in port_create
14033
 
do :
14034
 
  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14035
 
if test "x$ac_cv_func_port_create" = x""yes; then :
14036
 
  cat >>confdefs.h <<_ACEOF
14037
 
#define HAVE_PORT_CREATE 1
14038
 
_ACEOF
14039
 
 
14040
 
fi
14041
 
done
14042
 
 
14043
 
else
14044
 
        ac_cv_func_port_create=no
14045
 
fi
14046
 
 
14047
 
if test x"${MISSING+set}" != xset; then
14048
 
  case $am_aux_dir in
14049
 
  *\ * | *\     *)
14050
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14051
 
  *)
14052
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
14053
 
  esac
14054
 
fi
14055
 
# Use eval to expand $SHELL
14056
 
if eval "$MISSING --run true"; then
14057
 
  am_missing_run="$MISSING --run "
14058
 
else
14059
 
  am_missing_run=
14060
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14061
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14062
 
fi
14063
 
 
14064
 
for ac_prog in tclsh tclsh8.4 tclsh8.5
14065
 
do
14066
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
14067
 
set dummy $ac_prog; ac_word=$2
14068
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069
 
$as_echo_n "checking for $ac_word... " >&6; }
14070
 
if test "${ac_cv_prog_TCLSH+set}" = set; then :
14071
 
  $as_echo_n "(cached) " >&6
14072
 
else
14073
 
  if test -n "$TCLSH"; then
14074
 
  ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
14075
 
else
14076
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077
 
for as_dir in $PATH
14078
 
do
14079
 
  IFS=$as_save_IFS
14080
 
  test -z "$as_dir" && as_dir=.
14081
 
    for ac_exec_ext in '' $ac_executable_extensions; do
14082
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14083
 
    ac_cv_prog_TCLSH="$ac_prog"
14084
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085
 
    break 2
14086
 
  fi
14087
 
done
14088
 
  done
14089
 
IFS=$as_save_IFS
14090
 
 
14091
 
fi
14092
 
fi
14093
 
TCLSH=$ac_cv_prog_TCLSH
14094
 
if test -n "$TCLSH"; then
14095
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
14096
 
$as_echo "$TCLSH" >&6; }
14097
 
else
14098
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099
 
$as_echo "no" >&6; }
14100
 
fi
14101
 
 
14102
 
 
14103
 
  test -n "$TCLSH" && break
14104
 
done
14105
 
test -n "$TCLSH" || TCLSH=":"
14106
 
 
14107
 
if test "$TCLSH" = :; then
14108
 
  TCLSH="${am_missing_run}tclsh"
14109
 
fi
14110
 
 
14111
 
# Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
14112
 
# Varnish will build and run without these, but connections will not
14113
 
# time out, which may leave Varnish vulnerable to denail-of-service
14114
 
# attacks which would not be possible on other platforms.
14115
 
 
14116
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SO_RCVTIMEO works" >&5
14117
 
$as_echo_n "checking whether SO_RCVTIMEO works... " >&6; }
14118
 
if test "${ac_cv_so_rcvtimeo_works+set}" = set; then :
14119
 
  $as_echo_n "(cached) " >&6
14120
 
else
14121
 
  if test "$cross_compiling" = yes; then :
14122
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14123
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14124
 
as_fn_error "cannot run test program while cross compiling
14125
 
See \`config.log' for more details." "$LINENO" 5; }
14126
 
else
14127
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128
 
/* end confdefs.h.  */
14129
 
 
14130
 
#include <sys/types.h>
14131
 
#include <sys/socket.h>
14132
 
#include <sys/time.h>
14133
 
 
14134
 
int
14135
 
main ()
14136
 
{
14137
 
 
14138
 
int sd = socket(AF_INET, SOCK_STREAM, 0);
14139
 
struct timeval tv = { 1, 0 };
14140
 
return !!setsockopt(sd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof tv);
14141
 
 
14142
 
  ;
14143
 
  return 0;
14144
 
}
14145
 
_ACEOF
14146
 
if ac_fn_c_try_run "$LINENO"; then :
14147
 
  ac_cv_so_rcvtimeo_works=yes
14148
 
else
14149
 
  ac_cv_so_rcvtimeo_works=no
14150
 
fi
14151
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14152
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14153
 
fi
14154
 
 
14155
 
 
14156
 
fi
14157
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_rcvtimeo_works" >&5
14158
 
$as_echo "$ac_cv_so_rcvtimeo_works" >&6; }
14159
 
if test "$ac_cv_so_rcvtimeo_works" = yes; then
14160
 
 
14161
 
$as_echo "#define SO_RCVTIMEO_WORKS 1" >>confdefs.h
14162
 
 
14163
 
fi
14164
 
 
14165
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SO_SNDTIMEO works" >&5
14166
 
$as_echo_n "checking whether SO_SNDTIMEO works... " >&6; }
14167
 
if test "${ac_cv_so_sndtimeo_works+set}" = set; then :
14168
 
  $as_echo_n "(cached) " >&6
14169
 
else
14170
 
  if test "$cross_compiling" = yes; then :
14171
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14172
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14173
 
as_fn_error "cannot run test program while cross compiling
14174
 
See \`config.log' for more details." "$LINENO" 5; }
14175
 
else
14176
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177
 
/* end confdefs.h.  */
14178
 
 
14179
 
#include <sys/types.h>
14180
 
#include <sys/socket.h>
14181
 
#include <sys/time.h>
14182
 
 
14183
 
int
14184
 
main ()
14185
 
{
14186
 
 
14187
 
int sd = socket(AF_INET, SOCK_STREAM, 0);
14188
 
struct timeval tv = { 1, 0 };
14189
 
return !!setsockopt(sd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof tv);
14190
 
 
14191
 
  ;
14192
 
  return 0;
14193
 
}
14194
 
_ACEOF
14195
 
if ac_fn_c_try_run "$LINENO"; then :
14196
 
  ac_cv_so_sndtimeo_works=yes
14197
 
else
14198
 
  ac_cv_so_sndtimeo_works=no
14199
 
fi
14200
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14201
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14202
 
fi
14203
 
 
14204
 
 
14205
 
fi
14206
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_sndtimeo_works" >&5
14207
 
$as_echo "$ac_cv_so_sndtimeo_works" >&6; }
14208
 
if test "$ac_cv_so_sndtimeo_works" = yes; then
14209
 
 
14210
 
$as_echo "#define SO_SNDTIMEO_WORKS 1" >>confdefs.h
14211
 
 
14212
 
fi
14213
 
 
14214
 
if test "$ac_cv_so_rcvtimeo_works" = no ||
14215
 
   test "$ac_cv_so_sndtimeo_works" = no; then
14216
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: connection timeouts will not work" >&5
14217
 
$as_echo "$as_me: WARNING: connection timeouts will not work" >&2;}
14218
 
fi
14219
 
 
14220
 
# Run-time directory
14221
 
VARNISH_STATE_DIR='${localstatedir}/varnish'
14222
 
 
14223
 
 
14224
 
# Default configuration directory.
14225
 
varnishconfdir='${sysconfdir}/varnish'
14226
 
 
14227
 
# Now that we're done using the compiler to look for functions and
14228
 
# libraries, set CFLAGS to what we want them to be for our own code
14229
 
 
14230
 
# This corresponds to FreeBSD's WARNS level 6
14231
 
DEVELOPER_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
14232
 
 
14233
 
# Additional flags for GCC 4
14234
 
EXTRA_DEVELOPER_CFLAGS="-Wextra -Wno-missing-field-initializers -Wno-sign-compare"
14235
 
 
14236
 
# --enable-developer-warnings
14237
 
# Check whether --enable-developer-warnings was given.
14238
 
if test "${enable_developer_warnings+set}" = set; then :
14239
 
  enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
14240
 
fi
14241
 
 
14242
 
 
14243
 
# --enable-debugging-symbols
14244
 
# Check whether --enable-debugging-symbols was given.
14245
 
if test "${enable_debugging_symbols+set}" = set; then :
14246
 
  enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
14247
 
fi
14248
 
 
14249
 
 
14250
 
# --enable-diagnostics
14251
 
# Check whether --enable-diagnostics was given.
14252
 
if test "${enable_diagnostics+set}" = set; then :
14253
 
  enableval=$enable_diagnostics; CFLAGS="${CFLAGS} -DDIAGNOSTICS"
14254
 
fi
14255
 
 
14256
 
 
14257
 
# --enable-extra-developer-warnings
14258
 
# Check whether --enable-extra-developer-warnings was given.
14259
 
if test "${enable_extra_developer_warnings+set}" = set; then :
14260
 
  enableval=$enable_extra_developer_warnings; CFLAGS="${CFLAGS} ${EXTRA_DEVELOPER_CFLAGS}"
14261
 
fi
14262
 
 
14263
 
 
14264
 
# --enable-stack-protector
14265
 
# Check whether --enable-stack-protector was given.
14266
 
if test "${enable_stack_protector+set}" = set; then :
14267
 
  enableval=$enable_stack_protector; CFLAGS="${CFLAGS} -fstack-protector-all"
14268
 
fi
14269
 
 
14270
 
 
14271
 
# --enable-tests
14272
 
# Check whether --enable-tests was given.
14273
 
if test "${enable_tests+set}" = set; then :
14274
 
  enableval=$enable_tests;
14275
 
fi
14276
 
 
14277
 
 if test x$enable_tests = xyes; then
14278
 
  ENABLE_TESTS_TRUE=
14279
 
  ENABLE_TESTS_FALSE='#'
14280
 
else
14281
 
  ENABLE_TESTS_TRUE='#'
14282
 
  ENABLE_TESTS_FALSE=
14283
 
fi
14284
 
 
14285
 
 
14286
 
# --enable-werror
14287
 
# Check whether --enable-werror was given.
14288
 
if test "${enable_werror+set}" = set; then :
14289
 
  enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
14290
 
fi
14291
 
 
14292
 
 
14293
 
# Command line for compiling VCL code.  I wish there were a simple way
14294
 
# to figure this out dynamically without introducing a run-time
14295
 
# dependency on libtool.
14296
 
 
14297
 
if test "$ac_cv_env_VCC_CC_set" = "set"; then
14298
 
        VCC_CC="$ac_cv_env_VCC_CC_value"
14299
 
else
14300
 
        case $target in
14301
 
        *-*-solaris*)
14302
 
                VCC_CC="cc -Kpic -G -o %o %s"
14303
 
                ;;
14304
 
        *-*-darwin*)
14305
 
                VCC_CC="exec cc -dynamiclib -Wl,-undefined,dynamic_lookup -o %o %s"
14306
 
                ;;
14307
 
        *)
14308
 
                VCC_CC="exec cc -fpic -shared -Wl,-x -o %o %s"
14309
 
                ;;
14310
 
        esac
14311
 
fi
14312
 
 
14313
 
cat >>confdefs.h <<_ACEOF
14314
 
#define VCC_CC "$VCC_CC"
14315
 
_ACEOF
14316
 
 
14317
 
 
14318
 
# Use jemalloc on Linux
14319
 
JEMALLOC_SUBDIR=
14320
 
JEMALLOC_LDADD=
14321
 
# Check whether --enable-jemalloc was given.
14322
 
if test "${enable_jemalloc+set}" = set; then :
14323
 
  enableval=$enable_jemalloc; if "x$enableval" = "xyes"; then
14324
 
        JEMALLOC_SUBDIR=libjemalloc
14325
 
        JEMALLOC_LDADD='$(top_builddir)/lib/libjemalloc/libjemalloc_mt.la'
14326
 
fi
14327
 
else
14328
 
  case $target in #(
14329
 
*-*-linux*)
14330
 
        JEMALLOC_SUBDIR=libjemalloc
14331
 
        JEMALLOC_LDADD='$(top_builddir)/lib/libjemalloc/libjemalloc_mt.la'
14332
 
        ;; #(
14333
 
*)
14334
 
        true
14335
 
        ;;
14336
 
esac
14337
 
fi
14338
 
 
14339
 
 
14340
 
 
14341
 
 
14342
 
 
14343
 
# Generate output
14344
 
ac_config_files="$ac_config_files Makefile bin/Makefile bin/varnishadm/Makefile bin/varnishd/Makefile bin/varnishlog/Makefile bin/varnishhist/Makefile bin/varnishncsa/Makefile bin/varnishreplay/Makefile bin/varnishstat/Makefile bin/varnishsizes/Makefile bin/varnishtest/Makefile bin/varnishtop/Makefile doc/Makefile etc/Makefile include/Makefile lib/Makefile lib/libvarnish/Makefile lib/libvarnishapi/Makefile lib/libvarnishcompat/Makefile lib/libvcl/Makefile lib/libjemalloc/Makefile man/Makefile redhat/Makefile varnishapi.pc"
14345
 
 
14346
 
cat >confcache <<\_ACEOF
14347
 
# This file is a shell script that caches the results of configure
14348
 
# tests run on this system so they can be shared between configure
14349
 
# scripts and configure runs, see configure's option --config-cache.
14350
 
# It is not useful on other systems.  If it contains results you don't
14351
 
# want to keep, you may remove or edit it.
14352
 
#
14353
 
# config.status only pays attention to the cache file if you give it
14354
 
# the --recheck option to rerun configure.
14355
 
#
14356
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14357
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14358
 
# following values.
14359
 
 
14360
 
_ACEOF
14361
 
 
14362
 
# The following way of writing the cache mishandles newlines in values,
14363
 
# but we know of no workaround that is simple, portable, and efficient.
14364
 
# So, we kill variables containing newlines.
14365
 
# Ultrix sh set writes to stderr and can't be redirected directly,
14366
 
# and sets the high bit in the cache file unless we assign to the vars.
14367
 
(
14368
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14369
 
    eval ac_val=\$$ac_var
14370
 
    case $ac_val in #(
14371
 
    *${as_nl}*)
14372
 
      case $ac_var in #(
14373
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14374
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14375
 
      esac
14376
 
      case $ac_var in #(
14377
 
      _ | IFS | as_nl) ;; #(
14378
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14379
 
      *) { eval $ac_var=; unset $ac_var;} ;;
14380
 
      esac ;;
14381
 
    esac
14382
 
  done
14383
 
 
14384
 
  (set) 2>&1 |
14385
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14386
 
    *${as_nl}ac_space=\ *)
14387
 
      # `set' does not quote correctly, so add quotes: double-quote
14388
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
14389
 
      sed -n \
14390
 
        "s/'/'\\\\''/g;
14391
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14392
 
      ;; #(
14393
 
    *)
14394
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14395
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14396
 
      ;;
14397
 
    esac |
14398
 
    sort
14399
 
) |
14400
 
  sed '
14401
 
     /^ac_cv_env_/b end
14402
 
     t clear
14403
 
     :clear
14404
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14405
 
     t end
14406
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14407
 
     :end' >>confcache
14408
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14409
 
  if test -w "$cache_file"; then
14410
 
    test "x$cache_file" != "x/dev/null" &&
14411
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14412
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
14413
 
    cat confcache >$cache_file
14414
 
  else
14415
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14416
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14417
 
  fi
14418
 
fi
14419
 
rm -f confcache
14420
 
 
14421
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14422
 
# Let make expand exec_prefix.
14423
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14424
 
 
14425
 
DEFS=-DHAVE_CONFIG_H
14426
 
 
14427
 
ac_libobjs=
14428
 
ac_ltlibobjs=
14429
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14430
 
  # 1. Remove the extension, and $U if already installed.
14431
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14432
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14433
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14434
 
  #    will be set to the directory where LIBOBJS objects are built.
14435
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14436
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14437
 
done
14438
 
LIBOBJS=$ac_libobjs
14439
 
 
14440
 
LTLIBOBJS=$ac_ltlibobjs
14441
 
 
14442
 
 
14443
 
 if test -n "$EXEEXT"; then
14444
 
  am__EXEEXT_TRUE=
14445
 
  am__EXEEXT_FALSE='#'
14446
 
else
14447
 
  am__EXEEXT_TRUE='#'
14448
 
  am__EXEEXT_FALSE=
14449
 
fi
14450
 
 
14451
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14452
 
  as_fn_error "conditional \"AMDEP\" was never defined.
14453
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14454
 
fi
14455
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14456
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14457
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14458
 
fi
14459
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14460
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14461
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14462
 
fi
14463
 
if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
14464
 
  as_fn_error "conditional \"HAVE_XSLTPROC\" was never defined.
14465
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14466
 
fi
14467
 
if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
14468
 
  as_fn_error "conditional \"HAVE_CURSES\" was never defined.
14469
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14470
 
fi
14471
 
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
14472
 
  as_fn_error "conditional \"ENABLE_TESTS\" was never defined.
14473
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14474
 
fi
14475
 
 
14476
 
: ${CONFIG_STATUS=./config.status}
14477
 
ac_write_fail=0
14478
 
ac_clean_files_save=$ac_clean_files
14479
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14480
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14481
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14482
 
as_write_fail=0
14483
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14484
 
#! $SHELL
14485
 
# Generated by $as_me.
14486
 
# Run this file to recreate the current configuration.
14487
 
# Compiler output produced by configure, useful for debugging
14488
 
# configure, is in config.log if it exists.
14489
 
 
14490
 
debug=false
14491
 
ac_cs_recheck=false
14492
 
ac_cs_silent=false
14493
 
 
14494
 
SHELL=\${CONFIG_SHELL-$SHELL}
14495
 
export SHELL
14496
 
_ASEOF
14497
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14498
 
## -------------------- ##
14499
 
## M4sh Initialization. ##
14500
 
## -------------------- ##
14501
 
 
14502
 
# Be more Bourne compatible
14503
 
DUALCASE=1; export DUALCASE # for MKS sh
14504
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14505
 
  emulate sh
14506
 
  NULLCMD=:
14507
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14508
 
  # is contrary to our usage.  Disable this feature.
14509
 
  alias -g '${1+"$@"}'='"$@"'
14510
 
  setopt NO_GLOB_SUBST
14511
 
else
14512
 
  case `(set -o) 2>/dev/null` in #(
14513
 
  *posix*) :
14514
 
    set -o posix ;; #(
14515
 
  *) :
14516
 
     ;;
14517
 
esac
14518
 
fi
14519
 
 
14520
 
 
14521
 
as_nl='
14522
 
'
14523
 
export as_nl
14524
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14525
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14526
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14527
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14528
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
14529
 
# but without wasting forks for bash or zsh.
14530
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
14531
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14532
 
  as_echo='print -r --'
14533
 
  as_echo_n='print -rn --'
14534
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14535
 
  as_echo='printf %s\n'
14536
 
  as_echo_n='printf %s'
14537
 
else
14538
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14539
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14540
 
    as_echo_n='/usr/ucb/echo -n'
14541
 
  else
14542
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14543
 
    as_echo_n_body='eval
14544
 
      arg=$1;
14545
 
      case $arg in #(
14546
 
      *"$as_nl"*)
14547
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
14548
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14549
 
      esac;
14550
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14551
 
    '
14552
 
    export as_echo_n_body
14553
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
14554
 
  fi
14555
 
  export as_echo_body
14556
 
  as_echo='sh -c $as_echo_body as_echo'
14557
 
fi
14558
 
 
14559
 
# The user is always right.
14560
 
if test "${PATH_SEPARATOR+set}" != set; then
14561
 
  PATH_SEPARATOR=:
14562
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14563
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14564
 
      PATH_SEPARATOR=';'
14565
 
  }
14566
 
fi
14567
 
 
14568
 
 
14569
 
# IFS
14570
 
# We need space, tab and new line, in precisely that order.  Quoting is
14571
 
# there to prevent editors from complaining about space-tab.
14572
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14573
 
# splitting by setting IFS to empty value.)
14574
 
IFS=" ""        $as_nl"
14575
 
 
14576
 
# Find who we are.  Look in the path if we contain no directory separator.
14577
 
case $0 in #((
14578
 
  *[\\/]* ) as_myself=$0 ;;
14579
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580
 
for as_dir in $PATH
14581
 
do
14582
 
  IFS=$as_save_IFS
14583
 
  test -z "$as_dir" && as_dir=.
14584
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14585
 
  done
14586
 
IFS=$as_save_IFS
14587
 
 
14588
 
     ;;
14589
 
esac
14590
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
14591
 
# in which case we are not to be found in the path.
14592
 
if test "x$as_myself" = x; then
14593
 
  as_myself=$0
14594
 
fi
14595
 
if test ! -f "$as_myself"; then
14596
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14597
 
  exit 1
14598
 
fi
14599
 
 
14600
 
# Unset variables that we do not need and which cause bugs (e.g. in
14601
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14602
 
# suppresses any "Segmentation fault" message there.  '((' could
14603
 
# trigger a bug in pdksh 5.2.14.
14604
 
for as_var in BASH_ENV ENV MAIL MAILPATH
14605
 
do eval test x\${$as_var+set} = xset \
14606
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14607
 
done
14608
 
PS1='$ '
14609
 
PS2='> '
14610
 
PS4='+ '
14611
 
 
14612
 
# NLS nuisances.
14613
 
LC_ALL=C
14614
 
export LC_ALL
14615
 
LANGUAGE=C
14616
 
export LANGUAGE
14617
 
 
14618
 
# CDPATH.
14619
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14620
 
 
14621
 
 
14622
 
# as_fn_error ERROR [LINENO LOG_FD]
14623
 
# ---------------------------------
14624
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14625
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14626
 
# script with status $?, using 1 if that was 0.
14627
 
as_fn_error ()
14628
 
{
14629
 
  as_status=$?; test $as_status -eq 0 && as_status=1
14630
 
  if test "$3"; then
14631
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14632
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14633
 
  fi
14634
 
  $as_echo "$as_me: error: $1" >&2
14635
 
  as_fn_exit $as_status
14636
 
} # as_fn_error
14637
 
 
14638
 
 
14639
 
# as_fn_set_status STATUS
14640
 
# -----------------------
14641
 
# Set $? to STATUS, without forking.
14642
 
as_fn_set_status ()
14643
 
{
14644
 
  return $1
14645
 
} # as_fn_set_status
14646
 
 
14647
 
# as_fn_exit STATUS
14648
 
# -----------------
14649
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14650
 
as_fn_exit ()
14651
 
{
14652
 
  set +e
14653
 
  as_fn_set_status $1
14654
 
  exit $1
14655
 
} # as_fn_exit
14656
 
 
14657
 
# as_fn_unset VAR
14658
 
# ---------------
14659
 
# Portably unset VAR.
14660
 
as_fn_unset ()
14661
 
{
14662
 
  { eval $1=; unset $1;}
14663
 
}
14664
 
as_unset=as_fn_unset
14665
 
# as_fn_append VAR VALUE
14666
 
# ----------------------
14667
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
14668
 
# advantage of any shell optimizations that allow amortized linear growth over
14669
 
# repeated appends, instead of the typical quadratic growth present in naive
14670
 
# implementations.
14671
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14672
 
  eval 'as_fn_append ()
14673
 
  {
14674
 
    eval $1+=\$2
14675
 
  }'
14676
 
else
14677
 
  as_fn_append ()
14678
 
  {
14679
 
    eval $1=\$$1\$2
14680
 
  }
14681
 
fi # as_fn_append
14682
 
 
14683
 
# as_fn_arith ARG...
14684
 
# ------------------
14685
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
14686
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14687
 
# must be portable across $(()) and expr.
14688
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14689
 
  eval 'as_fn_arith ()
14690
 
  {
14691
 
    as_val=$(( $* ))
14692
 
  }'
14693
 
else
14694
 
  as_fn_arith ()
14695
 
  {
14696
 
    as_val=`expr "$@" || test $? -eq 1`
14697
 
  }
14698
 
fi # as_fn_arith
14699
 
 
14700
 
 
14701
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
14702
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14703
 
  as_expr=expr
14704
 
else
14705
 
  as_expr=false
14706
 
fi
14707
 
 
14708
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14709
 
  as_basename=basename
14710
 
else
14711
 
  as_basename=false
14712
 
fi
14713
 
 
14714
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14715
 
  as_dirname=dirname
14716
 
else
14717
 
  as_dirname=false
14718
 
fi
14719
 
 
14720
 
as_me=`$as_basename -- "$0" ||
14721
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14722
 
         X"$0" : 'X\(//\)$' \| \
14723
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14724
 
$as_echo X/"$0" |
14725
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14726
 
            s//\1/
14727
 
            q
14728
 
          }
14729
 
          /^X\/\(\/\/\)$/{
14730
 
            s//\1/
14731
 
            q
14732
 
          }
14733
 
          /^X\/\(\/\).*/{
14734
 
            s//\1/
14735
 
            q
14736
 
          }
14737
 
          s/.*/./; q'`
14738
 
 
14739
 
# Avoid depending upon Character Ranges.
14740
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14741
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14742
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14743
 
as_cr_digits='0123456789'
14744
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
14745
 
 
14746
 
ECHO_C= ECHO_N= ECHO_T=
14747
 
case `echo -n x` in #(((((
14748
 
-n*)
14749
 
  case `echo 'xy\c'` in
14750
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14751
 
  xy)  ECHO_C='\c';;
14752
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14753
 
       ECHO_T=' ';;
14754
 
  esac;;
14755
 
*)
14756
 
  ECHO_N='-n';;
14757
 
esac
14758
 
 
14759
 
rm -f conf$$ conf$$.exe conf$$.file
14760
 
if test -d conf$$.dir; then
14761
 
  rm -f conf$$.dir/conf$$.file
14762
 
else
14763
 
  rm -f conf$$.dir
14764
 
  mkdir conf$$.dir 2>/dev/null
14765
 
fi
14766
 
if (echo >conf$$.file) 2>/dev/null; then
14767
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
14768
 
    as_ln_s='ln -s'
14769
 
    # ... but there are two gotchas:
14770
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14771
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14772
 
    # In both cases, we have to default to `cp -p'.
14773
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14774
 
      as_ln_s='cp -p'
14775
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
14776
 
    as_ln_s=ln
14777
 
  else
14778
 
    as_ln_s='cp -p'
14779
 
  fi
14780
 
else
14781
 
  as_ln_s='cp -p'
14782
 
fi
14783
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14784
 
rmdir conf$$.dir 2>/dev/null
14785
 
 
14786
 
 
14787
 
# as_fn_mkdir_p
14788
 
# -------------
14789
 
# Create "$as_dir" as a directory, including parents if necessary.
14790
 
as_fn_mkdir_p ()
14791
 
{
14792
 
 
14793
 
  case $as_dir in #(
14794
 
  -*) as_dir=./$as_dir;;
14795
 
  esac
14796
 
  test -d "$as_dir" || eval $as_mkdir_p || {
14797
 
    as_dirs=
14798
 
    while :; do
14799
 
      case $as_dir in #(
14800
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14801
 
      *) as_qdir=$as_dir;;
14802
 
      esac
14803
 
      as_dirs="'$as_qdir' $as_dirs"
14804
 
      as_dir=`$as_dirname -- "$as_dir" ||
14805
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14806
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
14807
 
         X"$as_dir" : 'X\(//\)$' \| \
14808
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14809
 
$as_echo X"$as_dir" |
14810
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14811
 
            s//\1/
14812
 
            q
14813
 
          }
14814
 
          /^X\(\/\/\)[^/].*/{
14815
 
            s//\1/
14816
 
            q
14817
 
          }
14818
 
          /^X\(\/\/\)$/{
14819
 
            s//\1/
14820
 
            q
14821
 
          }
14822
 
          /^X\(\/\).*/{
14823
 
            s//\1/
14824
 
            q
14825
 
          }
14826
 
          s/.*/./; q'`
14827
 
      test -d "$as_dir" && break
14828
 
    done
14829
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14830
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14831
 
 
14832
 
 
14833
 
} # as_fn_mkdir_p
14834
 
if mkdir -p . 2>/dev/null; then
14835
 
  as_mkdir_p='mkdir -p "$as_dir"'
14836
 
else
14837
 
  test -d ./-p && rmdir ./-p
14838
 
  as_mkdir_p=false
14839
 
fi
14840
 
 
14841
 
if test -x / >/dev/null 2>&1; then
14842
 
  as_test_x='test -x'
14843
 
else
14844
 
  if ls -dL / >/dev/null 2>&1; then
14845
 
    as_ls_L_option=L
14846
 
  else
14847
 
    as_ls_L_option=
14848
 
  fi
14849
 
  as_test_x='
14850
 
    eval sh -c '\''
14851
 
      if test -d "$1"; then
14852
 
        test -d "$1/.";
14853
 
      else
14854
 
        case $1 in #(
14855
 
        -*)set "./$1";;
14856
 
        esac;
14857
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14858
 
        ???[sx]*):;;*)false;;esac;fi
14859
 
    '\'' sh
14860
 
  '
14861
 
fi
14862
 
as_executable_p=$as_test_x
14863
 
 
14864
 
# Sed expression to map a string onto a valid CPP name.
14865
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14866
 
 
14867
 
# Sed expression to map a string onto a valid variable name.
14868
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14869
 
 
14870
 
 
14871
 
exec 6>&1
14872
 
## ----------------------------------- ##
14873
 
## Main body of $CONFIG_STATUS script. ##
14874
 
## ----------------------------------- ##
14875
 
_ASEOF
14876
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14877
 
 
14878
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14879
 
# Save the log message, to keep $0 and so on meaningful, and to
14880
 
# report actual input values of CONFIG_FILES etc. instead of their
14881
 
# values after options handling.
14882
 
ac_log="
14883
 
This file was extended by Varnish $as_me 2.1.3, which was
14884
 
generated by GNU Autoconf 2.65.  Invocation command line was
14885
 
 
14886
 
  CONFIG_FILES    = $CONFIG_FILES
14887
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
14888
 
  CONFIG_LINKS    = $CONFIG_LINKS
14889
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14890
 
  $ $0 $@
14891
 
 
14892
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14893
 
"
14894
 
 
14895
 
_ACEOF
14896
 
 
14897
 
case $ac_config_files in *"
14898
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14899
 
esac
14900
 
 
14901
 
case $ac_config_headers in *"
14902
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14903
 
esac
14904
 
 
14905
 
 
14906
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14907
 
# Files that config.status was made for.
14908
 
config_files="$ac_config_files"
14909
 
config_headers="$ac_config_headers"
14910
 
config_commands="$ac_config_commands"
14911
 
 
14912
 
_ACEOF
14913
 
 
14914
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14915
 
ac_cs_usage="\
14916
 
\`$as_me' instantiates files and other configuration actions
14917
 
from templates according to the current configuration.  Unless the files
14918
 
and actions are specified as TAGs, all are instantiated by default.
14919
 
 
14920
 
Usage: $0 [OPTION]... [TAG]...
14921
 
 
14922
 
  -h, --help       print this help, then exit
14923
 
  -V, --version    print version number and configuration settings, then exit
14924
 
      --config     print configuration, then exit
14925
 
  -q, --quiet, --silent
14926
 
                   do not print progress messages
14927
 
  -d, --debug      don't remove temporary files
14928
 
      --recheck    update $as_me by reconfiguring in the same conditions
14929
 
      --file=FILE[:TEMPLATE]
14930
 
                   instantiate the configuration file FILE
14931
 
      --header=FILE[:TEMPLATE]
14932
 
                   instantiate the configuration header FILE
14933
 
 
14934
 
Configuration files:
14935
 
$config_files
14936
 
 
14937
 
Configuration headers:
14938
 
$config_headers
14939
 
 
14940
 
Configuration commands:
14941
 
$config_commands
14942
 
 
14943
 
Report bugs to <varnish-dev@varnish-cache.org>."
14944
 
 
14945
 
_ACEOF
14946
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14947
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14948
 
ac_cs_version="\\
14949
 
Varnish config.status 2.1.3
14950
 
configured by $0, generated by GNU Autoconf 2.65,
14951
 
  with options \\"\$ac_cs_config\\"
14952
 
 
14953
 
Copyright (C) 2009 Free Software Foundation, Inc.
14954
 
This config.status script is free software; the Free Software Foundation
14955
 
gives unlimited permission to copy, distribute and modify it."
14956
 
 
14957
 
ac_pwd='$ac_pwd'
14958
 
srcdir='$srcdir'
14959
 
INSTALL='$INSTALL'
14960
 
MKDIR_P='$MKDIR_P'
14961
 
AWK='$AWK'
14962
 
test -n "\$AWK" || AWK=awk
14963
 
_ACEOF
14964
 
 
14965
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14966
 
# The default lists apply if the user does not specify any file.
14967
 
ac_need_defaults=:
14968
 
while test $# != 0
14969
 
do
14970
 
  case $1 in
14971
 
  --*=*)
14972
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14973
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14974
 
    ac_shift=:
14975
 
    ;;
14976
 
  *)
14977
 
    ac_option=$1
14978
 
    ac_optarg=$2
14979
 
    ac_shift=shift
14980
 
    ;;
14981
 
  esac
14982
 
 
14983
 
  case $ac_option in
14984
 
  # Handling of the options.
14985
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14986
 
    ac_cs_recheck=: ;;
14987
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14988
 
    $as_echo "$ac_cs_version"; exit ;;
14989
 
  --config | --confi | --conf | --con | --co | --c )
14990
 
    $as_echo "$ac_cs_config"; exit ;;
14991
 
  --debug | --debu | --deb | --de | --d | -d )
14992
 
    debug=: ;;
14993
 
  --file | --fil | --fi | --f )
14994
 
    $ac_shift
14995
 
    case $ac_optarg in
14996
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14997
 
    esac
14998
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
14999
 
    ac_need_defaults=false;;
15000
 
  --header | --heade | --head | --hea )
15001
 
    $ac_shift
15002
 
    case $ac_optarg in
15003
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15004
 
    esac
15005
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15006
 
    ac_need_defaults=false;;
15007
 
  --he | --h)
15008
 
    # Conflict between --help and --header
15009
 
    as_fn_error "ambiguous option: \`$1'
15010
 
Try \`$0 --help' for more information.";;
15011
 
  --help | --hel | -h )
15012
 
    $as_echo "$ac_cs_usage"; exit ;;
15013
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15014
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15015
 
    ac_cs_silent=: ;;
15016
 
 
15017
 
  # This is an error.
15018
 
  -*) as_fn_error "unrecognized option: \`$1'
15019
 
Try \`$0 --help' for more information." ;;
15020
 
 
15021
 
  *) as_fn_append ac_config_targets " $1"
15022
 
     ac_need_defaults=false ;;
15023
 
 
15024
 
  esac
15025
 
  shift
15026
 
done
15027
 
 
15028
 
ac_configure_extra_args=
15029
 
 
15030
 
if $ac_cs_silent; then
15031
 
  exec 6>/dev/null
15032
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15033
 
fi
15034
 
 
15035
 
_ACEOF
15036
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15037
 
if \$ac_cs_recheck; then
15038
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15039
 
  shift
15040
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15041
 
  CONFIG_SHELL='$SHELL'
15042
 
  export CONFIG_SHELL
15043
 
  exec "\$@"
15044
 
fi
15045
 
 
15046
 
_ACEOF
15047
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15048
 
exec 5>>config.log
15049
 
{
15050
 
  echo
15051
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15052
 
## Running $as_me. ##
15053
 
_ASBOX
15054
 
  $as_echo "$ac_log"
15055
 
} >&5
15056
 
 
15057
 
_ACEOF
15058
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15059
 
#
15060
 
# INIT-COMMANDS
15061
 
#
15062
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15063
 
 
15064
 
 
15065
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
15066
 
# if CDPATH is set.
15067
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15068
 
 
15069
 
sed_quote_subst='$sed_quote_subst'
15070
 
double_quote_subst='$double_quote_subst'
15071
 
delay_variable_subst='$delay_variable_subst'
15072
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15073
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15074
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15075
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15076
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15077
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15078
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15079
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15080
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15081
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15082
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15083
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15084
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15085
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15086
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15087
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15088
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15089
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15090
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15091
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15092
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15093
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15094
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15095
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15096
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15097
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15098
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15099
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15100
 
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15101
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15102
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15103
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15104
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15105
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15106
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15107
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15108
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15109
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15110
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15111
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15112
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15113
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15114
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15115
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15116
 
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"`'
15117
 
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"`'
15118
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15119
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15120
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15121
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15122
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15123
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15124
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15125
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15126
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15127
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15128
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15129
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15130
 
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15131
 
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15132
 
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15133
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15134
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15135
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15136
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15137
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15138
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15139
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15140
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15141
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15142
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15143
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15144
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15145
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15146
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15147
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15148
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15149
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15150
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15151
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15152
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15153
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15154
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15155
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15156
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15157
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15158
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15159
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15160
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15161
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15162
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15163
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15164
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15165
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15166
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15167
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15168
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15169
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15170
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15171
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15172
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15173
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15174
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15175
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15176
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15177
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15178
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15179
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15180
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15181
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15182
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15183
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15184
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15185
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15186
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15187
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15188
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15189
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15190
 
 
15191
 
LTCC='$LTCC'
15192
 
LTCFLAGS='$LTCFLAGS'
15193
 
compiler='$compiler_DEFAULT'
15194
 
 
15195
 
# Quote evaled strings.
15196
 
for var in SED \
15197
 
GREP \
15198
 
EGREP \
15199
 
FGREP \
15200
 
LD \
15201
 
NM \
15202
 
LN_S \
15203
 
lt_SP2NL \
15204
 
lt_NL2SP \
15205
 
reload_flag \
15206
 
OBJDUMP \
15207
 
deplibs_check_method \
15208
 
file_magic_cmd \
15209
 
AR \
15210
 
AR_FLAGS \
15211
 
STRIP \
15212
 
RANLIB \
15213
 
CC \
15214
 
CFLAGS \
15215
 
compiler \
15216
 
lt_cv_sys_global_symbol_pipe \
15217
 
lt_cv_sys_global_symbol_to_cdecl \
15218
 
lt_cv_sys_global_symbol_to_c_name_address \
15219
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15220
 
SHELL \
15221
 
ECHO \
15222
 
lt_prog_compiler_no_builtin_flag \
15223
 
lt_prog_compiler_wl \
15224
 
lt_prog_compiler_pic \
15225
 
lt_prog_compiler_static \
15226
 
lt_cv_prog_compiler_c_o \
15227
 
need_locks \
15228
 
DSYMUTIL \
15229
 
NMEDIT \
15230
 
LIPO \
15231
 
OTOOL \
15232
 
OTOOL64 \
15233
 
shrext_cmds \
15234
 
export_dynamic_flag_spec \
15235
 
whole_archive_flag_spec \
15236
 
compiler_needs_object \
15237
 
with_gnu_ld \
15238
 
allow_undefined_flag \
15239
 
no_undefined_flag \
15240
 
hardcode_libdir_flag_spec \
15241
 
hardcode_libdir_flag_spec_ld \
15242
 
hardcode_libdir_separator \
15243
 
fix_srcfile_path \
15244
 
exclude_expsyms \
15245
 
include_expsyms \
15246
 
file_list_spec \
15247
 
variables_saved_for_relink \
15248
 
libname_spec \
15249
 
library_names_spec \
15250
 
soname_spec \
15251
 
finish_eval \
15252
 
old_striplib \
15253
 
striplib; do
15254
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15255
 
    *[\\\\\\\`\\"\\\$]*)
15256
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15257
 
      ;;
15258
 
    *)
15259
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15260
 
      ;;
15261
 
    esac
15262
 
done
15263
 
 
15264
 
# Double-quote double-evaled strings.
15265
 
for var in reload_cmds \
15266
 
old_postinstall_cmds \
15267
 
old_postuninstall_cmds \
15268
 
old_archive_cmds \
15269
 
extract_expsyms_cmds \
15270
 
old_archive_from_new_cmds \
15271
 
old_archive_from_expsyms_cmds \
15272
 
archive_cmds \
15273
 
archive_expsym_cmds \
15274
 
module_cmds \
15275
 
module_expsym_cmds \
15276
 
export_symbols_cmds \
15277
 
prelink_cmds \
15278
 
postinstall_cmds \
15279
 
postuninstall_cmds \
15280
 
finish_cmds \
15281
 
sys_lib_search_path_spec \
15282
 
sys_lib_dlsearch_path_spec; do
15283
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15284
 
    *[\\\\\\\`\\"\\\$]*)
15285
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15286
 
      ;;
15287
 
    *)
15288
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15289
 
      ;;
15290
 
    esac
15291
 
done
15292
 
 
15293
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
15294
 
case \$lt_ECHO in
15295
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15296
 
  ;;
15297
 
esac
15298
 
 
15299
 
ac_aux_dir='$ac_aux_dir'
15300
 
xsi_shell='$xsi_shell'
15301
 
lt_shell_append='$lt_shell_append'
15302
 
 
15303
 
# See if we are running on zsh, and set the options which allow our
15304
 
# commands through without removal of \ escapes INIT.
15305
 
if test -n "\${ZSH_VERSION+set}" ; then
15306
 
   setopt NO_GLOB_SUBST
15307
 
fi
15308
 
 
15309
 
 
15310
 
    PACKAGE='$PACKAGE'
15311
 
    VERSION='$VERSION'
15312
 
    TIMESTAMP='$TIMESTAMP'
15313
 
    RM='$RM'
15314
 
    ofile='$ofile'
15315
 
 
15316
 
 
15317
 
 
15318
 
 
15319
 
_ACEOF
15320
 
 
15321
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322
 
 
15323
 
# Handling of arguments.
15324
 
for ac_config_target in $ac_config_targets
15325
 
do
15326
 
  case $ac_config_target in
15327
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15328
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15329
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15330
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15331
 
    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
15332
 
    "bin/varnishadm/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishadm/Makefile" ;;
15333
 
    "bin/varnishd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishd/Makefile" ;;
15334
 
    "bin/varnishlog/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishlog/Makefile" ;;
15335
 
    "bin/varnishhist/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishhist/Makefile" ;;
15336
 
    "bin/varnishncsa/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishncsa/Makefile" ;;
15337
 
    "bin/varnishreplay/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishreplay/Makefile" ;;
15338
 
    "bin/varnishstat/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishstat/Makefile" ;;
15339
 
    "bin/varnishsizes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishsizes/Makefile" ;;
15340
 
    "bin/varnishtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishtest/Makefile" ;;
15341
 
    "bin/varnishtop/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishtop/Makefile" ;;
15342
 
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15343
 
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15344
 
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15345
 
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15346
 
    "lib/libvarnish/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvarnish/Makefile" ;;
15347
 
    "lib/libvarnishapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvarnishapi/Makefile" ;;
15348
 
    "lib/libvarnishcompat/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvarnishcompat/Makefile" ;;
15349
 
    "lib/libvcl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvcl/Makefile" ;;
15350
 
    "lib/libjemalloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libjemalloc/Makefile" ;;
15351
 
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15352
 
    "redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
15353
 
    "varnishapi.pc") CONFIG_FILES="$CONFIG_FILES varnishapi.pc" ;;
15354
 
 
15355
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15356
 
  esac
15357
 
done
15358
 
 
15359
 
 
15360
 
# If the user did not use the arguments to specify the items to instantiate,
15361
 
# then the envvar interface is used.  Set only those that are not.
15362
 
# We use the long form for the default assignment because of an extremely
15363
 
# bizarre bug on SunOS 4.1.3.
15364
 
if $ac_need_defaults; then
15365
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15366
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15367
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15368
 
fi
15369
 
 
15370
 
# Have a temporary directory for convenience.  Make it in the build tree
15371
 
# simply because there is no reason against having it here, and in addition,
15372
 
# creating and moving files from /tmp can sometimes cause problems.
15373
 
# Hook for its removal unless debugging.
15374
 
# Note that there is a small window in which the directory will not be cleaned:
15375
 
# after its creation but before its name has been assigned to `$tmp'.
15376
 
$debug ||
15377
 
{
15378
 
  tmp=
15379
 
  trap 'exit_status=$?
15380
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15381
 
' 0
15382
 
  trap 'as_fn_exit 1' 1 2 13 15
15383
 
}
15384
 
# Create a (secure) tmp directory for tmp files.
15385
 
 
15386
 
{
15387
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15388
 
  test -n "$tmp" && test -d "$tmp"
15389
 
}  ||
15390
 
{
15391
 
  tmp=./conf$$-$RANDOM
15392
 
  (umask 077 && mkdir "$tmp")
15393
 
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15394
 
 
15395
 
# Set up the scripts for CONFIG_FILES section.
15396
 
# No need to generate them if there are no CONFIG_FILES.
15397
 
# This happens for instance with `./config.status config.h'.
15398
 
if test -n "$CONFIG_FILES"; then
15399
 
 
15400
 
 
15401
 
ac_cr=`echo X | tr X '\015'`
15402
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15403
 
# But we know of no other shell where ac_cr would be empty at this
15404
 
# point, so we can use a bashism as a fallback.
15405
 
if test "x$ac_cr" = x; then
15406
 
  eval ac_cr=\$\'\\r\'
15407
 
fi
15408
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15409
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15410
 
  ac_cs_awk_cr='\r'
15411
 
else
15412
 
  ac_cs_awk_cr=$ac_cr
15413
 
fi
15414
 
 
15415
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15416
 
_ACEOF
15417
 
 
15418
 
 
15419
 
{
15420
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
15421
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15422
 
  echo "_ACEOF"
15423
 
} >conf$$subs.sh ||
15424
 
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15425
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15426
 
ac_delim='%!_!# '
15427
 
for ac_last_try in false false false false false :; do
15428
 
  . ./conf$$subs.sh ||
15429
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15430
 
 
15431
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15432
 
  if test $ac_delim_n = $ac_delim_num; then
15433
 
    break
15434
 
  elif $ac_last_try; then
15435
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15436
 
  else
15437
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15438
 
  fi
15439
 
done
15440
 
rm -f conf$$subs.sh
15441
 
 
15442
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15443
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15444
 
_ACEOF
15445
 
sed -n '
15446
 
h
15447
 
s/^/S["/; s/!.*/"]=/
15448
 
p
15449
 
g
15450
 
s/^[^!]*!//
15451
 
:repl
15452
 
t repl
15453
 
s/'"$ac_delim"'$//
15454
 
t delim
15455
 
:nl
15456
 
h
15457
 
s/\(.\{148\}\)..*/\1/
15458
 
t more1
15459
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15460
 
p
15461
 
n
15462
 
b repl
15463
 
:more1
15464
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15465
 
p
15466
 
g
15467
 
s/.\{148\}//
15468
 
t nl
15469
 
:delim
15470
 
h
15471
 
s/\(.\{148\}\)..*/\1/
15472
 
t more2
15473
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
15474
 
p
15475
 
b
15476
 
:more2
15477
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15478
 
p
15479
 
g
15480
 
s/.\{148\}//
15481
 
t delim
15482
 
' <conf$$subs.awk | sed '
15483
 
/^[^""]/{
15484
 
  N
15485
 
  s/\n//
15486
 
}
15487
 
' >>$CONFIG_STATUS || ac_write_fail=1
15488
 
rm -f conf$$subs.awk
15489
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15490
 
_ACAWK
15491
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15492
 
  for (key in S) S_is_set[key] = 1
15493
 
  FS = ""
15494
 
 
15495
 
}
15496
 
{
15497
 
  line = $ 0
15498
 
  nfields = split(line, field, "@")
15499
 
  substed = 0
15500
 
  len = length(field[1])
15501
 
  for (i = 2; i < nfields; i++) {
15502
 
    key = field[i]
15503
 
    keylen = length(key)
15504
 
    if (S_is_set[key]) {
15505
 
      value = S[key]
15506
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15507
 
      len += length(value) + length(field[++i])
15508
 
      substed = 1
15509
 
    } else
15510
 
      len += 1 + keylen
15511
 
  }
15512
 
 
15513
 
  print line
15514
 
}
15515
 
 
15516
 
_ACAWK
15517
 
_ACEOF
15518
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15519
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15520
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15521
 
else
15522
 
  cat
15523
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15524
 
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15525
 
_ACEOF
15526
 
 
15527
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15528
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15529
 
# trailing colons and then remove the whole line if VPATH becomes empty
15530
 
# (actually we leave an empty line to preserve line numbers).
15531
 
if test "x$srcdir" = x.; then
15532
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
15533
 
s/:*\$(srcdir):*/:/
15534
 
s/:*\${srcdir}:*/:/
15535
 
s/:*@srcdir@:*/:/
15536
 
s/^\([^=]*=[     ]*\):*/\1/
15537
 
s/:*$//
15538
 
s/^[^=]*=[       ]*$//
15539
 
}'
15540
 
fi
15541
 
 
15542
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543
 
fi # test -n "$CONFIG_FILES"
15544
 
 
15545
 
# Set up the scripts for CONFIG_HEADERS section.
15546
 
# No need to generate them if there are no CONFIG_HEADERS.
15547
 
# This happens for instance with `./config.status Makefile'.
15548
 
if test -n "$CONFIG_HEADERS"; then
15549
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
15550
 
BEGIN {
15551
 
_ACEOF
15552
 
 
15553
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
15554
 
# here-document in config.status, that substitutes the proper values into
15555
 
# config.h.in to produce config.h.
15556
 
 
15557
 
# Create a delimiter string that does not exist in confdefs.h, to ease
15558
 
# handling of long lines.
15559
 
ac_delim='%!_!# '
15560
 
for ac_last_try in false false :; do
15561
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15562
 
  if test -z "$ac_t"; then
15563
 
    break
15564
 
  elif $ac_last_try; then
15565
 
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15566
 
  else
15567
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15568
 
  fi
15569
 
done
15570
 
 
15571
 
# For the awk script, D is an array of macro values keyed by name,
15572
 
# likewise P contains macro parameters if any.  Preserve backslash
15573
 
# newline sequences.
15574
 
 
15575
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15576
 
sed -n '
15577
 
s/.\{148\}/&'"$ac_delim"'/g
15578
 
t rset
15579
 
:rset
15580
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
15581
 
t def
15582
 
d
15583
 
:def
15584
 
s/\\$//
15585
 
t bsnl
15586
 
s/["\\]/\\&/g
15587
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15588
 
D["\1"]=" \3"/p
15589
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15590
 
d
15591
 
:bsnl
15592
 
s/["\\]/\\&/g
15593
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15594
 
D["\1"]=" \3\\\\\\n"\\/p
15595
 
t cont
15596
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15597
 
t cont
15598
 
d
15599
 
:cont
15600
 
n
15601
 
s/.\{148\}/&'"$ac_delim"'/g
15602
 
t clear
15603
 
:clear
15604
 
s/\\$//
15605
 
t bsnlc
15606
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15607
 
d
15608
 
:bsnlc
15609
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15610
 
b cont
15611
 
' <confdefs.h | sed '
15612
 
s/'"$ac_delim"'/"\\\
15613
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15614
 
 
15615
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616
 
  for (key in D) D_is_set[key] = 1
15617
 
  FS = ""
15618
 
}
15619
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15620
 
  line = \$ 0
15621
 
  split(line, arg, " ")
15622
 
  if (arg[1] == "#") {
15623
 
    defundef = arg[2]
15624
 
    mac1 = arg[3]
15625
 
  } else {
15626
 
    defundef = substr(arg[1], 2)
15627
 
    mac1 = arg[2]
15628
 
  }
15629
 
  split(mac1, mac2, "(") #)
15630
 
  macro = mac2[1]
15631
 
  prefix = substr(line, 1, index(line, defundef) - 1)
15632
 
  if (D_is_set[macro]) {
15633
 
    # Preserve the white space surrounding the "#".
15634
 
    print prefix "define", macro P[macro] D[macro]
15635
 
    next
15636
 
  } else {
15637
 
    # Replace #undef with comments.  This is necessary, for example,
15638
 
    # in the case of _POSIX_SOURCE, which is predefined and required
15639
 
    # on some systems where configure will not decide to define it.
15640
 
    if (defundef == "undef") {
15641
 
      print "/*", prefix defundef, macro, "*/"
15642
 
      next
15643
 
    }
15644
 
  }
15645
 
}
15646
 
{ print }
15647
 
_ACAWK
15648
 
_ACEOF
15649
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650
 
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15651
 
fi # test -n "$CONFIG_HEADERS"
15652
 
 
15653
 
 
15654
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15655
 
shift
15656
 
for ac_tag
15657
 
do
15658
 
  case $ac_tag in
15659
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
15660
 
  esac
15661
 
  case $ac_mode$ac_tag in
15662
 
  :[FHL]*:*);;
15663
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15664
 
  :[FH]-) ac_tag=-:-;;
15665
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15666
 
  esac
15667
 
  ac_save_IFS=$IFS
15668
 
  IFS=:
15669
 
  set x $ac_tag
15670
 
  IFS=$ac_save_IFS
15671
 
  shift
15672
 
  ac_file=$1
15673
 
  shift
15674
 
 
15675
 
  case $ac_mode in
15676
 
  :L) ac_source=$1;;
15677
 
  :[FH])
15678
 
    ac_file_inputs=
15679
 
    for ac_f
15680
 
    do
15681
 
      case $ac_f in
15682
 
      -) ac_f="$tmp/stdin";;
15683
 
      *) # Look for the file first in the build tree, then in the source tree
15684
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
15685
 
         # because $ac_f cannot contain `:'.
15686
 
         test -f "$ac_f" ||
15687
 
           case $ac_f in
15688
 
           [\\/$]*) false;;
15689
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15690
 
           esac ||
15691
 
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15692
 
      esac
15693
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15694
 
      as_fn_append ac_file_inputs " '$ac_f'"
15695
 
    done
15696
 
 
15697
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
15698
 
    # use $as_me), people would be surprised to read:
15699
 
    #    /* config.h.  Generated by config.status.  */
15700
 
    configure_input='Generated from '`
15701
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15702
 
        `' by configure.'
15703
 
    if test x"$ac_file" != x-; then
15704
 
      configure_input="$ac_file.  $configure_input"
15705
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15706
 
$as_echo "$as_me: creating $ac_file" >&6;}
15707
 
    fi
15708
 
    # Neutralize special characters interpreted by sed in replacement strings.
15709
 
    case $configure_input in #(
15710
 
    *\&* | *\|* | *\\* )
15711
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
15712
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15713
 
    *) ac_sed_conf_input=$configure_input;;
15714
 
    esac
15715
 
 
15716
 
    case $ac_tag in
15717
 
    *:-:* | *:-) cat >"$tmp/stdin" \
15718
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15719
 
    esac
15720
 
    ;;
15721
 
  esac
15722
 
 
15723
 
  ac_dir=`$as_dirname -- "$ac_file" ||
15724
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15725
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15726
 
         X"$ac_file" : 'X\(//\)$' \| \
15727
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15728
 
$as_echo X"$ac_file" |
15729
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15730
 
            s//\1/
15731
 
            q
15732
 
          }
15733
 
          /^X\(\/\/\)[^/].*/{
15734
 
            s//\1/
15735
 
            q
15736
 
          }
15737
 
          /^X\(\/\/\)$/{
15738
 
            s//\1/
15739
 
            q
15740
 
          }
15741
 
          /^X\(\/\).*/{
15742
 
            s//\1/
15743
 
            q
15744
 
          }
15745
 
          s/.*/./; q'`
15746
 
  as_dir="$ac_dir"; as_fn_mkdir_p
15747
 
  ac_builddir=.
15748
 
 
15749
 
case "$ac_dir" in
15750
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15751
 
*)
15752
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15753
 
  # A ".." for each directory in $ac_dir_suffix.
15754
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15755
 
  case $ac_top_builddir_sub in
15756
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15757
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15758
 
  esac ;;
15759
 
esac
15760
 
ac_abs_top_builddir=$ac_pwd
15761
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15762
 
# for backward compatibility:
15763
 
ac_top_builddir=$ac_top_build_prefix
15764
 
 
15765
 
case $srcdir in
15766
 
  .)  # We are building in place.
15767
 
    ac_srcdir=.
15768
 
    ac_top_srcdir=$ac_top_builddir_sub
15769
 
    ac_abs_top_srcdir=$ac_pwd ;;
15770
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
15771
 
    ac_srcdir=$srcdir$ac_dir_suffix;
15772
 
    ac_top_srcdir=$srcdir
15773
 
    ac_abs_top_srcdir=$srcdir ;;
15774
 
  *) # Relative name.
15775
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15776
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15777
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15778
 
esac
15779
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15780
 
 
15781
 
 
15782
 
  case $ac_mode in
15783
 
  :F)
15784
 
  #
15785
 
  # CONFIG_FILE
15786
 
  #
15787
 
 
15788
 
  case $INSTALL in
15789
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15790
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15791
 
  esac
15792
 
  ac_MKDIR_P=$MKDIR_P
15793
 
  case $MKDIR_P in
15794
 
  [\\/$]* | ?:[\\/]* ) ;;
15795
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15796
 
  esac
15797
 
_ACEOF
15798
 
 
15799
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15800
 
# If the template does not know about datarootdir, expand it.
15801
 
# FIXME: This hack should be removed a few years after 2.60.
15802
 
ac_datarootdir_hack=; ac_datarootdir_seen=
15803
 
ac_sed_dataroot='
15804
 
/datarootdir/ {
15805
 
  p
15806
 
  q
15807
 
}
15808
 
/@datadir@/p
15809
 
/@docdir@/p
15810
 
/@infodir@/p
15811
 
/@localedir@/p
15812
 
/@mandir@/p'
15813
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15814
 
*datarootdir*) ac_datarootdir_seen=yes;;
15815
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15816
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15817
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15818
 
_ACEOF
15819
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15820
 
  ac_datarootdir_hack='
15821
 
  s&@datadir@&$datadir&g
15822
 
  s&@docdir@&$docdir&g
15823
 
  s&@infodir@&$infodir&g
15824
 
  s&@localedir@&$localedir&g
15825
 
  s&@mandir@&$mandir&g
15826
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
15827
 
esac
15828
 
_ACEOF
15829
 
 
15830
 
# Neutralize VPATH when `$srcdir' = `.'.
15831
 
# Shell code in configure.ac might set extrasub.
15832
 
# FIXME: do we really want to maintain this feature?
15833
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15834
 
ac_sed_extra="$ac_vpsub
15835
 
$extrasub
15836
 
_ACEOF
15837
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15838
 
:t
15839
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15840
 
s|@configure_input@|$ac_sed_conf_input|;t t
15841
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
15842
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15843
 
s&@srcdir@&$ac_srcdir&;t t
15844
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15845
 
s&@top_srcdir@&$ac_top_srcdir&;t t
15846
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15847
 
s&@builddir@&$ac_builddir&;t t
15848
 
s&@abs_builddir@&$ac_abs_builddir&;t t
15849
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15850
 
s&@INSTALL@&$ac_INSTALL&;t t
15851
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15852
 
$ac_datarootdir_hack
15853
 
"
15854
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15855
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
15856
 
 
15857
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15858
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15859
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15860
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15861
 
which seems to be undefined.  Please make sure it is defined." >&5
15862
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15863
 
which seems to be undefined.  Please make sure it is defined." >&2;}
15864
 
 
15865
 
  rm -f "$tmp/stdin"
15866
 
  case $ac_file in
15867
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
15868
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15869
 
  esac \
15870
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
15871
 
 ;;
15872
 
  :H)
15873
 
  #
15874
 
  # CONFIG_HEADER
15875
 
  #
15876
 
  if test x"$ac_file" != x-; then
15877
 
    {
15878
 
      $as_echo "/* $configure_input  */" \
15879
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15880
 
    } >"$tmp/config.h" \
15881
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5
15882
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15883
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15884
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15885
 
    else
15886
 
      rm -f "$ac_file"
15887
 
      mv "$tmp/config.h" "$ac_file" \
15888
 
        || as_fn_error "could not create $ac_file" "$LINENO" 5
15889
 
    fi
15890
 
  else
15891
 
    $as_echo "/* $configure_input  */" \
15892
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15893
 
      || as_fn_error "could not create -" "$LINENO" 5
15894
 
  fi
15895
 
# Compute "$ac_file"'s index in $config_headers.
15896
 
_am_arg="$ac_file"
15897
 
_am_stamp_count=1
15898
 
for _am_header in $config_headers :; do
15899
 
  case $_am_header in
15900
 
    $_am_arg | $_am_arg:* )
15901
 
      break ;;
15902
 
    * )
15903
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15904
 
  esac
15905
 
done
15906
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15907
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15908
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
15909
 
         X"$_am_arg" : 'X\(//\)$' \| \
15910
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15911
 
$as_echo X"$_am_arg" |
15912
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15913
 
            s//\1/
15914
 
            q
15915
 
          }
15916
 
          /^X\(\/\/\)[^/].*/{
15917
 
            s//\1/
15918
 
            q
15919
 
          }
15920
 
          /^X\(\/\/\)$/{
15921
 
            s//\1/
15922
 
            q
15923
 
          }
15924
 
          /^X\(\/\).*/{
15925
 
            s//\1/
15926
 
            q
15927
 
          }
15928
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
15929
 
 ;;
15930
 
 
15931
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15932
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
15933
 
 ;;
15934
 
  esac
15935
 
 
15936
 
 
15937
 
  case $ac_file$ac_mode in
15938
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15939
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15940
 
  # are listed without --file.  Let's play safe and only enable the eval
15941
 
  # if we detect the quoting.
15942
 
  case $CONFIG_FILES in
15943
 
  *\'*) eval set x "$CONFIG_FILES" ;;
15944
 
  *)   set x $CONFIG_FILES ;;
15945
 
  esac
15946
 
  shift
15947
 
  for mf
15948
 
  do
15949
 
    # Strip MF so we end up with the name of the file.
15950
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15951
 
    # Check whether this is an Automake generated Makefile or not.
15952
 
    # We used to match only the files named `Makefile.in', but
15953
 
    # some people rename them; so instead we look at the file content.
15954
 
    # Grep'ing the first line is not enough: some people post-process
15955
 
    # each Makefile.in and add a new line on top of each file to say so.
15956
 
    # Grep'ing the whole file is not good either: AIX grep has a line
15957
 
    # limit of 2048, but all sed's we know have understand at least 4000.
15958
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15959
 
      dirpart=`$as_dirname -- "$mf" ||
15960
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15961
 
         X"$mf" : 'X\(//\)[^/]' \| \
15962
 
         X"$mf" : 'X\(//\)$' \| \
15963
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15964
 
$as_echo X"$mf" |
15965
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15966
 
            s//\1/
15967
 
            q
15968
 
          }
15969
 
          /^X\(\/\/\)[^/].*/{
15970
 
            s//\1/
15971
 
            q
15972
 
          }
15973
 
          /^X\(\/\/\)$/{
15974
 
            s//\1/
15975
 
            q
15976
 
          }
15977
 
          /^X\(\/\).*/{
15978
 
            s//\1/
15979
 
            q
15980
 
          }
15981
 
          s/.*/./; q'`
15982
 
    else
15983
 
      continue
15984
 
    fi
15985
 
    # Extract the definition of DEPDIR, am__include, and am__quote
15986
 
    # from the Makefile without running `make'.
15987
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15988
 
    test -z "$DEPDIR" && continue
15989
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15990
 
    test -z "am__include" && continue
15991
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15992
 
    # When using ansi2knr, U may be empty or an underscore; expand it
15993
 
    U=`sed -n 's/^U = //p' < "$mf"`
15994
 
    # Find all dependency output files, they are included files with
15995
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15996
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
15997
 
    # expansion.
15998
 
    for file in `sed -n "
15999
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16000
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16001
 
      # Make sure the directory exists.
16002
 
      test -f "$dirpart/$file" && continue
16003
 
      fdir=`$as_dirname -- "$file" ||
16004
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16005
 
         X"$file" : 'X\(//\)[^/]' \| \
16006
 
         X"$file" : 'X\(//\)$' \| \
16007
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16008
 
$as_echo X"$file" |
16009
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16010
 
            s//\1/
16011
 
            q
16012
 
          }
16013
 
          /^X\(\/\/\)[^/].*/{
16014
 
            s//\1/
16015
 
            q
16016
 
          }
16017
 
          /^X\(\/\/\)$/{
16018
 
            s//\1/
16019
 
            q
16020
 
          }
16021
 
          /^X\(\/\).*/{
16022
 
            s//\1/
16023
 
            q
16024
 
          }
16025
 
          s/.*/./; q'`
16026
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16027
 
      # echo "creating $dirpart/$file"
16028
 
      echo '# dummy' > "$dirpart/$file"
16029
 
    done
16030
 
  done
16031
 
}
16032
 
 ;;
16033
 
    "libtool":C)
16034
 
 
16035
 
    # See if we are running on zsh, and set the options which allow our
16036
 
    # commands through without removal of \ escapes.
16037
 
    if test -n "${ZSH_VERSION+set}" ; then
16038
 
      setopt NO_GLOB_SUBST
16039
 
    fi
16040
 
 
16041
 
    cfgfile="${ofile}T"
16042
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16043
 
    $RM "$cfgfile"
16044
 
 
16045
 
    cat <<_LT_EOF >> "$cfgfile"
16046
 
#! $SHELL
16047
 
 
16048
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16049
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16050
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16051
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16052
 
#
16053
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16054
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
16055
 
#   Written by Gordon Matzigkeit, 1996
16056
 
#
16057
 
#   This file is part of GNU Libtool.
16058
 
#
16059
 
# GNU Libtool is free software; you can redistribute it and/or
16060
 
# modify it under the terms of the GNU General Public License as
16061
 
# published by the Free Software Foundation; either version 2 of
16062
 
# the License, or (at your option) any later version.
16063
 
#
16064
 
# As a special exception to the GNU General Public License,
16065
 
# if you distribute this file as part of a program or library that
16066
 
# is built using GNU Libtool, you may include this file under the
16067
 
# same distribution terms that you use for the rest of that program.
16068
 
#
16069
 
# GNU Libtool is distributed in the hope that it will be useful,
16070
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16071
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16072
 
# GNU General Public License for more details.
16073
 
#
16074
 
# You should have received a copy of the GNU General Public License
16075
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
16076
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16077
 
# obtained by writing to the Free Software Foundation, Inc.,
16078
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16079
 
 
16080
 
 
16081
 
# The names of the tagged configurations supported by this script.
16082
 
available_tags=""
16083
 
 
16084
 
# ### BEGIN LIBTOOL CONFIG
16085
 
 
16086
 
# Which release of libtool.m4 was used?
16087
 
macro_version=$macro_version
16088
 
macro_revision=$macro_revision
16089
 
 
16090
 
# Whether or not to build shared libraries.
16091
 
build_libtool_libs=$enable_shared
16092
 
 
16093
 
# Whether or not to build static libraries.
16094
 
build_old_libs=$enable_static
16095
 
 
16096
 
# What type of objects to build.
16097
 
pic_mode=$pic_mode
16098
 
 
16099
 
# Whether or not to optimize for fast installation.
16100
 
fast_install=$enable_fast_install
16101
 
 
16102
 
# The host system.
16103
 
host_alias=$host_alias
16104
 
host=$host
16105
 
host_os=$host_os
16106
 
 
16107
 
# The build system.
16108
 
build_alias=$build_alias
16109
 
build=$build
16110
 
build_os=$build_os
16111
 
 
16112
 
# A sed program that does not truncate output.
16113
 
SED=$lt_SED
16114
 
 
16115
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16116
 
Xsed="\$SED -e 1s/^X//"
16117
 
 
16118
 
# A grep program that handles long lines.
16119
 
GREP=$lt_GREP
16120
 
 
16121
 
# An ERE matcher.
16122
 
EGREP=$lt_EGREP
16123
 
 
16124
 
# A literal string matcher.
16125
 
FGREP=$lt_FGREP
16126
 
 
16127
 
# A BSD- or MS-compatible name lister.
16128
 
NM=$lt_NM
16129
 
 
16130
 
# Whether we need soft or hard links.
16131
 
LN_S=$lt_LN_S
16132
 
 
16133
 
# What is the maximum length of a command?
16134
 
max_cmd_len=$max_cmd_len
16135
 
 
16136
 
# Object file suffix (normally "o").
16137
 
objext=$ac_objext
16138
 
 
16139
 
# Executable file suffix (normally "").
16140
 
exeext=$exeext
16141
 
 
16142
 
# whether the shell understands "unset".
16143
 
lt_unset=$lt_unset
16144
 
 
16145
 
# turn spaces into newlines.
16146
 
SP2NL=$lt_lt_SP2NL
16147
 
 
16148
 
# turn newlines into spaces.
16149
 
NL2SP=$lt_lt_NL2SP
16150
 
 
16151
 
# How to create reloadable object files.
16152
 
reload_flag=$lt_reload_flag
16153
 
reload_cmds=$lt_reload_cmds
16154
 
 
16155
 
# An object symbol dumper.
16156
 
OBJDUMP=$lt_OBJDUMP
16157
 
 
16158
 
# Method to check whether dependent libraries are shared objects.
16159
 
deplibs_check_method=$lt_deplibs_check_method
16160
 
 
16161
 
# Command to use when deplibs_check_method == "file_magic".
16162
 
file_magic_cmd=$lt_file_magic_cmd
16163
 
 
16164
 
# The archiver.
16165
 
AR=$lt_AR
16166
 
AR_FLAGS=$lt_AR_FLAGS
16167
 
 
16168
 
# A symbol stripping program.
16169
 
STRIP=$lt_STRIP
16170
 
 
16171
 
# Commands used to install an old-style archive.
16172
 
RANLIB=$lt_RANLIB
16173
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16174
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16175
 
 
16176
 
# A C compiler.
16177
 
LTCC=$lt_CC
16178
 
 
16179
 
# LTCC compiler flags.
16180
 
LTCFLAGS=$lt_CFLAGS
16181
 
 
16182
 
# Take the output of nm and produce a listing of raw symbols and C names.
16183
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16184
 
 
16185
 
# Transform the output of nm in a proper C declaration.
16186
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16187
 
 
16188
 
# Transform the output of nm in a C name address pair.
16189
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16190
 
 
16191
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
16192
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16193
 
 
16194
 
# The name of the directory that contains temporary libtool files.
16195
 
objdir=$objdir
16196
 
 
16197
 
# Shell to use when invoking shell scripts.
16198
 
SHELL=$lt_SHELL
16199
 
 
16200
 
# An echo program that does not interpret backslashes.
16201
 
ECHO=$lt_ECHO
16202
 
 
16203
 
# Used to examine libraries when file_magic_cmd begins with "file".
16204
 
MAGIC_CMD=$MAGIC_CMD
16205
 
 
16206
 
# Must we lock files when doing compilation?
16207
 
need_locks=$lt_need_locks
16208
 
 
16209
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16210
 
DSYMUTIL=$lt_DSYMUTIL
16211
 
 
16212
 
# Tool to change global to local symbols on Mac OS X.
16213
 
NMEDIT=$lt_NMEDIT
16214
 
 
16215
 
# Tool to manipulate fat objects and archives on Mac OS X.
16216
 
LIPO=$lt_LIPO
16217
 
 
16218
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16219
 
OTOOL=$lt_OTOOL
16220
 
 
16221
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16222
 
OTOOL64=$lt_OTOOL64
16223
 
 
16224
 
# Old archive suffix (normally "a").
16225
 
libext=$libext
16226
 
 
16227
 
# Shared library suffix (normally ".so").
16228
 
shrext_cmds=$lt_shrext_cmds
16229
 
 
16230
 
# The commands to extract the exported symbol list from a shared archive.
16231
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16232
 
 
16233
 
# Variables whose values should be saved in libtool wrapper scripts and
16234
 
# restored at link time.
16235
 
variables_saved_for_relink=$lt_variables_saved_for_relink
16236
 
 
16237
 
# Do we need the "lib" prefix for modules?
16238
 
need_lib_prefix=$need_lib_prefix
16239
 
 
16240
 
# Do we need a version for libraries?
16241
 
need_version=$need_version
16242
 
 
16243
 
# Library versioning type.
16244
 
version_type=$version_type
16245
 
 
16246
 
# Shared library runtime path variable.
16247
 
runpath_var=$runpath_var
16248
 
 
16249
 
# Shared library path variable.
16250
 
shlibpath_var=$shlibpath_var
16251
 
 
16252
 
# Is shlibpath searched before the hard-coded library search path?
16253
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16254
 
 
16255
 
# Format of library name prefix.
16256
 
libname_spec=$lt_libname_spec
16257
 
 
16258
 
# List of archive names.  First name is the real one, the rest are links.
16259
 
# The last name is the one that the linker finds with -lNAME
16260
 
library_names_spec=$lt_library_names_spec
16261
 
 
16262
 
# The coded name of the library, if different from the real name.
16263
 
soname_spec=$lt_soname_spec
16264
 
 
16265
 
# Command to use after installation of a shared archive.
16266
 
postinstall_cmds=$lt_postinstall_cmds
16267
 
 
16268
 
# Command to use after uninstallation of a shared archive.
16269
 
postuninstall_cmds=$lt_postuninstall_cmds
16270
 
 
16271
 
# Commands used to finish a libtool library installation in a directory.
16272
 
finish_cmds=$lt_finish_cmds
16273
 
 
16274
 
# As "finish_cmds", except a single script fragment to be evaled but
16275
 
# not shown.
16276
 
finish_eval=$lt_finish_eval
16277
 
 
16278
 
# Whether we should hardcode library paths into libraries.
16279
 
hardcode_into_libs=$hardcode_into_libs
16280
 
 
16281
 
# Compile-time system search path for libraries.
16282
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16283
 
 
16284
 
# Run-time system search path for libraries.
16285
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16286
 
 
16287
 
# Whether dlopen is supported.
16288
 
dlopen_support=$enable_dlopen
16289
 
 
16290
 
# Whether dlopen of programs is supported.
16291
 
dlopen_self=$enable_dlopen_self
16292
 
 
16293
 
# Whether dlopen of statically linked programs is supported.
16294
 
dlopen_self_static=$enable_dlopen_self_static
16295
 
 
16296
 
# Commands to strip libraries.
16297
 
old_striplib=$lt_old_striplib
16298
 
striplib=$lt_striplib
16299
 
 
16300
 
 
16301
 
# The linker used to build libraries.
16302
 
LD=$lt_LD
16303
 
 
16304
 
# Commands used to build an old-style archive.
16305
 
old_archive_cmds=$lt_old_archive_cmds
16306
 
 
16307
 
# A language specific compiler.
16308
 
CC=$lt_compiler
16309
 
 
16310
 
# Is the compiler the GNU compiler?
16311
 
with_gcc=$GCC
16312
 
 
16313
 
# Compiler flag to turn off builtin functions.
16314
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16315
 
 
16316
 
# How to pass a linker flag through the compiler.
16317
 
wl=$lt_lt_prog_compiler_wl
16318
 
 
16319
 
# Additional compiler flags for building library objects.
16320
 
pic_flag=$lt_lt_prog_compiler_pic
16321
 
 
16322
 
# Compiler flag to prevent dynamic linking.
16323
 
link_static_flag=$lt_lt_prog_compiler_static
16324
 
 
16325
 
# Does compiler simultaneously support -c and -o options?
16326
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16327
 
 
16328
 
# Whether or not to add -lc for building shared libraries.
16329
 
build_libtool_need_lc=$archive_cmds_need_lc
16330
 
 
16331
 
# Whether or not to disallow shared libs when runtime libs are static.
16332
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16333
 
 
16334
 
# Compiler flag to allow reflexive dlopens.
16335
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16336
 
 
16337
 
# Compiler flag to generate shared objects directly from archives.
16338
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16339
 
 
16340
 
# Whether the compiler copes with passing no objects directly.
16341
 
compiler_needs_object=$lt_compiler_needs_object
16342
 
 
16343
 
# Create an old-style archive from a shared archive.
16344
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16345
 
 
16346
 
# Create a temporary old-style archive to link instead of a shared archive.
16347
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16348
 
 
16349
 
# Commands used to build a shared archive.
16350
 
archive_cmds=$lt_archive_cmds
16351
 
archive_expsym_cmds=$lt_archive_expsym_cmds
16352
 
 
16353
 
# Commands used to build a loadable module if different from building
16354
 
# a shared archive.
16355
 
module_cmds=$lt_module_cmds
16356
 
module_expsym_cmds=$lt_module_expsym_cmds
16357
 
 
16358
 
# Whether we are building with GNU ld or not.
16359
 
with_gnu_ld=$lt_with_gnu_ld
16360
 
 
16361
 
# Flag that allows shared libraries with undefined symbols to be built.
16362
 
allow_undefined_flag=$lt_allow_undefined_flag
16363
 
 
16364
 
# Flag that enforces no undefined symbols.
16365
 
no_undefined_flag=$lt_no_undefined_flag
16366
 
 
16367
 
# Flag to hardcode \$libdir into a binary during linking.
16368
 
# This must work even if \$libdir does not exist
16369
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16370
 
 
16371
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
16372
 
# during linking.  This must work even if \$libdir does not exist.
16373
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16374
 
 
16375
 
# Whether we need a single "-rpath" flag with a separated argument.
16376
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16377
 
 
16378
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16379
 
# DIR into the resulting binary.
16380
 
hardcode_direct=$hardcode_direct
16381
 
 
16382
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16383
 
# DIR into the resulting binary and the resulting library dependency is
16384
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16385
 
# library is relocated.
16386
 
hardcode_direct_absolute=$hardcode_direct_absolute
16387
 
 
16388
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16389
 
# into the resulting binary.
16390
 
hardcode_minus_L=$hardcode_minus_L
16391
 
 
16392
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16393
 
# into the resulting binary.
16394
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
16395
 
 
16396
 
# Set to "yes" if building a shared library automatically hardcodes DIR
16397
 
# into the library and all subsequent libraries and executables linked
16398
 
# against it.
16399
 
hardcode_automatic=$hardcode_automatic
16400
 
 
16401
 
# Set to yes if linker adds runtime paths of dependent libraries
16402
 
# to runtime path list.
16403
 
inherit_rpath=$inherit_rpath
16404
 
 
16405
 
# Whether libtool must link a program against all its dependency libraries.
16406
 
link_all_deplibs=$link_all_deplibs
16407
 
 
16408
 
# Fix the shell variable \$srcfile for the compiler.
16409
 
fix_srcfile_path=$lt_fix_srcfile_path
16410
 
 
16411
 
# Set to "yes" if exported symbols are required.
16412
 
always_export_symbols=$always_export_symbols
16413
 
 
16414
 
# The commands to list exported symbols.
16415
 
export_symbols_cmds=$lt_export_symbols_cmds
16416
 
 
16417
 
# Symbols that should not be listed in the preloaded symbols.
16418
 
exclude_expsyms=$lt_exclude_expsyms
16419
 
 
16420
 
# Symbols that must always be exported.
16421
 
include_expsyms=$lt_include_expsyms
16422
 
 
16423
 
# Commands necessary for linking programs (against libraries) with templates.
16424
 
prelink_cmds=$lt_prelink_cmds
16425
 
 
16426
 
# Specify filename containing input files.
16427
 
file_list_spec=$lt_file_list_spec
16428
 
 
16429
 
# How to hardcode a shared library path into an executable.
16430
 
hardcode_action=$hardcode_action
16431
 
 
16432
 
# ### END LIBTOOL CONFIG
16433
 
 
16434
 
_LT_EOF
16435
 
 
16436
 
  case $host_os in
16437
 
  aix3*)
16438
 
    cat <<\_LT_EOF >> "$cfgfile"
16439
 
# AIX sometimes has problems with the GCC collect2 program.  For some
16440
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
16441
 
# vanish in a puff of smoke.
16442
 
if test "X${COLLECT_NAMES+set}" != Xset; then
16443
 
  COLLECT_NAMES=
16444
 
  export COLLECT_NAMES
16445
 
fi
16446
 
_LT_EOF
16447
 
    ;;
16448
 
  esac
16449
 
 
16450
 
 
16451
 
ltmain="$ac_aux_dir/ltmain.sh"
16452
 
 
16453
 
 
16454
 
  # We use sed instead of cat because bash on DJGPP gets confused if
16455
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16456
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
16457
 
  # is reportedly fixed, but why not run on old versions too?
16458
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16459
 
    || (rm -f "$cfgfile"; exit 1)
16460
 
 
16461
 
  case $xsi_shell in
16462
 
  yes)
16463
 
    cat << \_LT_EOF >> "$cfgfile"
16464
 
 
16465
 
# func_dirname file append nondir_replacement
16466
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16467
 
# otherwise set result to NONDIR_REPLACEMENT.
16468
 
func_dirname ()
16469
 
{
16470
 
  case ${1} in
16471
 
    */*) func_dirname_result="${1%/*}${2}" ;;
16472
 
    *  ) func_dirname_result="${3}" ;;
16473
 
  esac
16474
 
}
16475
 
 
16476
 
# func_basename file
16477
 
func_basename ()
16478
 
{
16479
 
  func_basename_result="${1##*/}"
16480
 
}
16481
 
 
16482
 
# func_dirname_and_basename file append nondir_replacement
16483
 
# perform func_basename and func_dirname in a single function
16484
 
# call:
16485
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
16486
 
#             add APPEND to the result, otherwise set result
16487
 
#             to NONDIR_REPLACEMENT.
16488
 
#             value returned in "$func_dirname_result"
16489
 
#   basename: Compute filename of FILE.
16490
 
#             value retuned in "$func_basename_result"
16491
 
# Implementation must be kept synchronized with func_dirname
16492
 
# and func_basename. For efficiency, we do not delegate to
16493
 
# those functions but instead duplicate the functionality here.
16494
 
func_dirname_and_basename ()
16495
 
{
16496
 
  case ${1} in
16497
 
    */*) func_dirname_result="${1%/*}${2}" ;;
16498
 
    *  ) func_dirname_result="${3}" ;;
16499
 
  esac
16500
 
  func_basename_result="${1##*/}"
16501
 
}
16502
 
 
16503
 
# func_stripname prefix suffix name
16504
 
# strip PREFIX and SUFFIX off of NAME.
16505
 
# PREFIX and SUFFIX must not contain globbing or regex special
16506
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
16507
 
# dot (in which case that matches only a dot).
16508
 
func_stripname ()
16509
 
{
16510
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16511
 
  # positional parameters, so assign one to ordinary parameter first.
16512
 
  func_stripname_result=${3}
16513
 
  func_stripname_result=${func_stripname_result#"${1}"}
16514
 
  func_stripname_result=${func_stripname_result%"${2}"}
16515
 
}
16516
 
 
16517
 
# func_opt_split
16518
 
func_opt_split ()
16519
 
{
16520
 
  func_opt_split_opt=${1%%=*}
16521
 
  func_opt_split_arg=${1#*=}
16522
 
}
16523
 
 
16524
 
# func_lo2o object
16525
 
func_lo2o ()
16526
 
{
16527
 
  case ${1} in
16528
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16529
 
    *)    func_lo2o_result=${1} ;;
16530
 
  esac
16531
 
}
16532
 
 
16533
 
# func_xform libobj-or-source
16534
 
func_xform ()
16535
 
{
16536
 
  func_xform_result=${1%.*}.lo
16537
 
}
16538
 
 
16539
 
# func_arith arithmetic-term...
16540
 
func_arith ()
16541
 
{
16542
 
  func_arith_result=$(( $* ))
16543
 
}
16544
 
 
16545
 
# func_len string
16546
 
# STRING may not start with a hyphen.
16547
 
func_len ()
16548
 
{
16549
 
  func_len_result=${#1}
16550
 
}
16551
 
 
16552
 
_LT_EOF
16553
 
    ;;
16554
 
  *) # Bourne compatible functions.
16555
 
    cat << \_LT_EOF >> "$cfgfile"
16556
 
 
16557
 
# func_dirname file append nondir_replacement
16558
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16559
 
# otherwise set result to NONDIR_REPLACEMENT.
16560
 
func_dirname ()
16561
 
{
16562
 
  # Extract subdirectory from the argument.
16563
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16564
 
  if test "X$func_dirname_result" = "X${1}"; then
16565
 
    func_dirname_result="${3}"
16566
 
  else
16567
 
    func_dirname_result="$func_dirname_result${2}"
16568
 
  fi
16569
 
}
16570
 
 
16571
 
# func_basename file
16572
 
func_basename ()
16573
 
{
16574
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16575
 
}
16576
 
 
16577
 
 
16578
 
# func_stripname prefix suffix name
16579
 
# strip PREFIX and SUFFIX off of NAME.
16580
 
# PREFIX and SUFFIX must not contain globbing or regex special
16581
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
16582
 
# dot (in which case that matches only a dot).
16583
 
# func_strip_suffix prefix name
16584
 
func_stripname ()
16585
 
{
16586
 
  case ${2} in
16587
 
    .*) func_stripname_result=`$ECHO "X${3}" \
16588
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16589
 
    *)  func_stripname_result=`$ECHO "X${3}" \
16590
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16591
 
  esac
16592
 
}
16593
 
 
16594
 
# sed scripts:
16595
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16596
 
my_sed_long_arg='1s/^-[^=]*=//'
16597
 
 
16598
 
# func_opt_split
16599
 
func_opt_split ()
16600
 
{
16601
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16602
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16603
 
}
16604
 
 
16605
 
# func_lo2o object
16606
 
func_lo2o ()
16607
 
{
16608
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16609
 
}
16610
 
 
16611
 
# func_xform libobj-or-source
16612
 
func_xform ()
16613
 
{
16614
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16615
 
}
16616
 
 
16617
 
# func_arith arithmetic-term...
16618
 
func_arith ()
16619
 
{
16620
 
  func_arith_result=`expr "$@"`
16621
 
}
16622
 
 
16623
 
# func_len string
16624
 
# STRING may not start with a hyphen.
16625
 
func_len ()
16626
 
{
16627
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16628
 
}
16629
 
 
16630
 
_LT_EOF
16631
 
esac
16632
 
 
16633
 
case $lt_shell_append in
16634
 
  yes)
16635
 
    cat << \_LT_EOF >> "$cfgfile"
16636
 
 
16637
 
# func_append var value
16638
 
# Append VALUE to the end of shell variable VAR.
16639
 
func_append ()
16640
 
{
16641
 
  eval "$1+=\$2"
16642
 
}
16643
 
_LT_EOF
16644
 
    ;;
16645
 
  *)
16646
 
    cat << \_LT_EOF >> "$cfgfile"
16647
 
 
16648
 
# func_append var value
16649
 
# Append VALUE to the end of shell variable VAR.
16650
 
func_append ()
16651
 
{
16652
 
  eval "$1=\$$1\$2"
16653
 
}
16654
 
 
16655
 
_LT_EOF
16656
 
    ;;
16657
 
  esac
16658
 
 
16659
 
 
16660
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16661
 
    || (rm -f "$cfgfile"; exit 1)
16662
 
 
16663
 
  mv -f "$cfgfile" "$ofile" ||
16664
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16665
 
  chmod +x "$ofile"
16666
 
 
16667
 
 ;;
16668
 
 
16669
 
  esac
16670
 
done # for ac_tag
16671
 
 
16672
 
 
16673
 
as_fn_exit 0
16674
 
_ACEOF
16675
 
ac_clean_files=$ac_clean_files_save
16676
 
 
16677
 
test $ac_write_fail = 0 ||
16678
 
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16679
 
 
16680
 
 
16681
 
# configure is writing to config.log, and then calls config.status.
16682
 
# config.status does its own redirection, appending to config.log.
16683
 
# Unfortunately, on DOS this fails, as config.log is still kept open
16684
 
# by configure, so config.status won't be able to write to it; its
16685
 
# output is simply discarded.  So we exec the FD to /dev/null,
16686
 
# effectively closing config.log, so it can be properly (re)opened and
16687
 
# appended to by config.status.  When coming back to configure, we
16688
 
# need to make the FD available again.
16689
 
if test "$no_create" != yes; then
16690
 
  ac_cs_success=:
16691
 
  ac_config_status_args=
16692
 
  test "$silent" = yes &&
16693
 
    ac_config_status_args="$ac_config_status_args --quiet"
16694
 
  exec 5>/dev/null
16695
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16696
 
  exec 5>>config.log
16697
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16698
 
  # would make configure fail if this is the last instruction.
16699
 
  $ac_cs_success || as_fn_exit $?
16700
 
fi
16701
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16702
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16703
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16704
 
fi
16705