~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to libraries/libapparmor/configure

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.67.
 
4
#
 
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
8
# Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
case $0 in #((
 
93
  *[\\/]* ) as_myself=$0 ;;
 
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
95
for as_dir in $PATH
 
96
do
 
97
  IFS=$as_save_IFS
 
98
  test -z "$as_dir" && as_dir=.
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
 
101
IFS=$as_save_IFS
 
102
 
 
103
     ;;
 
104
esac
 
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
106
# in which case we are not to be found in the path.
 
107
if test "x$as_myself" = x; then
 
108
  as_myself=$0
 
109
fi
 
110
if test ! -f "$as_myself"; then
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
 
113
fi
 
114
 
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
122
done
 
123
PS1='$ '
 
124
PS2='> '
 
125
PS4='+ '
 
126
 
 
127
# NLS nuisances.
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
 
132
 
 
133
# CDPATH.
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
135
 
 
136
if test "x$CONFIG_SHELL" = x; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
 
176
  as_have_required=yes
 
177
else
 
178
  as_have_required=no
 
179
fi
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
 
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
186
do
 
187
  IFS=$as_save_IFS
 
188
  test -z "$as_dir" && as_dir=.
 
189
  as_found=:
 
190
  case $as_dir in #(
 
191
         /*)
 
192
           for as_base in sh bash ksh sh5; do
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
 
202
           done;;
 
203
       esac
 
204
  as_found=false
 
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
 
210
IFS=$as_save_IFS
 
211
 
 
212
 
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
232
$0: including any error possibly output before this
 
233
$0: message. Then install a modern shell, or manually run
 
234
$0: the script under such a shell if you do have one."
 
235
  fi
 
236
  exit 1
 
237
fi
 
238
fi
 
239
fi
 
240
SHELL=${CONFIG_SHELL-/bin/sh}
 
241
export SHELL
 
242
# Unset more variables known to interfere with behavior of common tools.
 
243
CLICOLOR_FORCE= GREP_OPTIONS=
 
244
unset CLICOLOR_FORCE GREP_OPTIONS
 
245
 
 
246
## --------------------- ##
 
247
## M4sh Shell Functions. ##
 
248
## --------------------- ##
 
249
# as_fn_unset VAR
 
250
# ---------------
 
251
# Portably unset VAR.
 
252
as_fn_unset ()
 
253
{
 
254
  { eval $1=; unset $1;}
 
255
}
 
256
as_unset=as_fn_unset
 
257
 
 
258
# as_fn_set_status STATUS
 
259
# -----------------------
 
260
# Set $? to STATUS, without forking.
 
261
as_fn_set_status ()
 
262
{
 
263
  return $1
 
264
} # as_fn_set_status
 
265
 
 
266
# as_fn_exit STATUS
 
267
# -----------------
 
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
269
as_fn_exit ()
 
270
{
 
271
  set +e
 
272
  as_fn_set_status $1
 
273
  exit $1
 
274
} # as_fn_exit
 
275
 
 
276
# as_fn_mkdir_p
 
277
# -------------
 
278
# Create "$as_dir" as a directory, including parents if necessary.
 
279
as_fn_mkdir_p ()
 
280
{
 
281
 
 
282
  case $as_dir in #(
 
283
  -*) as_dir=./$as_dir;;
 
284
  esac
 
285
  test -d "$as_dir" || eval $as_mkdir_p || {
 
286
    as_dirs=
 
287
    while :; do
 
288
      case $as_dir in #(
 
289
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
290
      *) as_qdir=$as_dir;;
 
291
      esac
 
292
      as_dirs="'$as_qdir' $as_dirs"
 
293
      as_dir=`$as_dirname -- "$as_dir" ||
 
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
295
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
296
         X"$as_dir" : 'X\(//\)$' \| \
 
297
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
298
$as_echo X"$as_dir" |
 
299
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
300
            s//\1/
 
301
            q
 
302
          }
 
303
          /^X\(\/\/\)[^/].*/{
 
304
            s//\1/
 
305
            q
 
306
          }
 
307
          /^X\(\/\/\)$/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\).*/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          s/.*/./; q'`
 
316
      test -d "$as_dir" && break
 
317
    done
 
318
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
319
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
320
 
 
321
 
 
322
} # as_fn_mkdir_p
 
323
# as_fn_append VAR VALUE
 
324
# ----------------------
 
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
326
# advantage of any shell optimizations that allow amortized linear growth over
 
327
# repeated appends, instead of the typical quadratic growth present in naive
 
328
# implementations.
 
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
330
  eval 'as_fn_append ()
 
331
  {
 
332
    eval $1+=\$2
 
333
  }'
 
334
else
 
335
  as_fn_append ()
 
336
  {
 
337
    eval $1=\$$1\$2
 
338
  }
 
339
fi # as_fn_append
 
340
 
 
341
# as_fn_arith ARG...
 
342
# ------------------
 
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
345
# must be portable across $(()) and expr.
 
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
347
  eval 'as_fn_arith ()
 
348
  {
 
349
    as_val=$(( $* ))
 
350
  }'
 
351
else
 
352
  as_fn_arith ()
 
353
  {
 
354
    as_val=`expr "$@" || test $? -eq 1`
 
355
  }
 
356
fi # as_fn_arith
 
357
 
 
358
 
 
359
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
360
# ----------------------------------------
 
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
363
# script with STATUS, using 1 if that was 0.
 
364
as_fn_error ()
 
365
{
 
366
  as_status=$1; test $as_status -eq 0 && as_status=1
 
367
  if test "$4"; then
 
368
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
369
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
370
  fi
 
371
  $as_echo "$as_me: error: $2" >&2
 
372
  as_fn_exit $as_status
 
373
} # as_fn_error
 
374
 
 
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
376
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
377
  as_expr=expr
 
378
else
 
379
  as_expr=false
 
380
fi
 
381
 
 
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
383
  as_basename=basename
 
384
else
 
385
  as_basename=false
 
386
fi
 
387
 
 
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
389
  as_dirname=dirname
 
390
else
 
391
  as_dirname=false
 
392
fi
 
393
 
 
394
as_me=`$as_basename -- "$0" ||
 
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
396
         X"$0" : 'X\(//\)$' \| \
 
397
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
398
$as_echo X/"$0" |
 
399
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
400
            s//\1/
 
401
            q
 
402
          }
 
403
          /^X\/\(\/\/\)$/{
 
404
            s//\1/
 
405
            q
 
406
          }
 
407
          /^X\/\(\/\).*/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          s/.*/./; q'`
 
412
 
 
413
# Avoid depending upon Character Ranges.
 
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
417
as_cr_digits='0123456789'
 
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
419
 
 
420
 
 
421
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
422
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
423
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
424
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
425
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
426
  sed -n '
 
427
    p
 
428
    /[$]LINENO/=
 
429
  ' <$as_myself |
 
430
    sed '
 
431
      s/[$]LINENO.*/&-/
 
432
      t lineno
 
433
      b
 
434
      :lineno
 
435
      N
 
436
      :loop
 
437
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
438
      t loop
 
439
      s/-\n.*//
 
440
    ' >$as_me.lineno &&
 
441
  chmod +x "$as_me.lineno" ||
 
442
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
443
 
 
444
  # Don't try to exec as it changes $[0], causing all sort of problems
 
445
  # (the dirname of $[0] is not the place where we might find the
 
446
  # original and so on.  Autoconf is especially sensitive to this).
 
447
  . "./$as_me.lineno"
 
448
  # Exit status is that of the last command.
 
449
  exit
 
450
}
 
451
 
 
452
ECHO_C= ECHO_N= ECHO_T=
 
453
case `echo -n x` in #(((((
 
454
-n*)
 
455
  case `echo 'xy\c'` in
 
456
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
457
  xy)  ECHO_C='\c';;
 
458
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
459
       ECHO_T=' ';;
 
460
  esac;;
 
461
*)
 
462
  ECHO_N='-n';;
 
463
esac
 
464
 
 
465
rm -f conf$$ conf$$.exe conf$$.file
 
466
if test -d conf$$.dir; then
 
467
  rm -f conf$$.dir/conf$$.file
 
468
else
 
469
  rm -f conf$$.dir
 
470
  mkdir conf$$.dir 2>/dev/null
 
471
fi
 
472
if (echo >conf$$.file) 2>/dev/null; then
 
473
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
474
    as_ln_s='ln -s'
 
475
    # ... but there are two gotchas:
 
476
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
477
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
478
    # In both cases, we have to default to `cp -p'.
 
479
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
480
      as_ln_s='cp -p'
 
481
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
482
    as_ln_s=ln
 
483
  else
 
484
    as_ln_s='cp -p'
 
485
  fi
 
486
else
 
487
  as_ln_s='cp -p'
 
488
fi
 
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
490
rmdir conf$$.dir 2>/dev/null
 
491
 
 
492
if mkdir -p . 2>/dev/null; then
 
493
  as_mkdir_p='mkdir -p "$as_dir"'
 
494
else
 
495
  test -d ./-p && rmdir ./-p
 
496
  as_mkdir_p=false
 
497
fi
 
498
 
 
499
if test -x / >/dev/null 2>&1; then
 
500
  as_test_x='test -x'
 
501
else
 
502
  if ls -dL / >/dev/null 2>&1; then
 
503
    as_ls_L_option=L
 
504
  else
 
505
    as_ls_L_option=
 
506
  fi
 
507
  as_test_x='
 
508
    eval sh -c '\''
 
509
      if test -d "$1"; then
 
510
        test -d "$1/.";
 
511
      else
 
512
        case $1 in #(
 
513
        -*)set "./$1";;
 
514
        esac;
 
515
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
516
        ???[sx]*):;;*)false;;esac;fi
 
517
    '\'' sh
 
518
  '
 
519
fi
 
520
as_executable_p=$as_test_x
 
521
 
 
522
# Sed expression to map a string onto a valid CPP name.
 
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
524
 
 
525
# Sed expression to map a string onto a valid variable name.
 
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
 
 
529
 
 
530
# Check that we are running under the correct shell.
 
531
SHELL=${CONFIG_SHELL-/bin/sh}
 
532
 
 
533
case X$lt_ECHO in
 
534
X*--fallback-echo)
 
535
  # Remove one level of quotation (which was required for Make).
 
536
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
537
  ;;
 
538
esac
 
539
 
 
540
ECHO=${lt_ECHO-echo}
 
541
if test "X$1" = X--no-reexec; then
 
542
  # Discard the --no-reexec flag, and continue.
 
543
  shift
 
544
elif test "X$1" = X--fallback-echo; then
 
545
  # Avoid inline document here, it may be left over
 
546
  :
 
547
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
548
  # Yippee, $ECHO works!
 
549
  :
 
550
else
 
551
  # Restart under the correct shell.
 
552
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
553
fi
 
554
 
 
555
if test "X$1" = X--fallback-echo; then
 
556
  # used as fallback echo
 
557
  shift
 
558
  cat <<_LT_EOF
 
559
$*
 
560
_LT_EOF
 
561
  exit 0
 
562
fi
 
563
 
 
564
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
565
# if CDPATH is set.
 
566
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
567
 
 
568
if test -z "$lt_ECHO"; then
 
569
  if test "X${echo_test_string+set}" != Xset; then
 
570
    # find a string as large as possible, as long as the shell can cope with it
 
571
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
572
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
573
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
574
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
575
      then
 
576
        break
 
577
      fi
 
578
    done
 
579
  fi
 
580
 
 
581
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
582
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
583
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
584
    :
 
585
  else
 
586
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
587
    # backslashes.  This makes it impossible to quote backslashes using
 
588
    #   echo "$something" | sed 's/\\/\\\\/g'
 
589
    #
 
590
    # So, first we look for a working echo in the user's PATH.
 
591
 
 
592
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
593
    for dir in $PATH /usr/ucb; do
 
594
      IFS="$lt_save_ifs"
 
595
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
596
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
597
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
598
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
599
        ECHO="$dir/echo"
 
600
        break
 
601
      fi
 
602
    done
 
603
    IFS="$lt_save_ifs"
 
604
 
 
605
    if test "X$ECHO" = Xecho; then
 
606
      # We didn't find a better echo, so look for alternatives.
 
607
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
608
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
609
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
        # This shell has a builtin print -r that does the trick.
 
611
        ECHO='print -r'
 
612
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
613
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
614
        # If we have ksh, try running configure again with it.
 
615
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
616
        export ORIGINAL_CONFIG_SHELL
 
617
        CONFIG_SHELL=/bin/ksh
 
618
        export CONFIG_SHELL
 
619
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
620
      else
 
621
        # Try using printf.
 
622
        ECHO='printf %s\n'
 
623
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
624
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
625
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
626
          # Cool, printf works
 
627
          :
 
628
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
629
             test "X$echo_testing_string" = 'X\t' &&
 
630
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
631
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
632
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
633
          export CONFIG_SHELL
 
634
          SHELL="$CONFIG_SHELL"
 
635
          export SHELL
 
636
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
637
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
638
             test "X$echo_testing_string" = 'X\t' &&
 
639
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
640
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
641
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
642
        else
 
643
          # maybe with a smaller string...
 
644
          prev=:
 
645
 
 
646
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
647
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
648
            then
 
649
              break
 
650
            fi
 
651
            prev="$cmd"
 
652
          done
 
653
 
 
654
          if test "$prev" != 'sed 50q "$0"'; then
 
655
            echo_test_string=`eval $prev`
 
656
            export echo_test_string
 
657
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
658
          else
 
659
            # Oops.  We lost completely, so just stick with echo.
 
660
            ECHO=echo
 
661
          fi
 
662
        fi
 
663
      fi
 
664
    fi
 
665
  fi
 
666
fi
 
667
 
 
668
# Copy echo and quote the copy suitably for passing to libtool from
 
669
# the Makefile, instead of quoting the original, which is used later.
 
670
lt_ECHO=$ECHO
 
671
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
672
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
673
fi
 
674
 
 
675
 
 
676
 
 
677
 
 
678
test -n "$DJDIR" || exec 7<&0 </dev/null
 
679
exec 6>&1
 
680
 
 
681
# Name of the host.
 
682
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
683
# so uname gets run too.
 
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
685
 
 
686
#
 
687
# Initializations.
 
688
#
 
689
ac_default_prefix=/usr/local
 
690
ac_clean_files=
 
691
ac_config_libobj_dir=.
 
692
LIBOBJS=
 
693
cross_compiling=no
 
694
subdirs=
 
695
MFLAGS=
 
696
MAKEFLAGS=
 
697
 
 
698
# Identity of this package.
 
699
PACKAGE_NAME=
 
700
PACKAGE_TARNAME=
 
701
PACKAGE_VERSION=
 
702
PACKAGE_STRING=
 
703
PACKAGE_BUGREPORT=
 
704
PACKAGE_URL=
 
705
 
 
706
ac_unique_file="configure.in"
 
707
# Factoring default headers for most tests.
 
708
ac_includes_default="\
 
709
#include <stdio.h>
 
710
#ifdef HAVE_SYS_TYPES_H
 
711
# include <sys/types.h>
 
712
#endif
 
713
#ifdef HAVE_SYS_STAT_H
 
714
# include <sys/stat.h>
 
715
#endif
 
716
#ifdef STDC_HEADERS
 
717
# include <stdlib.h>
 
718
# include <stddef.h>
 
719
#else
 
720
# ifdef HAVE_STDLIB_H
 
721
#  include <stdlib.h>
 
722
# endif
 
723
#endif
 
724
#ifdef HAVE_STRING_H
 
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
726
#  include <memory.h>
 
727
# endif
 
728
# include <string.h>
 
729
#endif
 
730
#ifdef HAVE_STRINGS_H
 
731
# include <strings.h>
 
732
#endif
 
733
#ifdef HAVE_INTTYPES_H
 
734
# include <inttypes.h>
 
735
#endif
 
736
#ifdef HAVE_STDINT_H
 
737
# include <stdint.h>
 
738
#endif
 
739
#ifdef HAVE_UNISTD_H
 
740
# include <unistd.h>
 
741
#endif"
 
742
 
 
743
ac_subst_vars='am__EXEEXT_FALSE
 
744
am__EXEEXT_TRUE
 
745
LTLIBOBJS
 
746
LIBOBJS
 
747
OTOOL64
 
748
OTOOL
 
749
LIPO
 
750
NMEDIT
 
751
DSYMUTIL
 
752
lt_ECHO
 
753
RANLIB
 
754
AR
 
755
OBJDUMP
 
756
LN_S
 
757
NM
 
758
ac_ct_DUMPBIN
 
759
DUMPBIN
 
760
LD
 
761
FGREP
 
762
host_os
 
763
host_vendor
 
764
host_cpu
 
765
host
 
766
build_os
 
767
build_vendor
 
768
build_cpu
 
769
build
 
770
LIBTOOL
 
771
EGREP
 
772
GREP
 
773
CPP
 
774
BUILD_ROOTLIB_FALSE
 
775
BUILD_ROOTLIB_TRUE
 
776
HAVE_RUBY_FALSE
 
777
HAVE_RUBY_TRUE
 
778
HAVE_PERL_FALSE
 
779
HAVE_PERL_TRUE
 
780
HAVE_PYTHON_FALSE
 
781
HAVE_PYTHON_TRUE
 
782
RUBY
 
783
PERL
 
784
pkgpyexecdir
 
785
pyexecdir
 
786
pkgpythondir
 
787
pythondir
 
788
PYTHON_PLATFORM
 
789
PYTHON_EXEC_PREFIX
 
790
PYTHON_PREFIX
 
791
PYTHON_EXTRA_LDFLAGS
 
792
PYTHON_EXTRA_LIBS
 
793
PYTHON_SITE_PKG
 
794
PYTHON_LDFLAGS
 
795
PYTHON_CPPFLAGS
 
796
PYTHON_VERSION
 
797
PYTHON
 
798
POD2MAN
 
799
SWIG
 
800
SED
 
801
YFLAGS
 
802
YACC
 
803
LEXLIB
 
804
am__fastdepCC_FALSE
 
805
am__fastdepCC_TRUE
 
806
CCDEPMODE
 
807
AMDEPBACKSLASH
 
808
AMDEP_FALSE
 
809
AMDEP_TRUE
 
810
am__quote
 
811
am__include
 
812
DEPDIR
 
813
OBJEXT
 
814
EXEEXT
 
815
ac_ct_CC
 
816
CPPFLAGS
 
817
LDFLAGS
 
818
CFLAGS
 
819
CC
 
820
LEX_OUTPUT_ROOT
 
821
LEX
 
822
am__untar
 
823
am__tar
 
824
AMTAR
 
825
am__leading_dot
 
826
SET_MAKE
 
827
AWK
 
828
mkdir_p
 
829
MKDIR_P
 
830
INSTALL_STRIP_PROGRAM
 
831
STRIP
 
832
install_sh
 
833
MAKEINFO
 
834
AUTOHEADER
 
835
AUTOMAKE
 
836
AUTOCONF
 
837
ACLOCAL
 
838
VERSION
 
839
PACKAGE
 
840
CYGPATH_W
 
841
am__isrc
 
842
INSTALL_DATA
 
843
INSTALL_SCRIPT
 
844
INSTALL_PROGRAM
 
845
target_alias
 
846
host_alias
 
847
build_alias
 
848
LIBS
 
849
ECHO_T
 
850
ECHO_N
 
851
ECHO_C
 
852
DEFS
 
853
mandir
 
854
localedir
 
855
libdir
 
856
psdir
 
857
pdfdir
 
858
dvidir
 
859
htmldir
 
860
infodir
 
861
docdir
 
862
oldincludedir
 
863
includedir
 
864
localstatedir
 
865
sharedstatedir
 
866
sysconfdir
 
867
datadir
 
868
datarootdir
 
869
libexecdir
 
870
sbindir
 
871
bindir
 
872
program_transform_name
 
873
prefix
 
874
exec_prefix
 
875
PACKAGE_URL
 
876
PACKAGE_BUGREPORT
 
877
PACKAGE_STRING
 
878
PACKAGE_VERSION
 
879
PACKAGE_TARNAME
 
880
PACKAGE_NAME
 
881
PATH_SEPARATOR
 
882
SHELL'
 
883
ac_subst_files=''
 
884
ac_user_opts='
 
885
enable_option_checking
 
886
enable_dependency_tracking
 
887
with_python
 
888
with_perl
 
889
with_ruby
 
890
enable_shared
 
891
enable_static
 
892
with_pic
 
893
enable_fast_install
 
894
with_gnu_ld
 
895
enable_libtool_lock
 
896
'
 
897
      ac_precious_vars='build_alias
 
898
host_alias
 
899
target_alias
 
900
CC
 
901
CFLAGS
 
902
LDFLAGS
 
903
LIBS
 
904
CPPFLAGS
 
905
YACC
 
906
YFLAGS
 
907
PYTHON_VERSION
 
908
CPP'
 
909
 
 
910
 
 
911
# Initialize some variables set by options.
 
912
ac_init_help=
 
913
ac_init_version=false
 
914
ac_unrecognized_opts=
 
915
ac_unrecognized_sep=
 
916
# The variables have the same names as the options, with
 
917
# dashes changed to underlines.
 
918
cache_file=/dev/null
 
919
exec_prefix=NONE
 
920
no_create=
 
921
no_recursion=
 
922
prefix=NONE
 
923
program_prefix=NONE
 
924
program_suffix=NONE
 
925
program_transform_name=s,x,x,
 
926
silent=
 
927
site=
 
928
srcdir=
 
929
verbose=
 
930
x_includes=NONE
 
931
x_libraries=NONE
 
932
 
 
933
# Installation directory options.
 
934
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
935
# and all the variables that are supposed to be based on exec_prefix
 
936
# by default will actually change.
 
937
# Use braces instead of parens because sh, perl, etc. also accept them.
 
938
# (The list follows the same order as the GNU Coding Standards.)
 
939
bindir='${exec_prefix}/bin'
 
940
sbindir='${exec_prefix}/sbin'
 
941
libexecdir='${exec_prefix}/libexec'
 
942
datarootdir='${prefix}/share'
 
943
datadir='${datarootdir}'
 
944
sysconfdir='${prefix}/etc'
 
945
sharedstatedir='${prefix}/com'
 
946
localstatedir='${prefix}/var'
 
947
includedir='${prefix}/include'
 
948
oldincludedir='/usr/include'
 
949
docdir='${datarootdir}/doc/${PACKAGE}'
 
950
infodir='${datarootdir}/info'
 
951
htmldir='${docdir}'
 
952
dvidir='${docdir}'
 
953
pdfdir='${docdir}'
 
954
psdir='${docdir}'
 
955
libdir='${exec_prefix}/lib'
 
956
localedir='${datarootdir}/locale'
 
957
mandir='${datarootdir}/man'
 
958
 
 
959
ac_prev=
 
960
ac_dashdash=
 
961
for ac_option
 
962
do
 
963
  # If the previous option needs an argument, assign it.
 
964
  if test -n "$ac_prev"; then
 
965
    eval $ac_prev=\$ac_option
 
966
    ac_prev=
 
967
    continue
 
968
  fi
 
969
 
 
970
  case $ac_option in
 
971
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
972
  *=)   ac_optarg= ;;
 
973
  *)    ac_optarg=yes ;;
 
974
  esac
 
975
 
 
976
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
977
 
 
978
  case $ac_dashdash$ac_option in
 
979
  --)
 
980
    ac_dashdash=yes ;;
 
981
 
 
982
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
983
    ac_prev=bindir ;;
 
984
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
985
    bindir=$ac_optarg ;;
 
986
 
 
987
  -build | --build | --buil | --bui | --bu)
 
988
    ac_prev=build_alias ;;
 
989
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
990
    build_alias=$ac_optarg ;;
 
991
 
 
992
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
993
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
994
    ac_prev=cache_file ;;
 
995
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
996
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
997
    cache_file=$ac_optarg ;;
 
998
 
 
999
  --config-cache | -C)
 
1000
    cache_file=config.cache ;;
 
1001
 
 
1002
  -datadir | --datadir | --datadi | --datad)
 
1003
    ac_prev=datadir ;;
 
1004
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1005
    datadir=$ac_optarg ;;
 
1006
 
 
1007
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1008
  | --dataroo | --dataro | --datar)
 
1009
    ac_prev=datarootdir ;;
 
1010
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1011
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1012
    datarootdir=$ac_optarg ;;
 
1013
 
 
1014
  -disable-* | --disable-*)
 
1015
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1016
    # Reject names that are not valid shell variable names.
 
1017
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1018
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1019
    ac_useropt_orig=$ac_useropt
 
1020
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1021
    case $ac_user_opts in
 
1022
      *"
 
1023
"enable_$ac_useropt"
 
1024
"*) ;;
 
1025
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1026
         ac_unrecognized_sep=', ';;
 
1027
    esac
 
1028
    eval enable_$ac_useropt=no ;;
 
1029
 
 
1030
  -docdir | --docdir | --docdi | --doc | --do)
 
1031
    ac_prev=docdir ;;
 
1032
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1033
    docdir=$ac_optarg ;;
 
1034
 
 
1035
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1036
    ac_prev=dvidir ;;
 
1037
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1038
    dvidir=$ac_optarg ;;
 
1039
 
 
1040
  -enable-* | --enable-*)
 
1041
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1042
    # Reject names that are not valid shell variable names.
 
1043
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1044
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1045
    ac_useropt_orig=$ac_useropt
 
1046
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1047
    case $ac_user_opts in
 
1048
      *"
 
1049
"enable_$ac_useropt"
 
1050
"*) ;;
 
1051
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1052
         ac_unrecognized_sep=', ';;
 
1053
    esac
 
1054
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1055
 
 
1056
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1057
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1058
  | --exec | --exe | --ex)
 
1059
    ac_prev=exec_prefix ;;
 
1060
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1061
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1062
  | --exec=* | --exe=* | --ex=*)
 
1063
    exec_prefix=$ac_optarg ;;
 
1064
 
 
1065
  -gas | --gas | --ga | --g)
 
1066
    # Obsolete; use --with-gas.
 
1067
    with_gas=yes ;;
 
1068
 
 
1069
  -help | --help | --hel | --he | -h)
 
1070
    ac_init_help=long ;;
 
1071
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1072
    ac_init_help=recursive ;;
 
1073
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1074
    ac_init_help=short ;;
 
1075
 
 
1076
  -host | --host | --hos | --ho)
 
1077
    ac_prev=host_alias ;;
 
1078
  -host=* | --host=* | --hos=* | --ho=*)
 
1079
    host_alias=$ac_optarg ;;
 
1080
 
 
1081
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1082
    ac_prev=htmldir ;;
 
1083
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1084
  | --ht=*)
 
1085
    htmldir=$ac_optarg ;;
 
1086
 
 
1087
  -includedir | --includedir | --includedi | --included | --include \
 
1088
  | --includ | --inclu | --incl | --inc)
 
1089
    ac_prev=includedir ;;
 
1090
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1091
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1092
    includedir=$ac_optarg ;;
 
1093
 
 
1094
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1095
    ac_prev=infodir ;;
 
1096
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1097
    infodir=$ac_optarg ;;
 
1098
 
 
1099
  -libdir | --libdir | --libdi | --libd)
 
1100
    ac_prev=libdir ;;
 
1101
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1102
    libdir=$ac_optarg ;;
 
1103
 
 
1104
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1105
  | --libexe | --libex | --libe)
 
1106
    ac_prev=libexecdir ;;
 
1107
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1108
  | --libexe=* | --libex=* | --libe=*)
 
1109
    libexecdir=$ac_optarg ;;
 
1110
 
 
1111
  -localedir | --localedir | --localedi | --localed | --locale)
 
1112
    ac_prev=localedir ;;
 
1113
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1114
    localedir=$ac_optarg ;;
 
1115
 
 
1116
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1117
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1118
    ac_prev=localstatedir ;;
 
1119
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1120
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1121
    localstatedir=$ac_optarg ;;
 
1122
 
 
1123
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1124
    ac_prev=mandir ;;
 
1125
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1126
    mandir=$ac_optarg ;;
 
1127
 
 
1128
  -nfp | --nfp | --nf)
 
1129
    # Obsolete; use --without-fp.
 
1130
    with_fp=no ;;
 
1131
 
 
1132
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1133
  | --no-cr | --no-c | -n)
 
1134
    no_create=yes ;;
 
1135
 
 
1136
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1137
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1138
    no_recursion=yes ;;
 
1139
 
 
1140
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1141
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1142
  | --oldin | --oldi | --old | --ol | --o)
 
1143
    ac_prev=oldincludedir ;;
 
1144
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1145
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1146
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1147
    oldincludedir=$ac_optarg ;;
 
1148
 
 
1149
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1150
    ac_prev=prefix ;;
 
1151
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1152
    prefix=$ac_optarg ;;
 
1153
 
 
1154
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1155
  | --program-pre | --program-pr | --program-p)
 
1156
    ac_prev=program_prefix ;;
 
1157
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1158
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1159
    program_prefix=$ac_optarg ;;
 
1160
 
 
1161
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1162
  | --program-suf | --program-su | --program-s)
 
1163
    ac_prev=program_suffix ;;
 
1164
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1165
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1166
    program_suffix=$ac_optarg ;;
 
1167
 
 
1168
  -program-transform-name | --program-transform-name \
 
1169
  | --program-transform-nam | --program-transform-na \
 
1170
  | --program-transform-n | --program-transform- \
 
1171
  | --program-transform | --program-transfor \
 
1172
  | --program-transfo | --program-transf \
 
1173
  | --program-trans | --program-tran \
 
1174
  | --progr-tra | --program-tr | --program-t)
 
1175
    ac_prev=program_transform_name ;;
 
1176
  -program-transform-name=* | --program-transform-name=* \
 
1177
  | --program-transform-nam=* | --program-transform-na=* \
 
1178
  | --program-transform-n=* | --program-transform-=* \
 
1179
  | --program-transform=* | --program-transfor=* \
 
1180
  | --program-transfo=* | --program-transf=* \
 
1181
  | --program-trans=* | --program-tran=* \
 
1182
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1183
    program_transform_name=$ac_optarg ;;
 
1184
 
 
1185
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1186
    ac_prev=pdfdir ;;
 
1187
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1188
    pdfdir=$ac_optarg ;;
 
1189
 
 
1190
  -psdir | --psdir | --psdi | --psd | --ps)
 
1191
    ac_prev=psdir ;;
 
1192
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1193
    psdir=$ac_optarg ;;
 
1194
 
 
1195
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1196
  | -silent | --silent | --silen | --sile | --sil)
 
1197
    silent=yes ;;
 
1198
 
 
1199
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1200
    ac_prev=sbindir ;;
 
1201
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1202
  | --sbi=* | --sb=*)
 
1203
    sbindir=$ac_optarg ;;
 
1204
 
 
1205
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1206
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1207
  | --sharedst | --shareds | --shared | --share | --shar \
 
1208
  | --sha | --sh)
 
1209
    ac_prev=sharedstatedir ;;
 
1210
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1211
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1212
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1213
  | --sha=* | --sh=*)
 
1214
    sharedstatedir=$ac_optarg ;;
 
1215
 
 
1216
  -site | --site | --sit)
 
1217
    ac_prev=site ;;
 
1218
  -site=* | --site=* | --sit=*)
 
1219
    site=$ac_optarg ;;
 
1220
 
 
1221
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1222
    ac_prev=srcdir ;;
 
1223
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1224
    srcdir=$ac_optarg ;;
 
1225
 
 
1226
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1227
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1228
    ac_prev=sysconfdir ;;
 
1229
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1230
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1231
    sysconfdir=$ac_optarg ;;
 
1232
 
 
1233
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1234
    ac_prev=target_alias ;;
 
1235
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1236
    target_alias=$ac_optarg ;;
 
1237
 
 
1238
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1239
    verbose=yes ;;
 
1240
 
 
1241
  -version | --version | --versio | --versi | --vers | -V)
 
1242
    ac_init_version=: ;;
 
1243
 
 
1244
  -with-* | --with-*)
 
1245
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1246
    # Reject names that are not valid shell variable names.
 
1247
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1248
      as_fn_error $? "invalid package name: $ac_useropt"
 
1249
    ac_useropt_orig=$ac_useropt
 
1250
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1251
    case $ac_user_opts in
 
1252
      *"
 
1253
"with_$ac_useropt"
 
1254
"*) ;;
 
1255
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1256
         ac_unrecognized_sep=', ';;
 
1257
    esac
 
1258
    eval with_$ac_useropt=\$ac_optarg ;;
 
1259
 
 
1260
  -without-* | --without-*)
 
1261
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1262
    # Reject names that are not valid shell variable names.
 
1263
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1264
      as_fn_error $? "invalid package name: $ac_useropt"
 
1265
    ac_useropt_orig=$ac_useropt
 
1266
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1267
    case $ac_user_opts in
 
1268
      *"
 
1269
"with_$ac_useropt"
 
1270
"*) ;;
 
1271
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1272
         ac_unrecognized_sep=', ';;
 
1273
    esac
 
1274
    eval with_$ac_useropt=no ;;
 
1275
 
 
1276
  --x)
 
1277
    # Obsolete; use --with-x.
 
1278
    with_x=yes ;;
 
1279
 
 
1280
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1281
  | --x-incl | --x-inc | --x-in | --x-i)
 
1282
    ac_prev=x_includes ;;
 
1283
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1284
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1285
    x_includes=$ac_optarg ;;
 
1286
 
 
1287
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1288
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1289
    ac_prev=x_libraries ;;
 
1290
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1291
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1292
    x_libraries=$ac_optarg ;;
 
1293
 
 
1294
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1295
Try \`$0 --help' for more information"
 
1296
    ;;
 
1297
 
 
1298
  *=*)
 
1299
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1300
    # Reject names that are not valid shell variable names.
 
1301
    case $ac_envvar in #(
 
1302
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1303
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1304
    esac
 
1305
    eval $ac_envvar=\$ac_optarg
 
1306
    export $ac_envvar ;;
 
1307
 
 
1308
  *)
 
1309
    # FIXME: should be removed in autoconf 3.0.
 
1310
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1311
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1312
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1313
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1314
    ;;
 
1315
 
 
1316
  esac
 
1317
done
 
1318
 
 
1319
if test -n "$ac_prev"; then
 
1320
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1321
  as_fn_error $? "missing argument to $ac_option"
 
1322
fi
 
1323
 
 
1324
if test -n "$ac_unrecognized_opts"; then
 
1325
  case $enable_option_checking in
 
1326
    no) ;;
 
1327
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1328
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1329
  esac
 
1330
fi
 
1331
 
 
1332
# Check all directory arguments for consistency.
 
1333
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1334
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1335
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1336
                libdir localedir mandir
 
1337
do
 
1338
  eval ac_val=\$$ac_var
 
1339
  # Remove trailing slashes.
 
1340
  case $ac_val in
 
1341
    */ )
 
1342
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1343
      eval $ac_var=\$ac_val;;
 
1344
  esac
 
1345
  # Be sure to have absolute directory names.
 
1346
  case $ac_val in
 
1347
    [\\/$]* | ?:[\\/]* )  continue;;
 
1348
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1349
  esac
 
1350
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1351
done
 
1352
 
 
1353
# There might be people who depend on the old broken behavior: `$host'
 
1354
# used to hold the argument of --host etc.
 
1355
# FIXME: To remove some day.
 
1356
build=$build_alias
 
1357
host=$host_alias
 
1358
target=$target_alias
 
1359
 
 
1360
# FIXME: To remove some day.
 
1361
if test "x$host_alias" != x; then
 
1362
  if test "x$build_alias" = x; then
 
1363
    cross_compiling=maybe
 
1364
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1365
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1366
  elif test "x$build_alias" != "x$host_alias"; then
 
1367
    cross_compiling=yes
 
1368
  fi
 
1369
fi
 
1370
 
 
1371
ac_tool_prefix=
 
1372
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1373
 
 
1374
test "$silent" = yes && exec 6>/dev/null
 
1375
 
 
1376
 
 
1377
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1378
ac_ls_di=`ls -di .` &&
 
1379
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1380
  as_fn_error $? "working directory cannot be determined"
 
1381
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1382
  as_fn_error $? "pwd does not report name of working directory"
 
1383
 
 
1384
 
 
1385
# Find the source files, if location was not specified.
 
1386
if test -z "$srcdir"; then
 
1387
  ac_srcdir_defaulted=yes
 
1388
  # Try the directory containing this script, then the parent directory.
 
1389
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1390
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1391
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1392
         X"$as_myself" : 'X\(//\)$' \| \
 
1393
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1394
$as_echo X"$as_myself" |
 
1395
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1396
            s//\1/
 
1397
            q
 
1398
          }
 
1399
          /^X\(\/\/\)[^/].*/{
 
1400
            s//\1/
 
1401
            q
 
1402
          }
 
1403
          /^X\(\/\/\)$/{
 
1404
            s//\1/
 
1405
            q
 
1406
          }
 
1407
          /^X\(\/\).*/{
 
1408
            s//\1/
 
1409
            q
 
1410
          }
 
1411
          s/.*/./; q'`
 
1412
  srcdir=$ac_confdir
 
1413
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1414
    srcdir=..
 
1415
  fi
 
1416
else
 
1417
  ac_srcdir_defaulted=no
 
1418
fi
 
1419
if test ! -r "$srcdir/$ac_unique_file"; then
 
1420
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1421
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1422
fi
 
1423
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1424
ac_abs_confdir=`(
 
1425
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1426
        pwd)`
 
1427
# When building in place, set srcdir=.
 
1428
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1429
  srcdir=.
 
1430
fi
 
1431
# Remove unnecessary trailing slashes from srcdir.
 
1432
# Double slashes in file names in object file debugging info
 
1433
# mess up M-x gdb in Emacs.
 
1434
case $srcdir in
 
1435
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1436
esac
 
1437
for ac_var in $ac_precious_vars; do
 
1438
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1439
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1440
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1441
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1442
done
 
1443
 
 
1444
#
 
1445
# Report the --help message.
 
1446
#
 
1447
if test "$ac_init_help" = "long"; then
 
1448
  # Omit some internal or obsolete options to make the list less imposing.
 
1449
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1450
  cat <<_ACEOF
 
1451
\`configure' configures this package to adapt to many kinds of systems.
 
1452
 
 
1453
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1454
 
 
1455
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1456
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1457
 
 
1458
Defaults for the options are specified in brackets.
 
1459
 
 
1460
Configuration:
 
1461
  -h, --help              display this help and exit
 
1462
      --help=short        display options specific to this package
 
1463
      --help=recursive    display the short help of all the included packages
 
1464
  -V, --version           display version information and exit
 
1465
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1466
      --cache-file=FILE   cache test results in FILE [disabled]
 
1467
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1468
  -n, --no-create         do not create output files
 
1469
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1470
 
 
1471
Installation directories:
 
1472
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1473
                          [$ac_default_prefix]
 
1474
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1475
                          [PREFIX]
 
1476
 
 
1477
By default, \`make install' will install all the files in
 
1478
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1479
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1480
for instance \`--prefix=\$HOME'.
 
1481
 
 
1482
For better control, use the options below.
 
1483
 
 
1484
Fine tuning of the installation directories:
 
1485
  --bindir=DIR            user executables [EPREFIX/bin]
 
1486
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1487
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1488
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1489
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1490
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1491
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1492
  --includedir=DIR        C header files [PREFIX/include]
 
1493
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1494
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1495
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1496
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1497
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1498
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1499
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 
1500
  --htmldir=DIR           html documentation [DOCDIR]
 
1501
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1502
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1503
  --psdir=DIR             ps documentation [DOCDIR]
 
1504
_ACEOF
 
1505
 
 
1506
  cat <<\_ACEOF
 
1507
 
 
1508
Program names:
 
1509
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1510
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1511
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1512
 
 
1513
System types:
 
1514
  --build=BUILD     configure for building on BUILD [guessed]
 
1515
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1516
_ACEOF
 
1517
fi
 
1518
 
 
1519
if test -n "$ac_init_help"; then
 
1520
 
 
1521
  cat <<\_ACEOF
 
1522
 
 
1523
Optional Features:
 
1524
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1525
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1526
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1527
  --disable-dependency-tracking  speeds up one-time build
 
1528
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1529
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1530
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1531
  --enable-fast-install[=PKGS]
 
1532
                          optimize for fast installation [default=yes]
 
1533
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1534
 
 
1535
Optional Packages:
 
1536
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1537
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1538
  --with-python           enable the python wrapper  [default=no]
 
1539
 --with-perl           enable the perl wrapper [default=no]
 
1540
 --with-ruby           enable the ruby wrapper [default=no]
 
1541
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1542
                          both]
 
1543
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1544
 
 
1545
Some influential environment variables:
 
1546
  CC          C compiler command
 
1547
  CFLAGS      C compiler flags
 
1548
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1549
              nonstandard directory <lib dir>
 
1550
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1551
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1552
              you have headers in a nonstandard directory <include dir>
 
1553
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
1554
              the first program found out of: `bison -y', `byacc', `yacc'.
 
1555
  YFLAGS      The list of arguments that will be passed by default to $YACC.
 
1556
              This script will default YFLAGS to the empty string to avoid a
 
1557
              default value of `-d' given by some make applications.
 
1558
  PYTHON_VERSION
 
1559
              The installed Python version to use, for example '2.3'. This
 
1560
              string will be appended to the Python interpreter canonical
 
1561
              name.
 
1562
  CPP         C preprocessor
 
1563
 
 
1564
Use these variables to override the choices made by `configure' or to help
 
1565
it to find libraries and programs with nonstandard names/locations.
 
1566
 
 
1567
Report bugs to the package provider.
 
1568
_ACEOF
 
1569
ac_status=$?
 
1570
fi
 
1571
 
 
1572
if test "$ac_init_help" = "recursive"; then
 
1573
  # If there are subdirs, report their specific --help.
 
1574
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1575
    test -d "$ac_dir" ||
 
1576
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1577
      continue
 
1578
    ac_builddir=.
 
1579
 
 
1580
case "$ac_dir" in
 
1581
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1582
*)
 
1583
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1584
  # A ".." for each directory in $ac_dir_suffix.
 
1585
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1586
  case $ac_top_builddir_sub in
 
1587
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1588
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1589
  esac ;;
 
1590
esac
 
1591
ac_abs_top_builddir=$ac_pwd
 
1592
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1593
# for backward compatibility:
 
1594
ac_top_builddir=$ac_top_build_prefix
 
1595
 
 
1596
case $srcdir in
 
1597
  .)  # We are building in place.
 
1598
    ac_srcdir=.
 
1599
    ac_top_srcdir=$ac_top_builddir_sub
 
1600
    ac_abs_top_srcdir=$ac_pwd ;;
 
1601
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1602
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1603
    ac_top_srcdir=$srcdir
 
1604
    ac_abs_top_srcdir=$srcdir ;;
 
1605
  *) # Relative name.
 
1606
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1607
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1608
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1609
esac
 
1610
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1611
 
 
1612
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1613
    # Check for guested configure.
 
1614
    if test -f "$ac_srcdir/configure.gnu"; then
 
1615
      echo &&
 
1616
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1617
    elif test -f "$ac_srcdir/configure"; then
 
1618
      echo &&
 
1619
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1620
    else
 
1621
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1622
    fi || ac_status=$?
 
1623
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1624
  done
 
1625
fi
 
1626
 
 
1627
test -n "$ac_init_help" && exit $ac_status
 
1628
if $ac_init_version; then
 
1629
  cat <<\_ACEOF
 
1630
configure
 
1631
generated by GNU Autoconf 2.67
 
1632
 
 
1633
Copyright (C) 2010 Free Software Foundation, Inc.
 
1634
This configure script is free software; the Free Software Foundation
 
1635
gives unlimited permission to copy, distribute and modify it.
 
1636
_ACEOF
 
1637
  exit
 
1638
fi
 
1639
 
 
1640
## ------------------------ ##
 
1641
## Autoconf initialization. ##
 
1642
## ------------------------ ##
 
1643
 
 
1644
# ac_fn_c_try_compile LINENO
 
1645
# --------------------------
 
1646
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1647
ac_fn_c_try_compile ()
 
1648
{
 
1649
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1650
  rm -f conftest.$ac_objext
 
1651
  if { { ac_try="$ac_compile"
 
1652
case "(($ac_try" in
 
1653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1654
  *) ac_try_echo=$ac_try;;
 
1655
esac
 
1656
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1657
$as_echo "$ac_try_echo"; } >&5
 
1658
  (eval "$ac_compile") 2>conftest.err
 
1659
  ac_status=$?
 
1660
  if test -s conftest.err; then
 
1661
    grep -v '^ *+' conftest.err >conftest.er1
 
1662
    cat conftest.er1 >&5
 
1663
    mv -f conftest.er1 conftest.err
 
1664
  fi
 
1665
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1666
  test $ac_status = 0; } && {
 
1667
         test -z "$ac_c_werror_flag" ||
 
1668
         test ! -s conftest.err
 
1669
       } && test -s conftest.$ac_objext; then :
 
1670
  ac_retval=0
 
1671
else
 
1672
  $as_echo "$as_me: failed program was:" >&5
 
1673
sed 's/^/| /' conftest.$ac_ext >&5
 
1674
 
 
1675
        ac_retval=1
 
1676
fi
 
1677
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1678
  as_fn_set_status $ac_retval
 
1679
 
 
1680
} # ac_fn_c_try_compile
 
1681
 
 
1682
# ac_fn_c_try_link LINENO
 
1683
# -----------------------
 
1684
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1685
ac_fn_c_try_link ()
 
1686
{
 
1687
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1688
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1689
  if { { ac_try="$ac_link"
 
1690
case "(($ac_try" in
 
1691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1692
  *) ac_try_echo=$ac_try;;
 
1693
esac
 
1694
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1695
$as_echo "$ac_try_echo"; } >&5
 
1696
  (eval "$ac_link") 2>conftest.err
 
1697
  ac_status=$?
 
1698
  if test -s conftest.err; then
 
1699
    grep -v '^ *+' conftest.err >conftest.er1
 
1700
    cat conftest.er1 >&5
 
1701
    mv -f conftest.er1 conftest.err
 
1702
  fi
 
1703
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1704
  test $ac_status = 0; } && {
 
1705
         test -z "$ac_c_werror_flag" ||
 
1706
         test ! -s conftest.err
 
1707
       } && test -s conftest$ac_exeext && {
 
1708
         test "$cross_compiling" = yes ||
 
1709
         $as_test_x conftest$ac_exeext
 
1710
       }; then :
 
1711
  ac_retval=0
 
1712
else
 
1713
  $as_echo "$as_me: failed program was:" >&5
 
1714
sed 's/^/| /' conftest.$ac_ext >&5
 
1715
 
 
1716
        ac_retval=1
 
1717
fi
 
1718
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1719
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1720
  # interfere with the next link command; also delete a directory that is
 
1721
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1722
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1723
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1724
  as_fn_set_status $ac_retval
 
1725
 
 
1726
} # ac_fn_c_try_link
 
1727
 
 
1728
# ac_fn_c_try_cpp LINENO
 
1729
# ----------------------
 
1730
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1731
ac_fn_c_try_cpp ()
 
1732
{
 
1733
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1734
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1735
case "(($ac_try" in
 
1736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1737
  *) ac_try_echo=$ac_try;;
 
1738
esac
 
1739
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1740
$as_echo "$ac_try_echo"; } >&5
 
1741
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1742
  ac_status=$?
 
1743
  if test -s conftest.err; then
 
1744
    grep -v '^ *+' conftest.err >conftest.er1
 
1745
    cat conftest.er1 >&5
 
1746
    mv -f conftest.er1 conftest.err
 
1747
  fi
 
1748
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1749
  test $ac_status = 0; } > conftest.i && {
 
1750
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1751
         test ! -s conftest.err
 
1752
       }; then :
 
1753
  ac_retval=0
 
1754
else
 
1755
  $as_echo "$as_me: failed program was:" >&5
 
1756
sed 's/^/| /' conftest.$ac_ext >&5
 
1757
 
 
1758
    ac_retval=1
 
1759
fi
 
1760
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1761
  as_fn_set_status $ac_retval
 
1762
 
 
1763
} # ac_fn_c_try_cpp
 
1764
 
 
1765
# ac_fn_c_try_run LINENO
 
1766
# ----------------------
 
1767
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1768
# that executables *can* be run.
 
1769
ac_fn_c_try_run ()
 
1770
{
 
1771
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1772
  if { { ac_try="$ac_link"
 
1773
case "(($ac_try" in
 
1774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1775
  *) ac_try_echo=$ac_try;;
 
1776
esac
 
1777
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1778
$as_echo "$ac_try_echo"; } >&5
 
1779
  (eval "$ac_link") 2>&5
 
1780
  ac_status=$?
 
1781
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1782
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1783
  { { case "(($ac_try" in
 
1784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1785
  *) ac_try_echo=$ac_try;;
 
1786
esac
 
1787
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1788
$as_echo "$ac_try_echo"; } >&5
 
1789
  (eval "$ac_try") 2>&5
 
1790
  ac_status=$?
 
1791
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1792
  test $ac_status = 0; }; }; then :
 
1793
  ac_retval=0
 
1794
else
 
1795
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1796
       $as_echo "$as_me: failed program was:" >&5
 
1797
sed 's/^/| /' conftest.$ac_ext >&5
 
1798
 
 
1799
       ac_retval=$ac_status
 
1800
fi
 
1801
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1802
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1803
  as_fn_set_status $ac_retval
 
1804
 
 
1805
} # ac_fn_c_try_run
 
1806
 
 
1807
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1808
# -------------------------------------------------------
 
1809
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1810
# the include files in INCLUDES and setting the cache variable VAR
 
1811
# accordingly.
 
1812
ac_fn_c_check_header_mongrel ()
 
1813
{
 
1814
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1815
  if eval "test \"\${$3+set}\"" = set; then :
 
1816
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1817
$as_echo_n "checking for $2... " >&6; }
 
1818
if eval "test \"\${$3+set}\"" = set; then :
 
1819
  $as_echo_n "(cached) " >&6
 
1820
fi
 
1821
eval ac_res=\$$3
 
1822
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1823
$as_echo "$ac_res" >&6; }
 
1824
else
 
1825
  # Is the header compilable?
 
1826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1827
$as_echo_n "checking $2 usability... " >&6; }
 
1828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1829
/* end confdefs.h.  */
 
1830
$4
 
1831
#include <$2>
 
1832
_ACEOF
 
1833
if ac_fn_c_try_compile "$LINENO"; then :
 
1834
  ac_header_compiler=yes
 
1835
else
 
1836
  ac_header_compiler=no
 
1837
fi
 
1838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1840
$as_echo "$ac_header_compiler" >&6; }
 
1841
 
 
1842
# Is the header present?
 
1843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1844
$as_echo_n "checking $2 presence... " >&6; }
 
1845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1846
/* end confdefs.h.  */
 
1847
#include <$2>
 
1848
_ACEOF
 
1849
if ac_fn_c_try_cpp "$LINENO"; then :
 
1850
  ac_header_preproc=yes
 
1851
else
 
1852
  ac_header_preproc=no
 
1853
fi
 
1854
rm -f conftest.err conftest.i conftest.$ac_ext
 
1855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1856
$as_echo "$ac_header_preproc" >&6; }
 
1857
 
 
1858
# So?  What about this header?
 
1859
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1860
  yes:no: )
 
1861
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1862
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1863
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1864
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1865
    ;;
 
1866
  no:yes:* )
 
1867
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1868
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1869
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1870
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1871
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1872
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1873
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1874
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1875
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1876
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1877
    ;;
 
1878
esac
 
1879
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1880
$as_echo_n "checking for $2... " >&6; }
 
1881
if eval "test \"\${$3+set}\"" = set; then :
 
1882
  $as_echo_n "(cached) " >&6
 
1883
else
 
1884
  eval "$3=\$ac_header_compiler"
 
1885
fi
 
1886
eval ac_res=\$$3
 
1887
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1888
$as_echo "$ac_res" >&6; }
 
1889
fi
 
1890
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1891
 
 
1892
} # ac_fn_c_check_header_mongrel
 
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 eval "test \"\${$3+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_check_func LINENO FUNC VAR
 
1926
# ----------------------------------
 
1927
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1928
ac_fn_c_check_func ()
 
1929
{
 
1930
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1931
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1932
$as_echo_n "checking for $2... " >&6; }
 
1933
if eval "test \"\${$3+set}\"" = set; then :
 
1934
  $as_echo_n "(cached) " >&6
 
1935
else
 
1936
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1937
/* end confdefs.h.  */
 
1938
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1939
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1940
#define $2 innocuous_$2
 
1941
 
 
1942
/* System header to define __stub macros and hopefully few prototypes,
 
1943
    which can conflict with char $2 (); below.
 
1944
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1945
    <limits.h> exists even on freestanding compilers.  */
 
1946
 
 
1947
#ifdef __STDC__
 
1948
# include <limits.h>
 
1949
#else
 
1950
# include <assert.h>
 
1951
#endif
 
1952
 
 
1953
#undef $2
 
1954
 
 
1955
/* Override any GCC internal prototype to avoid an error.
 
1956
   Use char because int might match the return type of a GCC
 
1957
   builtin and then its argument prototype would still apply.  */
 
1958
#ifdef __cplusplus
 
1959
extern "C"
 
1960
#endif
 
1961
char $2 ();
 
1962
/* The GNU C library defines this for functions which it implements
 
1963
    to always fail with ENOSYS.  Some functions are actually named
 
1964
    something starting with __ and the normal name is an alias.  */
 
1965
#if defined __stub_$2 || defined __stub___$2
 
1966
choke me
 
1967
#endif
 
1968
 
 
1969
int
 
1970
main ()
 
1971
{
 
1972
return $2 ();
 
1973
  ;
 
1974
  return 0;
 
1975
}
 
1976
_ACEOF
 
1977
if ac_fn_c_try_link "$LINENO"; then :
 
1978
  eval "$3=yes"
 
1979
else
 
1980
  eval "$3=no"
 
1981
fi
 
1982
rm -f core conftest.err conftest.$ac_objext \
 
1983
    conftest$ac_exeext conftest.$ac_ext
 
1984
fi
 
1985
eval ac_res=\$$3
 
1986
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1987
$as_echo "$ac_res" >&6; }
 
1988
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1989
 
 
1990
} # ac_fn_c_check_func
 
1991
cat >config.log <<_ACEOF
 
1992
This file contains any messages produced by compilers while
 
1993
running configure, to aid debugging if configure makes a mistake.
 
1994
 
 
1995
It was created by $as_me, which was
 
1996
generated by GNU Autoconf 2.67.  Invocation command line was
 
1997
 
 
1998
  $ $0 $@
 
1999
 
 
2000
_ACEOF
 
2001
exec 5>>config.log
 
2002
{
 
2003
cat <<_ASUNAME
 
2004
## --------- ##
 
2005
## Platform. ##
 
2006
## --------- ##
 
2007
 
 
2008
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2009
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2010
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2011
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2012
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2013
 
 
2014
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2015
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2016
 
 
2017
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2018
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2019
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2020
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2021
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2022
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2023
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2024
 
 
2025
_ASUNAME
 
2026
 
 
2027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2028
for as_dir in $PATH
 
2029
do
 
2030
  IFS=$as_save_IFS
 
2031
  test -z "$as_dir" && as_dir=.
 
2032
    $as_echo "PATH: $as_dir"
 
2033
  done
 
2034
IFS=$as_save_IFS
 
2035
 
 
2036
} >&5
 
2037
 
 
2038
cat >&5 <<_ACEOF
 
2039
 
 
2040
 
 
2041
## ----------- ##
 
2042
## Core tests. ##
 
2043
## ----------- ##
 
2044
 
 
2045
_ACEOF
 
2046
 
 
2047
 
 
2048
# Keep a trace of the command line.
 
2049
# Strip out --no-create and --no-recursion so they do not pile up.
 
2050
# Strip out --silent because we don't want to record it for future runs.
 
2051
# Also quote any args containing shell meta-characters.
 
2052
# Make two passes to allow for proper duplicate-argument suppression.
 
2053
ac_configure_args=
 
2054
ac_configure_args0=
 
2055
ac_configure_args1=
 
2056
ac_must_keep_next=false
 
2057
for ac_pass in 1 2
 
2058
do
 
2059
  for ac_arg
 
2060
  do
 
2061
    case $ac_arg in
 
2062
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2063
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2064
    | -silent | --silent | --silen | --sile | --sil)
 
2065
      continue ;;
 
2066
    *\'*)
 
2067
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2068
    esac
 
2069
    case $ac_pass in
 
2070
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2071
    2)
 
2072
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2073
      if test $ac_must_keep_next = true; then
 
2074
        ac_must_keep_next=false # Got value, back to normal.
 
2075
      else
 
2076
        case $ac_arg in
 
2077
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2078
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2079
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2080
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2081
            case "$ac_configure_args0 " in
 
2082
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2083
            esac
 
2084
            ;;
 
2085
          -* ) ac_must_keep_next=true ;;
 
2086
        esac
 
2087
      fi
 
2088
      as_fn_append ac_configure_args " '$ac_arg'"
 
2089
      ;;
 
2090
    esac
 
2091
  done
 
2092
done
 
2093
{ ac_configure_args0=; unset ac_configure_args0;}
 
2094
{ ac_configure_args1=; unset ac_configure_args1;}
 
2095
 
 
2096
# When interrupted or exit'd, cleanup temporary files, and complete
 
2097
# config.log.  We remove comments because anyway the quotes in there
 
2098
# would cause problems or look ugly.
 
2099
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2100
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2101
trap 'exit_status=$?
 
2102
  # Save into config.log some information that might help in debugging.
 
2103
  {
 
2104
    echo
 
2105
 
 
2106
    $as_echo "## ---------------- ##
 
2107
## Cache variables. ##
 
2108
## ---------------- ##"
 
2109
    echo
 
2110
    # The following way of writing the cache mishandles newlines in values,
 
2111
(
 
2112
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2113
    eval ac_val=\$$ac_var
 
2114
    case $ac_val in #(
 
2115
    *${as_nl}*)
 
2116
      case $ac_var in #(
 
2117
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2118
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2119
      esac
 
2120
      case $ac_var in #(
 
2121
      _ | IFS | as_nl) ;; #(
 
2122
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2123
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2124
      esac ;;
 
2125
    esac
 
2126
  done
 
2127
  (set) 2>&1 |
 
2128
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2129
    *${as_nl}ac_space=\ *)
 
2130
      sed -n \
 
2131
        "s/'\''/'\''\\\\'\'''\''/g;
 
2132
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2133
      ;; #(
 
2134
    *)
 
2135
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2136
      ;;
 
2137
    esac |
 
2138
    sort
 
2139
)
 
2140
    echo
 
2141
 
 
2142
    $as_echo "## ----------------- ##
 
2143
## Output variables. ##
 
2144
## ----------------- ##"
 
2145
    echo
 
2146
    for ac_var in $ac_subst_vars
 
2147
    do
 
2148
      eval ac_val=\$$ac_var
 
2149
      case $ac_val in
 
2150
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2151
      esac
 
2152
      $as_echo "$ac_var='\''$ac_val'\''"
 
2153
    done | sort
 
2154
    echo
 
2155
 
 
2156
    if test -n "$ac_subst_files"; then
 
2157
      $as_echo "## ------------------- ##
 
2158
## File substitutions. ##
 
2159
## ------------------- ##"
 
2160
      echo
 
2161
      for ac_var in $ac_subst_files
 
2162
      do
 
2163
        eval ac_val=\$$ac_var
 
2164
        case $ac_val in
 
2165
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2166
        esac
 
2167
        $as_echo "$ac_var='\''$ac_val'\''"
 
2168
      done | sort
 
2169
      echo
 
2170
    fi
 
2171
 
 
2172
    if test -s confdefs.h; then
 
2173
      $as_echo "## ----------- ##
 
2174
## confdefs.h. ##
 
2175
## ----------- ##"
 
2176
      echo
 
2177
      cat confdefs.h
 
2178
      echo
 
2179
    fi
 
2180
    test "$ac_signal" != 0 &&
 
2181
      $as_echo "$as_me: caught signal $ac_signal"
 
2182
    $as_echo "$as_me: exit $exit_status"
 
2183
  } >&5
 
2184
  rm -f core *.core core.conftest.* &&
 
2185
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2186
    exit $exit_status
 
2187
' 0
 
2188
for ac_signal in 1 2 13 15; do
 
2189
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2190
done
 
2191
ac_signal=0
 
2192
 
 
2193
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2194
rm -f -r conftest* confdefs.h
 
2195
 
 
2196
$as_echo "/* confdefs.h */" > confdefs.h
 
2197
 
 
2198
# Predefined preprocessor variables.
 
2199
 
 
2200
cat >>confdefs.h <<_ACEOF
 
2201
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2202
_ACEOF
 
2203
 
 
2204
cat >>confdefs.h <<_ACEOF
 
2205
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2206
_ACEOF
 
2207
 
 
2208
cat >>confdefs.h <<_ACEOF
 
2209
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2210
_ACEOF
 
2211
 
 
2212
cat >>confdefs.h <<_ACEOF
 
2213
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2214
_ACEOF
 
2215
 
 
2216
cat >>confdefs.h <<_ACEOF
 
2217
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2218
_ACEOF
 
2219
 
 
2220
cat >>confdefs.h <<_ACEOF
 
2221
#define PACKAGE_URL "$PACKAGE_URL"
 
2222
_ACEOF
 
2223
 
 
2224
 
 
2225
# Let the site file select an alternate cache file if it wants to.
 
2226
# Prefer an explicitly selected file to automatically selected ones.
 
2227
ac_site_file1=NONE
 
2228
ac_site_file2=NONE
 
2229
if test -n "$CONFIG_SITE"; then
 
2230
  # We do not want a PATH search for config.site.
 
2231
  case $CONFIG_SITE in #((
 
2232
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2233
    */*) ac_site_file1=$CONFIG_SITE;;
 
2234
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2235
  esac
 
2236
elif test "x$prefix" != xNONE; then
 
2237
  ac_site_file1=$prefix/share/config.site
 
2238
  ac_site_file2=$prefix/etc/config.site
 
2239
else
 
2240
  ac_site_file1=$ac_default_prefix/share/config.site
 
2241
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2242
fi
 
2243
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2244
do
 
2245
  test "x$ac_site_file" = xNONE && continue
 
2246
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2247
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2248
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2249
    sed 's/^/| /' "$ac_site_file" >&5
 
2250
    . "$ac_site_file" \
 
2251
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2252
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2253
as_fn_error $? "failed to load site script $ac_site_file
 
2254
See \`config.log' for more details" "$LINENO" 5 ; }
 
2255
  fi
 
2256
done
 
2257
 
 
2258
if test -r "$cache_file"; then
 
2259
  # Some versions of bash will fail to source /dev/null (special files
 
2260
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2261
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2262
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2263
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2264
    case $cache_file in
 
2265
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2266
      *)                      . "./$cache_file";;
 
2267
    esac
 
2268
  fi
 
2269
else
 
2270
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2271
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2272
  >$cache_file
 
2273
fi
 
2274
 
 
2275
# Check that the precious variables saved in the cache have kept the same
 
2276
# value.
 
2277
ac_cache_corrupted=false
 
2278
for ac_var in $ac_precious_vars; do
 
2279
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2280
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2281
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2282
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2283
  case $ac_old_set,$ac_new_set in
 
2284
    set,)
 
2285
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2286
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2287
      ac_cache_corrupted=: ;;
 
2288
    ,set)
 
2289
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2290
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2291
      ac_cache_corrupted=: ;;
 
2292
    ,);;
 
2293
    *)
 
2294
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2295
        # differences in whitespace do not lead to failure.
 
2296
        ac_old_val_w=`echo x $ac_old_val`
 
2297
        ac_new_val_w=`echo x $ac_new_val`
 
2298
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2299
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2300
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2301
          ac_cache_corrupted=:
 
2302
        else
 
2303
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2304
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2305
          eval $ac_var=\$ac_old_val
 
2306
        fi
 
2307
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2308
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2309
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2310
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2311
      fi;;
 
2312
  esac
 
2313
  # Pass precious variables to config.status.
 
2314
  if test "$ac_new_set" = set; then
 
2315
    case $ac_new_val in
 
2316
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2317
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2318
    esac
 
2319
    case " $ac_configure_args " in
 
2320
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2321
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2322
    esac
 
2323
  fi
 
2324
done
 
2325
if $ac_cache_corrupted; then
 
2326
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2327
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2328
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2329
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2330
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2331
fi
 
2332
## -------------------- ##
 
2333
## Main body of script. ##
 
2334
## -------------------- ##
 
2335
 
 
2336
ac_ext=c
 
2337
ac_cpp='$CPP $CPPFLAGS'
 
2338
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2339
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2340
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2341
 
 
2342
 
 
2343
 
 
2344
am__api_version='1.11'
 
2345
 
 
2346
ac_aux_dir=
 
2347
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2348
  if test -f "$ac_dir/install-sh"; then
 
2349
    ac_aux_dir=$ac_dir
 
2350
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2351
    break
 
2352
  elif test -f "$ac_dir/install.sh"; then
 
2353
    ac_aux_dir=$ac_dir
 
2354
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2355
    break
 
2356
  elif test -f "$ac_dir/shtool"; then
 
2357
    ac_aux_dir=$ac_dir
 
2358
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2359
    break
 
2360
  fi
 
2361
done
 
2362
if test -z "$ac_aux_dir"; then
 
2363
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2364
fi
 
2365
 
 
2366
# These three variables are undocumented and unsupported,
 
2367
# and are intended to be withdrawn in a future Autoconf release.
 
2368
# They can cause serious problems if a builder's source tree is in a directory
 
2369
# whose full name contains unusual characters.
 
2370
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2371
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2372
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2373
 
 
2374
 
 
2375
# Find a good install program.  We prefer a C program (faster),
 
2376
# so one script is as good as another.  But avoid the broken or
 
2377
# incompatible versions:
 
2378
# SysV /etc/install, /usr/sbin/install
 
2379
# SunOS /usr/etc/install
 
2380
# IRIX /sbin/install
 
2381
# AIX /bin/install
 
2382
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2383
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2384
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2385
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2386
# OS/2's system install, which has a completely different semantic
 
2387
# ./install, which can be erroneously created by make from ./install.sh.
 
2388
# Reject install programs that cannot install multiple files.
 
2389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2390
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2391
if test -z "$INSTALL"; then
 
2392
if test "${ac_cv_path_install+set}" = set; then :
 
2393
  $as_echo_n "(cached) " >&6
 
2394
else
 
2395
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2396
for as_dir in $PATH
 
2397
do
 
2398
  IFS=$as_save_IFS
 
2399
  test -z "$as_dir" && as_dir=.
 
2400
    # Account for people who put trailing slashes in PATH elements.
 
2401
case $as_dir/ in #((
 
2402
  ./ | .// | /[cC]/* | \
 
2403
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2404
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2405
  /usr/ucb/* ) ;;
 
2406
  *)
 
2407
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2408
    # Don't use installbsd from OSF since it installs stuff as root
 
2409
    # by default.
 
2410
    for ac_prog in ginstall scoinst install; do
 
2411
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2412
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2413
          if test $ac_prog = install &&
 
2414
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2415
            # AIX install.  It has an incompatible calling convention.
 
2416
            :
 
2417
          elif test $ac_prog = install &&
 
2418
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2419
            # program-specific install script used by HP pwplus--don't use.
 
2420
            :
 
2421
          else
 
2422
            rm -rf conftest.one conftest.two conftest.dir
 
2423
            echo one > conftest.one
 
2424
            echo two > conftest.two
 
2425
            mkdir conftest.dir
 
2426
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2427
              test -s conftest.one && test -s conftest.two &&
 
2428
              test -s conftest.dir/conftest.one &&
 
2429
              test -s conftest.dir/conftest.two
 
2430
            then
 
2431
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2432
              break 3
 
2433
            fi
 
2434
          fi
 
2435
        fi
 
2436
      done
 
2437
    done
 
2438
    ;;
 
2439
esac
 
2440
 
 
2441
  done
 
2442
IFS=$as_save_IFS
 
2443
 
 
2444
rm -rf conftest.one conftest.two conftest.dir
 
2445
 
 
2446
fi
 
2447
  if test "${ac_cv_path_install+set}" = set; then
 
2448
    INSTALL=$ac_cv_path_install
 
2449
  else
 
2450
    # As a last resort, use the slow shell script.  Don't cache a
 
2451
    # value for INSTALL within a source directory, because that will
 
2452
    # break other packages using the cache if that directory is
 
2453
    # removed, or if the value is a relative name.
 
2454
    INSTALL=$ac_install_sh
 
2455
  fi
 
2456
fi
 
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2458
$as_echo "$INSTALL" >&6; }
 
2459
 
 
2460
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2461
# It thinks the first close brace ends the variable substitution.
 
2462
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2463
 
 
2464
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2465
 
 
2466
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2467
 
 
2468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2469
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2470
# Just in case
 
2471
sleep 1
 
2472
echo timestamp > conftest.file
 
2473
# Reject unsafe characters in $srcdir or the absolute working directory
 
2474
# name.  Accept space and tab only in the latter.
 
2475
am_lf='
 
2476
'
 
2477
case `pwd` in
 
2478
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2479
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 
2480
esac
 
2481
case $srcdir in
 
2482
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2483
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 
2484
esac
 
2485
 
 
2486
# Do `set' in a subshell so we don't clobber the current shell's
 
2487
# arguments.  Must try -L first in case configure is actually a
 
2488
# symlink; some systems play weird games with the mod time of symlinks
 
2489
# (eg FreeBSD returns the mod time of the symlink's containing
 
2490
# directory).
 
2491
if (
 
2492
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2493
   if test "$*" = "X"; then
 
2494
      # -L didn't work.
 
2495
      set X `ls -t "$srcdir/configure" conftest.file`
 
2496
   fi
 
2497
   rm -f conftest.file
 
2498
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2499
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2500
 
 
2501
      # If neither matched, then we have a broken ls.  This can happen
 
2502
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2503
      # broken ls alias from the environment.  This has actually
 
2504
      # happened.  Such a system could not be considered "sane".
 
2505
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2506
alias in your environment" "$LINENO" 5
 
2507
   fi
 
2508
 
 
2509
   test "$2" = conftest.file
 
2510
   )
 
2511
then
 
2512
   # Ok.
 
2513
   :
 
2514
else
 
2515
   as_fn_error $? "newly created file is older than distributed files!
 
2516
Check your system clock" "$LINENO" 5
 
2517
fi
 
2518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2519
$as_echo "yes" >&6; }
 
2520
test "$program_prefix" != NONE &&
 
2521
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2522
# Use a double $ so make ignores it.
 
2523
test "$program_suffix" != NONE &&
 
2524
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2525
# Double any \ or $.
 
2526
# By default was `s,x,x', remove it if useless.
 
2527
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2528
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2529
 
 
2530
# expand $ac_aux_dir to an absolute path
 
2531
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2532
 
 
2533
if test x"${MISSING+set}" != xset; then
 
2534
  case $am_aux_dir in
 
2535
  *\ * | *\     *)
 
2536
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2537
  *)
 
2538
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2539
  esac
 
2540
fi
 
2541
# Use eval to expand $SHELL
 
2542
if eval "$MISSING --run true"; then
 
2543
  am_missing_run="$MISSING --run "
 
2544
else
 
2545
  am_missing_run=
 
2546
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2547
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2548
fi
 
2549
 
 
2550
if test x"${install_sh}" != xset; then
 
2551
  case $am_aux_dir in
 
2552
  *\ * | *\     *)
 
2553
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2554
  *)
 
2555
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2556
  esac
 
2557
fi
 
2558
 
 
2559
# Installed binaries are usually stripped using `strip' when the user
 
2560
# run `make install-strip'.  However `strip' might not be the right
 
2561
# tool to use in cross-compilation environments, therefore Automake
 
2562
# will honor the `STRIP' environment variable to overrule this program.
 
2563
if test "$cross_compiling" != no; then
 
2564
  if test -n "$ac_tool_prefix"; then
 
2565
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2566
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2568
$as_echo_n "checking for $ac_word... " >&6; }
 
2569
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2570
  $as_echo_n "(cached) " >&6
 
2571
else
 
2572
  if test -n "$STRIP"; then
 
2573
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2574
else
 
2575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2576
for as_dir in $PATH
 
2577
do
 
2578
  IFS=$as_save_IFS
 
2579
  test -z "$as_dir" && as_dir=.
 
2580
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2582
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2583
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2584
    break 2
 
2585
  fi
 
2586
done
 
2587
  done
 
2588
IFS=$as_save_IFS
 
2589
 
 
2590
fi
 
2591
fi
 
2592
STRIP=$ac_cv_prog_STRIP
 
2593
if test -n "$STRIP"; then
 
2594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2595
$as_echo "$STRIP" >&6; }
 
2596
else
 
2597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2598
$as_echo "no" >&6; }
 
2599
fi
 
2600
 
 
2601
 
 
2602
fi
 
2603
if test -z "$ac_cv_prog_STRIP"; then
 
2604
  ac_ct_STRIP=$STRIP
 
2605
  # Extract the first word of "strip", so it can be a program name with args.
 
2606
set dummy strip; ac_word=$2
 
2607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2608
$as_echo_n "checking for $ac_word... " >&6; }
 
2609
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2610
  $as_echo_n "(cached) " >&6
 
2611
else
 
2612
  if test -n "$ac_ct_STRIP"; then
 
2613
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2614
else
 
2615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2616
for as_dir in $PATH
 
2617
do
 
2618
  IFS=$as_save_IFS
 
2619
  test -z "$as_dir" && as_dir=.
 
2620
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2622
    ac_cv_prog_ac_ct_STRIP="strip"
 
2623
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2624
    break 2
 
2625
  fi
 
2626
done
 
2627
  done
 
2628
IFS=$as_save_IFS
 
2629
 
 
2630
fi
 
2631
fi
 
2632
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2633
if test -n "$ac_ct_STRIP"; then
 
2634
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2635
$as_echo "$ac_ct_STRIP" >&6; }
 
2636
else
 
2637
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2638
$as_echo "no" >&6; }
 
2639
fi
 
2640
 
 
2641
  if test "x$ac_ct_STRIP" = x; then
 
2642
    STRIP=":"
 
2643
  else
 
2644
    case $cross_compiling:$ac_tool_warned in
 
2645
yes:)
 
2646
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2647
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2648
ac_tool_warned=yes ;;
 
2649
esac
 
2650
    STRIP=$ac_ct_STRIP
 
2651
  fi
 
2652
else
 
2653
  STRIP="$ac_cv_prog_STRIP"
 
2654
fi
 
2655
 
 
2656
fi
 
2657
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2658
 
 
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2660
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2661
if test -z "$MKDIR_P"; then
 
2662
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2663
  $as_echo_n "(cached) " >&6
 
2664
else
 
2665
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2666
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2667
do
 
2668
  IFS=$as_save_IFS
 
2669
  test -z "$as_dir" && as_dir=.
 
2670
    for ac_prog in mkdir gmkdir; do
 
2671
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2672
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2673
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2674
             'mkdir (GNU coreutils) '* | \
 
2675
             'mkdir (coreutils) '* | \
 
2676
             'mkdir (fileutils) '4.1*)
 
2677
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2678
               break 3;;
 
2679
           esac
 
2680
         done
 
2681
       done
 
2682
  done
 
2683
IFS=$as_save_IFS
 
2684
 
 
2685
fi
 
2686
 
 
2687
  test -d ./--version && rmdir ./--version
 
2688
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2689
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2690
  else
 
2691
    # As a last resort, use the slow shell script.  Don't cache a
 
2692
    # value for MKDIR_P within a source directory, because that will
 
2693
    # break other packages using the cache if that directory is
 
2694
    # removed, or if the value is a relative name.
 
2695
    MKDIR_P="$ac_install_sh -d"
 
2696
  fi
 
2697
fi
 
2698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2699
$as_echo "$MKDIR_P" >&6; }
 
2700
 
 
2701
mkdir_p="$MKDIR_P"
 
2702
case $mkdir_p in
 
2703
  [\\/$]* | ?:[\\/]*) ;;
 
2704
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2705
esac
 
2706
 
 
2707
for ac_prog in gawk mawk nawk awk
 
2708
do
 
2709
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2710
set dummy $ac_prog; ac_word=$2
 
2711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2712
$as_echo_n "checking for $ac_word... " >&6; }
 
2713
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2714
  $as_echo_n "(cached) " >&6
 
2715
else
 
2716
  if test -n "$AWK"; then
 
2717
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2718
else
 
2719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2720
for as_dir in $PATH
 
2721
do
 
2722
  IFS=$as_save_IFS
 
2723
  test -z "$as_dir" && as_dir=.
 
2724
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2725
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2726
    ac_cv_prog_AWK="$ac_prog"
 
2727
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2728
    break 2
 
2729
  fi
 
2730
done
 
2731
  done
 
2732
IFS=$as_save_IFS
 
2733
 
 
2734
fi
 
2735
fi
 
2736
AWK=$ac_cv_prog_AWK
 
2737
if test -n "$AWK"; then
 
2738
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2739
$as_echo "$AWK" >&6; }
 
2740
else
 
2741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2742
$as_echo "no" >&6; }
 
2743
fi
 
2744
 
 
2745
 
 
2746
  test -n "$AWK" && break
 
2747
done
 
2748
 
 
2749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2750
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2751
set x ${MAKE-make}
 
2752
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2753
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
2754
  $as_echo_n "(cached) " >&6
 
2755
else
 
2756
  cat >conftest.make <<\_ACEOF
 
2757
SHELL = /bin/sh
 
2758
all:
 
2759
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2760
_ACEOF
 
2761
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2762
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2763
  *@@@%%%=?*=@@@%%%*)
 
2764
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2765
  *)
 
2766
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2767
esac
 
2768
rm -f conftest.make
 
2769
fi
 
2770
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2771
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2772
$as_echo "yes" >&6; }
 
2773
  SET_MAKE=
 
2774
else
 
2775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2776
$as_echo "no" >&6; }
 
2777
  SET_MAKE="MAKE=${MAKE-make}"
 
2778
fi
 
2779
 
 
2780
rm -rf .tst 2>/dev/null
 
2781
mkdir .tst 2>/dev/null
 
2782
if test -d .tst; then
 
2783
  am__leading_dot=.
 
2784
else
 
2785
  am__leading_dot=_
 
2786
fi
 
2787
rmdir .tst 2>/dev/null
 
2788
 
 
2789
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2790
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2791
  # is not polluted with repeated "-I."
 
2792
  am__isrc=' -I$(srcdir)'
 
2793
  # test to see if srcdir already configured
 
2794
  if test -f $srcdir/config.status; then
 
2795
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2796
  fi
 
2797
fi
 
2798
 
 
2799
# test whether we have cygpath
 
2800
if test -z "$CYGPATH_W"; then
 
2801
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2802
    CYGPATH_W='cygpath -w'
 
2803
  else
 
2804
    CYGPATH_W=echo
 
2805
  fi
 
2806
fi
 
2807
 
 
2808
 
 
2809
# Define the identity of the package.
 
2810
 PACKAGE=libapparmor1
 
2811
 VERSION=2.6.1
 
2812
 
 
2813
 
 
2814
cat >>confdefs.h <<_ACEOF
 
2815
#define PACKAGE "$PACKAGE"
 
2816
_ACEOF
 
2817
 
 
2818
 
 
2819
cat >>confdefs.h <<_ACEOF
 
2820
#define VERSION "$VERSION"
 
2821
_ACEOF
 
2822
 
 
2823
# Some tools Automake needs.
 
2824
 
 
2825
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2826
 
 
2827
 
 
2828
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2829
 
 
2830
 
 
2831
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2832
 
 
2833
 
 
2834
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2835
 
 
2836
 
 
2837
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2838
 
 
2839
# We need awk for the "check" target.  The system "awk" is bad on
 
2840
# some platforms.
 
2841
# Always define AMTAR for backward compatibility.
 
2842
 
 
2843
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2844
 
 
2845
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2846
 
 
2847
 
 
2848
 
 
2849
 
 
2850
 
 
2851
 
 
2852
DEPDIR="${am__leading_dot}deps"
 
2853
 
 
2854
ac_config_commands="$ac_config_commands depfiles"
 
2855
 
 
2856
 
 
2857
am_make=${MAKE-make}
 
2858
cat > confinc << 'END'
 
2859
am__doit:
 
2860
        @echo this is the am__doit target
 
2861
.PHONY: am__doit
 
2862
END
 
2863
# If we don't find an include directive, just comment out the code.
 
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2865
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2866
am__include="#"
 
2867
am__quote=
 
2868
_am_result=none
 
2869
# First try GNU make style include.
 
2870
echo "include confinc" > confmf
 
2871
# Ignore all kinds of additional output from `make'.
 
2872
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2873
*the\ am__doit\ target*)
 
2874
  am__include=include
 
2875
  am__quote=
 
2876
  _am_result=GNU
 
2877
  ;;
 
2878
esac
 
2879
# Now try BSD make style include.
 
2880
if test "$am__include" = "#"; then
 
2881
   echo '.include "confinc"' > confmf
 
2882
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2883
   *the\ am__doit\ target*)
 
2884
     am__include=.include
 
2885
     am__quote="\""
 
2886
     _am_result=BSD
 
2887
     ;;
 
2888
   esac
 
2889
fi
 
2890
 
 
2891
 
 
2892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2893
$as_echo "$_am_result" >&6; }
 
2894
rm -f confinc confmf
 
2895
 
 
2896
# Check whether --enable-dependency-tracking was given.
 
2897
if test "${enable_dependency_tracking+set}" = set; then :
 
2898
  enableval=$enable_dependency_tracking;
 
2899
fi
 
2900
 
 
2901
if test "x$enable_dependency_tracking" != xno; then
 
2902
  am_depcomp="$ac_aux_dir/depcomp"
 
2903
  AMDEPBACKSLASH='\'
 
2904
fi
 
2905
 if test "x$enable_dependency_tracking" != xno; then
 
2906
  AMDEP_TRUE=
 
2907
  AMDEP_FALSE='#'
 
2908
else
 
2909
  AMDEP_TRUE='#'
 
2910
  AMDEP_FALSE=
 
2911
fi
 
2912
 
 
2913
 
 
2914
ac_ext=c
 
2915
ac_cpp='$CPP $CPPFLAGS'
 
2916
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2917
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2918
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2919
if test -n "$ac_tool_prefix"; then
 
2920
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2921
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2923
$as_echo_n "checking for $ac_word... " >&6; }
 
2924
if test "${ac_cv_prog_CC+set}" = set; then :
 
2925
  $as_echo_n "(cached) " >&6
 
2926
else
 
2927
  if test -n "$CC"; then
 
2928
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2929
else
 
2930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2931
for as_dir in $PATH
 
2932
do
 
2933
  IFS=$as_save_IFS
 
2934
  test -z "$as_dir" && as_dir=.
 
2935
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2937
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2938
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2939
    break 2
 
2940
  fi
 
2941
done
 
2942
  done
 
2943
IFS=$as_save_IFS
 
2944
 
 
2945
fi
 
2946
fi
 
2947
CC=$ac_cv_prog_CC
 
2948
if test -n "$CC"; then
 
2949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2950
$as_echo "$CC" >&6; }
 
2951
else
 
2952
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2953
$as_echo "no" >&6; }
 
2954
fi
 
2955
 
 
2956
 
 
2957
fi
 
2958
if test -z "$ac_cv_prog_CC"; then
 
2959
  ac_ct_CC=$CC
 
2960
  # Extract the first word of "gcc", so it can be a program name with args.
 
2961
set dummy gcc; ac_word=$2
 
2962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2963
$as_echo_n "checking for $ac_word... " >&6; }
 
2964
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2965
  $as_echo_n "(cached) " >&6
 
2966
else
 
2967
  if test -n "$ac_ct_CC"; then
 
2968
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2969
else
 
2970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2971
for as_dir in $PATH
 
2972
do
 
2973
  IFS=$as_save_IFS
 
2974
  test -z "$as_dir" && as_dir=.
 
2975
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2976
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2977
    ac_cv_prog_ac_ct_CC="gcc"
 
2978
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2979
    break 2
 
2980
  fi
 
2981
done
 
2982
  done
 
2983
IFS=$as_save_IFS
 
2984
 
 
2985
fi
 
2986
fi
 
2987
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2988
if test -n "$ac_ct_CC"; then
 
2989
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2990
$as_echo "$ac_ct_CC" >&6; }
 
2991
else
 
2992
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2993
$as_echo "no" >&6; }
 
2994
fi
 
2995
 
 
2996
  if test "x$ac_ct_CC" = x; then
 
2997
    CC=""
 
2998
  else
 
2999
    case $cross_compiling:$ac_tool_warned in
 
3000
yes:)
 
3001
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3002
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3003
ac_tool_warned=yes ;;
 
3004
esac
 
3005
    CC=$ac_ct_CC
 
3006
  fi
 
3007
else
 
3008
  CC="$ac_cv_prog_CC"
 
3009
fi
 
3010
 
 
3011
if test -z "$CC"; then
 
3012
          if test -n "$ac_tool_prefix"; then
 
3013
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3014
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3016
$as_echo_n "checking for $ac_word... " >&6; }
 
3017
if test "${ac_cv_prog_CC+set}" = set; then :
 
3018
  $as_echo_n "(cached) " >&6
 
3019
else
 
3020
  if test -n "$CC"; then
 
3021
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3022
else
 
3023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3024
for as_dir in $PATH
 
3025
do
 
3026
  IFS=$as_save_IFS
 
3027
  test -z "$as_dir" && as_dir=.
 
3028
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3030
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3031
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3032
    break 2
 
3033
  fi
 
3034
done
 
3035
  done
 
3036
IFS=$as_save_IFS
 
3037
 
 
3038
fi
 
3039
fi
 
3040
CC=$ac_cv_prog_CC
 
3041
if test -n "$CC"; then
 
3042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3043
$as_echo "$CC" >&6; }
 
3044
else
 
3045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3046
$as_echo "no" >&6; }
 
3047
fi
 
3048
 
 
3049
 
 
3050
  fi
 
3051
fi
 
3052
if test -z "$CC"; then
 
3053
  # Extract the first word of "cc", so it can be a program name with args.
 
3054
set dummy cc; ac_word=$2
 
3055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3056
$as_echo_n "checking for $ac_word... " >&6; }
 
3057
if test "${ac_cv_prog_CC+set}" = set; then :
 
3058
  $as_echo_n "(cached) " >&6
 
3059
else
 
3060
  if test -n "$CC"; then
 
3061
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3062
else
 
3063
  ac_prog_rejected=no
 
3064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3065
for as_dir in $PATH
 
3066
do
 
3067
  IFS=$as_save_IFS
 
3068
  test -z "$as_dir" && as_dir=.
 
3069
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3070
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3071
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3072
       ac_prog_rejected=yes
 
3073
       continue
 
3074
     fi
 
3075
    ac_cv_prog_CC="cc"
 
3076
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3077
    break 2
 
3078
  fi
 
3079
done
 
3080
  done
 
3081
IFS=$as_save_IFS
 
3082
 
 
3083
if test $ac_prog_rejected = yes; then
 
3084
  # We found a bogon in the path, so make sure we never use it.
 
3085
  set dummy $ac_cv_prog_CC
 
3086
  shift
 
3087
  if test $# != 0; then
 
3088
    # We chose a different compiler from the bogus one.
 
3089
    # However, it has the same basename, so the bogon will be chosen
 
3090
    # first if we set CC to just the basename; use the full file name.
 
3091
    shift
 
3092
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3093
  fi
 
3094
fi
 
3095
fi
 
3096
fi
 
3097
CC=$ac_cv_prog_CC
 
3098
if test -n "$CC"; then
 
3099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3100
$as_echo "$CC" >&6; }
 
3101
else
 
3102
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3103
$as_echo "no" >&6; }
 
3104
fi
 
3105
 
 
3106
 
 
3107
fi
 
3108
if test -z "$CC"; then
 
3109
  if test -n "$ac_tool_prefix"; then
 
3110
  for ac_prog in cl.exe
 
3111
  do
 
3112
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3113
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3115
$as_echo_n "checking for $ac_word... " >&6; }
 
3116
if test "${ac_cv_prog_CC+set}" = set; then :
 
3117
  $as_echo_n "(cached) " >&6
 
3118
else
 
3119
  if test -n "$CC"; then
 
3120
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3121
else
 
3122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3123
for as_dir in $PATH
 
3124
do
 
3125
  IFS=$as_save_IFS
 
3126
  test -z "$as_dir" && as_dir=.
 
3127
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3128
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3129
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3130
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3131
    break 2
 
3132
  fi
 
3133
done
 
3134
  done
 
3135
IFS=$as_save_IFS
 
3136
 
 
3137
fi
 
3138
fi
 
3139
CC=$ac_cv_prog_CC
 
3140
if test -n "$CC"; then
 
3141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3142
$as_echo "$CC" >&6; }
 
3143
else
 
3144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3145
$as_echo "no" >&6; }
 
3146
fi
 
3147
 
 
3148
 
 
3149
    test -n "$CC" && break
 
3150
  done
 
3151
fi
 
3152
if test -z "$CC"; then
 
3153
  ac_ct_CC=$CC
 
3154
  for ac_prog in cl.exe
 
3155
do
 
3156
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3157
set dummy $ac_prog; ac_word=$2
 
3158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3159
$as_echo_n "checking for $ac_word... " >&6; }
 
3160
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3161
  $as_echo_n "(cached) " >&6
 
3162
else
 
3163
  if test -n "$ac_ct_CC"; then
 
3164
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3165
else
 
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3167
for as_dir in $PATH
 
3168
do
 
3169
  IFS=$as_save_IFS
 
3170
  test -z "$as_dir" && as_dir=.
 
3171
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3172
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3173
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3174
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3175
    break 2
 
3176
  fi
 
3177
done
 
3178
  done
 
3179
IFS=$as_save_IFS
 
3180
 
 
3181
fi
 
3182
fi
 
3183
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3184
if test -n "$ac_ct_CC"; then
 
3185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3186
$as_echo "$ac_ct_CC" >&6; }
 
3187
else
 
3188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3189
$as_echo "no" >&6; }
 
3190
fi
 
3191
 
 
3192
 
 
3193
  test -n "$ac_ct_CC" && break
 
3194
done
 
3195
 
 
3196
  if test "x$ac_ct_CC" = x; then
 
3197
    CC=""
 
3198
  else
 
3199
    case $cross_compiling:$ac_tool_warned in
 
3200
yes:)
 
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3202
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3203
ac_tool_warned=yes ;;
 
3204
esac
 
3205
    CC=$ac_ct_CC
 
3206
  fi
 
3207
fi
 
3208
 
 
3209
fi
 
3210
 
 
3211
 
 
3212
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3213
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3214
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3215
See \`config.log' for more details" "$LINENO" 5 ; }
 
3216
 
 
3217
# Provide some information about the compiler.
 
3218
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3219
set X $ac_compile
 
3220
ac_compiler=$2
 
3221
for ac_option in --version -v -V -qversion; do
 
3222
  { { ac_try="$ac_compiler $ac_option >&5"
 
3223
case "(($ac_try" in
 
3224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3225
  *) ac_try_echo=$ac_try;;
 
3226
esac
 
3227
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3228
$as_echo "$ac_try_echo"; } >&5
 
3229
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3230
  ac_status=$?
 
3231
  if test -s conftest.err; then
 
3232
    sed '10a\
 
3233
... rest of stderr output deleted ...
 
3234
         10q' conftest.err >conftest.er1
 
3235
    cat conftest.er1 >&5
 
3236
  fi
 
3237
  rm -f conftest.er1 conftest.err
 
3238
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3239
  test $ac_status = 0; }
 
3240
done
 
3241
 
 
3242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3243
/* end confdefs.h.  */
 
3244
 
 
3245
int
 
3246
main ()
 
3247
{
 
3248
 
 
3249
  ;
 
3250
  return 0;
 
3251
}
 
3252
_ACEOF
 
3253
ac_clean_files_save=$ac_clean_files
 
3254
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3255
# Try to create an executable without -o first, disregard a.out.
 
3256
# It will help us diagnose broken compilers, and finding out an intuition
 
3257
# of exeext.
 
3258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3259
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3260
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3261
 
 
3262
# The possible output files:
 
3263
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3264
 
 
3265
ac_rmfiles=
 
3266
for ac_file in $ac_files
 
3267
do
 
3268
  case $ac_file in
 
3269
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3270
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3271
  esac
 
3272
done
 
3273
rm -f $ac_rmfiles
 
3274
 
 
3275
if { { ac_try="$ac_link_default"
 
3276
case "(($ac_try" in
 
3277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3278
  *) ac_try_echo=$ac_try;;
 
3279
esac
 
3280
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3281
$as_echo "$ac_try_echo"; } >&5
 
3282
  (eval "$ac_link_default") 2>&5
 
3283
  ac_status=$?
 
3284
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3285
  test $ac_status = 0; }; then :
 
3286
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3287
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3288
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3289
# so that the user can short-circuit this test for compilers unknown to
 
3290
# Autoconf.
 
3291
for ac_file in $ac_files ''
 
3292
do
 
3293
  test -f "$ac_file" || continue
 
3294
  case $ac_file in
 
3295
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3296
        ;;
 
3297
    [ab].out )
 
3298
        # We found the default executable, but exeext='' is most
 
3299
        # certainly right.
 
3300
        break;;
 
3301
    *.* )
 
3302
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3303
        then :; else
 
3304
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3305
        fi
 
3306
        # We set ac_cv_exeext here because the later test for it is not
 
3307
        # safe: cross compilers may not add the suffix if given an `-o'
 
3308
        # argument, so we may need to know it at that point already.
 
3309
        # Even if this section looks crufty: it has the advantage of
 
3310
        # actually working.
 
3311
        break;;
 
3312
    * )
 
3313
        break;;
 
3314
  esac
 
3315
done
 
3316
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3317
 
 
3318
else
 
3319
  ac_file=''
 
3320
fi
 
3321
if test -z "$ac_file"; then :
 
3322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3323
$as_echo "no" >&6; }
 
3324
$as_echo "$as_me: failed program was:" >&5
 
3325
sed 's/^/| /' conftest.$ac_ext >&5
 
3326
 
 
3327
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3328
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3329
as_fn_error 77 "C compiler cannot create executables
 
3330
See \`config.log' for more details" "$LINENO" 5 ; }
 
3331
else
 
3332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3333
$as_echo "yes" >&6; }
 
3334
fi
 
3335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3336
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3338
$as_echo "$ac_file" >&6; }
 
3339
ac_exeext=$ac_cv_exeext
 
3340
 
 
3341
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3342
ac_clean_files=$ac_clean_files_save
 
3343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3344
$as_echo_n "checking for suffix of executables... " >&6; }
 
3345
if { { ac_try="$ac_link"
 
3346
case "(($ac_try" in
 
3347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3348
  *) ac_try_echo=$ac_try;;
 
3349
esac
 
3350
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3351
$as_echo "$ac_try_echo"; } >&5
 
3352
  (eval "$ac_link") 2>&5
 
3353
  ac_status=$?
 
3354
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3355
  test $ac_status = 0; }; then :
 
3356
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3357
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3358
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3359
# `rm'.
 
3360
for ac_file in conftest.exe conftest conftest.*; do
 
3361
  test -f "$ac_file" || continue
 
3362
  case $ac_file in
 
3363
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3364
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3365
          break;;
 
3366
    * ) break;;
 
3367
  esac
 
3368
done
 
3369
else
 
3370
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3371
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3372
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3373
See \`config.log' for more details" "$LINENO" 5 ; }
 
3374
fi
 
3375
rm -f conftest conftest$ac_cv_exeext
 
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3377
$as_echo "$ac_cv_exeext" >&6; }
 
3378
 
 
3379
rm -f conftest.$ac_ext
 
3380
EXEEXT=$ac_cv_exeext
 
3381
ac_exeext=$EXEEXT
 
3382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3383
/* end confdefs.h.  */
 
3384
#include <stdio.h>
 
3385
int
 
3386
main ()
 
3387
{
 
3388
FILE *f = fopen ("conftest.out", "w");
 
3389
 return ferror (f) || fclose (f) != 0;
 
3390
 
 
3391
  ;
 
3392
  return 0;
 
3393
}
 
3394
_ACEOF
 
3395
ac_clean_files="$ac_clean_files conftest.out"
 
3396
# Check that the compiler produces executables we can run.  If not, either
 
3397
# the compiler is broken, or we cross compile.
 
3398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3399
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3400
if test "$cross_compiling" != yes; then
 
3401
  { { ac_try="$ac_link"
 
3402
case "(($ac_try" in
 
3403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3404
  *) ac_try_echo=$ac_try;;
 
3405
esac
 
3406
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3407
$as_echo "$ac_try_echo"; } >&5
 
3408
  (eval "$ac_link") 2>&5
 
3409
  ac_status=$?
 
3410
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3411
  test $ac_status = 0; }
 
3412
  if { ac_try='./conftest$ac_cv_exeext'
 
3413
  { { case "(($ac_try" in
 
3414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3415
  *) ac_try_echo=$ac_try;;
 
3416
esac
 
3417
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3418
$as_echo "$ac_try_echo"; } >&5
 
3419
  (eval "$ac_try") 2>&5
 
3420
  ac_status=$?
 
3421
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3422
  test $ac_status = 0; }; }; then
 
3423
    cross_compiling=no
 
3424
  else
 
3425
    if test "$cross_compiling" = maybe; then
 
3426
        cross_compiling=yes
 
3427
    else
 
3428
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3429
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3430
as_fn_error $? "cannot run C compiled programs.
 
3431
If you meant to cross compile, use \`--host'.
 
3432
See \`config.log' for more details" "$LINENO" 5 ; }
 
3433
    fi
 
3434
  fi
 
3435
fi
 
3436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3437
$as_echo "$cross_compiling" >&6; }
 
3438
 
 
3439
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3440
ac_clean_files=$ac_clean_files_save
 
3441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3442
$as_echo_n "checking for suffix of object files... " >&6; }
 
3443
if test "${ac_cv_objext+set}" = set; then :
 
3444
  $as_echo_n "(cached) " >&6
 
3445
else
 
3446
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3447
/* end confdefs.h.  */
 
3448
 
 
3449
int
 
3450
main ()
 
3451
{
 
3452
 
 
3453
  ;
 
3454
  return 0;
 
3455
}
 
3456
_ACEOF
 
3457
rm -f conftest.o conftest.obj
 
3458
if { { ac_try="$ac_compile"
 
3459
case "(($ac_try" in
 
3460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3461
  *) ac_try_echo=$ac_try;;
 
3462
esac
 
3463
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3464
$as_echo "$ac_try_echo"; } >&5
 
3465
  (eval "$ac_compile") 2>&5
 
3466
  ac_status=$?
 
3467
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3468
  test $ac_status = 0; }; then :
 
3469
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3470
  test -f "$ac_file" || continue;
 
3471
  case $ac_file in
 
3472
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3473
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3474
       break;;
 
3475
  esac
 
3476
done
 
3477
else
 
3478
  $as_echo "$as_me: failed program was:" >&5
 
3479
sed 's/^/| /' conftest.$ac_ext >&5
 
3480
 
 
3481
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3482
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3483
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3484
See \`config.log' for more details" "$LINENO" 5 ; }
 
3485
fi
 
3486
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3487
fi
 
3488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3489
$as_echo "$ac_cv_objext" >&6; }
 
3490
OBJEXT=$ac_cv_objext
 
3491
ac_objext=$OBJEXT
 
3492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3493
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3494
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3495
  $as_echo_n "(cached) " >&6
 
3496
else
 
3497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3498
/* end confdefs.h.  */
 
3499
 
 
3500
int
 
3501
main ()
 
3502
{
 
3503
#ifndef __GNUC__
 
3504
       choke me
 
3505
#endif
 
3506
 
 
3507
  ;
 
3508
  return 0;
 
3509
}
 
3510
_ACEOF
 
3511
if ac_fn_c_try_compile "$LINENO"; then :
 
3512
  ac_compiler_gnu=yes
 
3513
else
 
3514
  ac_compiler_gnu=no
 
3515
fi
 
3516
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3517
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3518
 
 
3519
fi
 
3520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3521
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3522
if test $ac_compiler_gnu = yes; then
 
3523
  GCC=yes
 
3524
else
 
3525
  GCC=
 
3526
fi
 
3527
ac_test_CFLAGS=${CFLAGS+set}
 
3528
ac_save_CFLAGS=$CFLAGS
 
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3530
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3531
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3532
  $as_echo_n "(cached) " >&6
 
3533
else
 
3534
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3535
   ac_c_werror_flag=yes
 
3536
   ac_cv_prog_cc_g=no
 
3537
   CFLAGS="-g"
 
3538
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3539
/* end confdefs.h.  */
 
3540
 
 
3541
int
 
3542
main ()
 
3543
{
 
3544
 
 
3545
  ;
 
3546
  return 0;
 
3547
}
 
3548
_ACEOF
 
3549
if ac_fn_c_try_compile "$LINENO"; then :
 
3550
  ac_cv_prog_cc_g=yes
 
3551
else
 
3552
  CFLAGS=""
 
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
if ac_fn_c_try_compile "$LINENO"; then :
 
3565
 
 
3566
else
 
3567
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3568
         CFLAGS="-g"
 
3569
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3570
/* end confdefs.h.  */
 
3571
 
 
3572
int
 
3573
main ()
 
3574
{
 
3575
 
 
3576
  ;
 
3577
  return 0;
 
3578
}
 
3579
_ACEOF
 
3580
if ac_fn_c_try_compile "$LINENO"; then :
 
3581
  ac_cv_prog_cc_g=yes
 
3582
fi
 
3583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3584
fi
 
3585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3586
fi
 
3587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3588
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3589
fi
 
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3591
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3592
if test "$ac_test_CFLAGS" = set; then
 
3593
  CFLAGS=$ac_save_CFLAGS
 
3594
elif test $ac_cv_prog_cc_g = yes; then
 
3595
  if test "$GCC" = yes; then
 
3596
    CFLAGS="-g -O2"
 
3597
  else
 
3598
    CFLAGS="-g"
 
3599
  fi
 
3600
else
 
3601
  if test "$GCC" = yes; then
 
3602
    CFLAGS="-O2"
 
3603
  else
 
3604
    CFLAGS=
 
3605
  fi
 
3606
fi
 
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3608
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3609
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3610
  $as_echo_n "(cached) " >&6
 
3611
else
 
3612
  ac_cv_prog_cc_c89=no
 
3613
ac_save_CC=$CC
 
3614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3615
/* end confdefs.h.  */
 
3616
#include <stdarg.h>
 
3617
#include <stdio.h>
 
3618
#include <sys/types.h>
 
3619
#include <sys/stat.h>
 
3620
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3621
struct buf { int x; };
 
3622
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3623
static char *e (p, i)
 
3624
     char **p;
 
3625
     int i;
 
3626
{
 
3627
  return p[i];
 
3628
}
 
3629
static char *f (char * (*g) (char **, int), char **p, ...)
 
3630
{
 
3631
  char *s;
 
3632
  va_list v;
 
3633
  va_start (v,p);
 
3634
  s = g (p, va_arg (v,int));
 
3635
  va_end (v);
 
3636
  return s;
 
3637
}
 
3638
 
 
3639
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3640
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3641
   These don't provoke an error unfortunately, instead are silently treated
 
3642
   as 'x'.  The following induces an error, until -std is added to get
 
3643
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3644
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3645
   that's true only with -std.  */
 
3646
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3647
 
 
3648
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3649
   inside strings and character constants.  */
 
3650
#define FOO(x) 'x'
 
3651
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3652
 
 
3653
int test (int i, double x);
 
3654
struct s1 {int (*f) (int a);};
 
3655
struct s2 {int (*f) (double a);};
 
3656
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3657
int argc;
 
3658
char **argv;
 
3659
int
 
3660
main ()
 
3661
{
 
3662
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3663
  ;
 
3664
  return 0;
 
3665
}
 
3666
_ACEOF
 
3667
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3668
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3669
do
 
3670
  CC="$ac_save_CC $ac_arg"
 
3671
  if ac_fn_c_try_compile "$LINENO"; then :
 
3672
  ac_cv_prog_cc_c89=$ac_arg
 
3673
fi
 
3674
rm -f core conftest.err conftest.$ac_objext
 
3675
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3676
done
 
3677
rm -f conftest.$ac_ext
 
3678
CC=$ac_save_CC
 
3679
 
 
3680
fi
 
3681
# AC_CACHE_VAL
 
3682
case "x$ac_cv_prog_cc_c89" in
 
3683
  x)
 
3684
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3685
$as_echo "none needed" >&6; } ;;
 
3686
  xno)
 
3687
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3688
$as_echo "unsupported" >&6; } ;;
 
3689
  *)
 
3690
    CC="$CC $ac_cv_prog_cc_c89"
 
3691
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3692
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3693
esac
 
3694
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3695
 
 
3696
fi
 
3697
 
 
3698
ac_ext=c
 
3699
ac_cpp='$CPP $CPPFLAGS'
 
3700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3703
 
 
3704
depcc="$CC"   am_compiler_list=
 
3705
 
 
3706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3707
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3708
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3709
  $as_echo_n "(cached) " >&6
 
3710
else
 
3711
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3712
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3713
  # making bogus files that we don't know about and never remove.  For
 
3714
  # instance it was reported that on HP-UX the gcc test will end up
 
3715
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3716
  # in D'.
 
3717
  mkdir conftest.dir
 
3718
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3719
  # using a relative directory.
 
3720
  cp "$am_depcomp" conftest.dir
 
3721
  cd conftest.dir
 
3722
  # We will build objects and dependencies in a subdirectory because
 
3723
  # it helps to detect inapplicable dependency modes.  For instance
 
3724
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3725
  # side effect of compilation, but ICC will put the dependencies in
 
3726
  # the current directory while Tru64 will put them in the object
 
3727
  # directory.
 
3728
  mkdir sub
 
3729
 
 
3730
  am_cv_CC_dependencies_compiler_type=none
 
3731
  if test "$am_compiler_list" = ""; then
 
3732
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3733
  fi
 
3734
  am__universal=false
 
3735
  case " $depcc " in #(
 
3736
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3737
     esac
 
3738
 
 
3739
  for depmode in $am_compiler_list; do
 
3740
    # Setup a source with many dependencies, because some compilers
 
3741
    # like to wrap large dependency lists on column 80 (with \), and
 
3742
    # we should not choose a depcomp mode which is confused by this.
 
3743
    #
 
3744
    # We need to recreate these files for each test, as the compiler may
 
3745
    # overwrite some of them when testing with obscure command lines.
 
3746
    # This happens at least with the AIX C compiler.
 
3747
    : > sub/conftest.c
 
3748
    for i in 1 2 3 4 5 6; do
 
3749
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3750
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3751
      # Solaris 8's {/usr,}/bin/sh.
 
3752
      touch sub/conftst$i.h
 
3753
    done
 
3754
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3755
 
 
3756
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3757
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3758
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3759
    # versions had trouble with output in subdirs
 
3760
    am__obj=sub/conftest.${OBJEXT-o}
 
3761
    am__minus_obj="-o $am__obj"
 
3762
    case $depmode in
 
3763
    gcc)
 
3764
      # This depmode causes a compiler race in universal mode.
 
3765
      test "$am__universal" = false || continue
 
3766
      ;;
 
3767
    nosideeffect)
 
3768
      # after this tag, mechanisms are not by side-effect, so they'll
 
3769
      # only be used when explicitly requested
 
3770
      if test "x$enable_dependency_tracking" = xyes; then
 
3771
        continue
 
3772
      else
 
3773
        break
 
3774
      fi
 
3775
      ;;
 
3776
    msvisualcpp | msvcmsys)
 
3777
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3778
      # not run yet.  These depmodes are late enough in the game, and
 
3779
      # so weak that their functioning should not be impacted.
 
3780
      am__obj=conftest.${OBJEXT-o}
 
3781
      am__minus_obj=
 
3782
      ;;
 
3783
    none) break ;;
 
3784
    esac
 
3785
    if depmode=$depmode \
 
3786
       source=sub/conftest.c object=$am__obj \
 
3787
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3788
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3789
         >/dev/null 2>conftest.err &&
 
3790
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3791
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3792
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3793
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3794
      # icc doesn't choke on unknown options, it will just issue warnings
 
3795
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3796
      # that says an option was ignored or not supported.
 
3797
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3798
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3799
      # The diagnosis changed in icc 8.0:
 
3800
      #   icc: Command line remark: option '-MP' not supported
 
3801
      if (grep 'ignoring option' conftest.err ||
 
3802
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3803
        am_cv_CC_dependencies_compiler_type=$depmode
 
3804
        break
 
3805
      fi
 
3806
    fi
 
3807
  done
 
3808
 
 
3809
  cd ..
 
3810
  rm -rf conftest.dir
 
3811
else
 
3812
  am_cv_CC_dependencies_compiler_type=none
 
3813
fi
 
3814
 
 
3815
fi
 
3816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3817
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3818
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3819
 
 
3820
 if
 
3821
  test "x$enable_dependency_tracking" != xno \
 
3822
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3823
  am__fastdepCC_TRUE=
 
3824
  am__fastdepCC_FALSE='#'
 
3825
else
 
3826
  am__fastdepCC_TRUE='#'
 
3827
  am__fastdepCC_FALSE=
 
3828
fi
 
3829
 
 
3830
 
 
3831
 
 
3832
for ac_prog in flex lex
 
3833
do
 
3834
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3835
set dummy $ac_prog; ac_word=$2
 
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3837
$as_echo_n "checking for $ac_word... " >&6; }
 
3838
if test "${ac_cv_prog_LEX+set}" = set; then :
 
3839
  $as_echo_n "(cached) " >&6
 
3840
else
 
3841
  if test -n "$LEX"; then
 
3842
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
3843
else
 
3844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3845
for as_dir in $PATH
 
3846
do
 
3847
  IFS=$as_save_IFS
 
3848
  test -z "$as_dir" && as_dir=.
 
3849
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3850
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3851
    ac_cv_prog_LEX="$ac_prog"
 
3852
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3853
    break 2
 
3854
  fi
 
3855
done
 
3856
  done
 
3857
IFS=$as_save_IFS
 
3858
 
 
3859
fi
 
3860
fi
 
3861
LEX=$ac_cv_prog_LEX
 
3862
if test -n "$LEX"; then
 
3863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
 
3864
$as_echo "$LEX" >&6; }
 
3865
else
 
3866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3867
$as_echo "no" >&6; }
 
3868
fi
 
3869
 
 
3870
 
 
3871
  test -n "$LEX" && break
 
3872
done
 
3873
test -n "$LEX" || LEX=":"
 
3874
 
 
3875
if test "x$LEX" != "x:"; then
 
3876
  cat >conftest.l <<_ACEOF
 
3877
%%
 
3878
a { ECHO; }
 
3879
b { REJECT; }
 
3880
c { yymore (); }
 
3881
d { yyless (1); }
 
3882
e { yyless (input () != 0); }
 
3883
f { unput (yytext[0]); }
 
3884
. { BEGIN INITIAL; }
 
3885
%%
 
3886
#ifdef YYTEXT_POINTER
 
3887
extern char *yytext;
 
3888
#endif
 
3889
int
 
3890
main (void)
 
3891
{
 
3892
  return ! yylex () + ! yywrap ();
 
3893
}
 
3894
_ACEOF
 
3895
{ { ac_try="$LEX conftest.l"
 
3896
case "(($ac_try" in
 
3897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3898
  *) ac_try_echo=$ac_try;;
 
3899
esac
 
3900
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3901
$as_echo "$ac_try_echo"; } >&5
 
3902
  (eval "$LEX conftest.l") 2>&5
 
3903
  ac_status=$?
 
3904
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3905
  test $ac_status = 0; }
 
3906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
 
3907
$as_echo_n "checking lex output file root... " >&6; }
 
3908
if test "${ac_cv_prog_lex_root+set}" = set; then :
 
3909
  $as_echo_n "(cached) " >&6
 
3910
else
 
3911
 
 
3912
if test -f lex.yy.c; then
 
3913
  ac_cv_prog_lex_root=lex.yy
 
3914
elif test -f lexyy.c; then
 
3915
  ac_cv_prog_lex_root=lexyy
 
3916
else
 
3917
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
 
3918
fi
 
3919
fi
 
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
 
3921
$as_echo "$ac_cv_prog_lex_root" >&6; }
 
3922
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
3923
 
 
3924
if test -z "${LEXLIB+set}"; then
 
3925
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
 
3926
$as_echo_n "checking lex library... " >&6; }
 
3927
if test "${ac_cv_lib_lex+set}" = set; then :
 
3928
  $as_echo_n "(cached) " >&6
 
3929
else
 
3930
 
 
3931
    ac_save_LIBS=$LIBS
 
3932
    ac_cv_lib_lex='none needed'
 
3933
    for ac_lib in '' -lfl -ll; do
 
3934
      LIBS="$ac_lib $ac_save_LIBS"
 
3935
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3936
/* end confdefs.h.  */
 
3937
`cat $LEX_OUTPUT_ROOT.c`
 
3938
_ACEOF
 
3939
if ac_fn_c_try_link "$LINENO"; then :
 
3940
  ac_cv_lib_lex=$ac_lib
 
3941
fi
 
3942
rm -f core conftest.err conftest.$ac_objext \
 
3943
    conftest$ac_exeext conftest.$ac_ext
 
3944
      test "$ac_cv_lib_lex" != 'none needed' && break
 
3945
    done
 
3946
    LIBS=$ac_save_LIBS
 
3947
 
 
3948
fi
 
3949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
 
3950
$as_echo "$ac_cv_lib_lex" >&6; }
 
3951
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
3952
fi
 
3953
 
 
3954
 
 
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
 
3956
$as_echo_n "checking whether yytext is a pointer... " >&6; }
 
3957
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
 
3958
  $as_echo_n "(cached) " >&6
 
3959
else
 
3960
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
3961
# default is implementation-dependent.  Figure out which it is, since
 
3962
# not all implementations provide the %pointer and %array declarations.
 
3963
ac_cv_prog_lex_yytext_pointer=no
 
3964
ac_save_LIBS=$LIBS
 
3965
LIBS="$LEXLIB $ac_save_LIBS"
 
3966
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3967
/* end confdefs.h.  */
 
3968
#define YYTEXT_POINTER 1
 
3969
`cat $LEX_OUTPUT_ROOT.c`
 
3970
_ACEOF
 
3971
if ac_fn_c_try_link "$LINENO"; then :
 
3972
  ac_cv_prog_lex_yytext_pointer=yes
 
3973
fi
 
3974
rm -f core conftest.err conftest.$ac_objext \
 
3975
    conftest$ac_exeext conftest.$ac_ext
 
3976
LIBS=$ac_save_LIBS
 
3977
 
 
3978
fi
 
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
3980
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 
3981
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
3982
 
 
3983
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
 
3984
 
 
3985
fi
 
3986
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
3987
 
 
3988
fi
 
3989
if test "$LEX" = :; then
 
3990
  LEX=${am_missing_run}flex
 
3991
fi
 
3992
for ac_prog in 'bison -y' byacc
 
3993
do
 
3994
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3995
set dummy $ac_prog; ac_word=$2
 
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3997
$as_echo_n "checking for $ac_word... " >&6; }
 
3998
if test "${ac_cv_prog_YACC+set}" = set; then :
 
3999
  $as_echo_n "(cached) " >&6
 
4000
else
 
4001
  if test -n "$YACC"; then
 
4002
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
4003
else
 
4004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4005
for as_dir in $PATH
 
4006
do
 
4007
  IFS=$as_save_IFS
 
4008
  test -z "$as_dir" && as_dir=.
 
4009
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4010
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4011
    ac_cv_prog_YACC="$ac_prog"
 
4012
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4013
    break 2
 
4014
  fi
 
4015
done
 
4016
  done
 
4017
IFS=$as_save_IFS
 
4018
 
 
4019
fi
 
4020
fi
 
4021
YACC=$ac_cv_prog_YACC
 
4022
if test -n "$YACC"; then
 
4023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 
4024
$as_echo "$YACC" >&6; }
 
4025
else
 
4026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4027
$as_echo "no" >&6; }
 
4028
fi
 
4029
 
 
4030
 
 
4031
  test -n "$YACC" && break
 
4032
done
 
4033
test -n "$YACC" || YACC="yacc"
 
4034
 
 
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4036
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4037
if test "${ac_cv_path_SED+set}" = set; then :
 
4038
  $as_echo_n "(cached) " >&6
 
4039
else
 
4040
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4041
     for ac_i in 1 2 3 4 5 6 7; do
 
4042
       ac_script="$ac_script$as_nl$ac_script"
 
4043
     done
 
4044
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4045
     { ac_script=; unset ac_script;}
 
4046
     if test -z "$SED"; then
 
4047
  ac_path_SED_found=false
 
4048
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4049
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4050
for as_dir in $PATH
 
4051
do
 
4052
  IFS=$as_save_IFS
 
4053
  test -z "$as_dir" && as_dir=.
 
4054
    for ac_prog in sed gsed; do
 
4055
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4056
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4057
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4058
# Check for GNU ac_path_SED and select it if it is found.
 
4059
  # Check for GNU $ac_path_SED
 
4060
case `"$ac_path_SED" --version 2>&1` in
 
4061
*GNU*)
 
4062
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4063
*)
 
4064
  ac_count=0
 
4065
  $as_echo_n 0123456789 >"conftest.in"
 
4066
  while :
 
4067
  do
 
4068
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4069
    mv "conftest.tmp" "conftest.in"
 
4070
    cp "conftest.in" "conftest.nl"
 
4071
    $as_echo '' >> "conftest.nl"
 
4072
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4073
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4074
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4075
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4076
      # Best one so far, save it but keep looking for a better one
 
4077
      ac_cv_path_SED="$ac_path_SED"
 
4078
      ac_path_SED_max=$ac_count
 
4079
    fi
 
4080
    # 10*(2^10) chars as input seems more than enough
 
4081
    test $ac_count -gt 10 && break
 
4082
  done
 
4083
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4084
esac
 
4085
 
 
4086
      $ac_path_SED_found && break 3
 
4087
    done
 
4088
  done
 
4089
  done
 
4090
IFS=$as_save_IFS
 
4091
  if test -z "$ac_cv_path_SED"; then
 
4092
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4093
  fi
 
4094
else
 
4095
  ac_cv_path_SED=$SED
 
4096
fi
 
4097
 
 
4098
fi
 
4099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4100
$as_echo "$ac_cv_path_SED" >&6; }
 
4101
 SED="$ac_cv_path_SED"
 
4102
  rm -f conftest.sed
 
4103
 
 
4104
 
 
4105
# Extract the first word of "swig", so it can be a program name with args.
 
4106
set dummy swig; ac_word=$2
 
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4108
$as_echo_n "checking for $ac_word... " >&6; }
 
4109
if test "${ac_cv_path_SWIG+set}" = set; then :
 
4110
  $as_echo_n "(cached) " >&6
 
4111
else
 
4112
  case $SWIG in
 
4113
  [\\/]* | ?:[\\/]*)
 
4114
  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
 
4115
  ;;
 
4116
  *)
 
4117
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4118
for as_dir in $PATH
 
4119
do
 
4120
  IFS=$as_save_IFS
 
4121
  test -z "$as_dir" && as_dir=.
 
4122
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4123
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4124
    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
 
4125
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4126
    break 2
 
4127
  fi
 
4128
done
 
4129
  done
 
4130
IFS=$as_save_IFS
 
4131
 
 
4132
  ;;
 
4133
esac
 
4134
fi
 
4135
SWIG=$ac_cv_path_SWIG
 
4136
if test -n "$SWIG"; then
 
4137
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
 
4138
$as_echo "$SWIG" >&6; }
 
4139
else
 
4140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4141
$as_echo "no" >&6; }
 
4142
fi
 
4143
 
 
4144
 
 
4145
 
 
4146
 
 
4147
 
 
4148
 
 
4149
   # Extract the first word of "pod2man", so it can be a program name with args.
 
4150
set dummy pod2man; ac_word=$2
 
4151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4152
$as_echo_n "checking for $ac_word... " >&6; }
 
4153
if test "${ac_cv_prog_POD2MAN+set}" = set; then :
 
4154
  $as_echo_n "(cached) " >&6
 
4155
else
 
4156
  if test -n "$POD2MAN"; then
 
4157
  ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
 
4158
else
 
4159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4160
for as_dir in $PATH
 
4161
do
 
4162
  IFS=$as_save_IFS
 
4163
  test -z "$as_dir" && as_dir=.
 
4164
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4165
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4166
    ac_cv_prog_POD2MAN="pod2man"
 
4167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4168
    break 2
 
4169
  fi
 
4170
done
 
4171
  done
 
4172
IFS=$as_save_IFS
 
4173
 
 
4174
  test -z "$ac_cv_prog_POD2MAN" && ac_cv_prog_POD2MAN="no"
 
4175
fi
 
4176
fi
 
4177
POD2MAN=$ac_cv_prog_POD2MAN
 
4178
if test -n "$POD2MAN"; then
 
4179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
 
4180
$as_echo "$POD2MAN" >&6; }
 
4181
else
 
4182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4183
$as_echo "no" >&6; }
 
4184
fi
 
4185
 
 
4186
 
 
4187
   if test "$POD2MAN" = "no"; then
 
4188
      as_fn_error $? "
 
4189
The pod2man program was not found in the default path.  pod2man is part of
 
4190
Perl, which can be retrieved from:
 
4191
 
 
4192
    http://www.perl.com/
 
4193
 
 
4194
The latest version at this time is 5.6.1; it is available packaged as the
 
4195
following archive:
 
4196
 
 
4197
    http://www.perl.com/CPAN/src/stable.tar.gz
 
4198
" "$LINENO" 5
 
4199
   fi
 
4200
 
 
4201
 
 
4202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Python" >&5
 
4203
$as_echo_n "checking Checking for Python... " >&6; }
 
4204
 
 
4205
# Check whether --with-python was given.
 
4206
if test "${with_python+set}" = set; then :
 
4207
  withval=$with_python; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
 
4208
$as_echo "$withval" >&6; }
 
4209
else
 
4210
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4211
$as_echo "no" >&6; }
 
4212
fi
 
4213
 
 
4214
if test "$with_python" = "yes"; then
 
4215
   # Extract the first word of "python", so it can be a program name with args.
 
4216
set dummy python; ac_word=$2
 
4217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4218
$as_echo_n "checking for $ac_word... " >&6; }
 
4219
if test "${ac_cv_path_PYTHON+set}" = set; then :
 
4220
  $as_echo_n "(cached) " >&6
 
4221
else
 
4222
  case $PYTHON in
 
4223
  [\\/]* | ?:[\\/]*)
 
4224
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
4225
  ;;
 
4226
  *)
 
4227
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4228
for as_dir in $PATH
 
4229
do
 
4230
  IFS=$as_save_IFS
 
4231
  test -z "$as_dir" && as_dir=.
 
4232
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4233
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4234
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
4235
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4236
    break 2
 
4237
  fi
 
4238
done
 
4239
  done
 
4240
IFS=$as_save_IFS
 
4241
 
 
4242
  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="no"
 
4243
  ;;
 
4244
esac
 
4245
fi
 
4246
PYTHON=$ac_cv_path_PYTHON
 
4247
if test -n "$PYTHON"; then
 
4248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
4249
$as_echo "$PYTHON" >&6; }
 
4250
else
 
4251
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4252
$as_echo "no" >&6; }
 
4253
fi
 
4254
 
 
4255
 
 
4256
   if test x$PYTHON = xno; then
 
4257
      enable_python = no
 
4258
   else
 
4259
 
 
4260
 
 
4261
 
 
4262
        #
 
4263
        # Allow the use of a (user set) custom python version
 
4264
        #
 
4265
 
 
4266
 
 
4267
        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
 
4268
set dummy python$PYTHON_VERSION; ac_word=$2
 
4269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4270
$as_echo_n "checking for $ac_word... " >&6; }
 
4271
if test "${ac_cv_path_PYTHON+set}" = set; then :
 
4272
  $as_echo_n "(cached) " >&6
 
4273
else
 
4274
  case $PYTHON in
 
4275
  [\\/]* | ?:[\\/]*)
 
4276
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
4277
  ;;
 
4278
  *)
 
4279
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4280
for as_dir in $PATH
 
4281
do
 
4282
  IFS=$as_save_IFS
 
4283
  test -z "$as_dir" && as_dir=.
 
4284
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4286
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
4287
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4288
    break 2
 
4289
  fi
 
4290
done
 
4291
  done
 
4292
IFS=$as_save_IFS
 
4293
 
 
4294
  ;;
 
4295
esac
 
4296
fi
 
4297
PYTHON=$ac_cv_path_PYTHON
 
4298
if test -n "$PYTHON"; then
 
4299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
4300
$as_echo "$PYTHON" >&6; }
 
4301
else
 
4302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4303
$as_echo "no" >&6; }
 
4304
fi
 
4305
 
 
4306
 
 
4307
        if test -z "$PYTHON"; then
 
4308
           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
 
4309
           PYTHON_VERSION=""
 
4310
        fi
 
4311
 
 
4312
        #
 
4313
        # Check for a version of Python >= 2.1.0
 
4314
        #
 
4315
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
 
4316
$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
 
4317
        ac_supports_python_ver=`$PYTHON -c "import sys, string; \
 
4318
                ver = string.split(sys.version)[0]; \
 
4319
                print ver >= '2.1.0'"`
 
4320
        if test "$ac_supports_python_ver" != "True"; then
 
4321
                if test -z "$PYTHON_NOVERSIONCHECK"; then
 
4322
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4323
$as_echo "no" >&6; }
 
4324
                        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4325
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4326
as_fn_error $? "
 
4327
This version of the AC_PYTHON_DEVEL macro
 
4328
doesn't work properly with versions of Python before
 
4329
2.1.0. You may need to re-run configure, setting the
 
4330
variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
 
4331
PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
 
4332
Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
 
4333
to something else than an empty string.
 
4334
 
 
4335
See \`config.log' for more details" "$LINENO" 5 ; }
 
4336
                else
 
4337
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
 
4338
$as_echo "skip at user request" >&6; }
 
4339
                fi
 
4340
        else
 
4341
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4342
$as_echo "yes" >&6; }
 
4343
        fi
 
4344
 
 
4345
        #
 
4346
        # if the macro parameter ``version'' is set, honour it
 
4347
        #
 
4348
        if test -n ""; then
 
4349
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
 
4350
$as_echo_n "checking for a version of Python ... " >&6; }
 
4351
                ac_supports_python_ver=`$PYTHON -c "import sys, string; \
 
4352
                        ver = string.split(sys.version)[0]; \
 
4353
                        print ver "`
 
4354
                if test "$ac_supports_python_ver" = "True"; then
 
4355
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4356
$as_echo "yes" >&6; }
 
4357
                else
 
4358
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4359
$as_echo "no" >&6; }
 
4360
                        as_fn_error $? "this package requires Python .
 
4361
If you have it installed, but it isn't the default Python
 
4362
interpreter in your system path, please pass the PYTHON_VERSION
 
4363
variable to configure. See \`\`configure --help'' for reference.
 
4364
" "$LINENO" 5
 
4365
                        PYTHON_VERSION=""
 
4366
                fi
 
4367
        fi
 
4368
 
 
4369
        #
 
4370
        # Check if you have distutils, else fail
 
4371
        #
 
4372
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
 
4373
$as_echo_n "checking for the distutils Python package... " >&6; }
 
4374
        ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
 
4375
        if test -z "$ac_distutils_result"; then
 
4376
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4377
$as_echo "yes" >&6; }
 
4378
        else
 
4379
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4380
$as_echo "no" >&6; }
 
4381
                as_fn_error $? "cannot import Python module \"distutils\".
 
4382
Please check your Python installation. The error was:
 
4383
$ac_distutils_result" "$LINENO" 5
 
4384
                PYTHON_VERSION=""
 
4385
        fi
 
4386
 
 
4387
        #
 
4388
        # Check for Python include path
 
4389
        #
 
4390
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
 
4391
$as_echo_n "checking for Python include path... " >&6; }
 
4392
        if test -z "$PYTHON_CPPFLAGS"; then
 
4393
                python_path=`$PYTHON -c "import distutils.sysconfig; \
 
4394
                        print distutils.sysconfig.get_python_inc();"`
 
4395
                if test -n "${python_path}"; then
 
4396
                        python_path="-I$python_path"
 
4397
                fi
 
4398
                PYTHON_CPPFLAGS=$python_path
 
4399
        fi
 
4400
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
 
4401
$as_echo "$PYTHON_CPPFLAGS" >&6; }
 
4402
 
 
4403
 
 
4404
        #
 
4405
        # Check for Python library path
 
4406
        #
 
4407
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
 
4408
$as_echo_n "checking for Python library path... " >&6; }
 
4409
        if test -z "$PYTHON_LDFLAGS"; then
 
4410
                # (makes two attempts to ensure we've got a version number
 
4411
                # from the interpreter)
 
4412
                py_version=`$PYTHON -c "from distutils.sysconfig import *; \
 
4413
                        from string import join; \
 
4414
                        print join(get_config_vars('VERSION'))"`
 
4415
                if test "$py_version" == "None"; then
 
4416
                        if test -n "$PYTHON_VERSION"; then
 
4417
                                py_version=$PYTHON_VERSION
 
4418
                        else
 
4419
                                py_version=`$PYTHON -c "import sys; \
 
4420
                                        print sys.version[:3]"`
 
4421
                        fi
 
4422
                fi
 
4423
 
 
4424
                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
 
4425
                        from string import join; \
 
4426
                        print '-L' + get_python_lib(0,1), \
 
4427
                        '-lpython';"`$py_version
 
4428
        fi
 
4429
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
 
4430
$as_echo "$PYTHON_LDFLAGS" >&6; }
 
4431
 
 
4432
 
 
4433
        #
 
4434
        # Check for site packages
 
4435
        #
 
4436
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
 
4437
$as_echo_n "checking for Python site-packages path... " >&6; }
 
4438
        if test -z "$PYTHON_SITE_PKG"; then
 
4439
                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
 
4440
                        print distutils.sysconfig.get_python_lib(0,0);"`
 
4441
        fi
 
4442
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
 
4443
$as_echo "$PYTHON_SITE_PKG" >&6; }
 
4444
 
 
4445
 
 
4446
        #
 
4447
        # libraries which must be linked in when embedding
 
4448
        #
 
4449
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
 
4450
$as_echo_n "checking python extra libraries... " >&6; }
 
4451
        if test -z "$PYTHON_EXTRA_LIBS"; then
 
4452
           PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
 
4453
                conf = distutils.sysconfig.get_config_var; \
 
4454
                print conf('LOCALMODLIBS'), conf('LIBS')"`
 
4455
        fi
 
4456
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
 
4457
$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
 
4458
 
 
4459
 
 
4460
        #
 
4461
        # linking flags needed when embedding
 
4462
        #
 
4463
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
 
4464
$as_echo_n "checking python extra linking flags... " >&6; }
 
4465
        if test -z "$PYTHON_EXTRA_LDFLAGS"; then
 
4466
                PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
 
4467
                        conf = distutils.sysconfig.get_config_var; \
 
4468
                        print conf('LINKFORSHARED')"`
 
4469
        fi
 
4470
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
 
4471
$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
 
4472
 
 
4473
 
 
4474
        #
 
4475
        # final check to see if everything compiles alright
 
4476
        #
 
4477
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
 
4478
$as_echo_n "checking consistency of all components of python development environment... " >&6; }
 
4479
        ac_ext=c
 
4480
ac_cpp='$CPP $CPPFLAGS'
 
4481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4484
 
 
4485
        # save current global flags
 
4486
        LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
 
4487
        CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
 
4488
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4489
/* end confdefs.h.  */
 
4490
 
 
4491
                #include <Python.h>
 
4492
 
 
4493
int
 
4494
main ()
 
4495
{
 
4496
 
 
4497
                Py_Initialize();
 
4498
 
 
4499
  ;
 
4500
  return 0;
 
4501
}
 
4502
_ACEOF
 
4503
if ac_fn_c_try_link "$LINENO"; then :
 
4504
  pythonexists=yes
 
4505
else
 
4506
  pythonexists=no
 
4507
fi
 
4508
rm -f core conftest.err conftest.$ac_objext \
 
4509
    conftest$ac_exeext conftest.$ac_ext
 
4510
 
 
4511
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
 
4512
$as_echo "$pythonexists" >&6; }
 
4513
 
 
4514
        if test ! "$pythonexists" = "yes"; then
 
4515
           as_fn_error $? "
 
4516
  Could not link test program to Python. Maybe the main Python library has been
 
4517
  installed in some non-standard library path. If so, pass it to configure,
 
4518
  via the LDFLAGS environment variable.
 
4519
  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
 
4520
  ============================================================================
 
4521
   ERROR!
 
4522
   You probably have to install the development version of the Python package
 
4523
   for your distribution.  The exact name of this package varies among them.
 
4524
  ============================================================================
 
4525
           " "$LINENO" 5
 
4526
          PYTHON_VERSION=""
 
4527
        fi
 
4528
        ac_ext=c
 
4529
ac_cpp='$CPP $CPPFLAGS'
 
4530
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4531
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4532
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4533
 
 
4534
        # turn back to default flags
 
4535
        CPPFLAGS="$ac_save_CPPFLAGS"
 
4536
        LIBS="$ac_save_LIBS"
 
4537
 
 
4538
        #
 
4539
        # all done!
 
4540
        #
 
4541
 
 
4542
 
 
4543
 
 
4544
 
 
4545
 
 
4546
        # Find any Python interpreter.
 
4547
    if test -z "$PYTHON"; then
 
4548
      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
 
4549
do
 
4550
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4551
set dummy $ac_prog; ac_word=$2
 
4552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4553
$as_echo_n "checking for $ac_word... " >&6; }
 
4554
if test "${ac_cv_path_PYTHON+set}" = set; then :
 
4555
  $as_echo_n "(cached) " >&6
 
4556
else
 
4557
  case $PYTHON in
 
4558
  [\\/]* | ?:[\\/]*)
 
4559
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
4560
  ;;
 
4561
  *)
 
4562
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4563
for as_dir in $PATH
 
4564
do
 
4565
  IFS=$as_save_IFS
 
4566
  test -z "$as_dir" && as_dir=.
 
4567
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4569
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
4570
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4571
    break 2
 
4572
  fi
 
4573
done
 
4574
  done
 
4575
IFS=$as_save_IFS
 
4576
 
 
4577
  ;;
 
4578
esac
 
4579
fi
 
4580
PYTHON=$ac_cv_path_PYTHON
 
4581
if test -n "$PYTHON"; then
 
4582
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
4583
$as_echo "$PYTHON" >&6; }
 
4584
else
 
4585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4586
$as_echo "no" >&6; }
 
4587
fi
 
4588
 
 
4589
 
 
4590
  test -n "$PYTHON" && break
 
4591
done
 
4592
test -n "$PYTHON" || PYTHON=":"
 
4593
 
 
4594
    fi
 
4595
    am_display_PYTHON=python
 
4596
 
 
4597
 
 
4598
  if test "$PYTHON" = :; then
 
4599
      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
 
4600
  else
 
4601
 
 
4602
 
 
4603
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
 
4604
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
 
4605
if test "${am_cv_python_version+set}" = set; then :
 
4606
  $as_echo_n "(cached) " >&6
 
4607
else
 
4608
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
4609
fi
 
4610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
 
4611
$as_echo "$am_cv_python_version" >&6; }
 
4612
  PYTHON_VERSION=$am_cv_python_version
 
4613
 
 
4614
 
 
4615
 
 
4616
  PYTHON_PREFIX='${prefix}'
 
4617
 
 
4618
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
4619
 
 
4620
 
 
4621
 
 
4622
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
 
4623
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
 
4624
if test "${am_cv_python_platform+set}" = set; then :
 
4625
  $as_echo_n "(cached) " >&6
 
4626
else
 
4627
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
4628
fi
 
4629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
 
4630
$as_echo "$am_cv_python_platform" >&6; }
 
4631
  PYTHON_PLATFORM=$am_cv_python_platform
 
4632
 
 
4633
 
 
4634
 
 
4635
 
 
4636
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
 
4637
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
 
4638
if test "${am_cv_python_pythondir+set}" = set; then :
 
4639
  $as_echo_n "(cached) " >&6
 
4640
else
 
4641
  if test "x$prefix" = xNONE
 
4642
     then
 
4643
       am_py_prefix=$ac_default_prefix
 
4644
     else
 
4645
       am_py_prefix=$prefix
 
4646
     fi
 
4647
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
 
4648
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
4649
     case $am_cv_python_pythondir in
 
4650
     $am_py_prefix*)
 
4651
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
4652
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
4653
       ;;
 
4654
     *)
 
4655
       case $am_py_prefix in
 
4656
         /usr|/System*) ;;
 
4657
         *)
 
4658
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
4659
          ;;
 
4660
       esac
 
4661
       ;;
 
4662
     esac
 
4663
 
 
4664
fi
 
4665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
 
4666
$as_echo "$am_cv_python_pythondir" >&6; }
 
4667
  pythondir=$am_cv_python_pythondir
 
4668
 
 
4669
 
 
4670
 
 
4671
  pkgpythondir=\${pythondir}/$PACKAGE
 
4672
 
 
4673
 
 
4674
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
 
4675
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
 
4676
if test "${am_cv_python_pyexecdir+set}" = set; then :
 
4677
  $as_echo_n "(cached) " >&6
 
4678
else
 
4679
  if test "x$exec_prefix" = xNONE
 
4680
     then
 
4681
       am_py_exec_prefix=$am_py_prefix
 
4682
     else
 
4683
       am_py_exec_prefix=$exec_prefix
 
4684
     fi
 
4685
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
 
4686
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
4687
     case $am_cv_python_pyexecdir in
 
4688
     $am_py_exec_prefix*)
 
4689
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
4690
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
4691
       ;;
 
4692
     *)
 
4693
       case $am_py_exec_prefix in
 
4694
         /usr|/System*) ;;
 
4695
         *)
 
4696
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
4697
           ;;
 
4698
       esac
 
4699
       ;;
 
4700
     esac
 
4701
 
 
4702
fi
 
4703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
 
4704
$as_echo "$am_cv_python_pyexecdir" >&6; }
 
4705
  pyexecdir=$am_cv_python_pyexecdir
 
4706
 
 
4707
 
 
4708
 
 
4709
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
4710
 
 
4711
 
 
4712
 
 
4713
  fi
 
4714
 
 
4715
 
 
4716
   fi
 
4717
fi
 
4718
 
 
4719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for perl" >&5
 
4720
$as_echo_n "checking Checking for perl... " >&6; }
 
4721
 
 
4722
# Check whether --with-perl was given.
 
4723
if test "${with_perl+set}" = set; then :
 
4724
  withval=$with_perl; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
 
4725
$as_echo "$withval" >&6; }
 
4726
else
 
4727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4728
$as_echo "no" >&6; }
 
4729
fi
 
4730
 
 
4731
if test "$with_perl" = "yes"; then
 
4732
   # Extract the first word of "perl", so it can be a program name with args.
 
4733
set dummy perl; ac_word=$2
 
4734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4735
$as_echo_n "checking for $ac_word... " >&6; }
 
4736
if test "${ac_cv_path_PERL+set}" = set; then :
 
4737
  $as_echo_n "(cached) " >&6
 
4738
else
 
4739
  case $PERL in
 
4740
  [\\/]* | ?:[\\/]*)
 
4741
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
4742
  ;;
 
4743
  *)
 
4744
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4745
for as_dir in $PATH
 
4746
do
 
4747
  IFS=$as_save_IFS
 
4748
  test -z "$as_dir" && as_dir=.
 
4749
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4750
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4751
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
4752
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4753
    break 2
 
4754
  fi
 
4755
done
 
4756
  done
 
4757
IFS=$as_save_IFS
 
4758
 
 
4759
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
 
4760
  ;;
 
4761
esac
 
4762
fi
 
4763
PERL=$ac_cv_path_PERL
 
4764
if test -n "$PERL"; then
 
4765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 
4766
$as_echo "$PERL" >&6; }
 
4767
else
 
4768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4769
$as_echo "no" >&6; }
 
4770
fi
 
4771
 
 
4772
 
 
4773
   if test x$PERL = xno; then
 
4774
      enable_perl=no
 
4775
   else
 
4776
      perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
 
4777
      as_ac_File=`$as_echo "ac_cv_file_$perl_includedir/perl.h" | $as_tr_sh`
 
4778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $perl_includedir/perl.h" >&5
 
4779
$as_echo_n "checking for $perl_includedir/perl.h... " >&6; }
 
4780
if eval "test \"\${$as_ac_File+set}\"" = set; then :
 
4781
  $as_echo_n "(cached) " >&6
 
4782
else
 
4783
  test "$cross_compiling" = yes &&
 
4784
  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
 
4785
if test -r "$perl_includedir/perl.h"; then
 
4786
  eval "$as_ac_File=yes"
 
4787
else
 
4788
  eval "$as_ac_File=no"
 
4789
fi
 
4790
fi
 
4791
eval ac_res=\$$as_ac_File
 
4792
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
4793
$as_echo "$ac_res" >&6; }
 
4794
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
 
4795
  enable_perl=yes
 
4796
else
 
4797
  enable_perl=no
 
4798
fi
 
4799
 
 
4800
   fi
 
4801
fi
 
4802
 
 
4803
 
 
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ruby" >&5
 
4805
$as_echo_n "checking Checking for ruby... " >&6; }
 
4806
 
 
4807
# Check whether --with-ruby was given.
 
4808
if test "${with_ruby+set}" = set; then :
 
4809
  withval=$with_ruby; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
 
4810
$as_echo "$withval" >&6; }
 
4811
else
 
4812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4813
$as_echo "no" >&6; }
 
4814
fi
 
4815
 
 
4816
if test "$with_ruby" = "yes"; then
 
4817
   # Extract the first word of "ruby", so it can be a program name with args.
 
4818
set dummy ruby; ac_word=$2
 
4819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4820
$as_echo_n "checking for $ac_word... " >&6; }
 
4821
if test "${ac_cv_path_RUBY+set}" = set; then :
 
4822
  $as_echo_n "(cached) " >&6
 
4823
else
 
4824
  case $RUBY in
 
4825
  [\\/]* | ?:[\\/]*)
 
4826
  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
 
4827
  ;;
 
4828
  *)
 
4829
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4830
for as_dir in $PATH
 
4831
do
 
4832
  IFS=$as_save_IFS
 
4833
  test -z "$as_dir" && as_dir=.
 
4834
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4835
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4836
    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
 
4837
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4838
    break 2
 
4839
  fi
 
4840
done
 
4841
  done
 
4842
IFS=$as_save_IFS
 
4843
 
 
4844
  ;;
 
4845
esac
 
4846
fi
 
4847
RUBY=$ac_cv_path_RUBY
 
4848
if test -n "$RUBY"; then
 
4849
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
 
4850
$as_echo "$RUBY" >&6; }
 
4851
else
 
4852
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4853
$as_echo "no" >&6; }
 
4854
fi
 
4855
 
 
4856
 
 
4857
fi
 
4858
 
 
4859
 
 
4860
 if test x$with_python = xyes; then
 
4861
  HAVE_PYTHON_TRUE=
 
4862
  HAVE_PYTHON_FALSE='#'
 
4863
else
 
4864
  HAVE_PYTHON_TRUE='#'
 
4865
  HAVE_PYTHON_FALSE=
 
4866
fi
 
4867
 
 
4868
 if test x$with_perl = xyes; then
 
4869
  HAVE_PERL_TRUE=
 
4870
  HAVE_PERL_FALSE='#'
 
4871
else
 
4872
  HAVE_PERL_TRUE='#'
 
4873
  HAVE_PERL_FALSE=
 
4874
fi
 
4875
 
 
4876
 if test x$with_ruby = xyes; then
 
4877
  HAVE_RUBY_TRUE=
 
4878
  HAVE_RUBY_FALSE='#'
 
4879
else
 
4880
  HAVE_RUBY_TRUE='#'
 
4881
  HAVE_RUBY_FALSE=
 
4882
fi
 
4883
 
 
4884
 if test x$enable_rootlib = xyes; then
 
4885
  BUILD_ROOTLIB_TRUE=
 
4886
  BUILD_ROOTLIB_FALSE='#'
 
4887
else
 
4888
  BUILD_ROOTLIB_TRUE='#'
 
4889
  BUILD_ROOTLIB_FALSE=
 
4890
fi
 
4891
 
 
4892
 
 
4893
ac_ext=c
 
4894
ac_cpp='$CPP $CPPFLAGS'
 
4895
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4896
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4897
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4899
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4900
# On Suns, sometimes $CPP names a directory.
 
4901
if test -n "$CPP" && test -d "$CPP"; then
 
4902
  CPP=
 
4903
fi
 
4904
if test -z "$CPP"; then
 
4905
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4906
  $as_echo_n "(cached) " >&6
 
4907
else
 
4908
      # Double quotes because CPP needs to be expanded
 
4909
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4910
    do
 
4911
      ac_preproc_ok=false
 
4912
for ac_c_preproc_warn_flag in '' yes
 
4913
do
 
4914
  # Use a header file that comes with gcc, so configuring glibc
 
4915
  # with a fresh cross-compiler works.
 
4916
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4917
  # <limits.h> exists even on freestanding compilers.
 
4918
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4919
  # not just through cpp. "Syntax error" is here to catch this case.
 
4920
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4921
/* end confdefs.h.  */
 
4922
#ifdef __STDC__
 
4923
# include <limits.h>
 
4924
#else
 
4925
# include <assert.h>
 
4926
#endif
 
4927
                     Syntax error
 
4928
_ACEOF
 
4929
if ac_fn_c_try_cpp "$LINENO"; then :
 
4930
 
 
4931
else
 
4932
  # Broken: fails on valid input.
 
4933
continue
 
4934
fi
 
4935
rm -f conftest.err conftest.i conftest.$ac_ext
 
4936
 
 
4937
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4938
  # can be detected and how.
 
4939
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4940
/* end confdefs.h.  */
 
4941
#include <ac_nonexistent.h>
 
4942
_ACEOF
 
4943
if ac_fn_c_try_cpp "$LINENO"; then :
 
4944
  # Broken: success on invalid input.
 
4945
continue
 
4946
else
 
4947
  # Passes both tests.
 
4948
ac_preproc_ok=:
 
4949
break
 
4950
fi
 
4951
rm -f conftest.err conftest.i conftest.$ac_ext
 
4952
 
 
4953
done
 
4954
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4955
rm -f conftest.i conftest.err conftest.$ac_ext
 
4956
if $ac_preproc_ok; then :
 
4957
  break
 
4958
fi
 
4959
 
 
4960
    done
 
4961
    ac_cv_prog_CPP=$CPP
 
4962
 
 
4963
fi
 
4964
  CPP=$ac_cv_prog_CPP
 
4965
else
 
4966
  ac_cv_prog_CPP=$CPP
 
4967
fi
 
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4969
$as_echo "$CPP" >&6; }
 
4970
ac_preproc_ok=false
 
4971
for ac_c_preproc_warn_flag in '' yes
 
4972
do
 
4973
  # Use a header file that comes with gcc, so configuring glibc
 
4974
  # with a fresh cross-compiler works.
 
4975
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4976
  # <limits.h> exists even on freestanding compilers.
 
4977
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4978
  # not just through cpp. "Syntax error" is here to catch this case.
 
4979
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4980
/* end confdefs.h.  */
 
4981
#ifdef __STDC__
 
4982
# include <limits.h>
 
4983
#else
 
4984
# include <assert.h>
 
4985
#endif
 
4986
                     Syntax error
 
4987
_ACEOF
 
4988
if ac_fn_c_try_cpp "$LINENO"; then :
 
4989
 
 
4990
else
 
4991
  # Broken: fails on valid input.
 
4992
continue
 
4993
fi
 
4994
rm -f conftest.err conftest.i conftest.$ac_ext
 
4995
 
 
4996
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4997
  # can be detected and how.
 
4998
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4999
/* end confdefs.h.  */
 
5000
#include <ac_nonexistent.h>
 
5001
_ACEOF
 
5002
if ac_fn_c_try_cpp "$LINENO"; then :
 
5003
  # Broken: success on invalid input.
 
5004
continue
 
5005
else
 
5006
  # Passes both tests.
 
5007
ac_preproc_ok=:
 
5008
break
 
5009
fi
 
5010
rm -f conftest.err conftest.i conftest.$ac_ext
 
5011
 
 
5012
done
 
5013
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5014
rm -f conftest.i conftest.err conftest.$ac_ext
 
5015
if $ac_preproc_ok; then :
 
5016
 
 
5017
else
 
5018
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5019
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5020
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
5021
See \`config.log' for more details" "$LINENO" 5 ; }
 
5022
fi
 
5023
 
 
5024
ac_ext=c
 
5025
ac_cpp='$CPP $CPPFLAGS'
 
5026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5029
 
 
5030
 
 
5031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
5032
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
5033
if test "${ac_cv_path_GREP+set}" = set; then :
 
5034
  $as_echo_n "(cached) " >&6
 
5035
else
 
5036
  if test -z "$GREP"; then
 
5037
  ac_path_GREP_found=false
 
5038
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5039
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5040
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5041
do
 
5042
  IFS=$as_save_IFS
 
5043
  test -z "$as_dir" && as_dir=.
 
5044
    for ac_prog in grep ggrep; do
 
5045
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5046
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
5047
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
5048
# Check for GNU ac_path_GREP and select it if it is found.
 
5049
  # Check for GNU $ac_path_GREP
 
5050
case `"$ac_path_GREP" --version 2>&1` in
 
5051
*GNU*)
 
5052
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5053
*)
 
5054
  ac_count=0
 
5055
  $as_echo_n 0123456789 >"conftest.in"
 
5056
  while :
 
5057
  do
 
5058
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5059
    mv "conftest.tmp" "conftest.in"
 
5060
    cp "conftest.in" "conftest.nl"
 
5061
    $as_echo 'GREP' >> "conftest.nl"
 
5062
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5063
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5064
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5065
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5066
      # Best one so far, save it but keep looking for a better one
 
5067
      ac_cv_path_GREP="$ac_path_GREP"
 
5068
      ac_path_GREP_max=$ac_count
 
5069
    fi
 
5070
    # 10*(2^10) chars as input seems more than enough
 
5071
    test $ac_count -gt 10 && break
 
5072
  done
 
5073
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5074
esac
 
5075
 
 
5076
      $ac_path_GREP_found && break 3
 
5077
    done
 
5078
  done
 
5079
  done
 
5080
IFS=$as_save_IFS
 
5081
  if test -z "$ac_cv_path_GREP"; then
 
5082
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5083
  fi
 
5084
else
 
5085
  ac_cv_path_GREP=$GREP
 
5086
fi
 
5087
 
 
5088
fi
 
5089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5090
$as_echo "$ac_cv_path_GREP" >&6; }
 
5091
 GREP="$ac_cv_path_GREP"
 
5092
 
 
5093
 
 
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5095
$as_echo_n "checking for egrep... " >&6; }
 
5096
if test "${ac_cv_path_EGREP+set}" = set; then :
 
5097
  $as_echo_n "(cached) " >&6
 
5098
else
 
5099
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5100
   then ac_cv_path_EGREP="$GREP -E"
 
5101
   else
 
5102
     if test -z "$EGREP"; then
 
5103
  ac_path_EGREP_found=false
 
5104
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5105
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5106
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5107
do
 
5108
  IFS=$as_save_IFS
 
5109
  test -z "$as_dir" && as_dir=.
 
5110
    for ac_prog in egrep; do
 
5111
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5112
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5113
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
5114
# Check for GNU ac_path_EGREP and select it if it is found.
 
5115
  # Check for GNU $ac_path_EGREP
 
5116
case `"$ac_path_EGREP" --version 2>&1` in
 
5117
*GNU*)
 
5118
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5119
*)
 
5120
  ac_count=0
 
5121
  $as_echo_n 0123456789 >"conftest.in"
 
5122
  while :
 
5123
  do
 
5124
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5125
    mv "conftest.tmp" "conftest.in"
 
5126
    cp "conftest.in" "conftest.nl"
 
5127
    $as_echo 'EGREP' >> "conftest.nl"
 
5128
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5129
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5130
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5131
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5132
      # Best one so far, save it but keep looking for a better one
 
5133
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5134
      ac_path_EGREP_max=$ac_count
 
5135
    fi
 
5136
    # 10*(2^10) chars as input seems more than enough
 
5137
    test $ac_count -gt 10 && break
 
5138
  done
 
5139
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5140
esac
 
5141
 
 
5142
      $ac_path_EGREP_found && break 3
 
5143
    done
 
5144
  done
 
5145
  done
 
5146
IFS=$as_save_IFS
 
5147
  if test -z "$ac_cv_path_EGREP"; then
 
5148
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5149
  fi
 
5150
else
 
5151
  ac_cv_path_EGREP=$EGREP
 
5152
fi
 
5153
 
 
5154
   fi
 
5155
fi
 
5156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5157
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5158
 EGREP="$ac_cv_path_EGREP"
 
5159
 
 
5160
 
 
5161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
5162
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5163
if test "${ac_cv_header_stdc+set}" = set; then :
 
5164
  $as_echo_n "(cached) " >&6
 
5165
else
 
5166
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5167
/* end confdefs.h.  */
 
5168
#include <stdlib.h>
 
5169
#include <stdarg.h>
 
5170
#include <string.h>
 
5171
#include <float.h>
 
5172
 
 
5173
int
 
5174
main ()
 
5175
{
 
5176
 
 
5177
  ;
 
5178
  return 0;
 
5179
}
 
5180
_ACEOF
 
5181
if ac_fn_c_try_compile "$LINENO"; then :
 
5182
  ac_cv_header_stdc=yes
 
5183
else
 
5184
  ac_cv_header_stdc=no
 
5185
fi
 
5186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5187
 
 
5188
if test $ac_cv_header_stdc = yes; then
 
5189
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5190
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5191
/* end confdefs.h.  */
 
5192
#include <string.h>
 
5193
 
 
5194
_ACEOF
 
5195
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5196
  $EGREP "memchr" >/dev/null 2>&1; then :
 
5197
 
 
5198
else
 
5199
  ac_cv_header_stdc=no
 
5200
fi
 
5201
rm -f conftest*
 
5202
 
 
5203
fi
 
5204
 
 
5205
if test $ac_cv_header_stdc = yes; then
 
5206
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5207
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5208
/* end confdefs.h.  */
 
5209
#include <stdlib.h>
 
5210
 
 
5211
_ACEOF
 
5212
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5213
  $EGREP "free" >/dev/null 2>&1; then :
 
5214
 
 
5215
else
 
5216
  ac_cv_header_stdc=no
 
5217
fi
 
5218
rm -f conftest*
 
5219
 
 
5220
fi
 
5221
 
 
5222
if test $ac_cv_header_stdc = yes; then
 
5223
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5224
  if test "$cross_compiling" = yes; then :
 
5225
  :
 
5226
else
 
5227
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5228
/* end confdefs.h.  */
 
5229
#include <ctype.h>
 
5230
#include <stdlib.h>
 
5231
#if ((' ' & 0x0FF) == 0x020)
 
5232
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5233
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5234
#else
 
5235
# define ISLOWER(c) \
 
5236
                   (('a' <= (c) && (c) <= 'i') \
 
5237
                     || ('j' <= (c) && (c) <= 'r') \
 
5238
                     || ('s' <= (c) && (c) <= 'z'))
 
5239
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5240
#endif
 
5241
 
 
5242
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5243
int
 
5244
main ()
 
5245
{
 
5246
  int i;
 
5247
  for (i = 0; i < 256; i++)
 
5248
    if (XOR (islower (i), ISLOWER (i))
 
5249
        || toupper (i) != TOUPPER (i))
 
5250
      return 2;
 
5251
  return 0;
 
5252
}
 
5253
_ACEOF
 
5254
if ac_fn_c_try_run "$LINENO"; then :
 
5255
 
 
5256
else
 
5257
  ac_cv_header_stdc=no
 
5258
fi
 
5259
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5260
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5261
fi
 
5262
 
 
5263
fi
 
5264
fi
 
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
5266
$as_echo "$ac_cv_header_stdc" >&6; }
 
5267
if test $ac_cv_header_stdc = yes; then
 
5268
 
 
5269
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
5270
 
 
5271
fi
 
5272
 
 
5273
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5274
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5275
                  inttypes.h stdint.h unistd.h
 
5276
do :
 
5277
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5278
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
5279
"
 
5280
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
5281
  cat >>confdefs.h <<_ACEOF
 
5282
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5283
_ACEOF
 
5284
 
 
5285
fi
 
5286
 
 
5287
done
 
5288
 
 
5289
 
 
5290
for ac_header in unistd.h stdint.h
 
5291
do :
 
5292
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5293
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5294
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
5295
  cat >>confdefs.h <<_ACEOF
 
5296
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5297
_ACEOF
 
5298
 
 
5299
fi
 
5300
 
 
5301
done
 
5302
 
 
5303
 
 
5304
for ac_func in asprintf
 
5305
do :
 
5306
  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
 
5307
if test "x$ac_cv_func_asprintf" = x""yes; then :
 
5308
  cat >>confdefs.h <<_ACEOF
 
5309
#define HAVE_ASPRINTF 1
 
5310
_ACEOF
 
5311
 
 
5312
fi
 
5313
done
 
5314
 
 
5315
 
 
5316
if test "x$CC" != xcc; then
 
5317
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
5318
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
5319
else
 
5320
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
5321
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
5322
fi
 
5323
set dummy $CC; ac_cc=`$as_echo "$2" |
 
5324
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
5325
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
 
5326
  $as_echo_n "(cached) " >&6
 
5327
else
 
5328
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5329
/* end confdefs.h.  */
 
5330
 
 
5331
int
 
5332
main ()
 
5333
{
 
5334
 
 
5335
  ;
 
5336
  return 0;
 
5337
}
 
5338
_ACEOF
 
5339
# Make sure it works both with $CC and with simple cc.
 
5340
# We do the test twice because some compilers refuse to overwrite an
 
5341
# existing .o file with -o, though they will create one.
 
5342
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
5343
rm -f conftest2.*
 
5344
if { { case "(($ac_try" in
 
5345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5346
  *) ac_try_echo=$ac_try;;
 
5347
esac
 
5348
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5349
$as_echo "$ac_try_echo"; } >&5
 
5350
  (eval "$ac_try") 2>&5
 
5351
  ac_status=$?
 
5352
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5353
  test $ac_status = 0; } &&
 
5354
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
5355
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5356
  *) ac_try_echo=$ac_try;;
 
5357
esac
 
5358
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5359
$as_echo "$ac_try_echo"; } >&5
 
5360
  (eval "$ac_try") 2>&5
 
5361
  ac_status=$?
 
5362
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5363
  test $ac_status = 0; };
 
5364
then
 
5365
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
5366
  if test "x$CC" != xcc; then
 
5367
    # Test first that cc exists at all.
 
5368
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
5369
  { { case "(($ac_try" in
 
5370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5371
  *) ac_try_echo=$ac_try;;
 
5372
esac
 
5373
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5374
$as_echo "$ac_try_echo"; } >&5
 
5375
  (eval "$ac_try") 2>&5
 
5376
  ac_status=$?
 
5377
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5378
  test $ac_status = 0; }; }; then
 
5379
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
5380
      rm -f conftest2.*
 
5381
      if { { case "(($ac_try" in
 
5382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5383
  *) ac_try_echo=$ac_try;;
 
5384
esac
 
5385
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5386
$as_echo "$ac_try_echo"; } >&5
 
5387
  (eval "$ac_try") 2>&5
 
5388
  ac_status=$?
 
5389
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5390
  test $ac_status = 0; } &&
 
5391
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
5392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5393
  *) ac_try_echo=$ac_try;;
 
5394
esac
 
5395
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5396
$as_echo "$ac_try_echo"; } >&5
 
5397
  (eval "$ac_try") 2>&5
 
5398
  ac_status=$?
 
5399
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5400
  test $ac_status = 0; };
 
5401
      then
 
5402
        # cc works too.
 
5403
        :
 
5404
      else
 
5405
        # cc exists but doesn't like -o.
 
5406
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
5407
      fi
 
5408
    fi
 
5409
  fi
 
5410
else
 
5411
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
5412
fi
 
5413
rm -f core conftest*
 
5414
 
 
5415
fi
 
5416
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
5417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5418
$as_echo "yes" >&6; }
 
5419
else
 
5420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5421
$as_echo "no" >&6; }
 
5422
 
 
5423
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
5424
 
 
5425
fi
 
5426
 
 
5427
# FIXME: we rely on the cache variable name because
 
5428
# there is no other way.
 
5429
set dummy $CC
 
5430
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
5431
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
5432
if test "$am_t" != yes; then
 
5433
   # Losing compiler, so override with the script.
 
5434
   # FIXME: It is wrong to rewrite CC.
 
5435
   # But if we don't then we get into trouble of one sort or another.
 
5436
   # A longer-term fix would be to have automake use am__CC in this case,
 
5437
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
5438
   CC="$am_aux_dir/compile $CC"
 
5439
fi
 
5440
 
 
5441
 
 
5442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
5443
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
5444
if test "${ac_cv_c_const+set}" = set; then :
 
5445
  $as_echo_n "(cached) " >&6
 
5446
else
 
5447
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5448
/* end confdefs.h.  */
 
5449
 
 
5450
int
 
5451
main ()
 
5452
{
 
5453
/* FIXME: Include the comments suggested by Paul. */
 
5454
#ifndef __cplusplus
 
5455
  /* Ultrix mips cc rejects this.  */
 
5456
  typedef int charset[2];
 
5457
  const charset cs;
 
5458
  /* SunOS 4.1.1 cc rejects this.  */
 
5459
  char const *const *pcpcc;
 
5460
  char **ppc;
 
5461
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
5462
  struct point {int x, y;};
 
5463
  static struct point const zero = {0,0};
 
5464
  /* AIX XL C 1.02.0.0 rejects this.
 
5465
     It does not let you subtract one const X* pointer from another in
 
5466
     an arm of an if-expression whose if-part is not a constant
 
5467
     expression */
 
5468
  const char *g = "string";
 
5469
  pcpcc = &g + (g ? g-g : 0);
 
5470
  /* HPUX 7.0 cc rejects these. */
 
5471
  ++pcpcc;
 
5472
  ppc = (char**) pcpcc;
 
5473
  pcpcc = (char const *const *) ppc;
 
5474
  { /* SCO 3.2v4 cc rejects this.  */
 
5475
    char *t;
 
5476
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
5477
 
 
5478
    *t++ = 0;
 
5479
    if (s) return 0;
 
5480
  }
 
5481
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
5482
    int x[] = {25, 17};
 
5483
    const int *foo = &x[0];
 
5484
    ++foo;
 
5485
  }
 
5486
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
5487
    typedef const int *iptr;
 
5488
    iptr p = 0;
 
5489
    ++p;
 
5490
  }
 
5491
  { /* AIX XL C 1.02.0.0 rejects this saying
 
5492
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
5493
    struct s { int j; const int *ap[3]; };
 
5494
    struct s *b; b->j = 5;
 
5495
  }
 
5496
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
5497
    const int foo = 10;
 
5498
    if (!foo) return 0;
 
5499
  }
 
5500
  return !cs[0] && !zero.x;
 
5501
#endif
 
5502
 
 
5503
  ;
 
5504
  return 0;
 
5505
}
 
5506
_ACEOF
 
5507
if ac_fn_c_try_compile "$LINENO"; then :
 
5508
  ac_cv_c_const=yes
 
5509
else
 
5510
  ac_cv_c_const=no
 
5511
fi
 
5512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5513
fi
 
5514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
5515
$as_echo "$ac_cv_c_const" >&6; }
 
5516
if test $ac_cv_c_const = no; then
 
5517
 
 
5518
$as_echo "#define const /**/" >>confdefs.h
 
5519
 
 
5520
fi
 
5521
 
 
5522
case `pwd` in
 
5523
  *\ * | *\     *)
 
5524
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5525
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5526
esac
 
5527
 
 
5528
 
 
5529
 
 
5530
macro_version='2.2.6b'
 
5531
macro_revision='1.3017'
 
5532
 
 
5533
 
 
5534
 
 
5535
 
 
5536
 
 
5537
 
 
5538
 
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
 
 
5545
ltmain="$ac_aux_dir/ltmain.sh"
 
5546
 
 
5547
# Make sure we can run config.sub.
 
5548
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
5549
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
5550
 
 
5551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
5552
$as_echo_n "checking build system type... " >&6; }
 
5553
if test "${ac_cv_build+set}" = set; then :
 
5554
  $as_echo_n "(cached) " >&6
 
5555
else
 
5556
  ac_build_alias=$build_alias
 
5557
test "x$ac_build_alias" = x &&
 
5558
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
5559
test "x$ac_build_alias" = x &&
 
5560
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
5561
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
5562
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
5563
 
 
5564
fi
 
5565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
5566
$as_echo "$ac_cv_build" >&6; }
 
5567
case $ac_cv_build in
 
5568
*-*-*) ;;
 
5569
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 
5570
esac
 
5571
build=$ac_cv_build
 
5572
ac_save_IFS=$IFS; IFS='-'
 
5573
set x $ac_cv_build
 
5574
shift
 
5575
build_cpu=$1
 
5576
build_vendor=$2
 
5577
shift; shift
 
5578
# Remember, the first character of IFS is used to create $*,
 
5579
# except with old shells:
 
5580
build_os=$*
 
5581
IFS=$ac_save_IFS
 
5582
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
5583
 
 
5584
 
 
5585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
5586
$as_echo_n "checking host system type... " >&6; }
 
5587
if test "${ac_cv_host+set}" = set; then :
 
5588
  $as_echo_n "(cached) " >&6
 
5589
else
 
5590
  if test "x$host_alias" = x; then
 
5591
  ac_cv_host=$ac_cv_build
 
5592
else
 
5593
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
5594
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
5595
fi
 
5596
 
 
5597
fi
 
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
5599
$as_echo "$ac_cv_host" >&6; }
 
5600
case $ac_cv_host in
 
5601
*-*-*) ;;
 
5602
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 
5603
esac
 
5604
host=$ac_cv_host
 
5605
ac_save_IFS=$IFS; IFS='-'
 
5606
set x $ac_cv_host
 
5607
shift
 
5608
host_cpu=$1
 
5609
host_vendor=$2
 
5610
shift; shift
 
5611
# Remember, the first character of IFS is used to create $*,
 
5612
# except with old shells:
 
5613
host_os=$*
 
5614
IFS=$ac_save_IFS
 
5615
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
5616
 
 
5617
 
 
5618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5619
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5620
if test "${ac_cv_path_SED+set}" = set; then :
 
5621
  $as_echo_n "(cached) " >&6
 
5622
else
 
5623
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5624
     for ac_i in 1 2 3 4 5 6 7; do
 
5625
       ac_script="$ac_script$as_nl$ac_script"
 
5626
     done
 
5627
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5628
     { ac_script=; unset ac_script;}
 
5629
     if test -z "$SED"; then
 
5630
  ac_path_SED_found=false
 
5631
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5632
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5633
for as_dir in $PATH
 
5634
do
 
5635
  IFS=$as_save_IFS
 
5636
  test -z "$as_dir" && as_dir=.
 
5637
    for ac_prog in sed gsed; do
 
5638
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5639
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5640
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
5641
# Check for GNU ac_path_SED and select it if it is found.
 
5642
  # Check for GNU $ac_path_SED
 
5643
case `"$ac_path_SED" --version 2>&1` in
 
5644
*GNU*)
 
5645
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5646
*)
 
5647
  ac_count=0
 
5648
  $as_echo_n 0123456789 >"conftest.in"
 
5649
  while :
 
5650
  do
 
5651
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5652
    mv "conftest.tmp" "conftest.in"
 
5653
    cp "conftest.in" "conftest.nl"
 
5654
    $as_echo '' >> "conftest.nl"
 
5655
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5656
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5657
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5658
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5659
      # Best one so far, save it but keep looking for a better one
 
5660
      ac_cv_path_SED="$ac_path_SED"
 
5661
      ac_path_SED_max=$ac_count
 
5662
    fi
 
5663
    # 10*(2^10) chars as input seems more than enough
 
5664
    test $ac_count -gt 10 && break
 
5665
  done
 
5666
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5667
esac
 
5668
 
 
5669
      $ac_path_SED_found && break 3
 
5670
    done
 
5671
  done
 
5672
  done
 
5673
IFS=$as_save_IFS
 
5674
  if test -z "$ac_cv_path_SED"; then
 
5675
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5676
  fi
 
5677
else
 
5678
  ac_cv_path_SED=$SED
 
5679
fi
 
5680
 
 
5681
fi
 
5682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5683
$as_echo "$ac_cv_path_SED" >&6; }
 
5684
 SED="$ac_cv_path_SED"
 
5685
  rm -f conftest.sed
 
5686
 
 
5687
test -z "$SED" && SED=sed
 
5688
Xsed="$SED -e 1s/^X//"
 
5689
 
 
5690
 
 
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
 
 
5698
 
 
5699
 
 
5700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5701
$as_echo_n "checking for fgrep... " >&6; }
 
5702
if test "${ac_cv_path_FGREP+set}" = set; then :
 
5703
  $as_echo_n "(cached) " >&6
 
5704
else
 
5705
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5706
   then ac_cv_path_FGREP="$GREP -F"
 
5707
   else
 
5708
     if test -z "$FGREP"; then
 
5709
  ac_path_FGREP_found=false
 
5710
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5711
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5712
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5713
do
 
5714
  IFS=$as_save_IFS
 
5715
  test -z "$as_dir" && as_dir=.
 
5716
    for ac_prog in fgrep; do
 
5717
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5718
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5719
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
5720
# Check for GNU ac_path_FGREP and select it if it is found.
 
5721
  # Check for GNU $ac_path_FGREP
 
5722
case `"$ac_path_FGREP" --version 2>&1` in
 
5723
*GNU*)
 
5724
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5725
*)
 
5726
  ac_count=0
 
5727
  $as_echo_n 0123456789 >"conftest.in"
 
5728
  while :
 
5729
  do
 
5730
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5731
    mv "conftest.tmp" "conftest.in"
 
5732
    cp "conftest.in" "conftest.nl"
 
5733
    $as_echo 'FGREP' >> "conftest.nl"
 
5734
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5735
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5736
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5737
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5738
      # Best one so far, save it but keep looking for a better one
 
5739
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5740
      ac_path_FGREP_max=$ac_count
 
5741
    fi
 
5742
    # 10*(2^10) chars as input seems more than enough
 
5743
    test $ac_count -gt 10 && break
 
5744
  done
 
5745
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5746
esac
 
5747
 
 
5748
      $ac_path_FGREP_found && break 3
 
5749
    done
 
5750
  done
 
5751
  done
 
5752
IFS=$as_save_IFS
 
5753
  if test -z "$ac_cv_path_FGREP"; then
 
5754
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5755
  fi
 
5756
else
 
5757
  ac_cv_path_FGREP=$FGREP
 
5758
fi
 
5759
 
 
5760
   fi
 
5761
fi
 
5762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5763
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5764
 FGREP="$ac_cv_path_FGREP"
 
5765
 
 
5766
 
 
5767
test -z "$GREP" && GREP=grep
 
5768
 
 
5769
 
 
5770
 
 
5771
 
 
5772
 
 
5773
 
 
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
 
5779
 
 
5780
 
 
5781
 
 
5782
 
 
5783
 
 
5784
 
 
5785
 
 
5786
 
 
5787
# Check whether --with-gnu-ld was given.
 
5788
if test "${with_gnu_ld+set}" = set; then :
 
5789
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5790
else
 
5791
  with_gnu_ld=no
 
5792
fi
 
5793
 
 
5794
ac_prog=ld
 
5795
if test "$GCC" = yes; then
 
5796
  # Check if gcc -print-prog-name=ld gives a path.
 
5797
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5798
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5799
  case $host in
 
5800
  *-*-mingw*)
 
5801
    # gcc leaves a trailing carriage return which upsets mingw
 
5802
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5803
  *)
 
5804
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5805
  esac
 
5806
  case $ac_prog in
 
5807
    # Accept absolute paths.
 
5808
    [\\/]* | ?:[\\/]*)
 
5809
      re_direlt='/[^/][^/]*/\.\./'
 
5810
      # Canonicalize the pathname of ld
 
5811
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5812
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5813
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5814
      done
 
5815
      test -z "$LD" && LD="$ac_prog"
 
5816
      ;;
 
5817
  "")
 
5818
    # If it fails, then pretend we aren't using GCC.
 
5819
    ac_prog=ld
 
5820
    ;;
 
5821
  *)
 
5822
    # If it is relative, then search for the first ld in PATH.
 
5823
    with_gnu_ld=unknown
 
5824
    ;;
 
5825
  esac
 
5826
elif test "$with_gnu_ld" = yes; then
 
5827
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5828
$as_echo_n "checking for GNU ld... " >&6; }
 
5829
else
 
5830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5831
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5832
fi
 
5833
if test "${lt_cv_path_LD+set}" = set; then :
 
5834
  $as_echo_n "(cached) " >&6
 
5835
else
 
5836
  if test -z "$LD"; then
 
5837
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5838
  for ac_dir in $PATH; do
 
5839
    IFS="$lt_save_ifs"
 
5840
    test -z "$ac_dir" && ac_dir=.
 
5841
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5842
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5843
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5844
      # but apparently some variants of GNU ld only accept -v.
 
5845
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5846
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5847
      *GNU* | *'with BFD'*)
 
5848
        test "$with_gnu_ld" != no && break
 
5849
        ;;
 
5850
      *)
 
5851
        test "$with_gnu_ld" != yes && break
 
5852
        ;;
 
5853
      esac
 
5854
    fi
 
5855
  done
 
5856
  IFS="$lt_save_ifs"
 
5857
else
 
5858
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5859
fi
 
5860
fi
 
5861
 
 
5862
LD="$lt_cv_path_LD"
 
5863
if test -n "$LD"; then
 
5864
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5865
$as_echo "$LD" >&6; }
 
5866
else
 
5867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5868
$as_echo "no" >&6; }
 
5869
fi
 
5870
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5872
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5873
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
5874
  $as_echo_n "(cached) " >&6
 
5875
else
 
5876
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5877
case `$LD -v 2>&1 </dev/null` in
 
5878
*GNU* | *'with BFD'*)
 
5879
  lt_cv_prog_gnu_ld=yes
 
5880
  ;;
 
5881
*)
 
5882
  lt_cv_prog_gnu_ld=no
 
5883
  ;;
 
5884
esac
 
5885
fi
 
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5887
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5888
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5889
 
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
 
 
5895
 
 
5896
 
 
5897
 
 
5898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5899
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5900
if test "${lt_cv_path_NM+set}" = set; then :
 
5901
  $as_echo_n "(cached) " >&6
 
5902
else
 
5903
  if test -n "$NM"; then
 
5904
  # Let the user override the test.
 
5905
  lt_cv_path_NM="$NM"
 
5906
else
 
5907
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5908
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5909
    lt_nm_to_check="$lt_nm_to_check nm"
 
5910
  fi
 
5911
  for lt_tmp_nm in $lt_nm_to_check; do
 
5912
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5913
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5914
      IFS="$lt_save_ifs"
 
5915
      test -z "$ac_dir" && ac_dir=.
 
5916
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5917
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5918
        # Check to see if the nm accepts a BSD-compat flag.
 
5919
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5920
        #   nm: unknown option "B" ignored
 
5921
        # Tru64's nm complains that /dev/null is an invalid object file
 
5922
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5923
        */dev/null* | *'Invalid file or object type'*)
 
5924
          lt_cv_path_NM="$tmp_nm -B"
 
5925
          break
 
5926
          ;;
 
5927
        *)
 
5928
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5929
          */dev/null*)
 
5930
            lt_cv_path_NM="$tmp_nm -p"
 
5931
            break
 
5932
            ;;
 
5933
          *)
 
5934
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5935
            continue # so that we can try to find one that supports BSD flags
 
5936
            ;;
 
5937
          esac
 
5938
          ;;
 
5939
        esac
 
5940
      fi
 
5941
    done
 
5942
    IFS="$lt_save_ifs"
 
5943
  done
 
5944
  : ${lt_cv_path_NM=no}
 
5945
fi
 
5946
fi
 
5947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5948
$as_echo "$lt_cv_path_NM" >&6; }
 
5949
if test "$lt_cv_path_NM" != "no"; then
 
5950
  NM="$lt_cv_path_NM"
 
5951
else
 
5952
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5953
  if test -n "$ac_tool_prefix"; then
 
5954
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5955
  do
 
5956
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5957
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5959
$as_echo_n "checking for $ac_word... " >&6; }
 
5960
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
5961
  $as_echo_n "(cached) " >&6
 
5962
else
 
5963
  if test -n "$DUMPBIN"; then
 
5964
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5965
else
 
5966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5967
for as_dir in $PATH
 
5968
do
 
5969
  IFS=$as_save_IFS
 
5970
  test -z "$as_dir" && as_dir=.
 
5971
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5972
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5973
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5974
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5975
    break 2
 
5976
  fi
 
5977
done
 
5978
  done
 
5979
IFS=$as_save_IFS
 
5980
 
 
5981
fi
 
5982
fi
 
5983
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5984
if test -n "$DUMPBIN"; then
 
5985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5986
$as_echo "$DUMPBIN" >&6; }
 
5987
else
 
5988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5989
$as_echo "no" >&6; }
 
5990
fi
 
5991
 
 
5992
 
 
5993
    test -n "$DUMPBIN" && break
 
5994
  done
 
5995
fi
 
5996
if test -z "$DUMPBIN"; then
 
5997
  ac_ct_DUMPBIN=$DUMPBIN
 
5998
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5999
do
 
6000
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6001
set dummy $ac_prog; ac_word=$2
 
6002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6003
$as_echo_n "checking for $ac_word... " >&6; }
 
6004
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
6005
  $as_echo_n "(cached) " >&6
 
6006
else
 
6007
  if test -n "$ac_ct_DUMPBIN"; then
 
6008
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
6009
else
 
6010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6011
for as_dir in $PATH
 
6012
do
 
6013
  IFS=$as_save_IFS
 
6014
  test -z "$as_dir" && as_dir=.
 
6015
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6016
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6017
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
6018
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6019
    break 2
 
6020
  fi
 
6021
done
 
6022
  done
 
6023
IFS=$as_save_IFS
 
6024
 
 
6025
fi
 
6026
fi
 
6027
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
6028
if test -n "$ac_ct_DUMPBIN"; then
 
6029
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
6030
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
6031
else
 
6032
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6033
$as_echo "no" >&6; }
 
6034
fi
 
6035
 
 
6036
 
 
6037
  test -n "$ac_ct_DUMPBIN" && break
 
6038
done
 
6039
 
 
6040
  if test "x$ac_ct_DUMPBIN" = x; then
 
6041
    DUMPBIN=":"
 
6042
  else
 
6043
    case $cross_compiling:$ac_tool_warned in
 
6044
yes:)
 
6045
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6047
ac_tool_warned=yes ;;
 
6048
esac
 
6049
    DUMPBIN=$ac_ct_DUMPBIN
 
6050
  fi
 
6051
fi
 
6052
 
 
6053
 
 
6054
  if test "$DUMPBIN" != ":"; then
 
6055
    NM="$DUMPBIN"
 
6056
  fi
 
6057
fi
 
6058
test -z "$NM" && NM=nm
 
6059
 
 
6060
 
 
6061
 
 
6062
 
 
6063
 
 
6064
 
 
6065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
6066
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
6067
if test "${lt_cv_nm_interface+set}" = set; then :
 
6068
  $as_echo_n "(cached) " >&6
 
6069
else
 
6070
  lt_cv_nm_interface="BSD nm"
 
6071
  echo "int some_variable = 0;" > conftest.$ac_ext
 
6072
  (eval echo "\"\$as_me:6072: $ac_compile\"" >&5)
 
6073
  (eval "$ac_compile" 2>conftest.err)
 
6074
  cat conftest.err >&5
 
6075
  (eval echo "\"\$as_me:6075: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6076
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
6077
  cat conftest.err >&5
 
6078
  (eval echo "\"\$as_me:6078: output\"" >&5)
 
6079
  cat conftest.out >&5
 
6080
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
6081
    lt_cv_nm_interface="MS dumpbin"
 
6082
  fi
 
6083
  rm -f conftest*
 
6084
fi
 
6085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
6086
$as_echo "$lt_cv_nm_interface" >&6; }
 
6087
 
 
6088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
6089
$as_echo_n "checking whether ln -s works... " >&6; }
 
6090
LN_S=$as_ln_s
 
6091
if test "$LN_S" = "ln -s"; then
 
6092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6093
$as_echo "yes" >&6; }
 
6094
else
 
6095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
6096
$as_echo "no, using $LN_S" >&6; }
 
6097
fi
 
6098
 
 
6099
# find the maximum length of command line arguments
 
6100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
6101
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6102
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
6103
  $as_echo_n "(cached) " >&6
 
6104
else
 
6105
    i=0
 
6106
  teststring="ABCD"
 
6107
 
 
6108
  case $build_os in
 
6109
  msdosdjgpp*)
 
6110
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6111
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6112
    # during glob expansion).  Even if it were fixed, the result of this
 
6113
    # check would be larger than it should be.
 
6114
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6115
    ;;
 
6116
 
 
6117
  gnu*)
 
6118
    # Under GNU Hurd, this test is not required because there is
 
6119
    # no limit to the length of command line arguments.
 
6120
    # Libtool will interpret -1 as no limit whatsoever
 
6121
    lt_cv_sys_max_cmd_len=-1;
 
6122
    ;;
 
6123
 
 
6124
  cygwin* | mingw* | cegcc*)
 
6125
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6126
    # about 5 minutes as the teststring grows exponentially.
 
6127
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6128
    # you end up with a "frozen" computer, even though with patience
 
6129
    # the test eventually succeeds (with a max line length of 256k).
 
6130
    # Instead, let's just punt: use the minimum linelength reported by
 
6131
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6132
    lt_cv_sys_max_cmd_len=8192;
 
6133
    ;;
 
6134
 
 
6135
  amigaos*)
 
6136
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6137
    # So we just punt and use a minimum line length of 8192.
 
6138
    lt_cv_sys_max_cmd_len=8192;
 
6139
    ;;
 
6140
 
 
6141
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6142
    # This has been around since 386BSD, at least.  Likely further.
 
6143
    if test -x /sbin/sysctl; then
 
6144
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6145
    elif test -x /usr/sbin/sysctl; then
 
6146
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6147
    else
 
6148
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6149
    fi
 
6150
    # And add a safety zone
 
6151
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6152
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6153
    ;;
 
6154
 
 
6155
  interix*)
 
6156
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6157
    lt_cv_sys_max_cmd_len=196608
 
6158
    ;;
 
6159
 
 
6160
  osf*)
 
6161
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6162
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6163
    # nice to cause kernel panics so lets avoid the loop below.
 
6164
    # First set a reasonable default.
 
6165
    lt_cv_sys_max_cmd_len=16384
 
6166
    #
 
6167
    if test -x /sbin/sysconfig; then
 
6168
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6169
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6170
      esac
 
6171
    fi
 
6172
    ;;
 
6173
  sco3.2v5*)
 
6174
    lt_cv_sys_max_cmd_len=102400
 
6175
    ;;
 
6176
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6177
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6178
    if test -n "$kargmax"; then
 
6179
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
6180
    else
 
6181
      lt_cv_sys_max_cmd_len=32768
 
6182
    fi
 
6183
    ;;
 
6184
  *)
 
6185
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6186
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6187
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6188
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6189
    else
 
6190
      # Make teststring a little bigger before we do anything with it.
 
6191
      # a 1K string should be a reasonable start.
 
6192
      for i in 1 2 3 4 5 6 7 8 ; do
 
6193
        teststring=$teststring$teststring
 
6194
      done
 
6195
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6196
      # If test is not a shell built-in, we'll probably end up computing a
 
6197
      # maximum length that is only half of the actual maximum length, but
 
6198
      # we can't tell.
 
6199
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
6200
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
6201
              test $i != 17 # 1/2 MB should be enough
 
6202
      do
 
6203
        i=`expr $i + 1`
 
6204
        teststring=$teststring$teststring
 
6205
      done
 
6206
      # Only check the string length outside the loop.
 
6207
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
6208
      teststring=
 
6209
      # Add a significant safety factor because C++ compilers can tack on
 
6210
      # massive amounts of additional arguments before passing them to the
 
6211
      # linker.  It appears as though 1/2 is a usable value.
 
6212
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6213
    fi
 
6214
    ;;
 
6215
  esac
 
6216
 
 
6217
fi
 
6218
 
 
6219
if test -n $lt_cv_sys_max_cmd_len ; then
 
6220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
6221
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6222
else
 
6223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
6224
$as_echo "none" >&6; }
 
6225
fi
 
6226
max_cmd_len=$lt_cv_sys_max_cmd_len
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
 
6232
 
 
6233
: ${CP="cp -f"}
 
6234
: ${MV="mv -f"}
 
6235
: ${RM="rm -f"}
 
6236
 
 
6237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
6238
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
6239
# Try some XSI features
 
6240
xsi_shell=no
 
6241
( _lt_dummy="a/b/c"
 
6242
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
6243
      = c,a/b,, \
 
6244
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
6245
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
6246
  && xsi_shell=yes
 
6247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
6248
$as_echo "$xsi_shell" >&6; }
 
6249
 
 
6250
 
 
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
6252
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
6253
lt_shell_append=no
 
6254
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
6255
    >/dev/null 2>&1 \
 
6256
  && lt_shell_append=yes
 
6257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
6258
$as_echo "$lt_shell_append" >&6; }
 
6259
 
 
6260
 
 
6261
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6262
  lt_unset=unset
 
6263
else
 
6264
  lt_unset=false
 
6265
fi
 
6266
 
 
6267
 
 
6268
 
 
6269
 
 
6270
 
 
6271
# test EBCDIC or ASCII
 
6272
case `echo X|tr X '\101'` in
 
6273
 A) # ASCII based system
 
6274
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
6275
  lt_SP2NL='tr \040 \012'
 
6276
  lt_NL2SP='tr \015\012 \040\040'
 
6277
  ;;
 
6278
 *) # EBCDIC based system
 
6279
  lt_SP2NL='tr \100 \n'
 
6280
  lt_NL2SP='tr \r\n \100\100'
 
6281
  ;;
 
6282
esac
 
6283
 
 
6284
 
 
6285
 
 
6286
 
 
6287
 
 
6288
 
 
6289
 
 
6290
 
 
6291
 
 
6292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
6293
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
6294
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
6295
  $as_echo_n "(cached) " >&6
 
6296
else
 
6297
  lt_cv_ld_reload_flag='-r'
 
6298
fi
 
6299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
6300
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
6301
reload_flag=$lt_cv_ld_reload_flag
 
6302
case $reload_flag in
 
6303
"" | " "*) ;;
 
6304
*) reload_flag=" $reload_flag" ;;
 
6305
esac
 
6306
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6307
case $host_os in
 
6308
  darwin*)
 
6309
    if test "$GCC" = yes; then
 
6310
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
6311
    else
 
6312
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6313
    fi
 
6314
    ;;
 
6315
esac
 
6316
 
 
6317
 
 
6318
 
 
6319
 
 
6320
 
 
6321
 
 
6322
 
 
6323
 
 
6324
 
 
6325
if test -n "$ac_tool_prefix"; then
 
6326
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
6327
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
6328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6329
$as_echo_n "checking for $ac_word... " >&6; }
 
6330
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
6331
  $as_echo_n "(cached) " >&6
 
6332
else
 
6333
  if test -n "$OBJDUMP"; then
 
6334
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
6335
else
 
6336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6337
for as_dir in $PATH
 
6338
do
 
6339
  IFS=$as_save_IFS
 
6340
  test -z "$as_dir" && as_dir=.
 
6341
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6343
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
6344
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6345
    break 2
 
6346
  fi
 
6347
done
 
6348
  done
 
6349
IFS=$as_save_IFS
 
6350
 
 
6351
fi
 
6352
fi
 
6353
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6354
if test -n "$OBJDUMP"; then
 
6355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
6356
$as_echo "$OBJDUMP" >&6; }
 
6357
else
 
6358
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6359
$as_echo "no" >&6; }
 
6360
fi
 
6361
 
 
6362
 
 
6363
fi
 
6364
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6365
  ac_ct_OBJDUMP=$OBJDUMP
 
6366
  # Extract the first word of "objdump", so it can be a program name with args.
 
6367
set dummy objdump; ac_word=$2
 
6368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6369
$as_echo_n "checking for $ac_word... " >&6; }
 
6370
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
6371
  $as_echo_n "(cached) " >&6
 
6372
else
 
6373
  if test -n "$ac_ct_OBJDUMP"; then
 
6374
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6375
else
 
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6377
for as_dir in $PATH
 
6378
do
 
6379
  IFS=$as_save_IFS
 
6380
  test -z "$as_dir" && as_dir=.
 
6381
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6382
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6383
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6384
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6385
    break 2
 
6386
  fi
 
6387
done
 
6388
  done
 
6389
IFS=$as_save_IFS
 
6390
 
 
6391
fi
 
6392
fi
 
6393
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6394
if test -n "$ac_ct_OBJDUMP"; then
 
6395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6396
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
6397
else
 
6398
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6399
$as_echo "no" >&6; }
 
6400
fi
 
6401
 
 
6402
  if test "x$ac_ct_OBJDUMP" = x; then
 
6403
    OBJDUMP="false"
 
6404
  else
 
6405
    case $cross_compiling:$ac_tool_warned in
 
6406
yes:)
 
6407
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6408
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6409
ac_tool_warned=yes ;;
 
6410
esac
 
6411
    OBJDUMP=$ac_ct_OBJDUMP
 
6412
  fi
 
6413
else
 
6414
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6415
fi
 
6416
 
 
6417
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6418
 
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
 
 
6424
 
 
6425
 
 
6426
 
 
6427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6428
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6429
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
6430
  $as_echo_n "(cached) " >&6
 
6431
else
 
6432
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6433
lt_cv_file_magic_test_file=
 
6434
lt_cv_deplibs_check_method='unknown'
 
6435
# Need to set the preceding variable on all platforms that support
 
6436
# interlibrary dependencies.
 
6437
# 'none' -- dependencies not supported.
 
6438
# `unknown' -- same as none, but documents that we really don't know.
 
6439
# 'pass_all' -- all dependencies passed with no checks.
 
6440
# 'test_compile' -- check by making test program.
 
6441
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6442
# which responds to the $file_magic_cmd with a given extended regex.
 
6443
# If you have `file' or equivalent on your system and you're not sure
 
6444
# whether `pass_all' will *always* work, you probably want this one.
 
6445
 
 
6446
case $host_os in
 
6447
aix[4-9]*)
 
6448
  lt_cv_deplibs_check_method=pass_all
 
6449
  ;;
 
6450
 
 
6451
beos*)
 
6452
  lt_cv_deplibs_check_method=pass_all
 
6453
  ;;
 
6454
 
 
6455
bsdi[45]*)
 
6456
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6457
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6458
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6459
  ;;
 
6460
 
 
6461
cygwin*)
 
6462
  # func_win32_libid is a shell function defined in ltmain.sh
 
6463
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6464
  lt_cv_file_magic_cmd='func_win32_libid'
 
6465
  ;;
 
6466
 
 
6467
mingw* | pw32*)
 
6468
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6469
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6470
  # unless we find 'file', for example because we are cross-compiling.
 
6471
  if ( file / ) >/dev/null 2>&1; then
 
6472
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6473
    lt_cv_file_magic_cmd='func_win32_libid'
 
6474
  else
 
6475
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6476
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6477
  fi
 
6478
  ;;
 
6479
 
 
6480
cegcc)
 
6481
  # use the weaker test based on 'objdump'. See mingw*.
 
6482
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6483
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6484
  ;;
 
6485
 
 
6486
darwin* | rhapsody*)
 
6487
  lt_cv_deplibs_check_method=pass_all
 
6488
  ;;
 
6489
 
 
6490
freebsd* | dragonfly*)
 
6491
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6492
    case $host_cpu in
 
6493
    i*86 )
 
6494
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6495
      # Let's accept both of them until this is cleared up.
 
6496
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6497
      lt_cv_file_magic_cmd=/usr/bin/file
 
6498
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6499
      ;;
 
6500
    esac
 
6501
  else
 
6502
    lt_cv_deplibs_check_method=pass_all
 
6503
  fi
 
6504
  ;;
 
6505
 
 
6506
gnu*)
 
6507
  lt_cv_deplibs_check_method=pass_all
 
6508
  ;;
 
6509
 
 
6510
hpux10.20* | hpux11*)
 
6511
  lt_cv_file_magic_cmd=/usr/bin/file
 
6512
  case $host_cpu in
 
6513
  ia64*)
 
6514
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6515
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6516
    ;;
 
6517
  hppa*64*)
 
6518
    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]'
 
6519
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6520
    ;;
 
6521
  *)
 
6522
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6523
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6524
    ;;
 
6525
  esac
 
6526
  ;;
 
6527
 
 
6528
interix[3-9]*)
 
6529
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6530
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6531
  ;;
 
6532
 
 
6533
irix5* | irix6* | nonstopux*)
 
6534
  case $LD in
 
6535
  *-32|*"-32 ") libmagic=32-bit;;
 
6536
  *-n32|*"-n32 ") libmagic=N32;;
 
6537
  *-64|*"-64 ") libmagic=64-bit;;
 
6538
  *) libmagic=never-match;;
 
6539
  esac
 
6540
  lt_cv_deplibs_check_method=pass_all
 
6541
  ;;
 
6542
 
 
6543
# This must be Linux ELF.
 
6544
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6545
  lt_cv_deplibs_check_method=pass_all
 
6546
  ;;
 
6547
 
 
6548
netbsd* | netbsdelf*-gnu)
 
6549
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6550
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6551
  else
 
6552
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6553
  fi
 
6554
  ;;
 
6555
 
 
6556
newos6*)
 
6557
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6558
  lt_cv_file_magic_cmd=/usr/bin/file
 
6559
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6560
  ;;
 
6561
 
 
6562
*nto* | *qnx*)
 
6563
  lt_cv_deplibs_check_method=pass_all
 
6564
  ;;
 
6565
 
 
6566
openbsd*)
 
6567
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6568
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6569
  else
 
6570
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6571
  fi
 
6572
  ;;
 
6573
 
 
6574
osf3* | osf4* | osf5*)
 
6575
  lt_cv_deplibs_check_method=pass_all
 
6576
  ;;
 
6577
 
 
6578
rdos*)
 
6579
  lt_cv_deplibs_check_method=pass_all
 
6580
  ;;
 
6581
 
 
6582
solaris*)
 
6583
  lt_cv_deplibs_check_method=pass_all
 
6584
  ;;
 
6585
 
 
6586
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6587
  lt_cv_deplibs_check_method=pass_all
 
6588
  ;;
 
6589
 
 
6590
sysv4 | sysv4.3*)
 
6591
  case $host_vendor in
 
6592
  motorola)
 
6593
    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]'
 
6594
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6595
    ;;
 
6596
  ncr)
 
6597
    lt_cv_deplibs_check_method=pass_all
 
6598
    ;;
 
6599
  sequent)
 
6600
    lt_cv_file_magic_cmd='/bin/file'
 
6601
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6602
    ;;
 
6603
  sni)
 
6604
    lt_cv_file_magic_cmd='/bin/file'
 
6605
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6606
    lt_cv_file_magic_test_file=/lib/libc.so
 
6607
    ;;
 
6608
  siemens)
 
6609
    lt_cv_deplibs_check_method=pass_all
 
6610
    ;;
 
6611
  pc)
 
6612
    lt_cv_deplibs_check_method=pass_all
 
6613
    ;;
 
6614
  esac
 
6615
  ;;
 
6616
 
 
6617
tpf*)
 
6618
  lt_cv_deplibs_check_method=pass_all
 
6619
  ;;
 
6620
esac
 
6621
 
 
6622
fi
 
6623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6624
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6625
file_magic_cmd=$lt_cv_file_magic_cmd
 
6626
deplibs_check_method=$lt_cv_deplibs_check_method
 
6627
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6628
 
 
6629
 
 
6630
 
 
6631
 
 
6632
 
 
6633
 
 
6634
 
 
6635
 
 
6636
 
 
6637
 
 
6638
 
 
6639
 
 
6640
if test -n "$ac_tool_prefix"; then
 
6641
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6642
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6644
$as_echo_n "checking for $ac_word... " >&6; }
 
6645
if test "${ac_cv_prog_AR+set}" = set; then :
 
6646
  $as_echo_n "(cached) " >&6
 
6647
else
 
6648
  if test -n "$AR"; then
 
6649
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6650
else
 
6651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6652
for as_dir in $PATH
 
6653
do
 
6654
  IFS=$as_save_IFS
 
6655
  test -z "$as_dir" && as_dir=.
 
6656
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6657
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6658
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6659
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6660
    break 2
 
6661
  fi
 
6662
done
 
6663
  done
 
6664
IFS=$as_save_IFS
 
6665
 
 
6666
fi
 
6667
fi
 
6668
AR=$ac_cv_prog_AR
 
6669
if test -n "$AR"; then
 
6670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6671
$as_echo "$AR" >&6; }
 
6672
else
 
6673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6674
$as_echo "no" >&6; }
 
6675
fi
 
6676
 
 
6677
 
 
6678
fi
 
6679
if test -z "$ac_cv_prog_AR"; then
 
6680
  ac_ct_AR=$AR
 
6681
  # Extract the first word of "ar", so it can be a program name with args.
 
6682
set dummy ar; ac_word=$2
 
6683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6684
$as_echo_n "checking for $ac_word... " >&6; }
 
6685
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
6686
  $as_echo_n "(cached) " >&6
 
6687
else
 
6688
  if test -n "$ac_ct_AR"; then
 
6689
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6690
else
 
6691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6692
for as_dir in $PATH
 
6693
do
 
6694
  IFS=$as_save_IFS
 
6695
  test -z "$as_dir" && as_dir=.
 
6696
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6698
    ac_cv_prog_ac_ct_AR="ar"
 
6699
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6700
    break 2
 
6701
  fi
 
6702
done
 
6703
  done
 
6704
IFS=$as_save_IFS
 
6705
 
 
6706
fi
 
6707
fi
 
6708
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6709
if test -n "$ac_ct_AR"; then
 
6710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6711
$as_echo "$ac_ct_AR" >&6; }
 
6712
else
 
6713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6714
$as_echo "no" >&6; }
 
6715
fi
 
6716
 
 
6717
  if test "x$ac_ct_AR" = x; then
 
6718
    AR="false"
 
6719
  else
 
6720
    case $cross_compiling:$ac_tool_warned in
 
6721
yes:)
 
6722
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6723
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6724
ac_tool_warned=yes ;;
 
6725
esac
 
6726
    AR=$ac_ct_AR
 
6727
  fi
 
6728
else
 
6729
  AR="$ac_cv_prog_AR"
 
6730
fi
 
6731
 
 
6732
test -z "$AR" && AR=ar
 
6733
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6734
 
 
6735
 
 
6736
 
 
6737
 
 
6738
 
 
6739
 
 
6740
 
 
6741
 
 
6742
 
 
6743
 
 
6744
 
 
6745
if test -n "$ac_tool_prefix"; then
 
6746
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6747
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6749
$as_echo_n "checking for $ac_word... " >&6; }
 
6750
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
6751
  $as_echo_n "(cached) " >&6
 
6752
else
 
6753
  if test -n "$STRIP"; then
 
6754
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6755
else
 
6756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6757
for as_dir in $PATH
 
6758
do
 
6759
  IFS=$as_save_IFS
 
6760
  test -z "$as_dir" && as_dir=.
 
6761
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6762
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6763
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6764
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6765
    break 2
 
6766
  fi
 
6767
done
 
6768
  done
 
6769
IFS=$as_save_IFS
 
6770
 
 
6771
fi
 
6772
fi
 
6773
STRIP=$ac_cv_prog_STRIP
 
6774
if test -n "$STRIP"; then
 
6775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6776
$as_echo "$STRIP" >&6; }
 
6777
else
 
6778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6779
$as_echo "no" >&6; }
 
6780
fi
 
6781
 
 
6782
 
 
6783
fi
 
6784
if test -z "$ac_cv_prog_STRIP"; then
 
6785
  ac_ct_STRIP=$STRIP
 
6786
  # Extract the first word of "strip", so it can be a program name with args.
 
6787
set dummy strip; ac_word=$2
 
6788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6789
$as_echo_n "checking for $ac_word... " >&6; }
 
6790
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
6791
  $as_echo_n "(cached) " >&6
 
6792
else
 
6793
  if test -n "$ac_ct_STRIP"; then
 
6794
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6795
else
 
6796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6797
for as_dir in $PATH
 
6798
do
 
6799
  IFS=$as_save_IFS
 
6800
  test -z "$as_dir" && as_dir=.
 
6801
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6802
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6803
    ac_cv_prog_ac_ct_STRIP="strip"
 
6804
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6805
    break 2
 
6806
  fi
 
6807
done
 
6808
  done
 
6809
IFS=$as_save_IFS
 
6810
 
 
6811
fi
 
6812
fi
 
6813
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6814
if test -n "$ac_ct_STRIP"; then
 
6815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6816
$as_echo "$ac_ct_STRIP" >&6; }
 
6817
else
 
6818
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6819
$as_echo "no" >&6; }
 
6820
fi
 
6821
 
 
6822
  if test "x$ac_ct_STRIP" = x; then
 
6823
    STRIP=":"
 
6824
  else
 
6825
    case $cross_compiling:$ac_tool_warned in
 
6826
yes:)
 
6827
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6828
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6829
ac_tool_warned=yes ;;
 
6830
esac
 
6831
    STRIP=$ac_ct_STRIP
 
6832
  fi
 
6833
else
 
6834
  STRIP="$ac_cv_prog_STRIP"
 
6835
fi
 
6836
 
 
6837
test -z "$STRIP" && STRIP=:
 
6838
 
 
6839
 
 
6840
 
 
6841
 
 
6842
 
 
6843
 
 
6844
if test -n "$ac_tool_prefix"; then
 
6845
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6846
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6848
$as_echo_n "checking for $ac_word... " >&6; }
 
6849
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
6850
  $as_echo_n "(cached) " >&6
 
6851
else
 
6852
  if test -n "$RANLIB"; then
 
6853
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6854
else
 
6855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6856
for as_dir in $PATH
 
6857
do
 
6858
  IFS=$as_save_IFS
 
6859
  test -z "$as_dir" && as_dir=.
 
6860
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6862
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6863
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6864
    break 2
 
6865
  fi
 
6866
done
 
6867
  done
 
6868
IFS=$as_save_IFS
 
6869
 
 
6870
fi
 
6871
fi
 
6872
RANLIB=$ac_cv_prog_RANLIB
 
6873
if test -n "$RANLIB"; then
 
6874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6875
$as_echo "$RANLIB" >&6; }
 
6876
else
 
6877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6878
$as_echo "no" >&6; }
 
6879
fi
 
6880
 
 
6881
 
 
6882
fi
 
6883
if test -z "$ac_cv_prog_RANLIB"; then
 
6884
  ac_ct_RANLIB=$RANLIB
 
6885
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6886
set dummy ranlib; ac_word=$2
 
6887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6888
$as_echo_n "checking for $ac_word... " >&6; }
 
6889
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
6890
  $as_echo_n "(cached) " >&6
 
6891
else
 
6892
  if test -n "$ac_ct_RANLIB"; then
 
6893
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6894
else
 
6895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6896
for as_dir in $PATH
 
6897
do
 
6898
  IFS=$as_save_IFS
 
6899
  test -z "$as_dir" && as_dir=.
 
6900
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6902
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6903
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6904
    break 2
 
6905
  fi
 
6906
done
 
6907
  done
 
6908
IFS=$as_save_IFS
 
6909
 
 
6910
fi
 
6911
fi
 
6912
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6913
if test -n "$ac_ct_RANLIB"; then
 
6914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6915
$as_echo "$ac_ct_RANLIB" >&6; }
 
6916
else
 
6917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6918
$as_echo "no" >&6; }
 
6919
fi
 
6920
 
 
6921
  if test "x$ac_ct_RANLIB" = x; then
 
6922
    RANLIB=":"
 
6923
  else
 
6924
    case $cross_compiling:$ac_tool_warned in
 
6925
yes:)
 
6926
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6927
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6928
ac_tool_warned=yes ;;
 
6929
esac
 
6930
    RANLIB=$ac_ct_RANLIB
 
6931
  fi
 
6932
else
 
6933
  RANLIB="$ac_cv_prog_RANLIB"
 
6934
fi
 
6935
 
 
6936
test -z "$RANLIB" && RANLIB=:
 
6937
 
 
6938
 
 
6939
 
 
6940
 
 
6941
 
 
6942
 
 
6943
# Determine commands to create old-style static archives.
 
6944
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6945
old_postinstall_cmds='chmod 644 $oldlib'
 
6946
old_postuninstall_cmds=
 
6947
 
 
6948
if test -n "$RANLIB"; then
 
6949
  case $host_os in
 
6950
  openbsd*)
 
6951
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6952
    ;;
 
6953
  *)
 
6954
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6955
    ;;
 
6956
  esac
 
6957
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6958
fi
 
6959
 
 
6960
 
 
6961
 
 
6962
 
 
6963
 
 
6964
 
 
6965
 
 
6966
 
 
6967
 
 
6968
 
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
 
 
6974
 
 
6975
 
 
6976
 
 
6977
 
 
6978
 
 
6979
 
 
6980
 
 
6981
 
 
6982
 
 
6983
 
 
6984
 
 
6985
 
 
6986
 
 
6987
 
 
6988
 
 
6989
 
 
6990
 
 
6991
 
 
6992
 
 
6993
# If no C compiler was specified, use CC.
 
6994
LTCC=${LTCC-"$CC"}
 
6995
 
 
6996
# If no C compiler flags were specified, use CFLAGS.
 
6997
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6998
 
 
6999
# Allow CC to be a program name with arguments.
 
7000
compiler=$CC
 
7001
 
 
7002
 
 
7003
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
7005
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
7006
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
7007
  $as_echo_n "(cached) " >&6
 
7008
else
 
7009
 
 
7010
# These are sane defaults that work on at least a few old systems.
 
7011
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7012
 
 
7013
# Character class describing NM global symbol codes.
 
7014
symcode='[BCDEGRST]'
 
7015
 
 
7016
# Regexp to match symbols that can be accessed directly from C.
 
7017
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7018
 
 
7019
# Define system-specific variables.
 
7020
case $host_os in
 
7021
aix*)
 
7022
  symcode='[BCDT]'
 
7023
  ;;
 
7024
cygwin* | mingw* | pw32* | cegcc*)
 
7025
  symcode='[ABCDGISTW]'
 
7026
  ;;
 
7027
hpux*)
 
7028
  if test "$host_cpu" = ia64; then
 
7029
    symcode='[ABCDEGRST]'
 
7030
  fi
 
7031
  ;;
 
7032
irix* | nonstopux*)
 
7033
  symcode='[BCDEGRST]'
 
7034
  ;;
 
7035
osf*)
 
7036
  symcode='[BCDEGQRST]'
 
7037
  ;;
 
7038
solaris*)
 
7039
  symcode='[BDRT]'
 
7040
  ;;
 
7041
sco3.2v5*)
 
7042
  symcode='[DT]'
 
7043
  ;;
 
7044
sysv4.2uw2*)
 
7045
  symcode='[DT]'
 
7046
  ;;
 
7047
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7048
  symcode='[ABDT]'
 
7049
  ;;
 
7050
sysv4)
 
7051
  symcode='[DFNSTU]'
 
7052
  ;;
 
7053
esac
 
7054
 
 
7055
# If we're using GNU nm, then use its standard symbol codes.
 
7056
case `$NM -V 2>&1` in
 
7057
*GNU* | *'with BFD'*)
 
7058
  symcode='[ABCDGIRSTW]' ;;
 
7059
esac
 
7060
 
 
7061
# Transform an extracted symbol line into a proper C declaration.
 
7062
# Some systems (esp. on ia64) link data and code symbols differently,
 
7063
# so use this general approach.
 
7064
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7065
 
 
7066
# Transform an extracted symbol line into symbol name and symbol address
 
7067
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7068
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'"
 
7069
 
 
7070
# Handle CRLF in mingw tool chain
 
7071
opt_cr=
 
7072
case $build_os in
 
7073
mingw*)
 
7074
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7075
  ;;
 
7076
esac
 
7077
 
 
7078
# Try without a prefix underscore, then with it.
 
7079
for ac_symprfx in "" "_"; do
 
7080
 
 
7081
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7082
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7083
 
 
7084
  # Write the raw and C identifiers.
 
7085
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7086
    # Fake it for dumpbin and say T for any non-static function
 
7087
    # and D for any global variable.
 
7088
    # Also find C++ and __fastcall symbols from MSVC++,
 
7089
    # which start with @ or ?.
 
7090
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7091
"     {last_section=section; section=\$ 3};"\
 
7092
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7093
"     \$ 0!~/External *\|/{next};"\
 
7094
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7095
"     {if(hide[section]) next};"\
 
7096
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7097
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7098
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7099
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7100
"     ' prfx=^$ac_symprfx"
 
7101
  else
 
7102
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7103
  fi
 
7104
 
 
7105
  # Check to see that the pipe works correctly.
 
7106
  pipe_works=no
 
7107
 
 
7108
  rm -f conftest*
 
7109
  cat > conftest.$ac_ext <<_LT_EOF
 
7110
#ifdef __cplusplus
 
7111
extern "C" {
 
7112
#endif
 
7113
char nm_test_var;
 
7114
void nm_test_func(void);
 
7115
void nm_test_func(void){}
 
7116
#ifdef __cplusplus
 
7117
}
 
7118
#endif
 
7119
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7120
_LT_EOF
 
7121
 
 
7122
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7123
  (eval $ac_compile) 2>&5
 
7124
  ac_status=$?
 
7125
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7126
  test $ac_status = 0; }; then
 
7127
    # Now try to grab the symbols.
 
7128
    nlist=conftest.nm
 
7129
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
7130
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7131
  ac_status=$?
 
7132
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7133
  test $ac_status = 0; } && test -s "$nlist"; then
 
7134
      # Try sorting and uniquifying the output.
 
7135
      if sort "$nlist" | uniq > "$nlist"T; then
 
7136
        mv -f "$nlist"T "$nlist"
 
7137
      else
 
7138
        rm -f "$nlist"T
 
7139
      fi
 
7140
 
 
7141
      # Make sure that we snagged all the symbols we need.
 
7142
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7143
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7144
          cat <<_LT_EOF > conftest.$ac_ext
 
7145
#ifdef __cplusplus
 
7146
extern "C" {
 
7147
#endif
 
7148
 
 
7149
_LT_EOF
 
7150
          # Now generate the symbol file.
 
7151
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7152
 
 
7153
          cat <<_LT_EOF >> conftest.$ac_ext
 
7154
 
 
7155
/* The mapping between symbol names and symbols.  */
 
7156
const struct {
 
7157
  const char *name;
 
7158
  void       *address;
 
7159
}
 
7160
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7161
{
 
7162
  { "@PROGRAM@", (void *) 0 },
 
7163
_LT_EOF
 
7164
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7165
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7166
  {0, (void *) 0}
 
7167
};
 
7168
 
 
7169
/* This works around a problem in FreeBSD linker */
 
7170
#ifdef FREEBSD_WORKAROUND
 
7171
static const void *lt_preloaded_setup() {
 
7172
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7173
}
 
7174
#endif
 
7175
 
 
7176
#ifdef __cplusplus
 
7177
}
 
7178
#endif
 
7179
_LT_EOF
 
7180
          # Now try linking the two files.
 
7181
          mv conftest.$ac_objext conftstm.$ac_objext
 
7182
          lt_save_LIBS="$LIBS"
 
7183
          lt_save_CFLAGS="$CFLAGS"
 
7184
          LIBS="conftstm.$ac_objext"
 
7185
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7186
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7187
  (eval $ac_link) 2>&5
 
7188
  ac_status=$?
 
7189
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7190
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
7191
            pipe_works=yes
 
7192
          fi
 
7193
          LIBS="$lt_save_LIBS"
 
7194
          CFLAGS="$lt_save_CFLAGS"
 
7195
        else
 
7196
          echo "cannot find nm_test_func in $nlist" >&5
 
7197
        fi
 
7198
      else
 
7199
        echo "cannot find nm_test_var in $nlist" >&5
 
7200
      fi
 
7201
    else
 
7202
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7203
    fi
 
7204
  else
 
7205
    echo "$progname: failed program was:" >&5
 
7206
    cat conftest.$ac_ext >&5
 
7207
  fi
 
7208
  rm -rf conftest* conftst*
 
7209
 
 
7210
  # Do not use the global_symbol_pipe unless it works.
 
7211
  if test "$pipe_works" = yes; then
 
7212
    break
 
7213
  else
 
7214
    lt_cv_sys_global_symbol_pipe=
 
7215
  fi
 
7216
done
 
7217
 
 
7218
fi
 
7219
 
 
7220
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7221
  lt_cv_sys_global_symbol_to_cdecl=
 
7222
fi
 
7223
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7225
$as_echo "failed" >&6; }
 
7226
else
 
7227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7228
$as_echo "ok" >&6; }
 
7229
fi
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
 
 
7240
 
 
7241
 
 
7242
 
 
7243
 
 
7244
 
 
7245
 
 
7246
 
 
7247
 
 
7248
 
 
7249
 
 
7250
 
 
7251
 
 
7252
# Check whether --enable-libtool-lock was given.
 
7253
if test "${enable_libtool_lock+set}" = set; then :
 
7254
  enableval=$enable_libtool_lock;
 
7255
fi
 
7256
 
 
7257
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7258
 
 
7259
# Some flags need to be propagated to the compiler or linker for good
 
7260
# libtool support.
 
7261
case $host in
 
7262
ia64-*-hpux*)
 
7263
  # Find out which ABI we are using.
 
7264
  echo 'int i;' > conftest.$ac_ext
 
7265
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7266
  (eval $ac_compile) 2>&5
 
7267
  ac_status=$?
 
7268
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7269
  test $ac_status = 0; }; then
 
7270
    case `/usr/bin/file conftest.$ac_objext` in
 
7271
      *ELF-32*)
 
7272
        HPUX_IA64_MODE="32"
 
7273
        ;;
 
7274
      *ELF-64*)
 
7275
        HPUX_IA64_MODE="64"
 
7276
        ;;
 
7277
    esac
 
7278
  fi
 
7279
  rm -rf conftest*
 
7280
  ;;
 
7281
*-*-irix6*)
 
7282
  # Find out which ABI we are using.
 
7283
  echo '#line 7283 "configure"' > conftest.$ac_ext
 
7284
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7285
  (eval $ac_compile) 2>&5
 
7286
  ac_status=$?
 
7287
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7288
  test $ac_status = 0; }; then
 
7289
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7290
      case `/usr/bin/file conftest.$ac_objext` in
 
7291
        *32-bit*)
 
7292
          LD="${LD-ld} -melf32bsmip"
 
7293
          ;;
 
7294
        *N32*)
 
7295
          LD="${LD-ld} -melf32bmipn32"
 
7296
          ;;
 
7297
        *64-bit*)
 
7298
          LD="${LD-ld} -melf64bmip"
 
7299
        ;;
 
7300
      esac
 
7301
    else
 
7302
      case `/usr/bin/file conftest.$ac_objext` in
 
7303
        *32-bit*)
 
7304
          LD="${LD-ld} -32"
 
7305
          ;;
 
7306
        *N32*)
 
7307
          LD="${LD-ld} -n32"
 
7308
          ;;
 
7309
        *64-bit*)
 
7310
          LD="${LD-ld} -64"
 
7311
          ;;
 
7312
      esac
 
7313
    fi
 
7314
  fi
 
7315
  rm -rf conftest*
 
7316
  ;;
 
7317
 
 
7318
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7319
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7320
  # Find out which ABI we are using.
 
7321
  echo 'int i;' > conftest.$ac_ext
 
7322
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7323
  (eval $ac_compile) 2>&5
 
7324
  ac_status=$?
 
7325
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7326
  test $ac_status = 0; }; then
 
7327
    case `/usr/bin/file conftest.o` in
 
7328
      *32-bit*)
 
7329
        case $host in
 
7330
          x86_64-*kfreebsd*-gnu)
 
7331
            LD="${LD-ld} -m elf_i386_fbsd"
 
7332
            ;;
 
7333
          x86_64-*linux*)
 
7334
            LD="${LD-ld} -m elf_i386"
 
7335
            ;;
 
7336
          ppc64-*linux*|powerpc64-*linux*)
 
7337
            LD="${LD-ld} -m elf32ppclinux"
 
7338
            ;;
 
7339
          s390x-*linux*)
 
7340
            LD="${LD-ld} -m elf_s390"
 
7341
            ;;
 
7342
          sparc64-*linux*)
 
7343
            LD="${LD-ld} -m elf32_sparc"
 
7344
            ;;
 
7345
        esac
 
7346
        ;;
 
7347
      *64-bit*)
 
7348
        case $host in
 
7349
          x86_64-*kfreebsd*-gnu)
 
7350
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7351
            ;;
 
7352
          x86_64-*linux*)
 
7353
            LD="${LD-ld} -m elf_x86_64"
 
7354
            ;;
 
7355
          ppc*-*linux*|powerpc*-*linux*)
 
7356
            LD="${LD-ld} -m elf64ppc"
 
7357
            ;;
 
7358
          s390*-*linux*|s390*-*tpf*)
 
7359
            LD="${LD-ld} -m elf64_s390"
 
7360
            ;;
 
7361
          sparc*-*linux*)
 
7362
            LD="${LD-ld} -m elf64_sparc"
 
7363
            ;;
 
7364
        esac
 
7365
        ;;
 
7366
    esac
 
7367
  fi
 
7368
  rm -rf conftest*
 
7369
  ;;
 
7370
 
 
7371
*-*-sco3.2v5*)
 
7372
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7373
  SAVE_CFLAGS="$CFLAGS"
 
7374
  CFLAGS="$CFLAGS -belf"
 
7375
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7376
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7377
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
7378
  $as_echo_n "(cached) " >&6
 
7379
else
 
7380
  ac_ext=c
 
7381
ac_cpp='$CPP $CPPFLAGS'
 
7382
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7383
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7384
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7385
 
 
7386
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7387
/* end confdefs.h.  */
 
7388
 
 
7389
int
 
7390
main ()
 
7391
{
 
7392
 
 
7393
  ;
 
7394
  return 0;
 
7395
}
 
7396
_ACEOF
 
7397
if ac_fn_c_try_link "$LINENO"; then :
 
7398
  lt_cv_cc_needs_belf=yes
 
7399
else
 
7400
  lt_cv_cc_needs_belf=no
 
7401
fi
 
7402
rm -f core conftest.err conftest.$ac_objext \
 
7403
    conftest$ac_exeext conftest.$ac_ext
 
7404
     ac_ext=c
 
7405
ac_cpp='$CPP $CPPFLAGS'
 
7406
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7407
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7409
 
 
7410
fi
 
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7412
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7413
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7414
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7415
    CFLAGS="$SAVE_CFLAGS"
 
7416
  fi
 
7417
  ;;
 
7418
sparc*-*solaris*)
 
7419
  # Find out which ABI we are using.
 
7420
  echo 'int i;' > conftest.$ac_ext
 
7421
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7422
  (eval $ac_compile) 2>&5
 
7423
  ac_status=$?
 
7424
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7425
  test $ac_status = 0; }; then
 
7426
    case `/usr/bin/file conftest.o` in
 
7427
    *64-bit*)
 
7428
      case $lt_cv_prog_gnu_ld in
 
7429
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7430
      *)
 
7431
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7432
          LD="${LD-ld} -64"
 
7433
        fi
 
7434
        ;;
 
7435
      esac
 
7436
      ;;
 
7437
    esac
 
7438
  fi
 
7439
  rm -rf conftest*
 
7440
  ;;
 
7441
esac
 
7442
 
 
7443
need_locks="$enable_libtool_lock"
 
7444
 
 
7445
 
 
7446
  case $host_os in
 
7447
    rhapsody* | darwin*)
 
7448
    if test -n "$ac_tool_prefix"; then
 
7449
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7450
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7452
$as_echo_n "checking for $ac_word... " >&6; }
 
7453
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
7454
  $as_echo_n "(cached) " >&6
 
7455
else
 
7456
  if test -n "$DSYMUTIL"; then
 
7457
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7458
else
 
7459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7460
for as_dir in $PATH
 
7461
do
 
7462
  IFS=$as_save_IFS
 
7463
  test -z "$as_dir" && as_dir=.
 
7464
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7465
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7466
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7467
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7468
    break 2
 
7469
  fi
 
7470
done
 
7471
  done
 
7472
IFS=$as_save_IFS
 
7473
 
 
7474
fi
 
7475
fi
 
7476
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7477
if test -n "$DSYMUTIL"; then
 
7478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7479
$as_echo "$DSYMUTIL" >&6; }
 
7480
else
 
7481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7482
$as_echo "no" >&6; }
 
7483
fi
 
7484
 
 
7485
 
 
7486
fi
 
7487
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7488
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7489
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7490
set dummy dsymutil; ac_word=$2
 
7491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7492
$as_echo_n "checking for $ac_word... " >&6; }
 
7493
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
7494
  $as_echo_n "(cached) " >&6
 
7495
else
 
7496
  if test -n "$ac_ct_DSYMUTIL"; then
 
7497
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7498
else
 
7499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7500
for as_dir in $PATH
 
7501
do
 
7502
  IFS=$as_save_IFS
 
7503
  test -z "$as_dir" && as_dir=.
 
7504
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7506
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7507
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7508
    break 2
 
7509
  fi
 
7510
done
 
7511
  done
 
7512
IFS=$as_save_IFS
 
7513
 
 
7514
fi
 
7515
fi
 
7516
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7517
if test -n "$ac_ct_DSYMUTIL"; then
 
7518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7519
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7520
else
 
7521
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7522
$as_echo "no" >&6; }
 
7523
fi
 
7524
 
 
7525
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7526
    DSYMUTIL=":"
 
7527
  else
 
7528
    case $cross_compiling:$ac_tool_warned in
 
7529
yes:)
 
7530
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7531
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7532
ac_tool_warned=yes ;;
 
7533
esac
 
7534
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7535
  fi
 
7536
else
 
7537
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7538
fi
 
7539
 
 
7540
    if test -n "$ac_tool_prefix"; then
 
7541
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7542
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7544
$as_echo_n "checking for $ac_word... " >&6; }
 
7545
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
7546
  $as_echo_n "(cached) " >&6
 
7547
else
 
7548
  if test -n "$NMEDIT"; then
 
7549
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7550
else
 
7551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7552
for as_dir in $PATH
 
7553
do
 
7554
  IFS=$as_save_IFS
 
7555
  test -z "$as_dir" && as_dir=.
 
7556
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7557
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7558
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7559
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7560
    break 2
 
7561
  fi
 
7562
done
 
7563
  done
 
7564
IFS=$as_save_IFS
 
7565
 
 
7566
fi
 
7567
fi
 
7568
NMEDIT=$ac_cv_prog_NMEDIT
 
7569
if test -n "$NMEDIT"; then
 
7570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7571
$as_echo "$NMEDIT" >&6; }
 
7572
else
 
7573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7574
$as_echo "no" >&6; }
 
7575
fi
 
7576
 
 
7577
 
 
7578
fi
 
7579
if test -z "$ac_cv_prog_NMEDIT"; then
 
7580
  ac_ct_NMEDIT=$NMEDIT
 
7581
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7582
set dummy nmedit; ac_word=$2
 
7583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7584
$as_echo_n "checking for $ac_word... " >&6; }
 
7585
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
7586
  $as_echo_n "(cached) " >&6
 
7587
else
 
7588
  if test -n "$ac_ct_NMEDIT"; then
 
7589
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7590
else
 
7591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7592
for as_dir in $PATH
 
7593
do
 
7594
  IFS=$as_save_IFS
 
7595
  test -z "$as_dir" && as_dir=.
 
7596
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7598
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7599
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7600
    break 2
 
7601
  fi
 
7602
done
 
7603
  done
 
7604
IFS=$as_save_IFS
 
7605
 
 
7606
fi
 
7607
fi
 
7608
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7609
if test -n "$ac_ct_NMEDIT"; then
 
7610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7611
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7612
else
 
7613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7614
$as_echo "no" >&6; }
 
7615
fi
 
7616
 
 
7617
  if test "x$ac_ct_NMEDIT" = x; then
 
7618
    NMEDIT=":"
 
7619
  else
 
7620
    case $cross_compiling:$ac_tool_warned in
 
7621
yes:)
 
7622
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7623
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7624
ac_tool_warned=yes ;;
 
7625
esac
 
7626
    NMEDIT=$ac_ct_NMEDIT
 
7627
  fi
 
7628
else
 
7629
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7630
fi
 
7631
 
 
7632
    if test -n "$ac_tool_prefix"; then
 
7633
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7634
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7636
$as_echo_n "checking for $ac_word... " >&6; }
 
7637
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
7638
  $as_echo_n "(cached) " >&6
 
7639
else
 
7640
  if test -n "$LIPO"; then
 
7641
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7642
else
 
7643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7644
for as_dir in $PATH
 
7645
do
 
7646
  IFS=$as_save_IFS
 
7647
  test -z "$as_dir" && as_dir=.
 
7648
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7649
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7650
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7651
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7652
    break 2
 
7653
  fi
 
7654
done
 
7655
  done
 
7656
IFS=$as_save_IFS
 
7657
 
 
7658
fi
 
7659
fi
 
7660
LIPO=$ac_cv_prog_LIPO
 
7661
if test -n "$LIPO"; then
 
7662
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7663
$as_echo "$LIPO" >&6; }
 
7664
else
 
7665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7666
$as_echo "no" >&6; }
 
7667
fi
 
7668
 
 
7669
 
 
7670
fi
 
7671
if test -z "$ac_cv_prog_LIPO"; then
 
7672
  ac_ct_LIPO=$LIPO
 
7673
  # Extract the first word of "lipo", so it can be a program name with args.
 
7674
set dummy lipo; ac_word=$2
 
7675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7676
$as_echo_n "checking for $ac_word... " >&6; }
 
7677
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
7678
  $as_echo_n "(cached) " >&6
 
7679
else
 
7680
  if test -n "$ac_ct_LIPO"; then
 
7681
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7682
else
 
7683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7684
for as_dir in $PATH
 
7685
do
 
7686
  IFS=$as_save_IFS
 
7687
  test -z "$as_dir" && as_dir=.
 
7688
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7689
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7690
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7691
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7692
    break 2
 
7693
  fi
 
7694
done
 
7695
  done
 
7696
IFS=$as_save_IFS
 
7697
 
 
7698
fi
 
7699
fi
 
7700
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7701
if test -n "$ac_ct_LIPO"; then
 
7702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7703
$as_echo "$ac_ct_LIPO" >&6; }
 
7704
else
 
7705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7706
$as_echo "no" >&6; }
 
7707
fi
 
7708
 
 
7709
  if test "x$ac_ct_LIPO" = x; then
 
7710
    LIPO=":"
 
7711
  else
 
7712
    case $cross_compiling:$ac_tool_warned in
 
7713
yes:)
 
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7715
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7716
ac_tool_warned=yes ;;
 
7717
esac
 
7718
    LIPO=$ac_ct_LIPO
 
7719
  fi
 
7720
else
 
7721
  LIPO="$ac_cv_prog_LIPO"
 
7722
fi
 
7723
 
 
7724
    if test -n "$ac_tool_prefix"; then
 
7725
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7726
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7728
$as_echo_n "checking for $ac_word... " >&6; }
 
7729
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
7730
  $as_echo_n "(cached) " >&6
 
7731
else
 
7732
  if test -n "$OTOOL"; then
 
7733
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7734
else
 
7735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7736
for as_dir in $PATH
 
7737
do
 
7738
  IFS=$as_save_IFS
 
7739
  test -z "$as_dir" && as_dir=.
 
7740
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7742
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7743
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7744
    break 2
 
7745
  fi
 
7746
done
 
7747
  done
 
7748
IFS=$as_save_IFS
 
7749
 
 
7750
fi
 
7751
fi
 
7752
OTOOL=$ac_cv_prog_OTOOL
 
7753
if test -n "$OTOOL"; then
 
7754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7755
$as_echo "$OTOOL" >&6; }
 
7756
else
 
7757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7758
$as_echo "no" >&6; }
 
7759
fi
 
7760
 
 
7761
 
 
7762
fi
 
7763
if test -z "$ac_cv_prog_OTOOL"; then
 
7764
  ac_ct_OTOOL=$OTOOL
 
7765
  # Extract the first word of "otool", so it can be a program name with args.
 
7766
set dummy otool; ac_word=$2
 
7767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7768
$as_echo_n "checking for $ac_word... " >&6; }
 
7769
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
7770
  $as_echo_n "(cached) " >&6
 
7771
else
 
7772
  if test -n "$ac_ct_OTOOL"; then
 
7773
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7774
else
 
7775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7776
for as_dir in $PATH
 
7777
do
 
7778
  IFS=$as_save_IFS
 
7779
  test -z "$as_dir" && as_dir=.
 
7780
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7781
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7782
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7783
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7784
    break 2
 
7785
  fi
 
7786
done
 
7787
  done
 
7788
IFS=$as_save_IFS
 
7789
 
 
7790
fi
 
7791
fi
 
7792
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7793
if test -n "$ac_ct_OTOOL"; then
 
7794
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7795
$as_echo "$ac_ct_OTOOL" >&6; }
 
7796
else
 
7797
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7798
$as_echo "no" >&6; }
 
7799
fi
 
7800
 
 
7801
  if test "x$ac_ct_OTOOL" = x; then
 
7802
    OTOOL=":"
 
7803
  else
 
7804
    case $cross_compiling:$ac_tool_warned in
 
7805
yes:)
 
7806
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7807
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7808
ac_tool_warned=yes ;;
 
7809
esac
 
7810
    OTOOL=$ac_ct_OTOOL
 
7811
  fi
 
7812
else
 
7813
  OTOOL="$ac_cv_prog_OTOOL"
 
7814
fi
 
7815
 
 
7816
    if test -n "$ac_tool_prefix"; then
 
7817
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7818
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7820
$as_echo_n "checking for $ac_word... " >&6; }
 
7821
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
7822
  $as_echo_n "(cached) " >&6
 
7823
else
 
7824
  if test -n "$OTOOL64"; then
 
7825
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7826
else
 
7827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7828
for as_dir in $PATH
 
7829
do
 
7830
  IFS=$as_save_IFS
 
7831
  test -z "$as_dir" && as_dir=.
 
7832
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7833
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7834
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7835
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7836
    break 2
 
7837
  fi
 
7838
done
 
7839
  done
 
7840
IFS=$as_save_IFS
 
7841
 
 
7842
fi
 
7843
fi
 
7844
OTOOL64=$ac_cv_prog_OTOOL64
 
7845
if test -n "$OTOOL64"; then
 
7846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7847
$as_echo "$OTOOL64" >&6; }
 
7848
else
 
7849
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7850
$as_echo "no" >&6; }
 
7851
fi
 
7852
 
 
7853
 
 
7854
fi
 
7855
if test -z "$ac_cv_prog_OTOOL64"; then
 
7856
  ac_ct_OTOOL64=$OTOOL64
 
7857
  # Extract the first word of "otool64", so it can be a program name with args.
 
7858
set dummy otool64; ac_word=$2
 
7859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7860
$as_echo_n "checking for $ac_word... " >&6; }
 
7861
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
7862
  $as_echo_n "(cached) " >&6
 
7863
else
 
7864
  if test -n "$ac_ct_OTOOL64"; then
 
7865
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7866
else
 
7867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7868
for as_dir in $PATH
 
7869
do
 
7870
  IFS=$as_save_IFS
 
7871
  test -z "$as_dir" && as_dir=.
 
7872
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7873
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7874
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7875
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7876
    break 2
 
7877
  fi
 
7878
done
 
7879
  done
 
7880
IFS=$as_save_IFS
 
7881
 
 
7882
fi
 
7883
fi
 
7884
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7885
if test -n "$ac_ct_OTOOL64"; then
 
7886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7887
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7888
else
 
7889
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7890
$as_echo "no" >&6; }
 
7891
fi
 
7892
 
 
7893
  if test "x$ac_ct_OTOOL64" = x; then
 
7894
    OTOOL64=":"
 
7895
  else
 
7896
    case $cross_compiling:$ac_tool_warned in
 
7897
yes:)
 
7898
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7899
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7900
ac_tool_warned=yes ;;
 
7901
esac
 
7902
    OTOOL64=$ac_ct_OTOOL64
 
7903
  fi
 
7904
else
 
7905
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7906
fi
 
7907
 
 
7908
 
 
7909
 
 
7910
 
 
7911
 
 
7912
 
 
7913
 
 
7914
 
 
7915
 
 
7916
 
 
7917
 
 
7918
 
 
7919
 
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7935
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7936
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
7937
  $as_echo_n "(cached) " >&6
 
7938
else
 
7939
  lt_cv_apple_cc_single_mod=no
 
7940
      if test -z "${LT_MULTI_MODULE}"; then
 
7941
        # By default we will add the -single_module flag. You can override
 
7942
        # by either setting the environment variable LT_MULTI_MODULE
 
7943
        # non-empty at configure time, or by adding -multi_module to the
 
7944
        # link flags.
 
7945
        rm -rf libconftest.dylib*
 
7946
        echo "int foo(void){return 1;}" > conftest.c
 
7947
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7948
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7949
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7950
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7951
        _lt_result=$?
 
7952
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7953
          lt_cv_apple_cc_single_mod=yes
 
7954
        else
 
7955
          cat conftest.err >&5
 
7956
        fi
 
7957
        rm -rf libconftest.dylib*
 
7958
        rm -f conftest.*
 
7959
      fi
 
7960
fi
 
7961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7962
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7963
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7964
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7965
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
7966
  $as_echo_n "(cached) " >&6
 
7967
else
 
7968
  lt_cv_ld_exported_symbols_list=no
 
7969
      save_LDFLAGS=$LDFLAGS
 
7970
      echo "_main" > conftest.sym
 
7971
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7972
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7973
/* end confdefs.h.  */
 
7974
 
 
7975
int
 
7976
main ()
 
7977
{
 
7978
 
 
7979
  ;
 
7980
  return 0;
 
7981
}
 
7982
_ACEOF
 
7983
if ac_fn_c_try_link "$LINENO"; then :
 
7984
  lt_cv_ld_exported_symbols_list=yes
 
7985
else
 
7986
  lt_cv_ld_exported_symbols_list=no
 
7987
fi
 
7988
rm -f core conftest.err conftest.$ac_objext \
 
7989
    conftest$ac_exeext conftest.$ac_ext
 
7990
        LDFLAGS="$save_LDFLAGS"
 
7991
 
 
7992
fi
 
7993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7994
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7995
    case $host_os in
 
7996
    rhapsody* | darwin1.[012])
 
7997
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7998
    darwin1.*)
 
7999
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8000
    darwin*) # darwin 5.x on
 
8001
      # if running on 10.5 or later, the deployment target defaults
 
8002
      # to the OS version, if on x86, and 10.4, the deployment
 
8003
      # target defaults to 10.4. Don't you love it?
 
8004
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8005
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8006
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8007
        10.[012]*)
 
8008
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8009
        10.*)
 
8010
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8011
      esac
 
8012
    ;;
 
8013
  esac
 
8014
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8015
      _lt_dar_single_mod='$single_module'
 
8016
    fi
 
8017
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8018
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8019
    else
 
8020
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8021
    fi
 
8022
    if test "$DSYMUTIL" != ":"; then
 
8023
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8024
    else
 
8025
      _lt_dsymutil=
 
8026
    fi
 
8027
    ;;
 
8028
  esac
 
8029
 
 
8030
for ac_header in dlfcn.h
 
8031
do :
 
8032
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8033
"
 
8034
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
8035
  cat >>confdefs.h <<_ACEOF
 
8036
#define HAVE_DLFCN_H 1
 
8037
_ACEOF
 
8038
 
 
8039
fi
 
8040
 
 
8041
done
 
8042
 
 
8043
 
 
8044
 
 
8045
# Set options
 
8046
 
 
8047
 
 
8048
 
 
8049
        enable_dlopen=no
 
8050
 
 
8051
 
 
8052
  enable_win32_dll=no
 
8053
 
 
8054
 
 
8055
            # Check whether --enable-shared was given.
 
8056
if test "${enable_shared+set}" = set; then :
 
8057
  enableval=$enable_shared; p=${PACKAGE-default}
 
8058
    case $enableval in
 
8059
    yes) enable_shared=yes ;;
 
8060
    no) enable_shared=no ;;
 
8061
    *)
 
8062
      enable_shared=no
 
8063
      # Look at the argument we got.  We use all the common list separators.
 
8064
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8065
      for pkg in $enableval; do
 
8066
        IFS="$lt_save_ifs"
 
8067
        if test "X$pkg" = "X$p"; then
 
8068
          enable_shared=yes
 
8069
        fi
 
8070
      done
 
8071
      IFS="$lt_save_ifs"
 
8072
      ;;
 
8073
    esac
 
8074
else
 
8075
  enable_shared=yes
 
8076
fi
 
8077
 
 
8078
 
 
8079
 
 
8080
 
 
8081
 
 
8082
 
 
8083
 
 
8084
 
 
8085
 
 
8086
  # Check whether --enable-static was given.
 
8087
if test "${enable_static+set}" = set; then :
 
8088
  enableval=$enable_static; p=${PACKAGE-default}
 
8089
    case $enableval in
 
8090
    yes) enable_static=yes ;;
 
8091
    no) enable_static=no ;;
 
8092
    *)
 
8093
     enable_static=no
 
8094
      # Look at the argument we got.  We use all the common list separators.
 
8095
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8096
      for pkg in $enableval; do
 
8097
        IFS="$lt_save_ifs"
 
8098
        if test "X$pkg" = "X$p"; then
 
8099
          enable_static=yes
 
8100
        fi
 
8101
      done
 
8102
      IFS="$lt_save_ifs"
 
8103
      ;;
 
8104
    esac
 
8105
else
 
8106
  enable_static=yes
 
8107
fi
 
8108
 
 
8109
 
 
8110
 
 
8111
 
 
8112
 
 
8113
 
 
8114
 
 
8115
 
 
8116
 
 
8117
 
 
8118
# Check whether --with-pic was given.
 
8119
if test "${with_pic+set}" = set; then :
 
8120
  withval=$with_pic; pic_mode="$withval"
 
8121
else
 
8122
  pic_mode=default
 
8123
fi
 
8124
 
 
8125
 
 
8126
test -z "$pic_mode" && pic_mode=default
 
8127
 
 
8128
 
 
8129
 
 
8130
 
 
8131
 
 
8132
 
 
8133
 
 
8134
  # Check whether --enable-fast-install was given.
 
8135
if test "${enable_fast_install+set}" = set; then :
 
8136
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8137
    case $enableval in
 
8138
    yes) enable_fast_install=yes ;;
 
8139
    no) enable_fast_install=no ;;
 
8140
    *)
 
8141
      enable_fast_install=no
 
8142
      # Look at the argument we got.  We use all the common list separators.
 
8143
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8144
      for pkg in $enableval; do
 
8145
        IFS="$lt_save_ifs"
 
8146
        if test "X$pkg" = "X$p"; then
 
8147
          enable_fast_install=yes
 
8148
        fi
 
8149
      done
 
8150
      IFS="$lt_save_ifs"
 
8151
      ;;
 
8152
    esac
 
8153
else
 
8154
  enable_fast_install=yes
 
8155
fi
 
8156
 
 
8157
 
 
8158
 
 
8159
 
 
8160
 
 
8161
 
 
8162
 
 
8163
 
 
8164
 
 
8165
 
 
8166
 
 
8167
# This can be used to rebuild libtool when needed
 
8168
LIBTOOL_DEPS="$ltmain"
 
8169
 
 
8170
# Always use our own libtool.
 
8171
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8172
 
 
8173
 
 
8174
 
 
8175
 
 
8176
 
 
8177
 
 
8178
 
 
8179
 
 
8180
 
 
8181
 
 
8182
 
 
8183
 
 
8184
 
 
8185
 
 
8186
 
 
8187
 
 
8188
 
 
8189
 
 
8190
 
 
8191
 
 
8192
 
 
8193
 
 
8194
 
 
8195
 
 
8196
 
 
8197
test -z "$LN_S" && LN_S="ln -s"
 
8198
 
 
8199
 
 
8200
 
 
8201
 
 
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
 
 
8209
 
 
8210
 
 
8211
 
 
8212
if test -n "${ZSH_VERSION+set}" ; then
 
8213
   setopt NO_GLOB_SUBST
 
8214
fi
 
8215
 
 
8216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8217
$as_echo_n "checking for objdir... " >&6; }
 
8218
if test "${lt_cv_objdir+set}" = set; then :
 
8219
  $as_echo_n "(cached) " >&6
 
8220
else
 
8221
  rm -f .libs 2>/dev/null
 
8222
mkdir .libs 2>/dev/null
 
8223
if test -d .libs; then
 
8224
  lt_cv_objdir=.libs
 
8225
else
 
8226
  # MS-DOS does not allow filenames that begin with a dot.
 
8227
  lt_cv_objdir=_libs
 
8228
fi
 
8229
rmdir .libs 2>/dev/null
 
8230
fi
 
8231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8232
$as_echo "$lt_cv_objdir" >&6; }
 
8233
objdir=$lt_cv_objdir
 
8234
 
 
8235
 
 
8236
 
 
8237
 
 
8238
 
 
8239
cat >>confdefs.h <<_ACEOF
 
8240
#define LT_OBJDIR "$lt_cv_objdir/"
 
8241
_ACEOF
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
 
 
8247
 
 
8248
 
 
8249
 
 
8250
 
 
8251
 
 
8252
 
 
8253
 
 
8254
 
 
8255
 
 
8256
 
 
8257
 
 
8258
 
 
8259
case $host_os in
 
8260
aix3*)
 
8261
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8262
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8263
  # vanish in a puff of smoke.
 
8264
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8265
    COLLECT_NAMES=
 
8266
    export COLLECT_NAMES
 
8267
  fi
 
8268
  ;;
 
8269
esac
 
8270
 
 
8271
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8272
# metacharacters that are still active within double-quoted strings.
 
8273
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
8274
 
 
8275
# Same as above, but do not quote variable references.
 
8276
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
8277
 
 
8278
# Sed substitution to delay expansion of an escaped shell variable in a
 
8279
# double_quote_subst'ed string.
 
8280
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8281
 
 
8282
# Sed substitution to delay expansion of an escaped single quote.
 
8283
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
8284
 
 
8285
# Sed substitution to avoid accidental globbing in evaled expressions
 
8286
no_glob_subst='s/\*/\\\*/g'
 
8287
 
 
8288
# Global variables:
 
8289
ofile=libtool
 
8290
can_build_shared=yes
 
8291
 
 
8292
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8293
# which needs '.lib').
 
8294
libext=a
 
8295
 
 
8296
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8297
 
 
8298
old_CC="$CC"
 
8299
old_CFLAGS="$CFLAGS"
 
8300
 
 
8301
# Set sane defaults for various variables
 
8302
test -z "$CC" && CC=cc
 
8303
test -z "$LTCC" && LTCC=$CC
 
8304
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8305
test -z "$LD" && LD=ld
 
8306
test -z "$ac_objext" && ac_objext=o
 
8307
 
 
8308
for cc_temp in $compiler""; do
 
8309
  case $cc_temp in
 
8310
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8311
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8312
    \-*) ;;
 
8313
    *) break;;
 
8314
  esac
 
8315
done
 
8316
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8317
 
 
8318
 
 
8319
# Only perform the check for file, if the check method requires it
 
8320
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8321
case $deplibs_check_method in
 
8322
file_magic*)
 
8323
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8324
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8325
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8326
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8327
  $as_echo_n "(cached) " >&6
 
8328
else
 
8329
  case $MAGIC_CMD in
 
8330
[\\/*] |  ?:[\\/]*)
 
8331
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8332
  ;;
 
8333
*)
 
8334
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8335
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8336
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8337
  for ac_dir in $ac_dummy; do
 
8338
    IFS="$lt_save_ifs"
 
8339
    test -z "$ac_dir" && ac_dir=.
 
8340
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8341
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8342
      if test -n "$file_magic_test_file"; then
 
8343
        case $deplibs_check_method in
 
8344
        "file_magic "*)
 
8345
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8346
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8347
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8348
            $EGREP "$file_magic_regex" > /dev/null; then
 
8349
            :
 
8350
          else
 
8351
            cat <<_LT_EOF 1>&2
 
8352
 
 
8353
*** Warning: the command libtool uses to detect shared libraries,
 
8354
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8355
*** The result is that libtool may fail to recognize shared libraries
 
8356
*** as such.  This will affect the creation of libtool libraries that
 
8357
*** depend on shared libraries, but programs linked with such libtool
 
8358
*** libraries will work regardless of this problem.  Nevertheless, you
 
8359
*** may want to report the problem to your system manager and/or to
 
8360
*** bug-libtool@gnu.org
 
8361
 
 
8362
_LT_EOF
 
8363
          fi ;;
 
8364
        esac
 
8365
      fi
 
8366
      break
 
8367
    fi
 
8368
  done
 
8369
  IFS="$lt_save_ifs"
 
8370
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8371
  ;;
 
8372
esac
 
8373
fi
 
8374
 
 
8375
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8376
if test -n "$MAGIC_CMD"; then
 
8377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8378
$as_echo "$MAGIC_CMD" >&6; }
 
8379
else
 
8380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8381
$as_echo "no" >&6; }
 
8382
fi
 
8383
 
 
8384
 
 
8385
 
 
8386
 
 
8387
 
 
8388
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8389
  if test -n "$ac_tool_prefix"; then
 
8390
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8391
$as_echo_n "checking for file... " >&6; }
 
8392
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8393
  $as_echo_n "(cached) " >&6
 
8394
else
 
8395
  case $MAGIC_CMD in
 
8396
[\\/*] |  ?:[\\/]*)
 
8397
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8398
  ;;
 
8399
*)
 
8400
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8401
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8402
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8403
  for ac_dir in $ac_dummy; do
 
8404
    IFS="$lt_save_ifs"
 
8405
    test -z "$ac_dir" && ac_dir=.
 
8406
    if test -f $ac_dir/file; then
 
8407
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8408
      if test -n "$file_magic_test_file"; then
 
8409
        case $deplibs_check_method in
 
8410
        "file_magic "*)
 
8411
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8412
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8413
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8414
            $EGREP "$file_magic_regex" > /dev/null; then
 
8415
            :
 
8416
          else
 
8417
            cat <<_LT_EOF 1>&2
 
8418
 
 
8419
*** Warning: the command libtool uses to detect shared libraries,
 
8420
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8421
*** The result is that libtool may fail to recognize shared libraries
 
8422
*** as such.  This will affect the creation of libtool libraries that
 
8423
*** depend on shared libraries, but programs linked with such libtool
 
8424
*** libraries will work regardless of this problem.  Nevertheless, you
 
8425
*** may want to report the problem to your system manager and/or to
 
8426
*** bug-libtool@gnu.org
 
8427
 
 
8428
_LT_EOF
 
8429
          fi ;;
 
8430
        esac
 
8431
      fi
 
8432
      break
 
8433
    fi
 
8434
  done
 
8435
  IFS="$lt_save_ifs"
 
8436
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8437
  ;;
 
8438
esac
 
8439
fi
 
8440
 
 
8441
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8442
if test -n "$MAGIC_CMD"; then
 
8443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8444
$as_echo "$MAGIC_CMD" >&6; }
 
8445
else
 
8446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8447
$as_echo "no" >&6; }
 
8448
fi
 
8449
 
 
8450
 
 
8451
  else
 
8452
    MAGIC_CMD=:
 
8453
  fi
 
8454
fi
 
8455
 
 
8456
  fi
 
8457
  ;;
 
8458
esac
 
8459
 
 
8460
# Use C for the default configuration in the libtool script
 
8461
 
 
8462
lt_save_CC="$CC"
 
8463
ac_ext=c
 
8464
ac_cpp='$CPP $CPPFLAGS'
 
8465
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8466
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8468
 
 
8469
 
 
8470
# Source file extension for C test sources.
 
8471
ac_ext=c
 
8472
 
 
8473
# Object file extension for compiled C test sources.
 
8474
objext=o
 
8475
objext=$objext
 
8476
 
 
8477
# Code to be used in simple compile tests
 
8478
lt_simple_compile_test_code="int some_variable = 0;"
 
8479
 
 
8480
# Code to be used in simple link tests
 
8481
lt_simple_link_test_code='int main(){return(0);}'
 
8482
 
 
8483
 
 
8484
 
 
8485
 
 
8486
 
 
8487
 
 
8488
 
 
8489
# If no C compiler was specified, use CC.
 
8490
LTCC=${LTCC-"$CC"}
 
8491
 
 
8492
# If no C compiler flags were specified, use CFLAGS.
 
8493
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8494
 
 
8495
# Allow CC to be a program name with arguments.
 
8496
compiler=$CC
 
8497
 
 
8498
# Save the default compiler, since it gets overwritten when the other
 
8499
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8500
compiler_DEFAULT=$CC
 
8501
 
 
8502
# save warnings/boilerplate of simple test code
 
8503
ac_outfile=conftest.$ac_objext
 
8504
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8505
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8506
_lt_compiler_boilerplate=`cat conftest.err`
 
8507
$RM conftest*
 
8508
 
 
8509
ac_outfile=conftest.$ac_objext
 
8510
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8511
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8512
_lt_linker_boilerplate=`cat conftest.err`
 
8513
$RM -r conftest*
 
8514
 
 
8515
 
 
8516
if test -n "$compiler"; then
 
8517
 
 
8518
lt_prog_compiler_no_builtin_flag=
 
8519
 
 
8520
if test "$GCC" = yes; then
 
8521
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8522
 
 
8523
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8524
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8525
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
8526
  $as_echo_n "(cached) " >&6
 
8527
else
 
8528
  lt_cv_prog_compiler_rtti_exceptions=no
 
8529
   ac_outfile=conftest.$ac_objext
 
8530
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8531
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8532
   # Insert the option either (1) after the last *FLAGS variable, or
 
8533
   # (2) before a word containing "conftest.", or (3) at the end.
 
8534
   # Note that $ac_compile itself does not contain backslashes and begins
 
8535
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8536
   # The option is referenced via a variable to avoid confusing sed.
 
8537
   lt_compile=`echo "$ac_compile" | $SED \
 
8538
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8539
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8540
   -e 's:$: $lt_compiler_flag:'`
 
8541
   (eval echo "\"\$as_me:8541: $lt_compile\"" >&5)
 
8542
   (eval "$lt_compile" 2>conftest.err)
 
8543
   ac_status=$?
 
8544
   cat conftest.err >&5
 
8545
   echo "$as_me:8545: \$? = $ac_status" >&5
 
8546
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8547
     # The compiler can only warn and ignore the option if not recognized
 
8548
     # So say no if there are warnings other than the usual output.
 
8549
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8550
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8551
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8552
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8553
     fi
 
8554
   fi
 
8555
   $RM conftest*
 
8556
 
 
8557
fi
 
8558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8559
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8560
 
 
8561
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8562
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8563
else
 
8564
    :
 
8565
fi
 
8566
 
 
8567
fi
 
8568
 
 
8569
 
 
8570
 
 
8571
 
 
8572
 
 
8573
 
 
8574
  lt_prog_compiler_wl=
 
8575
lt_prog_compiler_pic=
 
8576
lt_prog_compiler_static=
 
8577
 
 
8578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8579
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8580
 
 
8581
  if test "$GCC" = yes; then
 
8582
    lt_prog_compiler_wl='-Wl,'
 
8583
    lt_prog_compiler_static='-static'
 
8584
 
 
8585
    case $host_os in
 
8586
      aix*)
 
8587
      # All AIX code is PIC.
 
8588
      if test "$host_cpu" = ia64; then
 
8589
        # AIX 5 now supports IA64 processor
 
8590
        lt_prog_compiler_static='-Bstatic'
 
8591
      fi
 
8592
      ;;
 
8593
 
 
8594
    amigaos*)
 
8595
      case $host_cpu in
 
8596
      powerpc)
 
8597
            # see comment about AmigaOS4 .so support
 
8598
            lt_prog_compiler_pic='-fPIC'
 
8599
        ;;
 
8600
      m68k)
 
8601
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8602
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8603
            # like `-m68040'.
 
8604
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8605
        ;;
 
8606
      esac
 
8607
      ;;
 
8608
 
 
8609
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8610
      # PIC is the default for these OSes.
 
8611
      ;;
 
8612
 
 
8613
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8614
      # This hack is so that the source file can tell whether it is being
 
8615
      # built for inclusion in a dll (and should export symbols for example).
 
8616
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8617
      # (--disable-auto-import) libraries
 
8618
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8619
      ;;
 
8620
 
 
8621
    darwin* | rhapsody*)
 
8622
      # PIC is the default on this platform
 
8623
      # Common symbols not allowed in MH_DYLIB files
 
8624
      lt_prog_compiler_pic='-fno-common'
 
8625
      ;;
 
8626
 
 
8627
    hpux*)
 
8628
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8629
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8630
      # sets the default TLS model and affects inlining.
 
8631
      case $host_cpu in
 
8632
      hppa*64*)
 
8633
        # +Z the default
 
8634
        ;;
 
8635
      *)
 
8636
        lt_prog_compiler_pic='-fPIC'
 
8637
        ;;
 
8638
      esac
 
8639
      ;;
 
8640
 
 
8641
    interix[3-9]*)
 
8642
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8643
      # Instead, we relocate shared libraries at runtime.
 
8644
      ;;
 
8645
 
 
8646
    msdosdjgpp*)
 
8647
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8648
      # on systems that don't support them.
 
8649
      lt_prog_compiler_can_build_shared=no
 
8650
      enable_shared=no
 
8651
      ;;
 
8652
 
 
8653
    *nto* | *qnx*)
 
8654
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8655
      # it will coredump.
 
8656
      lt_prog_compiler_pic='-fPIC -shared'
 
8657
      ;;
 
8658
 
 
8659
    sysv4*MP*)
 
8660
      if test -d /usr/nec; then
 
8661
        lt_prog_compiler_pic=-Kconform_pic
 
8662
      fi
 
8663
      ;;
 
8664
 
 
8665
    *)
 
8666
      lt_prog_compiler_pic='-fPIC'
 
8667
      ;;
 
8668
    esac
 
8669
  else
 
8670
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8671
    case $host_os in
 
8672
    aix*)
 
8673
      lt_prog_compiler_wl='-Wl,'
 
8674
      if test "$host_cpu" = ia64; then
 
8675
        # AIX 5 now supports IA64 processor
 
8676
        lt_prog_compiler_static='-Bstatic'
 
8677
      else
 
8678
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8679
      fi
 
8680
      ;;
 
8681
 
 
8682
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8683
      # This hack is so that the source file can tell whether it is being
 
8684
      # built for inclusion in a dll (and should export symbols for example).
 
8685
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8686
      ;;
 
8687
 
 
8688
    hpux9* | hpux10* | hpux11*)
 
8689
      lt_prog_compiler_wl='-Wl,'
 
8690
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8691
      # not for PA HP-UX.
 
8692
      case $host_cpu in
 
8693
      hppa*64*|ia64*)
 
8694
        # +Z the default
 
8695
        ;;
 
8696
      *)
 
8697
        lt_prog_compiler_pic='+Z'
 
8698
        ;;
 
8699
      esac
 
8700
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8701
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8702
      ;;
 
8703
 
 
8704
    irix5* | irix6* | nonstopux*)
 
8705
      lt_prog_compiler_wl='-Wl,'
 
8706
      # PIC (with -KPIC) is the default.
 
8707
      lt_prog_compiler_static='-non_shared'
 
8708
      ;;
 
8709
 
 
8710
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8711
      case $cc_basename in
 
8712
      # old Intel for x86_64 which still supported -KPIC.
 
8713
      ecc*)
 
8714
        lt_prog_compiler_wl='-Wl,'
 
8715
        lt_prog_compiler_pic='-KPIC'
 
8716
        lt_prog_compiler_static='-static'
 
8717
        ;;
 
8718
      # icc used to be incompatible with GCC.
 
8719
      # ICC 10 doesn't accept -KPIC any more.
 
8720
      icc* | ifort*)
 
8721
        lt_prog_compiler_wl='-Wl,'
 
8722
        lt_prog_compiler_pic='-fPIC'
 
8723
        lt_prog_compiler_static='-static'
 
8724
        ;;
 
8725
      # Lahey Fortran 8.1.
 
8726
      lf95*)
 
8727
        lt_prog_compiler_wl='-Wl,'
 
8728
        lt_prog_compiler_pic='--shared'
 
8729
        lt_prog_compiler_static='--static'
 
8730
        ;;
 
8731
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8732
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8733
        # which looks to be a dead project)
 
8734
        lt_prog_compiler_wl='-Wl,'
 
8735
        lt_prog_compiler_pic='-fpic'
 
8736
        lt_prog_compiler_static='-Bstatic'
 
8737
        ;;
 
8738
      ccc*)
 
8739
        lt_prog_compiler_wl='-Wl,'
 
8740
        # All Alpha code is PIC.
 
8741
        lt_prog_compiler_static='-non_shared'
 
8742
        ;;
 
8743
      xl*)
 
8744
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8745
        lt_prog_compiler_wl='-Wl,'
 
8746
        lt_prog_compiler_pic='-qpic'
 
8747
        lt_prog_compiler_static='-qstaticlink'
 
8748
        ;;
 
8749
      *)
 
8750
        case `$CC -V 2>&1 | sed 5q` in
 
8751
        *Sun\ C*)
 
8752
          # Sun C 5.9
 
8753
          lt_prog_compiler_pic='-KPIC'
 
8754
          lt_prog_compiler_static='-Bstatic'
 
8755
          lt_prog_compiler_wl='-Wl,'
 
8756
          ;;
 
8757
        *Sun\ F*)
 
8758
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8759
          lt_prog_compiler_pic='-KPIC'
 
8760
          lt_prog_compiler_static='-Bstatic'
 
8761
          lt_prog_compiler_wl=''
 
8762
          ;;
 
8763
        esac
 
8764
        ;;
 
8765
      esac
 
8766
      ;;
 
8767
 
 
8768
    newsos6)
 
8769
      lt_prog_compiler_pic='-KPIC'
 
8770
      lt_prog_compiler_static='-Bstatic'
 
8771
      ;;
 
8772
 
 
8773
    *nto* | *qnx*)
 
8774
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8775
      # it will coredump.
 
8776
      lt_prog_compiler_pic='-fPIC -shared'
 
8777
      ;;
 
8778
 
 
8779
    osf3* | osf4* | osf5*)
 
8780
      lt_prog_compiler_wl='-Wl,'
 
8781
      # All OSF/1 code is PIC.
 
8782
      lt_prog_compiler_static='-non_shared'
 
8783
      ;;
 
8784
 
 
8785
    rdos*)
 
8786
      lt_prog_compiler_static='-non_shared'
 
8787
      ;;
 
8788
 
 
8789
    solaris*)
 
8790
      lt_prog_compiler_pic='-KPIC'
 
8791
      lt_prog_compiler_static='-Bstatic'
 
8792
      case $cc_basename in
 
8793
      f77* | f90* | f95*)
 
8794
        lt_prog_compiler_wl='-Qoption ld ';;
 
8795
      *)
 
8796
        lt_prog_compiler_wl='-Wl,';;
 
8797
      esac
 
8798
      ;;
 
8799
 
 
8800
    sunos4*)
 
8801
      lt_prog_compiler_wl='-Qoption ld '
 
8802
      lt_prog_compiler_pic='-PIC'
 
8803
      lt_prog_compiler_static='-Bstatic'
 
8804
      ;;
 
8805
 
 
8806
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8807
      lt_prog_compiler_wl='-Wl,'
 
8808
      lt_prog_compiler_pic='-KPIC'
 
8809
      lt_prog_compiler_static='-Bstatic'
 
8810
      ;;
 
8811
 
 
8812
    sysv4*MP*)
 
8813
      if test -d /usr/nec ;then
 
8814
        lt_prog_compiler_pic='-Kconform_pic'
 
8815
        lt_prog_compiler_static='-Bstatic'
 
8816
      fi
 
8817
      ;;
 
8818
 
 
8819
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8820
      lt_prog_compiler_wl='-Wl,'
 
8821
      lt_prog_compiler_pic='-KPIC'
 
8822
      lt_prog_compiler_static='-Bstatic'
 
8823
      ;;
 
8824
 
 
8825
    unicos*)
 
8826
      lt_prog_compiler_wl='-Wl,'
 
8827
      lt_prog_compiler_can_build_shared=no
 
8828
      ;;
 
8829
 
 
8830
    uts4*)
 
8831
      lt_prog_compiler_pic='-pic'
 
8832
      lt_prog_compiler_static='-Bstatic'
 
8833
      ;;
 
8834
 
 
8835
    *)
 
8836
      lt_prog_compiler_can_build_shared=no
 
8837
      ;;
 
8838
    esac
 
8839
  fi
 
8840
 
 
8841
case $host_os in
 
8842
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8843
  *djgpp*)
 
8844
    lt_prog_compiler_pic=
 
8845
    ;;
 
8846
  *)
 
8847
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8848
    ;;
 
8849
esac
 
8850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
8851
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8852
 
 
8853
 
 
8854
 
 
8855
 
 
8856
 
 
8857
 
 
8858
#
 
8859
# Check to make sure the PIC flag actually works.
 
8860
#
 
8861
if test -n "$lt_prog_compiler_pic"; then
 
8862
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8863
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8864
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8865
  $as_echo_n "(cached) " >&6
 
8866
else
 
8867
  lt_cv_prog_compiler_pic_works=no
 
8868
   ac_outfile=conftest.$ac_objext
 
8869
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8870
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8871
   # Insert the option either (1) after the last *FLAGS variable, or
 
8872
   # (2) before a word containing "conftest.", or (3) at the end.
 
8873
   # Note that $ac_compile itself does not contain backslashes and begins
 
8874
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8875
   # The option is referenced via a variable to avoid confusing sed.
 
8876
   lt_compile=`echo "$ac_compile" | $SED \
 
8877
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8878
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8879
   -e 's:$: $lt_compiler_flag:'`
 
8880
   (eval echo "\"\$as_me:8880: $lt_compile\"" >&5)
 
8881
   (eval "$lt_compile" 2>conftest.err)
 
8882
   ac_status=$?
 
8883
   cat conftest.err >&5
 
8884
   echo "$as_me:8884: \$? = $ac_status" >&5
 
8885
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8886
     # The compiler can only warn and ignore the option if not recognized
 
8887
     # So say no if there are warnings other than the usual output.
 
8888
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8889
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8890
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8891
       lt_cv_prog_compiler_pic_works=yes
 
8892
     fi
 
8893
   fi
 
8894
   $RM conftest*
 
8895
 
 
8896
fi
 
8897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8898
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8899
 
 
8900
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8901
    case $lt_prog_compiler_pic in
 
8902
     "" | " "*) ;;
 
8903
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8904
     esac
 
8905
else
 
8906
    lt_prog_compiler_pic=
 
8907
     lt_prog_compiler_can_build_shared=no
 
8908
fi
 
8909
 
 
8910
fi
 
8911
 
 
8912
 
 
8913
 
 
8914
 
 
8915
 
 
8916
 
 
8917
#
 
8918
# Check to make sure the static flag actually works.
 
8919
#
 
8920
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8922
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8923
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8924
  $as_echo_n "(cached) " >&6
 
8925
else
 
8926
  lt_cv_prog_compiler_static_works=no
 
8927
   save_LDFLAGS="$LDFLAGS"
 
8928
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8929
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8930
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8931
     # The linker can only warn and ignore the option if not recognized
 
8932
     # So say no if there are warnings
 
8933
     if test -s conftest.err; then
 
8934
       # Append any errors to the config.log.
 
8935
       cat conftest.err 1>&5
 
8936
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8937
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8938
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8939
         lt_cv_prog_compiler_static_works=yes
 
8940
       fi
 
8941
     else
 
8942
       lt_cv_prog_compiler_static_works=yes
 
8943
     fi
 
8944
   fi
 
8945
   $RM -r conftest*
 
8946
   LDFLAGS="$save_LDFLAGS"
 
8947
 
 
8948
fi
 
8949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8950
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8951
 
 
8952
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8953
    :
 
8954
else
 
8955
    lt_prog_compiler_static=
 
8956
fi
 
8957
 
 
8958
 
 
8959
 
 
8960
 
 
8961
 
 
8962
 
 
8963
 
 
8964
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8965
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8966
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8967
  $as_echo_n "(cached) " >&6
 
8968
else
 
8969
  lt_cv_prog_compiler_c_o=no
 
8970
   $RM -r conftest 2>/dev/null
 
8971
   mkdir conftest
 
8972
   cd conftest
 
8973
   mkdir out
 
8974
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8975
 
 
8976
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8977
   # Insert the option either (1) after the last *FLAGS variable, or
 
8978
   # (2) before a word containing "conftest.", or (3) at the end.
 
8979
   # Note that $ac_compile itself does not contain backslashes and begins
 
8980
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8981
   lt_compile=`echo "$ac_compile" | $SED \
 
8982
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8983
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8984
   -e 's:$: $lt_compiler_flag:'`
 
8985
   (eval echo "\"\$as_me:8985: $lt_compile\"" >&5)
 
8986
   (eval "$lt_compile" 2>out/conftest.err)
 
8987
   ac_status=$?
 
8988
   cat out/conftest.err >&5
 
8989
   echo "$as_me:8989: \$? = $ac_status" >&5
 
8990
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8991
   then
 
8992
     # The compiler can only warn and ignore the option if not recognized
 
8993
     # So say no if there are warnings
 
8994
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8995
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8996
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8997
       lt_cv_prog_compiler_c_o=yes
 
8998
     fi
 
8999
   fi
 
9000
   chmod u+w . 2>&5
 
9001
   $RM conftest*
 
9002
   # SGI C++ compiler will create directory out/ii_files/ for
 
9003
   # template instantiation
 
9004
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9005
   $RM out/* && rmdir out
 
9006
   cd ..
 
9007
   $RM -r conftest
 
9008
   $RM conftest*
 
9009
 
 
9010
fi
 
9011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9012
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9013
 
 
9014
 
 
9015
 
 
9016
 
 
9017
 
 
9018
 
 
9019
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9020
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9021
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
9022
  $as_echo_n "(cached) " >&6
 
9023
else
 
9024
  lt_cv_prog_compiler_c_o=no
 
9025
   $RM -r conftest 2>/dev/null
 
9026
   mkdir conftest
 
9027
   cd conftest
 
9028
   mkdir out
 
9029
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9030
 
 
9031
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9032
   # Insert the option either (1) after the last *FLAGS variable, or
 
9033
   # (2) before a word containing "conftest.", or (3) at the end.
 
9034
   # Note that $ac_compile itself does not contain backslashes and begins
 
9035
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9036
   lt_compile=`echo "$ac_compile" | $SED \
 
9037
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9038
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9039
   -e 's:$: $lt_compiler_flag:'`
 
9040
   (eval echo "\"\$as_me:9040: $lt_compile\"" >&5)
 
9041
   (eval "$lt_compile" 2>out/conftest.err)
 
9042
   ac_status=$?
 
9043
   cat out/conftest.err >&5
 
9044
   echo "$as_me:9044: \$? = $ac_status" >&5
 
9045
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9046
   then
 
9047
     # The compiler can only warn and ignore the option if not recognized
 
9048
     # So say no if there are warnings
 
9049
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9050
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9051
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9052
       lt_cv_prog_compiler_c_o=yes
 
9053
     fi
 
9054
   fi
 
9055
   chmod u+w . 2>&5
 
9056
   $RM conftest*
 
9057
   # SGI C++ compiler will create directory out/ii_files/ for
 
9058
   # template instantiation
 
9059
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9060
   $RM out/* && rmdir out
 
9061
   cd ..
 
9062
   $RM -r conftest
 
9063
   $RM conftest*
 
9064
 
 
9065
fi
 
9066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9067
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9068
 
 
9069
 
 
9070
 
 
9071
 
 
9072
hard_links="nottested"
 
9073
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9074
  # do not overwrite the value of need_locks provided by the user
 
9075
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9076
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9077
  hard_links=yes
 
9078
  $RM conftest*
 
9079
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9080
  touch conftest.a
 
9081
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9082
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9084
$as_echo "$hard_links" >&6; }
 
9085
  if test "$hard_links" = no; then
 
9086
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9087
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9088
    need_locks=warn
 
9089
  fi
 
9090
else
 
9091
  need_locks=no
 
9092
fi
 
9093
 
 
9094
 
 
9095
 
 
9096
 
 
9097
 
 
9098
 
 
9099
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9100
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9101
 
 
9102
  runpath_var=
 
9103
  allow_undefined_flag=
 
9104
  always_export_symbols=no
 
9105
  archive_cmds=
 
9106
  archive_expsym_cmds=
 
9107
  compiler_needs_object=no
 
9108
  enable_shared_with_static_runtimes=no
 
9109
  export_dynamic_flag_spec=
 
9110
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9111
  hardcode_automatic=no
 
9112
  hardcode_direct=no
 
9113
  hardcode_direct_absolute=no
 
9114
  hardcode_libdir_flag_spec=
 
9115
  hardcode_libdir_flag_spec_ld=
 
9116
  hardcode_libdir_separator=
 
9117
  hardcode_minus_L=no
 
9118
  hardcode_shlibpath_var=unsupported
 
9119
  inherit_rpath=no
 
9120
  link_all_deplibs=unknown
 
9121
  module_cmds=
 
9122
  module_expsym_cmds=
 
9123
  old_archive_from_new_cmds=
 
9124
  old_archive_from_expsyms_cmds=
 
9125
  thread_safe_flag_spec=
 
9126
  whole_archive_flag_spec=
 
9127
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9128
  # included in the symbol list
 
9129
  include_expsyms=
 
9130
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9131
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9132
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9133
  # as well as any symbol that contains `d'.
 
9134
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9135
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9136
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9137
  # the symbol is explicitly referenced.  Since portable code cannot
 
9138
  # rely on this symbol name, it's probably fine to never include it in
 
9139
  # preloaded symbol tables.
 
9140
  # Exclude shared library initialization/finalization symbols.
 
9141
  extract_expsyms_cmds=
 
9142
 
 
9143
  case $host_os in
 
9144
  cygwin* | mingw* | pw32* | cegcc*)
 
9145
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9146
    # When not using gcc, we currently assume that we are using
 
9147
    # Microsoft Visual C++.
 
9148
    if test "$GCC" != yes; then
 
9149
      with_gnu_ld=no
 
9150
    fi
 
9151
    ;;
 
9152
  interix*)
 
9153
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9154
    with_gnu_ld=yes
 
9155
    ;;
 
9156
  openbsd*)
 
9157
    with_gnu_ld=no
 
9158
    ;;
 
9159
  linux* | k*bsd*-gnu)
 
9160
    link_all_deplibs=no
 
9161
    ;;
 
9162
  esac
 
9163
 
 
9164
  ld_shlibs=yes
 
9165
  if test "$with_gnu_ld" = yes; then
 
9166
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9167
    wlarc='${wl}'
 
9168
 
 
9169
    # Set some defaults for GNU ld with shared library support. These
 
9170
    # are reset later if shared libraries are not supported. Putting them
 
9171
    # here allows them to be overridden if necessary.
 
9172
    runpath_var=LD_RUN_PATH
 
9173
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9174
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9175
    # ancient GNU ld didn't support --whole-archive et. al.
 
9176
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9177
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9178
    else
 
9179
      whole_archive_flag_spec=
 
9180
    fi
 
9181
    supports_anon_versioning=no
 
9182
    case `$LD -v 2>&1` in
 
9183
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9184
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9185
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9186
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9187
      *\ 2.11.*) ;; # other 2.11 versions
 
9188
      *) supports_anon_versioning=yes ;;
 
9189
    esac
 
9190
 
 
9191
    # See if GNU ld supports shared libraries.
 
9192
    case $host_os in
 
9193
    aix[3-9]*)
 
9194
      # On AIX/PPC, the GNU linker is very broken
 
9195
      if test "$host_cpu" != ia64; then
 
9196
        ld_shlibs=no
 
9197
        cat <<_LT_EOF 1>&2
 
9198
 
 
9199
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9200
*** to be unable to reliably create shared libraries on AIX.
 
9201
*** Therefore, libtool is disabling shared libraries support.  If you
 
9202
*** really care for shared libraries, you may want to modify your PATH
 
9203
*** so that a non-GNU linker is found, and then restart.
 
9204
 
 
9205
_LT_EOF
 
9206
      fi
 
9207
      ;;
 
9208
 
 
9209
    amigaos*)
 
9210
      case $host_cpu in
 
9211
      powerpc)
 
9212
            # see comment about AmigaOS4 .so support
 
9213
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9214
            archive_expsym_cmds=''
 
9215
        ;;
 
9216
      m68k)
 
9217
            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)'
 
9218
            hardcode_libdir_flag_spec='-L$libdir'
 
9219
            hardcode_minus_L=yes
 
9220
        ;;
 
9221
      esac
 
9222
      ;;
 
9223
 
 
9224
    beos*)
 
9225
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9226
        allow_undefined_flag=unsupported
 
9227
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9228
        # support --undefined.  This deserves some investigation.  FIXME
 
9229
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9230
      else
 
9231
        ld_shlibs=no
 
9232
      fi
 
9233
      ;;
 
9234
 
 
9235
    cygwin* | mingw* | pw32* | cegcc*)
 
9236
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9237
      # as there is no search path for DLLs.
 
9238
      hardcode_libdir_flag_spec='-L$libdir'
 
9239
      allow_undefined_flag=unsupported
 
9240
      always_export_symbols=no
 
9241
      enable_shared_with_static_runtimes=yes
 
9242
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9243
 
 
9244
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9245
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9246
        # If the export-symbols file already is a .def file (1st line
 
9247
        # is EXPORTS), use it as is; otherwise, prepend...
 
9248
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9249
          cp $export_symbols $output_objdir/$soname.def;
 
9250
        else
 
9251
          echo EXPORTS > $output_objdir/$soname.def;
 
9252
          cat $export_symbols >> $output_objdir/$soname.def;
 
9253
        fi~
 
9254
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9255
      else
 
9256
        ld_shlibs=no
 
9257
      fi
 
9258
      ;;
 
9259
 
 
9260
    interix[3-9]*)
 
9261
      hardcode_direct=no
 
9262
      hardcode_shlibpath_var=no
 
9263
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9264
      export_dynamic_flag_spec='${wl}-E'
 
9265
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9266
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9267
      # default) and relocated if they conflict, which is a slow very memory
 
9268
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9269
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9270
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9271
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9272
      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'
 
9273
      ;;
 
9274
 
 
9275
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9276
      tmp_diet=no
 
9277
      if test "$host_os" = linux-dietlibc; then
 
9278
        case $cc_basename in
 
9279
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9280
        esac
 
9281
      fi
 
9282
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9283
         && test "$tmp_diet" = no
 
9284
      then
 
9285
        tmp_addflag=
 
9286
        tmp_sharedflag='-shared'
 
9287
        case $cc_basename,$host_cpu in
 
9288
        pgcc*)                          # Portland Group C compiler
 
9289
          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'
 
9290
          tmp_addflag=' $pic_flag'
 
9291
          ;;
 
9292
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
9293
          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'
 
9294
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9295
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9296
          tmp_addflag=' -i_dynamic' ;;
 
9297
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9298
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9299
        ifc* | ifort*)                  # Intel Fortran compiler
 
9300
          tmp_addflag=' -nofor_main' ;;
 
9301
        lf95*)                          # Lahey Fortran 8.1
 
9302
          whole_archive_flag_spec=
 
9303
          tmp_sharedflag='--shared' ;;
 
9304
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
9305
          tmp_sharedflag='-qmkshrobj'
 
9306
          tmp_addflag= ;;
 
9307
        esac
 
9308
        case `$CC -V 2>&1 | sed 5q` in
 
9309
        *Sun\ C*)                       # Sun C 5.9
 
9310
          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'
 
9311
          compiler_needs_object=yes
 
9312
          tmp_sharedflag='-G' ;;
 
9313
        *Sun\ F*)                       # Sun Fortran 8.3
 
9314
          tmp_sharedflag='-G' ;;
 
9315
        esac
 
9316
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9317
 
 
9318
        if test "x$supports_anon_versioning" = xyes; then
 
9319
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9320
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9321
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9322
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9323
        fi
 
9324
 
 
9325
        case $cc_basename in
 
9326
        xlf*)
 
9327
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9328
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9329
          hardcode_libdir_flag_spec=
 
9330
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9331
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
9332
          if test "x$supports_anon_versioning" = xyes; then
 
9333
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9334
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9335
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9336
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9337
          fi
 
9338
          ;;
 
9339
        esac
 
9340
      else
 
9341
        ld_shlibs=no
 
9342
      fi
 
9343
      ;;
 
9344
 
 
9345
    netbsd* | netbsdelf*-gnu)
 
9346
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9347
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9348
        wlarc=
 
9349
      else
 
9350
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9351
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9352
      fi
 
9353
      ;;
 
9354
 
 
9355
    solaris*)
 
9356
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9357
        ld_shlibs=no
 
9358
        cat <<_LT_EOF 1>&2
 
9359
 
 
9360
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9361
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9362
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9363
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9364
*** your PATH or compiler configuration so that the native linker is
 
9365
*** used, and then restart.
 
9366
 
 
9367
_LT_EOF
 
9368
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9369
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9370
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9371
      else
 
9372
        ld_shlibs=no
 
9373
      fi
 
9374
      ;;
 
9375
 
 
9376
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9377
      case `$LD -v 2>&1` in
 
9378
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9379
        ld_shlibs=no
 
9380
        cat <<_LT_EOF 1>&2
 
9381
 
 
9382
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9383
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9384
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9385
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9386
*** your PATH or compiler configuration so that the native linker is
 
9387
*** used, and then restart.
 
9388
 
 
9389
_LT_EOF
 
9390
        ;;
 
9391
        *)
 
9392
          # For security reasons, it is highly recommended that you always
 
9393
          # use absolute paths for naming shared libraries, and exclude the
 
9394
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9395
          # requires that you compile everything twice, which is a pain.
 
9396
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9397
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9398
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9399
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9400
          else
 
9401
            ld_shlibs=no
 
9402
          fi
 
9403
        ;;
 
9404
      esac
 
9405
      ;;
 
9406
 
 
9407
    sunos4*)
 
9408
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9409
      wlarc=
 
9410
      hardcode_direct=yes
 
9411
      hardcode_shlibpath_var=no
 
9412
      ;;
 
9413
 
 
9414
    *)
 
9415
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9416
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9417
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9418
      else
 
9419
        ld_shlibs=no
 
9420
      fi
 
9421
      ;;
 
9422
    esac
 
9423
 
 
9424
    if test "$ld_shlibs" = no; then
 
9425
      runpath_var=
 
9426
      hardcode_libdir_flag_spec=
 
9427
      export_dynamic_flag_spec=
 
9428
      whole_archive_flag_spec=
 
9429
    fi
 
9430
  else
 
9431
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9432
    case $host_os in
 
9433
    aix3*)
 
9434
      allow_undefined_flag=unsupported
 
9435
      always_export_symbols=yes
 
9436
      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'
 
9437
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9438
      # are no directories specified by -L.
 
9439
      hardcode_minus_L=yes
 
9440
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9441
        # Neither direct hardcoding nor static linking is supported with a
 
9442
        # broken collect2.
 
9443
        hardcode_direct=unsupported
 
9444
      fi
 
9445
      ;;
 
9446
 
 
9447
    aix[4-9]*)
 
9448
      if test "$host_cpu" = ia64; then
 
9449
        # On IA64, the linker does run time linking by default, so we don't
 
9450
        # have to do anything special.
 
9451
        aix_use_runtimelinking=no
 
9452
        exp_sym_flag='-Bexport'
 
9453
        no_entry_flag=""
 
9454
      else
 
9455
        # If we're using GNU nm, then we don't want the "-C" option.
 
9456
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9457
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9458
          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'
 
9459
        else
 
9460
          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'
 
9461
        fi
 
9462
        aix_use_runtimelinking=no
 
9463
 
 
9464
        # Test if we are trying to use run time linking or normal
 
9465
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9466
        # need to do runtime linking.
 
9467
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9468
          for ld_flag in $LDFLAGS; do
 
9469
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9470
            aix_use_runtimelinking=yes
 
9471
            break
 
9472
          fi
 
9473
          done
 
9474
          ;;
 
9475
        esac
 
9476
 
 
9477
        exp_sym_flag='-bexport'
 
9478
        no_entry_flag='-bnoentry'
 
9479
      fi
 
9480
 
 
9481
      # When large executables or shared objects are built, AIX ld can
 
9482
      # have problems creating the table of contents.  If linking a library
 
9483
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9484
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9485
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9486
 
 
9487
      archive_cmds=''
 
9488
      hardcode_direct=yes
 
9489
      hardcode_direct_absolute=yes
 
9490
      hardcode_libdir_separator=':'
 
9491
      link_all_deplibs=yes
 
9492
      file_list_spec='${wl}-f,'
 
9493
 
 
9494
      if test "$GCC" = yes; then
 
9495
        case $host_os in aix4.[012]|aix4.[012].*)
 
9496
        # We only want to do this on AIX 4.2 and lower, the check
 
9497
        # below for broken collect2 doesn't work under 4.3+
 
9498
          collect2name=`${CC} -print-prog-name=collect2`
 
9499
          if test -f "$collect2name" &&
 
9500
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9501
          then
 
9502
          # We have reworked collect2
 
9503
          :
 
9504
          else
 
9505
          # We have old collect2
 
9506
          hardcode_direct=unsupported
 
9507
          # It fails to find uninstalled libraries when the uninstalled
 
9508
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9509
          # to unsupported forces relinking
 
9510
          hardcode_minus_L=yes
 
9511
          hardcode_libdir_flag_spec='-L$libdir'
 
9512
          hardcode_libdir_separator=
 
9513
          fi
 
9514
          ;;
 
9515
        esac
 
9516
        shared_flag='-shared'
 
9517
        if test "$aix_use_runtimelinking" = yes; then
 
9518
          shared_flag="$shared_flag "'${wl}-G'
 
9519
        fi
 
9520
        link_all_deplibs=no
 
9521
      else
 
9522
        # not using gcc
 
9523
        if test "$host_cpu" = ia64; then
 
9524
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9525
        # chokes on -Wl,-G. The following line is correct:
 
9526
          shared_flag='-G'
 
9527
        else
 
9528
          if test "$aix_use_runtimelinking" = yes; then
 
9529
            shared_flag='${wl}-G'
 
9530
          else
 
9531
            shared_flag='${wl}-bM:SRE'
 
9532
          fi
 
9533
        fi
 
9534
      fi
 
9535
 
 
9536
      export_dynamic_flag_spec='${wl}-bexpall'
 
9537
      # It seems that -bexpall does not export symbols beginning with
 
9538
      # underscore (_), so it is better to generate a list of symbols to export.
 
9539
      always_export_symbols=yes
 
9540
      if test "$aix_use_runtimelinking" = yes; then
 
9541
        # Warning - without using the other runtime loading flags (-brtl),
 
9542
        # -berok will link without error, but may produce a broken library.
 
9543
        allow_undefined_flag='-berok'
 
9544
        # Determine the default libpath from the value encoded in an
 
9545
        # empty executable.
 
9546
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9547
/* end confdefs.h.  */
 
9548
 
 
9549
int
 
9550
main ()
 
9551
{
 
9552
 
 
9553
  ;
 
9554
  return 0;
 
9555
}
 
9556
_ACEOF
 
9557
if ac_fn_c_try_link "$LINENO"; then :
 
9558
 
 
9559
lt_aix_libpath_sed='
 
9560
    /Import File Strings/,/^$/ {
 
9561
        /^0/ {
 
9562
            s/^0  *\(.*\)$/\1/
 
9563
            p
 
9564
        }
 
9565
    }'
 
9566
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9567
# Check for a 64-bit object if we didn't find anything.
 
9568
if test -z "$aix_libpath"; then
 
9569
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9570
fi
 
9571
fi
 
9572
rm -f core conftest.err conftest.$ac_objext \
 
9573
    conftest$ac_exeext conftest.$ac_ext
 
9574
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9575
 
 
9576
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9577
        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"
 
9578
      else
 
9579
        if test "$host_cpu" = ia64; then
 
9580
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9581
          allow_undefined_flag="-z nodefs"
 
9582
          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"
 
9583
        else
 
9584
         # Determine the default libpath from the value encoded in an
 
9585
         # empty executable.
 
9586
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9587
/* end confdefs.h.  */
 
9588
 
 
9589
int
 
9590
main ()
 
9591
{
 
9592
 
 
9593
  ;
 
9594
  return 0;
 
9595
}
 
9596
_ACEOF
 
9597
if ac_fn_c_try_link "$LINENO"; then :
 
9598
 
 
9599
lt_aix_libpath_sed='
 
9600
    /Import File Strings/,/^$/ {
 
9601
        /^0/ {
 
9602
            s/^0  *\(.*\)$/\1/
 
9603
            p
 
9604
        }
 
9605
    }'
 
9606
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9607
# Check for a 64-bit object if we didn't find anything.
 
9608
if test -z "$aix_libpath"; then
 
9609
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9610
fi
 
9611
fi
 
9612
rm -f core conftest.err conftest.$ac_objext \
 
9613
    conftest$ac_exeext conftest.$ac_ext
 
9614
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9615
 
 
9616
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9617
          # Warning - without using the other run time loading flags,
 
9618
          # -berok will link without error, but may produce a broken library.
 
9619
          no_undefined_flag=' ${wl}-bernotok'
 
9620
          allow_undefined_flag=' ${wl}-berok'
 
9621
          # Exported symbols can be pulled into shared objects from archives
 
9622
          whole_archive_flag_spec='$convenience'
 
9623
          archive_cmds_need_lc=yes
 
9624
          # This is similar to how AIX traditionally builds its shared libraries.
 
9625
          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'
 
9626
        fi
 
9627
      fi
 
9628
      ;;
 
9629
 
 
9630
    amigaos*)
 
9631
      case $host_cpu in
 
9632
      powerpc)
 
9633
            # see comment about AmigaOS4 .so support
 
9634
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9635
            archive_expsym_cmds=''
 
9636
        ;;
 
9637
      m68k)
 
9638
            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)'
 
9639
            hardcode_libdir_flag_spec='-L$libdir'
 
9640
            hardcode_minus_L=yes
 
9641
        ;;
 
9642
      esac
 
9643
      ;;
 
9644
 
 
9645
    bsdi[45]*)
 
9646
      export_dynamic_flag_spec=-rdynamic
 
9647
      ;;
 
9648
 
 
9649
    cygwin* | mingw* | pw32* | cegcc*)
 
9650
      # When not using gcc, we currently assume that we are using
 
9651
      # Microsoft Visual C++.
 
9652
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9653
      # no search path for DLLs.
 
9654
      hardcode_libdir_flag_spec=' '
 
9655
      allow_undefined_flag=unsupported
 
9656
      # Tell ltmain to make .lib files, not .a files.
 
9657
      libext=lib
 
9658
      # Tell ltmain to make .dll files, not .so files.
 
9659
      shrext_cmds=".dll"
 
9660
      # FIXME: Setting linknames here is a bad hack.
 
9661
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9662
      # The linker will automatically build a .lib file if we build a DLL.
 
9663
      old_archive_from_new_cmds='true'
 
9664
      # FIXME: Should let the user specify the lib program.
 
9665
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9666
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9667
      enable_shared_with_static_runtimes=yes
 
9668
      ;;
 
9669
 
 
9670
    darwin* | rhapsody*)
 
9671
 
 
9672
 
 
9673
  archive_cmds_need_lc=no
 
9674
  hardcode_direct=no
 
9675
  hardcode_automatic=yes
 
9676
  hardcode_shlibpath_var=unsupported
 
9677
  whole_archive_flag_spec=''
 
9678
  link_all_deplibs=yes
 
9679
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9680
  case $cc_basename in
 
9681
     ifort*) _lt_dar_can_shared=yes ;;
 
9682
     *) _lt_dar_can_shared=$GCC ;;
 
9683
  esac
 
9684
  if test "$_lt_dar_can_shared" = "yes"; then
 
9685
    output_verbose_link_cmd=echo
 
9686
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9687
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9688
    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}"
 
9689
    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}"
 
9690
 
 
9691
  else
 
9692
  ld_shlibs=no
 
9693
  fi
 
9694
 
 
9695
      ;;
 
9696
 
 
9697
    dgux*)
 
9698
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9699
      hardcode_libdir_flag_spec='-L$libdir'
 
9700
      hardcode_shlibpath_var=no
 
9701
      ;;
 
9702
 
 
9703
    freebsd1*)
 
9704
      ld_shlibs=no
 
9705
      ;;
 
9706
 
 
9707
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9708
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9709
    # does not break anything, and helps significantly (at the cost of a little
 
9710
    # extra space).
 
9711
    freebsd2.2*)
 
9712
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9713
      hardcode_libdir_flag_spec='-R$libdir'
 
9714
      hardcode_direct=yes
 
9715
      hardcode_shlibpath_var=no
 
9716
      ;;
 
9717
 
 
9718
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9719
    freebsd2*)
 
9720
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9721
      hardcode_direct=yes
 
9722
      hardcode_minus_L=yes
 
9723
      hardcode_shlibpath_var=no
 
9724
      ;;
 
9725
 
 
9726
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9727
    freebsd* | dragonfly*)
 
9728
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9729
      hardcode_libdir_flag_spec='-R$libdir'
 
9730
      hardcode_direct=yes
 
9731
      hardcode_shlibpath_var=no
 
9732
      ;;
 
9733
 
 
9734
    hpux9*)
 
9735
      if test "$GCC" = yes; then
 
9736
        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'
 
9737
      else
 
9738
        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'
 
9739
      fi
 
9740
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9741
      hardcode_libdir_separator=:
 
9742
      hardcode_direct=yes
 
9743
 
 
9744
      # hardcode_minus_L: Not really in the search PATH,
 
9745
      # but as the default location of the library.
 
9746
      hardcode_minus_L=yes
 
9747
      export_dynamic_flag_spec='${wl}-E'
 
9748
      ;;
 
9749
 
 
9750
    hpux10*)
 
9751
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9752
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9753
      else
 
9754
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9755
      fi
 
9756
      if test "$with_gnu_ld" = no; then
 
9757
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9758
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9759
        hardcode_libdir_separator=:
 
9760
        hardcode_direct=yes
 
9761
        hardcode_direct_absolute=yes
 
9762
        export_dynamic_flag_spec='${wl}-E'
 
9763
        # hardcode_minus_L: Not really in the search PATH,
 
9764
        # but as the default location of the library.
 
9765
        hardcode_minus_L=yes
 
9766
      fi
 
9767
      ;;
 
9768
 
 
9769
    hpux11*)
 
9770
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9771
        case $host_cpu in
 
9772
        hppa*64*)
 
9773
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9774
          ;;
 
9775
        ia64*)
 
9776
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9777
          ;;
 
9778
        *)
 
9779
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9780
          ;;
 
9781
        esac
 
9782
      else
 
9783
        case $host_cpu in
 
9784
        hppa*64*)
 
9785
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9786
          ;;
 
9787
        ia64*)
 
9788
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9789
          ;;
 
9790
        *)
 
9791
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9792
          ;;
 
9793
        esac
 
9794
      fi
 
9795
      if test "$with_gnu_ld" = no; then
 
9796
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9797
        hardcode_libdir_separator=:
 
9798
 
 
9799
        case $host_cpu in
 
9800
        hppa*64*|ia64*)
 
9801
          hardcode_direct=no
 
9802
          hardcode_shlibpath_var=no
 
9803
          ;;
 
9804
        *)
 
9805
          hardcode_direct=yes
 
9806
          hardcode_direct_absolute=yes
 
9807
          export_dynamic_flag_spec='${wl}-E'
 
9808
 
 
9809
          # hardcode_minus_L: Not really in the search PATH,
 
9810
          # but as the default location of the library.
 
9811
          hardcode_minus_L=yes
 
9812
          ;;
 
9813
        esac
 
9814
      fi
 
9815
      ;;
 
9816
 
 
9817
    irix5* | irix6* | nonstopux*)
 
9818
      if test "$GCC" = yes; then
 
9819
        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'
 
9820
        # Try to use the -exported_symbol ld option, if it does not
 
9821
        # work, assume that -exports_file does not work either and
 
9822
        # implicitly export all symbols.
 
9823
        save_LDFLAGS="$LDFLAGS"
 
9824
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9825
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9826
/* end confdefs.h.  */
 
9827
int foo(void) {}
 
9828
_ACEOF
 
9829
if ac_fn_c_try_link "$LINENO"; then :
 
9830
  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'
 
9831
 
 
9832
fi
 
9833
rm -f core conftest.err conftest.$ac_objext \
 
9834
    conftest$ac_exeext conftest.$ac_ext
 
9835
        LDFLAGS="$save_LDFLAGS"
 
9836
      else
 
9837
        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'
 
9838
        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'
 
9839
      fi
 
9840
      archive_cmds_need_lc='no'
 
9841
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9842
      hardcode_libdir_separator=:
 
9843
      inherit_rpath=yes
 
9844
      link_all_deplibs=yes
 
9845
      ;;
 
9846
 
 
9847
    netbsd* | netbsdelf*-gnu)
 
9848
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9849
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9850
      else
 
9851
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9852
      fi
 
9853
      hardcode_libdir_flag_spec='-R$libdir'
 
9854
      hardcode_direct=yes
 
9855
      hardcode_shlibpath_var=no
 
9856
      ;;
 
9857
 
 
9858
    newsos6)
 
9859
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9860
      hardcode_direct=yes
 
9861
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9862
      hardcode_libdir_separator=:
 
9863
      hardcode_shlibpath_var=no
 
9864
      ;;
 
9865
 
 
9866
    *nto* | *qnx*)
 
9867
      ;;
 
9868
 
 
9869
    openbsd*)
 
9870
      if test -f /usr/libexec/ld.so; then
 
9871
        hardcode_direct=yes
 
9872
        hardcode_shlibpath_var=no
 
9873
        hardcode_direct_absolute=yes
 
9874
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9875
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9876
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9877
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9878
          export_dynamic_flag_spec='${wl}-E'
 
9879
        else
 
9880
          case $host_os in
 
9881
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9882
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9883
             hardcode_libdir_flag_spec='-R$libdir'
 
9884
             ;;
 
9885
           *)
 
9886
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9887
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9888
             ;;
 
9889
          esac
 
9890
        fi
 
9891
      else
 
9892
        ld_shlibs=no
 
9893
      fi
 
9894
      ;;
 
9895
 
 
9896
    os2*)
 
9897
      hardcode_libdir_flag_spec='-L$libdir'
 
9898
      hardcode_minus_L=yes
 
9899
      allow_undefined_flag=unsupported
 
9900
      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'
 
9901
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9902
      ;;
 
9903
 
 
9904
    osf3*)
 
9905
      if test "$GCC" = yes; then
 
9906
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9907
        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'
 
9908
      else
 
9909
        allow_undefined_flag=' -expect_unresolved \*'
 
9910
        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'
 
9911
      fi
 
9912
      archive_cmds_need_lc='no'
 
9913
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9914
      hardcode_libdir_separator=:
 
9915
      ;;
 
9916
 
 
9917
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9918
      if test "$GCC" = yes; then
 
9919
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9920
        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'
 
9921
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9922
      else
 
9923
        allow_undefined_flag=' -expect_unresolved \*'
 
9924
        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'
 
9925
        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~
 
9926
        $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'
 
9927
 
 
9928
        # Both c and cxx compiler support -rpath directly
 
9929
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9930
      fi
 
9931
      archive_cmds_need_lc='no'
 
9932
      hardcode_libdir_separator=:
 
9933
      ;;
 
9934
 
 
9935
    solaris*)
 
9936
      no_undefined_flag=' -z defs'
 
9937
      if test "$GCC" = yes; then
 
9938
        wlarc='${wl}'
 
9939
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9940
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9941
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9942
      else
 
9943
        case `$CC -V 2>&1` in
 
9944
        *"Compilers 5.0"*)
 
9945
          wlarc=''
 
9946
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9947
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9948
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9949
          ;;
 
9950
        *)
 
9951
          wlarc='${wl}'
 
9952
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9953
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9954
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9955
          ;;
 
9956
        esac
 
9957
      fi
 
9958
      hardcode_libdir_flag_spec='-R$libdir'
 
9959
      hardcode_shlibpath_var=no
 
9960
      case $host_os in
 
9961
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9962
      *)
 
9963
        # The compiler driver will combine and reorder linker options,
 
9964
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9965
        # but is careful enough not to reorder.
 
9966
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9967
        if test "$GCC" = yes; then
 
9968
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9969
        else
 
9970
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9971
        fi
 
9972
        ;;
 
9973
      esac
 
9974
      link_all_deplibs=yes
 
9975
      ;;
 
9976
 
 
9977
    sunos4*)
 
9978
      if test "x$host_vendor" = xsequent; then
 
9979
        # Use $CC to link under sequent, because it throws in some extra .o
 
9980
        # files that make .init and .fini sections work.
 
9981
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9982
      else
 
9983
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9984
      fi
 
9985
      hardcode_libdir_flag_spec='-L$libdir'
 
9986
      hardcode_direct=yes
 
9987
      hardcode_minus_L=yes
 
9988
      hardcode_shlibpath_var=no
 
9989
      ;;
 
9990
 
 
9991
    sysv4)
 
9992
      case $host_vendor in
 
9993
        sni)
 
9994
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9995
          hardcode_direct=yes # is this really true???
 
9996
        ;;
 
9997
        siemens)
 
9998
          ## LD is ld it makes a PLAMLIB
 
9999
          ## CC just makes a GrossModule.
 
10000
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10001
          reload_cmds='$CC -r -o $output$reload_objs'
 
10002
          hardcode_direct=no
 
10003
        ;;
 
10004
        motorola)
 
10005
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10006
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10007
        ;;
 
10008
      esac
 
10009
      runpath_var='LD_RUN_PATH'
 
10010
      hardcode_shlibpath_var=no
 
10011
      ;;
 
10012
 
 
10013
    sysv4.3*)
 
10014
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10015
      hardcode_shlibpath_var=no
 
10016
      export_dynamic_flag_spec='-Bexport'
 
10017
      ;;
 
10018
 
 
10019
    sysv4*MP*)
 
10020
      if test -d /usr/nec; then
 
10021
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10022
        hardcode_shlibpath_var=no
 
10023
        runpath_var=LD_RUN_PATH
 
10024
        hardcode_runpath_var=yes
 
10025
        ld_shlibs=yes
 
10026
      fi
 
10027
      ;;
 
10028
 
 
10029
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10030
      no_undefined_flag='${wl}-z,text'
 
10031
      archive_cmds_need_lc=no
 
10032
      hardcode_shlibpath_var=no
 
10033
      runpath_var='LD_RUN_PATH'
 
10034
 
 
10035
      if test "$GCC" = yes; then
 
10036
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10037
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10038
      else
 
10039
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10040
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10041
      fi
 
10042
      ;;
 
10043
 
 
10044
    sysv5* | sco3.2v5* | sco5v6*)
 
10045
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10046
      # link with -lc, and that would cause any symbols used from libc to
 
10047
      # always be unresolved, which means just about no library would
 
10048
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10049
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10050
      # as -z defs.
 
10051
      no_undefined_flag='${wl}-z,text'
 
10052
      allow_undefined_flag='${wl}-z,nodefs'
 
10053
      archive_cmds_need_lc=no
 
10054
      hardcode_shlibpath_var=no
 
10055
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10056
      hardcode_libdir_separator=':'
 
10057
      link_all_deplibs=yes
 
10058
      export_dynamic_flag_spec='${wl}-Bexport'
 
10059
      runpath_var='LD_RUN_PATH'
 
10060
 
 
10061
      if test "$GCC" = yes; then
 
10062
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10063
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10064
      else
 
10065
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10066
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10067
      fi
 
10068
      ;;
 
10069
 
 
10070
    uts4*)
 
10071
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10072
      hardcode_libdir_flag_spec='-L$libdir'
 
10073
      hardcode_shlibpath_var=no
 
10074
      ;;
 
10075
 
 
10076
    *)
 
10077
      ld_shlibs=no
 
10078
      ;;
 
10079
    esac
 
10080
 
 
10081
    if test x$host_vendor = xsni; then
 
10082
      case $host in
 
10083
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10084
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10085
        ;;
 
10086
      esac
 
10087
    fi
 
10088
  fi
 
10089
 
 
10090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10091
$as_echo "$ld_shlibs" >&6; }
 
10092
test "$ld_shlibs" = no && can_build_shared=no
 
10093
 
 
10094
with_gnu_ld=$with_gnu_ld
 
10095
 
 
10096
 
 
10097
 
 
10098
 
 
10099
 
 
10100
 
 
10101
 
 
10102
 
 
10103
 
 
10104
 
 
10105
 
 
10106
 
 
10107
 
 
10108
 
 
10109
 
 
10110
#
 
10111
# Do we need to explicitly link libc?
 
10112
#
 
10113
case "x$archive_cmds_need_lc" in
 
10114
x|xyes)
 
10115
  # Assume -lc should be added
 
10116
  archive_cmds_need_lc=yes
 
10117
 
 
10118
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10119
    case $archive_cmds in
 
10120
    *'~'*)
 
10121
      # FIXME: we may have to deal with multi-command sequences.
 
10122
      ;;
 
10123
    '$CC '*)
 
10124
      # Test whether the compiler implicitly links with -lc since on some
 
10125
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10126
      # to ld, don't add -lc before -lgcc.
 
10127
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10128
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10129
      $RM conftest*
 
10130
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10131
 
 
10132
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10133
  (eval $ac_compile) 2>&5
 
10134
  ac_status=$?
 
10135
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10136
  test $ac_status = 0; } 2>conftest.err; then
 
10137
        soname=conftest
 
10138
        lib=conftest
 
10139
        libobjs=conftest.$ac_objext
 
10140
        deplibs=
 
10141
        wl=$lt_prog_compiler_wl
 
10142
        pic_flag=$lt_prog_compiler_pic
 
10143
        compiler_flags=-v
 
10144
        linker_flags=-v
 
10145
        verstring=
 
10146
        output_objdir=.
 
10147
        libname=conftest
 
10148
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
10149
        allow_undefined_flag=
 
10150
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10151
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10152
  ac_status=$?
 
10153
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10154
  test $ac_status = 0; }
 
10155
        then
 
10156
          archive_cmds_need_lc=no
 
10157
        else
 
10158
          archive_cmds_need_lc=yes
 
10159
        fi
 
10160
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
10161
      else
 
10162
        cat conftest.err 1>&5
 
10163
      fi
 
10164
      $RM conftest*
 
10165
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
10166
$as_echo "$archive_cmds_need_lc" >&6; }
 
10167
      ;;
 
10168
    esac
 
10169
  fi
 
10170
  ;;
 
10171
esac
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
 
 
10185
 
 
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
 
10192
 
 
10193
 
 
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
 
10207
 
 
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
 
 
10214
 
 
10215
 
 
10216
 
 
10217
 
 
10218
 
 
10219
 
 
10220
 
 
10221
 
 
10222
 
 
10223
 
 
10224
 
 
10225
 
 
10226
 
 
10227
 
 
10228
 
 
10229
 
 
10230
 
 
10231
 
 
10232
 
 
10233
 
 
10234
 
 
10235
 
 
10236
 
 
10237
 
 
10238
 
 
10239
 
 
10240
 
 
10241
 
 
10242
 
 
10243
 
 
10244
 
 
10245
 
 
10246
 
 
10247
 
 
10248
 
 
10249
 
 
10250
 
 
10251
 
 
10252
 
 
10253
 
 
10254
 
 
10255
 
 
10256
 
 
10257
 
 
10258
 
 
10259
 
 
10260
 
 
10261
 
 
10262
 
 
10263
 
 
10264
 
 
10265
 
 
10266
 
 
10267
 
 
10268
 
 
10269
 
 
10270
 
 
10271
 
 
10272
 
 
10273
 
 
10274
 
 
10275
 
 
10276
 
 
10277
 
 
10278
 
 
10279
 
 
10280
 
 
10281
 
 
10282
 
 
10283
 
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10330
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10331
 
 
10332
if test "$GCC" = yes; then
 
10333
  case $host_os in
 
10334
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10335
    *) lt_awk_arg="/^libraries:/" ;;
 
10336
  esac
 
10337
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10338
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
10339
    # if the path contains ";" then we assume it to be the separator
 
10340
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10341
    # assumed that no part of a normal pathname contains ";" but that should
 
10342
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10343
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10344
  else
 
10345
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10346
  fi
 
10347
  # Ok, now we have the path, separated by spaces, we can step through it
 
10348
  # and add multilib dir if necessary.
 
10349
  lt_tmp_lt_search_path_spec=
 
10350
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10351
  for lt_sys_path in $lt_search_path_spec; do
 
10352
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10353
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10354
    else
 
10355
      test -d "$lt_sys_path" && \
 
10356
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10357
    fi
 
10358
  done
 
10359
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
10360
BEGIN {RS=" "; FS="/|\n";} {
 
10361
  lt_foo="";
 
10362
  lt_count=0;
 
10363
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10364
    if ($lt_i != "" && $lt_i != ".") {
 
10365
      if ($lt_i == "..") {
 
10366
        lt_count++;
 
10367
      } else {
 
10368
        if (lt_count == 0) {
 
10369
          lt_foo="/" $lt_i lt_foo;
 
10370
        } else {
 
10371
          lt_count--;
 
10372
        }
 
10373
      }
 
10374
    }
 
10375
  }
 
10376
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10377
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10378
}'`
 
10379
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
10380
else
 
10381
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10382
fi
 
10383
library_names_spec=
 
10384
libname_spec='lib$name'
 
10385
soname_spec=
 
10386
shrext_cmds=".so"
 
10387
postinstall_cmds=
 
10388
postuninstall_cmds=
 
10389
finish_cmds=
 
10390
finish_eval=
 
10391
shlibpath_var=
 
10392
shlibpath_overrides_runpath=unknown
 
10393
version_type=none
 
10394
dynamic_linker="$host_os ld.so"
 
10395
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10396
need_lib_prefix=unknown
 
10397
hardcode_into_libs=no
 
10398
 
 
10399
# when you set need_version to no, make sure it does not cause -set_version
 
10400
# flags to be left without arguments
 
10401
need_version=unknown
 
10402
 
 
10403
case $host_os in
 
10404
aix3*)
 
10405
  version_type=linux
 
10406
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10407
  shlibpath_var=LIBPATH
 
10408
 
 
10409
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10410
  soname_spec='${libname}${release}${shared_ext}$major'
 
10411
  ;;
 
10412
 
 
10413
aix[4-9]*)
 
10414
  version_type=linux
 
10415
  need_lib_prefix=no
 
10416
  need_version=no
 
10417
  hardcode_into_libs=yes
 
10418
  if test "$host_cpu" = ia64; then
 
10419
    # AIX 5 supports IA64
 
10420
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10421
    shlibpath_var=LD_LIBRARY_PATH
 
10422
  else
 
10423
    # With GCC up to 2.95.x, collect2 would create an import file
 
10424
    # for dependence libraries.  The import file would start with
 
10425
    # the line `#! .'.  This would cause the generated library to
 
10426
    # depend on `.', always an invalid library.  This was fixed in
 
10427
    # development snapshots of GCC prior to 3.0.
 
10428
    case $host_os in
 
10429
      aix4 | aix4.[01] | aix4.[01].*)
 
10430
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10431
           echo ' yes '
 
10432
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10433
        :
 
10434
      else
 
10435
        can_build_shared=no
 
10436
      fi
 
10437
      ;;
 
10438
    esac
 
10439
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10440
    # soname into executable. Probably we can add versioning support to
 
10441
    # collect2, so additional links can be useful in future.
 
10442
    if test "$aix_use_runtimelinking" = yes; then
 
10443
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10444
      # instead of lib<name>.a to let people know that these are not
 
10445
      # typical AIX shared libraries.
 
10446
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10447
    else
 
10448
      # We preserve .a as extension for shared libraries through AIX4.2
 
10449
      # and later when we are not doing run time linking.
 
10450
      library_names_spec='${libname}${release}.a $libname.a'
 
10451
      soname_spec='${libname}${release}${shared_ext}$major'
 
10452
    fi
 
10453
    shlibpath_var=LIBPATH
 
10454
  fi
 
10455
  ;;
 
10456
 
 
10457
amigaos*)
 
10458
  case $host_cpu in
 
10459
  powerpc)
 
10460
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10461
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10462
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10463
    ;;
 
10464
  m68k)
 
10465
    library_names_spec='$libname.ixlibrary $libname.a'
 
10466
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10467
    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'
 
10468
    ;;
 
10469
  esac
 
10470
  ;;
 
10471
 
 
10472
beos*)
 
10473
  library_names_spec='${libname}${shared_ext}'
 
10474
  dynamic_linker="$host_os ld.so"
 
10475
  shlibpath_var=LIBRARY_PATH
 
10476
  ;;
 
10477
 
 
10478
bsdi[45]*)
 
10479
  version_type=linux
 
10480
  need_version=no
 
10481
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10482
  soname_spec='${libname}${release}${shared_ext}$major'
 
10483
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10484
  shlibpath_var=LD_LIBRARY_PATH
 
10485
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10486
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10487
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10488
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10489
  # libtool to hard-code these into programs
 
10490
  ;;
 
10491
 
 
10492
cygwin* | mingw* | pw32* | cegcc*)
 
10493
  version_type=windows
 
10494
  shrext_cmds=".dll"
 
10495
  need_version=no
 
10496
  need_lib_prefix=no
 
10497
 
 
10498
  case $GCC,$host_os in
 
10499
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
10500
    library_names_spec='$libname.dll.a'
 
10501
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10502
    postinstall_cmds='base_file=`basename \${file}`~
 
10503
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10504
      dldir=$destdir/`dirname \$dlpath`~
 
10505
      test -d \$dldir || mkdir -p \$dldir~
 
10506
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10507
      chmod a+x \$dldir/$dlname~
 
10508
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10509
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10510
      fi'
 
10511
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10512
      dlpath=$dir/\$dldll~
 
10513
       $RM \$dlpath'
 
10514
    shlibpath_overrides_runpath=yes
 
10515
 
 
10516
    case $host_os in
 
10517
    cygwin*)
 
10518
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10519
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10520
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10521
      ;;
 
10522
    mingw* | cegcc*)
 
10523
      # MinGW DLLs use traditional 'lib' prefix
 
10524
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10525
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10526
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10527
        # It is most probably a Windows format PATH printed by
 
10528
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10529
        # path with ; separators, and with drive letters. We can handle the
 
10530
        # drive letters (cygwin fileutils understands them), so leave them,
 
10531
        # especially as we might pass files found there to a mingw objdump,
 
10532
        # which wouldn't understand a cygwinified path. Ahh.
 
10533
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10534
      else
 
10535
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10536
      fi
 
10537
      ;;
 
10538
    pw32*)
 
10539
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10540
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10541
      ;;
 
10542
    esac
 
10543
    ;;
 
10544
 
 
10545
  *)
 
10546
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10547
    ;;
 
10548
  esac
 
10549
  dynamic_linker='Win32 ld.exe'
 
10550
  # FIXME: first we should search . and the directory the executable is in
 
10551
  shlibpath_var=PATH
 
10552
  ;;
 
10553
 
 
10554
darwin* | rhapsody*)
 
10555
  dynamic_linker="$host_os dyld"
 
10556
  version_type=darwin
 
10557
  need_lib_prefix=no
 
10558
  need_version=no
 
10559
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10560
  soname_spec='${libname}${release}${major}$shared_ext'
 
10561
  shlibpath_overrides_runpath=yes
 
10562
  shlibpath_var=DYLD_LIBRARY_PATH
 
10563
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10564
 
 
10565
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10566
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10567
  ;;
 
10568
 
 
10569
dgux*)
 
10570
  version_type=linux
 
10571
  need_lib_prefix=no
 
10572
  need_version=no
 
10573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10574
  soname_spec='${libname}${release}${shared_ext}$major'
 
10575
  shlibpath_var=LD_LIBRARY_PATH
 
10576
  ;;
 
10577
 
 
10578
freebsd1*)
 
10579
  dynamic_linker=no
 
10580
  ;;
 
10581
 
 
10582
freebsd* | dragonfly*)
 
10583
  # DragonFly does not have aout.  When/if they implement a new
 
10584
  # versioning mechanism, adjust this.
 
10585
  if test -x /usr/bin/objformat; then
 
10586
    objformat=`/usr/bin/objformat`
 
10587
  else
 
10588
    case $host_os in
 
10589
    freebsd[123]*) objformat=aout ;;
 
10590
    *) objformat=elf ;;
 
10591
    esac
 
10592
  fi
 
10593
  version_type=freebsd-$objformat
 
10594
  case $version_type in
 
10595
    freebsd-elf*)
 
10596
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10597
      need_version=no
 
10598
      need_lib_prefix=no
 
10599
      ;;
 
10600
    freebsd-*)
 
10601
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10602
      need_version=yes
 
10603
      ;;
 
10604
  esac
 
10605
  shlibpath_var=LD_LIBRARY_PATH
 
10606
  case $host_os in
 
10607
  freebsd2*)
 
10608
    shlibpath_overrides_runpath=yes
 
10609
    ;;
 
10610
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10611
    shlibpath_overrides_runpath=yes
 
10612
    hardcode_into_libs=yes
 
10613
    ;;
 
10614
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10615
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10616
    shlibpath_overrides_runpath=no
 
10617
    hardcode_into_libs=yes
 
10618
    ;;
 
10619
  *) # from 4.6 on, and DragonFly
 
10620
    shlibpath_overrides_runpath=yes
 
10621
    hardcode_into_libs=yes
 
10622
    ;;
 
10623
  esac
 
10624
  ;;
 
10625
 
 
10626
gnu*)
 
10627
  version_type=linux
 
10628
  need_lib_prefix=no
 
10629
  need_version=no
 
10630
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10631
  soname_spec='${libname}${release}${shared_ext}$major'
 
10632
  shlibpath_var=LD_LIBRARY_PATH
 
10633
  hardcode_into_libs=yes
 
10634
  ;;
 
10635
 
 
10636
hpux9* | hpux10* | hpux11*)
 
10637
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10638
  # link against other versions.
 
10639
  version_type=sunos
 
10640
  need_lib_prefix=no
 
10641
  need_version=no
 
10642
  case $host_cpu in
 
10643
  ia64*)
 
10644
    shrext_cmds='.so'
 
10645
    hardcode_into_libs=yes
 
10646
    dynamic_linker="$host_os dld.so"
 
10647
    shlibpath_var=LD_LIBRARY_PATH
 
10648
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10649
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10650
    soname_spec='${libname}${release}${shared_ext}$major'
 
10651
    if test "X$HPUX_IA64_MODE" = X32; then
 
10652
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10653
    else
 
10654
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10655
    fi
 
10656
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10657
    ;;
 
10658
  hppa*64*)
 
10659
    shrext_cmds='.sl'
 
10660
    hardcode_into_libs=yes
 
10661
    dynamic_linker="$host_os dld.sl"
 
10662
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10663
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10664
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10665
    soname_spec='${libname}${release}${shared_ext}$major'
 
10666
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10667
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10668
    ;;
 
10669
  *)
 
10670
    shrext_cmds='.sl'
 
10671
    dynamic_linker="$host_os dld.sl"
 
10672
    shlibpath_var=SHLIB_PATH
 
10673
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10674
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10675
    soname_spec='${libname}${release}${shared_ext}$major'
 
10676
    ;;
 
10677
  esac
 
10678
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10679
  postinstall_cmds='chmod 555 $lib'
 
10680
  ;;
 
10681
 
 
10682
interix[3-9]*)
 
10683
  version_type=linux
 
10684
  need_lib_prefix=no
 
10685
  need_version=no
 
10686
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10687
  soname_spec='${libname}${release}${shared_ext}$major'
 
10688
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10689
  shlibpath_var=LD_LIBRARY_PATH
 
10690
  shlibpath_overrides_runpath=no
 
10691
  hardcode_into_libs=yes
 
10692
  ;;
 
10693
 
 
10694
irix5* | irix6* | nonstopux*)
 
10695
  case $host_os in
 
10696
    nonstopux*) version_type=nonstopux ;;
 
10697
    *)
 
10698
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10699
                version_type=linux
 
10700
        else
 
10701
                version_type=irix
 
10702
        fi ;;
 
10703
  esac
 
10704
  need_lib_prefix=no
 
10705
  need_version=no
 
10706
  soname_spec='${libname}${release}${shared_ext}$major'
 
10707
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10708
  case $host_os in
 
10709
  irix5* | nonstopux*)
 
10710
    libsuff= shlibsuff=
 
10711
    ;;
 
10712
  *)
 
10713
    case $LD in # libtool.m4 will add one of these switches to LD
 
10714
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10715
      libsuff= shlibsuff= libmagic=32-bit;;
 
10716
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10717
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10718
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10719
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10720
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10721
    esac
 
10722
    ;;
 
10723
  esac
 
10724
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10725
  shlibpath_overrides_runpath=no
 
10726
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10727
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10728
  hardcode_into_libs=yes
 
10729
  ;;
 
10730
 
 
10731
# No shared lib support for Linux oldld, aout, or coff.
 
10732
linux*oldld* | linux*aout* | linux*coff*)
 
10733
  dynamic_linker=no
 
10734
  ;;
 
10735
 
 
10736
# This must be Linux ELF.
 
10737
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10738
  version_type=linux
 
10739
  need_lib_prefix=no
 
10740
  need_version=no
 
10741
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10742
  soname_spec='${libname}${release}${shared_ext}$major'
 
10743
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10744
  shlibpath_var=LD_LIBRARY_PATH
 
10745
  shlibpath_overrides_runpath=no
 
10746
  # Some binutils ld are patched to set DT_RUNPATH
 
10747
  save_LDFLAGS=$LDFLAGS
 
10748
  save_libdir=$libdir
 
10749
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10750
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10751
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10752
/* end confdefs.h.  */
 
10753
 
 
10754
int
 
10755
main ()
 
10756
{
 
10757
 
 
10758
  ;
 
10759
  return 0;
 
10760
}
 
10761
_ACEOF
 
10762
if ac_fn_c_try_link "$LINENO"; then :
 
10763
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10764
  shlibpath_overrides_runpath=yes
 
10765
fi
 
10766
fi
 
10767
rm -f core conftest.err conftest.$ac_objext \
 
10768
    conftest$ac_exeext conftest.$ac_ext
 
10769
  LDFLAGS=$save_LDFLAGS
 
10770
  libdir=$save_libdir
 
10771
 
 
10772
  # This implies no fast_install, which is unacceptable.
 
10773
  # Some rework will be needed to allow for fast_install
 
10774
  # before this can be enabled.
 
10775
  hardcode_into_libs=yes
 
10776
 
 
10777
  # Append ld.so.conf contents to the search path
 
10778
  if test -f /etc/ld.so.conf; then
 
10779
    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' ' '`
 
10780
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10781
  fi
 
10782
 
 
10783
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10784
  # powerpc, because MkLinux only supported shared libraries with the
 
10785
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10786
  # most powerpc-linux boxes support dynamic linking these days and
 
10787
  # people can always --disable-shared, the test was removed, and we
 
10788
  # assume the GNU/Linux dynamic linker is in use.
 
10789
  dynamic_linker='GNU/Linux ld.so'
 
10790
  ;;
 
10791
 
 
10792
netbsdelf*-gnu)
 
10793
  version_type=linux
 
10794
  need_lib_prefix=no
 
10795
  need_version=no
 
10796
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10797
  soname_spec='${libname}${release}${shared_ext}$major'
 
10798
  shlibpath_var=LD_LIBRARY_PATH
 
10799
  shlibpath_overrides_runpath=no
 
10800
  hardcode_into_libs=yes
 
10801
  dynamic_linker='NetBSD ld.elf_so'
 
10802
  ;;
 
10803
 
 
10804
netbsd*)
 
10805
  version_type=sunos
 
10806
  need_lib_prefix=no
 
10807
  need_version=no
 
10808
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10809
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10810
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10811
    dynamic_linker='NetBSD (a.out) ld.so'
 
10812
  else
 
10813
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10814
    soname_spec='${libname}${release}${shared_ext}$major'
 
10815
    dynamic_linker='NetBSD ld.elf_so'
 
10816
  fi
 
10817
  shlibpath_var=LD_LIBRARY_PATH
 
10818
  shlibpath_overrides_runpath=yes
 
10819
  hardcode_into_libs=yes
 
10820
  ;;
 
10821
 
 
10822
newsos6)
 
10823
  version_type=linux
 
10824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10825
  shlibpath_var=LD_LIBRARY_PATH
 
10826
  shlibpath_overrides_runpath=yes
 
10827
  ;;
 
10828
 
 
10829
*nto* | *qnx*)
 
10830
  version_type=qnx
 
10831
  need_lib_prefix=no
 
10832
  need_version=no
 
10833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10834
  soname_spec='${libname}${release}${shared_ext}$major'
 
10835
  shlibpath_var=LD_LIBRARY_PATH
 
10836
  shlibpath_overrides_runpath=no
 
10837
  hardcode_into_libs=yes
 
10838
  dynamic_linker='ldqnx.so'
 
10839
  ;;
 
10840
 
 
10841
openbsd*)
 
10842
  version_type=sunos
 
10843
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10844
  need_lib_prefix=no
 
10845
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10846
  case $host_os in
 
10847
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10848
    *)                          need_version=no  ;;
 
10849
  esac
 
10850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10851
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10852
  shlibpath_var=LD_LIBRARY_PATH
 
10853
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10854
    case $host_os in
 
10855
      openbsd2.[89] | openbsd2.[89].*)
 
10856
        shlibpath_overrides_runpath=no
 
10857
        ;;
 
10858
      *)
 
10859
        shlibpath_overrides_runpath=yes
 
10860
        ;;
 
10861
      esac
 
10862
  else
 
10863
    shlibpath_overrides_runpath=yes
 
10864
  fi
 
10865
  ;;
 
10866
 
 
10867
os2*)
 
10868
  libname_spec='$name'
 
10869
  shrext_cmds=".dll"
 
10870
  need_lib_prefix=no
 
10871
  library_names_spec='$libname${shared_ext} $libname.a'
 
10872
  dynamic_linker='OS/2 ld.exe'
 
10873
  shlibpath_var=LIBPATH
 
10874
  ;;
 
10875
 
 
10876
osf3* | osf4* | osf5*)
 
10877
  version_type=osf
 
10878
  need_lib_prefix=no
 
10879
  need_version=no
 
10880
  soname_spec='${libname}${release}${shared_ext}$major'
 
10881
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10882
  shlibpath_var=LD_LIBRARY_PATH
 
10883
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10884
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10885
  ;;
 
10886
 
 
10887
rdos*)
 
10888
  dynamic_linker=no
 
10889
  ;;
 
10890
 
 
10891
solaris*)
 
10892
  version_type=linux
 
10893
  need_lib_prefix=no
 
10894
  need_version=no
 
10895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10896
  soname_spec='${libname}${release}${shared_ext}$major'
 
10897
  shlibpath_var=LD_LIBRARY_PATH
 
10898
  shlibpath_overrides_runpath=yes
 
10899
  hardcode_into_libs=yes
 
10900
  # ldd complains unless libraries are executable
 
10901
  postinstall_cmds='chmod +x $lib'
 
10902
  ;;
 
10903
 
 
10904
sunos4*)
 
10905
  version_type=sunos
 
10906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10907
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10908
  shlibpath_var=LD_LIBRARY_PATH
 
10909
  shlibpath_overrides_runpath=yes
 
10910
  if test "$with_gnu_ld" = yes; then
 
10911
    need_lib_prefix=no
 
10912
  fi
 
10913
  need_version=yes
 
10914
  ;;
 
10915
 
 
10916
sysv4 | sysv4.3*)
 
10917
  version_type=linux
 
10918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10919
  soname_spec='${libname}${release}${shared_ext}$major'
 
10920
  shlibpath_var=LD_LIBRARY_PATH
 
10921
  case $host_vendor in
 
10922
    sni)
 
10923
      shlibpath_overrides_runpath=no
 
10924
      need_lib_prefix=no
 
10925
      runpath_var=LD_RUN_PATH
 
10926
      ;;
 
10927
    siemens)
 
10928
      need_lib_prefix=no
 
10929
      ;;
 
10930
    motorola)
 
10931
      need_lib_prefix=no
 
10932
      need_version=no
 
10933
      shlibpath_overrides_runpath=no
 
10934
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10935
      ;;
 
10936
  esac
 
10937
  ;;
 
10938
 
 
10939
sysv4*MP*)
 
10940
  if test -d /usr/nec ;then
 
10941
    version_type=linux
 
10942
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10943
    soname_spec='$libname${shared_ext}.$major'
 
10944
    shlibpath_var=LD_LIBRARY_PATH
 
10945
  fi
 
10946
  ;;
 
10947
 
 
10948
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10949
  version_type=freebsd-elf
 
10950
  need_lib_prefix=no
 
10951
  need_version=no
 
10952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10953
  soname_spec='${libname}${release}${shared_ext}$major'
 
10954
  shlibpath_var=LD_LIBRARY_PATH
 
10955
  shlibpath_overrides_runpath=yes
 
10956
  hardcode_into_libs=yes
 
10957
  if test "$with_gnu_ld" = yes; then
 
10958
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10959
  else
 
10960
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10961
    case $host_os in
 
10962
      sco3.2v5*)
 
10963
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10964
        ;;
 
10965
    esac
 
10966
  fi
 
10967
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10968
  ;;
 
10969
 
 
10970
tpf*)
 
10971
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10972
  version_type=linux
 
10973
  need_lib_prefix=no
 
10974
  need_version=no
 
10975
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10976
  shlibpath_var=LD_LIBRARY_PATH
 
10977
  shlibpath_overrides_runpath=no
 
10978
  hardcode_into_libs=yes
 
10979
  ;;
 
10980
 
 
10981
uts4*)
 
10982
  version_type=linux
 
10983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10984
  soname_spec='${libname}${release}${shared_ext}$major'
 
10985
  shlibpath_var=LD_LIBRARY_PATH
 
10986
  ;;
 
10987
 
 
10988
*)
 
10989
  dynamic_linker=no
 
10990
  ;;
 
10991
esac
 
10992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10993
$as_echo "$dynamic_linker" >&6; }
 
10994
test "$dynamic_linker" = no && can_build_shared=no
 
10995
 
 
10996
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10997
if test "$GCC" = yes; then
 
10998
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10999
fi
 
11000
 
 
11001
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11002
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11003
fi
 
11004
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11005
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11006
fi
 
11007
 
 
11008
 
 
11009
 
 
11010
 
 
11011
 
 
11012
 
 
11013
 
 
11014
 
 
11015
 
 
11016
 
 
11017
 
 
11018
 
 
11019
 
 
11020
 
 
11021
 
 
11022
 
 
11023
 
 
11024
 
 
11025
 
 
11026
 
 
11027
 
 
11028
 
 
11029
 
 
11030
 
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
 
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
 
 
11063
 
 
11064
 
 
11065
 
 
11066
 
 
11067
 
 
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
 
11089
 
 
11090
 
 
11091
 
 
11092
 
 
11093
 
 
11094
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11095
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11096
hardcode_action=
 
11097
if test -n "$hardcode_libdir_flag_spec" ||
 
11098
   test -n "$runpath_var" ||
 
11099
   test "X$hardcode_automatic" = "Xyes" ; then
 
11100
 
 
11101
  # We can hardcode non-existent directories.
 
11102
  if test "$hardcode_direct" != no &&
 
11103
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11104
     # have to relink, otherwise we might link with an installed library
 
11105
     # when we should be linking with a yet-to-be-installed one
 
11106
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11107
     test "$hardcode_minus_L" != no; then
 
11108
    # Linking always hardcodes the temporary library directory.
 
11109
    hardcode_action=relink
 
11110
  else
 
11111
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11112
    hardcode_action=immediate
 
11113
  fi
 
11114
else
 
11115
  # We cannot hardcode anything, or else we can only hardcode existing
 
11116
  # directories.
 
11117
  hardcode_action=unsupported
 
11118
fi
 
11119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11120
$as_echo "$hardcode_action" >&6; }
 
11121
 
 
11122
if test "$hardcode_action" = relink ||
 
11123
   test "$inherit_rpath" = yes; then
 
11124
  # Fast installation is not supported
 
11125
  enable_fast_install=no
 
11126
elif test "$shlibpath_overrides_runpath" = yes ||
 
11127
     test "$enable_shared" = no; then
 
11128
  # Fast installation is not necessary
 
11129
  enable_fast_install=needless
 
11130
fi
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
  if test "x$enable_dlopen" != xyes; then
 
11138
  enable_dlopen=unknown
 
11139
  enable_dlopen_self=unknown
 
11140
  enable_dlopen_self_static=unknown
 
11141
else
 
11142
  lt_cv_dlopen=no
 
11143
  lt_cv_dlopen_libs=
 
11144
 
 
11145
  case $host_os in
 
11146
  beos*)
 
11147
    lt_cv_dlopen="load_add_on"
 
11148
    lt_cv_dlopen_libs=
 
11149
    lt_cv_dlopen_self=yes
 
11150
    ;;
 
11151
 
 
11152
  mingw* | pw32* | cegcc*)
 
11153
    lt_cv_dlopen="LoadLibrary"
 
11154
    lt_cv_dlopen_libs=
 
11155
    ;;
 
11156
 
 
11157
  cygwin*)
 
11158
    lt_cv_dlopen="dlopen"
 
11159
    lt_cv_dlopen_libs=
 
11160
    ;;
 
11161
 
 
11162
  darwin*)
 
11163
  # if libdl is installed we need to link against it
 
11164
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11165
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11166
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
11167
  $as_echo_n "(cached) " >&6
 
11168
else
 
11169
  ac_check_lib_save_LIBS=$LIBS
 
11170
LIBS="-ldl  $LIBS"
 
11171
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11172
/* end confdefs.h.  */
 
11173
 
 
11174
/* Override any GCC internal prototype to avoid an error.
 
11175
   Use char because int might match the return type of a GCC
 
11176
   builtin and then its argument prototype would still apply.  */
 
11177
#ifdef __cplusplus
 
11178
extern "C"
 
11179
#endif
 
11180
char dlopen ();
 
11181
int
 
11182
main ()
 
11183
{
 
11184
return dlopen ();
 
11185
  ;
 
11186
  return 0;
 
11187
}
 
11188
_ACEOF
 
11189
if ac_fn_c_try_link "$LINENO"; then :
 
11190
  ac_cv_lib_dl_dlopen=yes
 
11191
else
 
11192
  ac_cv_lib_dl_dlopen=no
 
11193
fi
 
11194
rm -f core conftest.err conftest.$ac_objext \
 
11195
    conftest$ac_exeext conftest.$ac_ext
 
11196
LIBS=$ac_check_lib_save_LIBS
 
11197
fi
 
11198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11199
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11200
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
11201
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11202
else
 
11203
 
 
11204
    lt_cv_dlopen="dyld"
 
11205
    lt_cv_dlopen_libs=
 
11206
    lt_cv_dlopen_self=yes
 
11207
 
 
11208
fi
 
11209
 
 
11210
    ;;
 
11211
 
 
11212
  *)
 
11213
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11214
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
11215
  lt_cv_dlopen="shl_load"
 
11216
else
 
11217
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11218
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11219
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
11220
  $as_echo_n "(cached) " >&6
 
11221
else
 
11222
  ac_check_lib_save_LIBS=$LIBS
 
11223
LIBS="-ldld  $LIBS"
 
11224
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11225
/* end confdefs.h.  */
 
11226
 
 
11227
/* Override any GCC internal prototype to avoid an error.
 
11228
   Use char because int might match the return type of a GCC
 
11229
   builtin and then its argument prototype would still apply.  */
 
11230
#ifdef __cplusplus
 
11231
extern "C"
 
11232
#endif
 
11233
char shl_load ();
 
11234
int
 
11235
main ()
 
11236
{
 
11237
return shl_load ();
 
11238
  ;
 
11239
  return 0;
 
11240
}
 
11241
_ACEOF
 
11242
if ac_fn_c_try_link "$LINENO"; then :
 
11243
  ac_cv_lib_dld_shl_load=yes
 
11244
else
 
11245
  ac_cv_lib_dld_shl_load=no
 
11246
fi
 
11247
rm -f core conftest.err conftest.$ac_objext \
 
11248
    conftest$ac_exeext conftest.$ac_ext
 
11249
LIBS=$ac_check_lib_save_LIBS
 
11250
fi
 
11251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11252
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11253
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
11254
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11255
else
 
11256
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11257
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
11258
  lt_cv_dlopen="dlopen"
 
11259
else
 
11260
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11261
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11262
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
11263
  $as_echo_n "(cached) " >&6
 
11264
else
 
11265
  ac_check_lib_save_LIBS=$LIBS
 
11266
LIBS="-ldl  $LIBS"
 
11267
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11268
/* end confdefs.h.  */
 
11269
 
 
11270
/* Override any GCC internal prototype to avoid an error.
 
11271
   Use char because int might match the return type of a GCC
 
11272
   builtin and then its argument prototype would still apply.  */
 
11273
#ifdef __cplusplus
 
11274
extern "C"
 
11275
#endif
 
11276
char dlopen ();
 
11277
int
 
11278
main ()
 
11279
{
 
11280
return dlopen ();
 
11281
  ;
 
11282
  return 0;
 
11283
}
 
11284
_ACEOF
 
11285
if ac_fn_c_try_link "$LINENO"; then :
 
11286
  ac_cv_lib_dl_dlopen=yes
 
11287
else
 
11288
  ac_cv_lib_dl_dlopen=no
 
11289
fi
 
11290
rm -f core conftest.err conftest.$ac_objext \
 
11291
    conftest$ac_exeext conftest.$ac_ext
 
11292
LIBS=$ac_check_lib_save_LIBS
 
11293
fi
 
11294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11295
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11296
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
11297
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11298
else
 
11299
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11300
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11301
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
11302
  $as_echo_n "(cached) " >&6
 
11303
else
 
11304
  ac_check_lib_save_LIBS=$LIBS
 
11305
LIBS="-lsvld  $LIBS"
 
11306
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11307
/* end confdefs.h.  */
 
11308
 
 
11309
/* Override any GCC internal prototype to avoid an error.
 
11310
   Use char because int might match the return type of a GCC
 
11311
   builtin and then its argument prototype would still apply.  */
 
11312
#ifdef __cplusplus
 
11313
extern "C"
 
11314
#endif
 
11315
char dlopen ();
 
11316
int
 
11317
main ()
 
11318
{
 
11319
return dlopen ();
 
11320
  ;
 
11321
  return 0;
 
11322
}
 
11323
_ACEOF
 
11324
if ac_fn_c_try_link "$LINENO"; then :
 
11325
  ac_cv_lib_svld_dlopen=yes
 
11326
else
 
11327
  ac_cv_lib_svld_dlopen=no
 
11328
fi
 
11329
rm -f core conftest.err conftest.$ac_objext \
 
11330
    conftest$ac_exeext conftest.$ac_ext
 
11331
LIBS=$ac_check_lib_save_LIBS
 
11332
fi
 
11333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11334
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11335
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
11336
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11337
else
 
11338
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11339
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11340
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
11341
  $as_echo_n "(cached) " >&6
 
11342
else
 
11343
  ac_check_lib_save_LIBS=$LIBS
 
11344
LIBS="-ldld  $LIBS"
 
11345
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11346
/* end confdefs.h.  */
 
11347
 
 
11348
/* Override any GCC internal prototype to avoid an error.
 
11349
   Use char because int might match the return type of a GCC
 
11350
   builtin and then its argument prototype would still apply.  */
 
11351
#ifdef __cplusplus
 
11352
extern "C"
 
11353
#endif
 
11354
char dld_link ();
 
11355
int
 
11356
main ()
 
11357
{
 
11358
return dld_link ();
 
11359
  ;
 
11360
  return 0;
 
11361
}
 
11362
_ACEOF
 
11363
if ac_fn_c_try_link "$LINENO"; then :
 
11364
  ac_cv_lib_dld_dld_link=yes
 
11365
else
 
11366
  ac_cv_lib_dld_dld_link=no
 
11367
fi
 
11368
rm -f core conftest.err conftest.$ac_objext \
 
11369
    conftest$ac_exeext conftest.$ac_ext
 
11370
LIBS=$ac_check_lib_save_LIBS
 
11371
fi
 
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11373
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11374
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
11375
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11376
fi
 
11377
 
 
11378
 
 
11379
fi
 
11380
 
 
11381
 
 
11382
fi
 
11383
 
 
11384
 
 
11385
fi
 
11386
 
 
11387
 
 
11388
fi
 
11389
 
 
11390
 
 
11391
fi
 
11392
 
 
11393
    ;;
 
11394
  esac
 
11395
 
 
11396
  if test "x$lt_cv_dlopen" != xno; then
 
11397
    enable_dlopen=yes
 
11398
  else
 
11399
    enable_dlopen=no
 
11400
  fi
 
11401
 
 
11402
  case $lt_cv_dlopen in
 
11403
  dlopen)
 
11404
    save_CPPFLAGS="$CPPFLAGS"
 
11405
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11406
 
 
11407
    save_LDFLAGS="$LDFLAGS"
 
11408
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11409
 
 
11410
    save_LIBS="$LIBS"
 
11411
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11412
 
 
11413
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11414
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11415
if test "${lt_cv_dlopen_self+set}" = set; then :
 
11416
  $as_echo_n "(cached) " >&6
 
11417
else
 
11418
          if test "$cross_compiling" = yes; then :
 
11419
  lt_cv_dlopen_self=cross
 
11420
else
 
11421
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11422
  lt_status=$lt_dlunknown
 
11423
  cat > conftest.$ac_ext <<_LT_EOF
 
11424
#line 11424 "configure"
 
11425
#include "confdefs.h"
 
11426
 
 
11427
#if HAVE_DLFCN_H
 
11428
#include <dlfcn.h>
 
11429
#endif
 
11430
 
 
11431
#include <stdio.h>
 
11432
 
 
11433
#ifdef RTLD_GLOBAL
 
11434
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11435
#else
 
11436
#  ifdef DL_GLOBAL
 
11437
#    define LT_DLGLOBAL         DL_GLOBAL
 
11438
#  else
 
11439
#    define LT_DLGLOBAL         0
 
11440
#  endif
 
11441
#endif
 
11442
 
 
11443
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11444
   find out it does not work in some platform. */
 
11445
#ifndef LT_DLLAZY_OR_NOW
 
11446
#  ifdef RTLD_LAZY
 
11447
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11448
#  else
 
11449
#    ifdef DL_LAZY
 
11450
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11451
#    else
 
11452
#      ifdef RTLD_NOW
 
11453
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11454
#      else
 
11455
#        ifdef DL_NOW
 
11456
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11457
#        else
 
11458
#          define LT_DLLAZY_OR_NOW      0
 
11459
#        endif
 
11460
#      endif
 
11461
#    endif
 
11462
#  endif
 
11463
#endif
 
11464
 
 
11465
void fnord() { int i=42;}
 
11466
int main ()
 
11467
{
 
11468
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11469
  int status = $lt_dlunknown;
 
11470
 
 
11471
  if (self)
 
11472
    {
 
11473
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11474
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11475
      /* dlclose (self); */
 
11476
    }
 
11477
  else
 
11478
    puts (dlerror ());
 
11479
 
 
11480
  return status;
 
11481
}
 
11482
_LT_EOF
 
11483
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11484
  (eval $ac_link) 2>&5
 
11485
  ac_status=$?
 
11486
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11487
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11488
    (./conftest; exit; ) >&5 2>/dev/null
 
11489
    lt_status=$?
 
11490
    case x$lt_status in
 
11491
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11492
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11493
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11494
    esac
 
11495
  else :
 
11496
    # compilation failed
 
11497
    lt_cv_dlopen_self=no
 
11498
  fi
 
11499
fi
 
11500
rm -fr conftest*
 
11501
 
 
11502
 
 
11503
fi
 
11504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11505
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11506
 
 
11507
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11508
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11509
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11510
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11511
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
11512
  $as_echo_n "(cached) " >&6
 
11513
else
 
11514
          if test "$cross_compiling" = yes; then :
 
11515
  lt_cv_dlopen_self_static=cross
 
11516
else
 
11517
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11518
  lt_status=$lt_dlunknown
 
11519
  cat > conftest.$ac_ext <<_LT_EOF
 
11520
#line 11520 "configure"
 
11521
#include "confdefs.h"
 
11522
 
 
11523
#if HAVE_DLFCN_H
 
11524
#include <dlfcn.h>
 
11525
#endif
 
11526
 
 
11527
#include <stdio.h>
 
11528
 
 
11529
#ifdef RTLD_GLOBAL
 
11530
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11531
#else
 
11532
#  ifdef DL_GLOBAL
 
11533
#    define LT_DLGLOBAL         DL_GLOBAL
 
11534
#  else
 
11535
#    define LT_DLGLOBAL         0
 
11536
#  endif
 
11537
#endif
 
11538
 
 
11539
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11540
   find out it does not work in some platform. */
 
11541
#ifndef LT_DLLAZY_OR_NOW
 
11542
#  ifdef RTLD_LAZY
 
11543
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11544
#  else
 
11545
#    ifdef DL_LAZY
 
11546
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11547
#    else
 
11548
#      ifdef RTLD_NOW
 
11549
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11550
#      else
 
11551
#        ifdef DL_NOW
 
11552
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11553
#        else
 
11554
#          define LT_DLLAZY_OR_NOW      0
 
11555
#        endif
 
11556
#      endif
 
11557
#    endif
 
11558
#  endif
 
11559
#endif
 
11560
 
 
11561
void fnord() { int i=42;}
 
11562
int main ()
 
11563
{
 
11564
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11565
  int status = $lt_dlunknown;
 
11566
 
 
11567
  if (self)
 
11568
    {
 
11569
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11570
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11571
      /* dlclose (self); */
 
11572
    }
 
11573
  else
 
11574
    puts (dlerror ());
 
11575
 
 
11576
  return status;
 
11577
}
 
11578
_LT_EOF
 
11579
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11580
  (eval $ac_link) 2>&5
 
11581
  ac_status=$?
 
11582
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11583
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11584
    (./conftest; exit; ) >&5 2>/dev/null
 
11585
    lt_status=$?
 
11586
    case x$lt_status in
 
11587
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11588
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11589
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11590
    esac
 
11591
  else :
 
11592
    # compilation failed
 
11593
    lt_cv_dlopen_self_static=no
 
11594
  fi
 
11595
fi
 
11596
rm -fr conftest*
 
11597
 
 
11598
 
 
11599
fi
 
11600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11601
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11602
    fi
 
11603
 
 
11604
    CPPFLAGS="$save_CPPFLAGS"
 
11605
    LDFLAGS="$save_LDFLAGS"
 
11606
    LIBS="$save_LIBS"
 
11607
    ;;
 
11608
  esac
 
11609
 
 
11610
  case $lt_cv_dlopen_self in
 
11611
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11612
  *) enable_dlopen_self=unknown ;;
 
11613
  esac
 
11614
 
 
11615
  case $lt_cv_dlopen_self_static in
 
11616
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11617
  *) enable_dlopen_self_static=unknown ;;
 
11618
  esac
 
11619
fi
 
11620
 
 
11621
 
 
11622
 
 
11623
 
 
11624
 
 
11625
 
 
11626
 
 
11627
 
 
11628
 
 
11629
 
 
11630
 
 
11631
 
 
11632
 
 
11633
 
 
11634
 
 
11635
 
 
11636
 
 
11637
striplib=
 
11638
old_striplib=
 
11639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11640
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11641
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11642
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11643
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11645
$as_echo "yes" >&6; }
 
11646
else
 
11647
# FIXME - insert some real tests, host_os isn't really good enough
 
11648
  case $host_os in
 
11649
  darwin*)
 
11650
    if test -n "$STRIP" ; then
 
11651
      striplib="$STRIP -x"
 
11652
      old_striplib="$STRIP -S"
 
11653
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11654
$as_echo "yes" >&6; }
 
11655
    else
 
11656
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11657
$as_echo "no" >&6; }
 
11658
    fi
 
11659
    ;;
 
11660
  *)
 
11661
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11662
$as_echo "no" >&6; }
 
11663
    ;;
 
11664
  esac
 
11665
fi
 
11666
 
 
11667
 
 
11668
 
 
11669
 
 
11670
 
 
11671
 
 
11672
 
 
11673
 
 
11674
 
 
11675
 
 
11676
 
 
11677
 
 
11678
  # Report which library types will actually be built
 
11679
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11680
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11682
$as_echo "$can_build_shared" >&6; }
 
11683
 
 
11684
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11685
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11686
  test "$can_build_shared" = "no" && enable_shared=no
 
11687
 
 
11688
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11689
  # are all built from PIC.
 
11690
  case $host_os in
 
11691
  aix3*)
 
11692
    test "$enable_shared" = yes && enable_static=no
 
11693
    if test -n "$RANLIB"; then
 
11694
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11695
      postinstall_cmds='$RANLIB $lib'
 
11696
    fi
 
11697
    ;;
 
11698
 
 
11699
  aix[4-9]*)
 
11700
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11701
      test "$enable_shared" = yes && enable_static=no
 
11702
    fi
 
11703
    ;;
 
11704
  esac
 
11705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11706
$as_echo "$enable_shared" >&6; }
 
11707
 
 
11708
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11709
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11710
  # Make sure either enable_shared or enable_static is yes.
 
11711
  test "$enable_shared" = yes || enable_static=yes
 
11712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11713
$as_echo "$enable_static" >&6; }
 
11714
 
 
11715
 
 
11716
 
 
11717
 
 
11718
fi
 
11719
ac_ext=c
 
11720
ac_cpp='$CPP $CPPFLAGS'
 
11721
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11722
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11723
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11724
 
 
11725
CC="$lt_save_CC"
 
11726
 
 
11727
 
 
11728
 
 
11729
 
 
11730
 
 
11731
 
 
11732
 
 
11733
 
 
11734
 
 
11735
 
 
11736
 
 
11737
 
 
11738
 
 
11739
        ac_config_commands="$ac_config_commands libtool"
 
11740
 
 
11741
 
 
11742
 
 
11743
 
 
11744
# Only expand once:
 
11745
 
 
11746
 
 
11747
 
 
11748
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile swig/Makefile swig/perl/Makefile swig/perl/Makefile.PL swig/python/Makefile swig/python/setup.py swig/ruby/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/libaalogparse.test/Makefile testsuite/lib/Makefile"
 
11749
 
 
11750
cat >confcache <<\_ACEOF
 
11751
# This file is a shell script that caches the results of configure
 
11752
# tests run on this system so they can be shared between configure
 
11753
# scripts and configure runs, see configure's option --config-cache.
 
11754
# It is not useful on other systems.  If it contains results you don't
 
11755
# want to keep, you may remove or edit it.
 
11756
#
 
11757
# config.status only pays attention to the cache file if you give it
 
11758
# the --recheck option to rerun configure.
 
11759
#
 
11760
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
11761
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
11762
# following values.
 
11763
 
 
11764
_ACEOF
 
11765
 
 
11766
# The following way of writing the cache mishandles newlines in values,
 
11767
# but we know of no workaround that is simple, portable, and efficient.
 
11768
# So, we kill variables containing newlines.
 
11769
# Ultrix sh set writes to stderr and can't be redirected directly,
 
11770
# and sets the high bit in the cache file unless we assign to the vars.
 
11771
(
 
11772
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
11773
    eval ac_val=\$$ac_var
 
11774
    case $ac_val in #(
 
11775
    *${as_nl}*)
 
11776
      case $ac_var in #(
 
11777
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
11778
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
11779
      esac
 
11780
      case $ac_var in #(
 
11781
      _ | IFS | as_nl) ;; #(
 
11782
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
11783
      *) { eval $ac_var=; unset $ac_var;} ;;
 
11784
      esac ;;
 
11785
    esac
 
11786
  done
 
11787
 
 
11788
  (set) 2>&1 |
 
11789
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
11790
    *${as_nl}ac_space=\ *)
 
11791
      # `set' does not quote correctly, so add quotes: double-quote
 
11792
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
11793
      sed -n \
 
11794
        "s/'/'\\\\''/g;
 
11795
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
11796
      ;; #(
 
11797
    *)
 
11798
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
11799
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
11800
      ;;
 
11801
    esac |
 
11802
    sort
 
11803
) |
 
11804
  sed '
 
11805
     /^ac_cv_env_/b end
 
11806
     t clear
 
11807
     :clear
 
11808
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
11809
     t end
 
11810
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
11811
     :end' >>confcache
 
11812
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
11813
  if test -w "$cache_file"; then
 
11814
    test "x$cache_file" != "x/dev/null" &&
 
11815
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
11816
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
11817
    cat confcache >$cache_file
 
11818
  else
 
11819
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
11820
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
11821
  fi
 
11822
fi
 
11823
rm -f confcache
 
11824
 
 
11825
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
11826
# Let make expand exec_prefix.
 
11827
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
11828
 
 
11829
# Transform confdefs.h into DEFS.
 
11830
# Protect against shell expansion while executing Makefile rules.
 
11831
# Protect against Makefile macro expansion.
 
11832
#
 
11833
# If the first sed substitution is executed (which looks for macros that
 
11834
# take arguments), then branch to the quote section.  Otherwise,
 
11835
# look for a macro that doesn't take arguments.
 
11836
ac_script='
 
11837
:mline
 
11838
/\\$/{
 
11839
 N
 
11840
 s,\\\n,,
 
11841
 b mline
 
11842
}
 
11843
t clear
 
11844
:clear
 
11845
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
11846
t quote
 
11847
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
11848
t quote
 
11849
b any
 
11850
:quote
 
11851
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
11852
s/\[/\\&/g
 
11853
s/\]/\\&/g
 
11854
s/\$/$$/g
 
11855
H
 
11856
:any
 
11857
${
 
11858
        g
 
11859
        s/^\n//
 
11860
        s/\n/ /g
 
11861
        p
 
11862
}
 
11863
'
 
11864
DEFS=`sed -n "$ac_script" confdefs.h`
 
11865
 
 
11866
 
 
11867
ac_libobjs=
 
11868
ac_ltlibobjs=
 
11869
U=
 
11870
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
11871
  # 1. Remove the extension, and $U if already installed.
 
11872
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
11873
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
11874
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
11875
  #    will be set to the directory where LIBOBJS objects are built.
 
11876
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
11877
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
11878
done
 
11879
LIBOBJS=$ac_libobjs
 
11880
 
 
11881
LTLIBOBJS=$ac_ltlibobjs
 
11882
 
 
11883
 
 
11884
 if test -n "$EXEEXT"; then
 
11885
  am__EXEEXT_TRUE=
 
11886
  am__EXEEXT_FALSE='#'
 
11887
else
 
11888
  am__EXEEXT_TRUE='#'
 
11889
  am__EXEEXT_FALSE=
 
11890
fi
 
11891
 
 
11892
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
11893
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
11894
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11895
fi
 
11896
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
11897
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
11898
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11899
fi
 
11900
if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
 
11901
  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
 
11902
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11903
fi
 
11904
if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
 
11905
  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
 
11906
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11907
fi
 
11908
if test -z "${HAVE_RUBY_TRUE}" && test -z "${HAVE_RUBY_FALSE}"; then
 
11909
  as_fn_error $? "conditional \"HAVE_RUBY\" was never defined.
 
11910
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11911
fi
 
11912
if test -z "${BUILD_ROOTLIB_TRUE}" && test -z "${BUILD_ROOTLIB_FALSE}"; then
 
11913
  as_fn_error $? "conditional \"BUILD_ROOTLIB\" was never defined.
 
11914
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11915
fi
 
11916
 
 
11917
: ${CONFIG_STATUS=./config.status}
 
11918
ac_write_fail=0
 
11919
ac_clean_files_save=$ac_clean_files
 
11920
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
11921
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
11922
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
11923
as_write_fail=0
 
11924
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
11925
#! $SHELL
 
11926
# Generated by $as_me.
 
11927
# Run this file to recreate the current configuration.
 
11928
# Compiler output produced by configure, useful for debugging
 
11929
# configure, is in config.log if it exists.
 
11930
 
 
11931
debug=false
 
11932
ac_cs_recheck=false
 
11933
ac_cs_silent=false
 
11934
 
 
11935
SHELL=\${CONFIG_SHELL-$SHELL}
 
11936
export SHELL
 
11937
_ASEOF
 
11938
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
11939
## -------------------- ##
 
11940
## M4sh Initialization. ##
 
11941
## -------------------- ##
 
11942
 
 
11943
# Be more Bourne compatible
 
11944
DUALCASE=1; export DUALCASE # for MKS sh
 
11945
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
11946
  emulate sh
 
11947
  NULLCMD=:
 
11948
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
11949
  # is contrary to our usage.  Disable this feature.
 
11950
  alias -g '${1+"$@"}'='"$@"'
 
11951
  setopt NO_GLOB_SUBST
 
11952
else
 
11953
  case `(set -o) 2>/dev/null` in #(
 
11954
  *posix*) :
 
11955
    set -o posix ;; #(
 
11956
  *) :
 
11957
     ;;
 
11958
esac
 
11959
fi
 
11960
 
 
11961
 
 
11962
as_nl='
 
11963
'
 
11964
export as_nl
 
11965
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
11966
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
11967
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
11968
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
11969
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
11970
# but without wasting forks for bash or zsh.
 
11971
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
11972
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
11973
  as_echo='print -r --'
 
11974
  as_echo_n='print -rn --'
 
11975
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
11976
  as_echo='printf %s\n'
 
11977
  as_echo_n='printf %s'
 
11978
else
 
11979
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
11980
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
11981
    as_echo_n='/usr/ucb/echo -n'
 
11982
  else
 
11983
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
11984
    as_echo_n_body='eval
 
11985
      arg=$1;
 
11986
      case $arg in #(
 
11987
      *"$as_nl"*)
 
11988
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
11989
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
11990
      esac;
 
11991
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
11992
    '
 
11993
    export as_echo_n_body
 
11994
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
11995
  fi
 
11996
  export as_echo_body
 
11997
  as_echo='sh -c $as_echo_body as_echo'
 
11998
fi
 
11999
 
 
12000
# The user is always right.
 
12001
if test "${PATH_SEPARATOR+set}" != set; then
 
12002
  PATH_SEPARATOR=:
 
12003
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
12004
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
12005
      PATH_SEPARATOR=';'
 
12006
  }
 
12007
fi
 
12008
 
 
12009
 
 
12010
# IFS
 
12011
# We need space, tab and new line, in precisely that order.  Quoting is
 
12012
# there to prevent editors from complaining about space-tab.
 
12013
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
12014
# splitting by setting IFS to empty value.)
 
12015
IFS=" ""        $as_nl"
 
12016
 
 
12017
# Find who we are.  Look in the path if we contain no directory separator.
 
12018
case $0 in #((
 
12019
  *[\\/]* ) as_myself=$0 ;;
 
12020
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12021
for as_dir in $PATH
 
12022
do
 
12023
  IFS=$as_save_IFS
 
12024
  test -z "$as_dir" && as_dir=.
 
12025
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
12026
  done
 
12027
IFS=$as_save_IFS
 
12028
 
 
12029
     ;;
 
12030
esac
 
12031
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
12032
# in which case we are not to be found in the path.
 
12033
if test "x$as_myself" = x; then
 
12034
  as_myself=$0
 
12035
fi
 
12036
if test ! -f "$as_myself"; then
 
12037
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
12038
  exit 1
 
12039
fi
 
12040
 
 
12041
# Unset variables that we do not need and which cause bugs (e.g. in
 
12042
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
12043
# suppresses any "Segmentation fault" message there.  '((' could
 
12044
# trigger a bug in pdksh 5.2.14.
 
12045
for as_var in BASH_ENV ENV MAIL MAILPATH
 
12046
do eval test x\${$as_var+set} = xset \
 
12047
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
12048
done
 
12049
PS1='$ '
 
12050
PS2='> '
 
12051
PS4='+ '
 
12052
 
 
12053
# NLS nuisances.
 
12054
LC_ALL=C
 
12055
export LC_ALL
 
12056
LANGUAGE=C
 
12057
export LANGUAGE
 
12058
 
 
12059
# CDPATH.
 
12060
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
12061
 
 
12062
 
 
12063
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
12064
# ----------------------------------------
 
12065
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
12066
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
12067
# script with STATUS, using 1 if that was 0.
 
12068
as_fn_error ()
 
12069
{
 
12070
  as_status=$1; test $as_status -eq 0 && as_status=1
 
12071
  if test "$4"; then
 
12072
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
12073
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
12074
  fi
 
12075
  $as_echo "$as_me: error: $2" >&2
 
12076
  as_fn_exit $as_status
 
12077
} # as_fn_error
 
12078
 
 
12079
 
 
12080
# as_fn_set_status STATUS
 
12081
# -----------------------
 
12082
# Set $? to STATUS, without forking.
 
12083
as_fn_set_status ()
 
12084
{
 
12085
  return $1
 
12086
} # as_fn_set_status
 
12087
 
 
12088
# as_fn_exit STATUS
 
12089
# -----------------
 
12090
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
12091
as_fn_exit ()
 
12092
{
 
12093
  set +e
 
12094
  as_fn_set_status $1
 
12095
  exit $1
 
12096
} # as_fn_exit
 
12097
 
 
12098
# as_fn_unset VAR
 
12099
# ---------------
 
12100
# Portably unset VAR.
 
12101
as_fn_unset ()
 
12102
{
 
12103
  { eval $1=; unset $1;}
 
12104
}
 
12105
as_unset=as_fn_unset
 
12106
# as_fn_append VAR VALUE
 
12107
# ----------------------
 
12108
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
12109
# advantage of any shell optimizations that allow amortized linear growth over
 
12110
# repeated appends, instead of the typical quadratic growth present in naive
 
12111
# implementations.
 
12112
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
12113
  eval 'as_fn_append ()
 
12114
  {
 
12115
    eval $1+=\$2
 
12116
  }'
 
12117
else
 
12118
  as_fn_append ()
 
12119
  {
 
12120
    eval $1=\$$1\$2
 
12121
  }
 
12122
fi # as_fn_append
 
12123
 
 
12124
# as_fn_arith ARG...
 
12125
# ------------------
 
12126
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
12127
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
12128
# must be portable across $(()) and expr.
 
12129
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
12130
  eval 'as_fn_arith ()
 
12131
  {
 
12132
    as_val=$(( $* ))
 
12133
  }'
 
12134
else
 
12135
  as_fn_arith ()
 
12136
  {
 
12137
    as_val=`expr "$@" || test $? -eq 1`
 
12138
  }
 
12139
fi # as_fn_arith
 
12140
 
 
12141
 
 
12142
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
12143
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
12144
  as_expr=expr
 
12145
else
 
12146
  as_expr=false
 
12147
fi
 
12148
 
 
12149
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
12150
  as_basename=basename
 
12151
else
 
12152
  as_basename=false
 
12153
fi
 
12154
 
 
12155
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
12156
  as_dirname=dirname
 
12157
else
 
12158
  as_dirname=false
 
12159
fi
 
12160
 
 
12161
as_me=`$as_basename -- "$0" ||
 
12162
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
12163
         X"$0" : 'X\(//\)$' \| \
 
12164
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
12165
$as_echo X/"$0" |
 
12166
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
12167
            s//\1/
 
12168
            q
 
12169
          }
 
12170
          /^X\/\(\/\/\)$/{
 
12171
            s//\1/
 
12172
            q
 
12173
          }
 
12174
          /^X\/\(\/\).*/{
 
12175
            s//\1/
 
12176
            q
 
12177
          }
 
12178
          s/.*/./; q'`
 
12179
 
 
12180
# Avoid depending upon Character Ranges.
 
12181
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
12182
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
12183
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
12184
as_cr_digits='0123456789'
 
12185
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
12186
 
 
12187
ECHO_C= ECHO_N= ECHO_T=
 
12188
case `echo -n x` in #(((((
 
12189
-n*)
 
12190
  case `echo 'xy\c'` in
 
12191
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
12192
  xy)  ECHO_C='\c';;
 
12193
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
12194
       ECHO_T=' ';;
 
12195
  esac;;
 
12196
*)
 
12197
  ECHO_N='-n';;
 
12198
esac
 
12199
 
 
12200
rm -f conf$$ conf$$.exe conf$$.file
 
12201
if test -d conf$$.dir; then
 
12202
  rm -f conf$$.dir/conf$$.file
 
12203
else
 
12204
  rm -f conf$$.dir
 
12205
  mkdir conf$$.dir 2>/dev/null
 
12206
fi
 
12207
if (echo >conf$$.file) 2>/dev/null; then
 
12208
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
12209
    as_ln_s='ln -s'
 
12210
    # ... but there are two gotchas:
 
12211
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
12212
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
12213
    # In both cases, we have to default to `cp -p'.
 
12214
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
12215
      as_ln_s='cp -p'
 
12216
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
12217
    as_ln_s=ln
 
12218
  else
 
12219
    as_ln_s='cp -p'
 
12220
  fi
 
12221
else
 
12222
  as_ln_s='cp -p'
 
12223
fi
 
12224
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
12225
rmdir conf$$.dir 2>/dev/null
 
12226
 
 
12227
 
 
12228
# as_fn_mkdir_p
 
12229
# -------------
 
12230
# Create "$as_dir" as a directory, including parents if necessary.
 
12231
as_fn_mkdir_p ()
 
12232
{
 
12233
 
 
12234
  case $as_dir in #(
 
12235
  -*) as_dir=./$as_dir;;
 
12236
  esac
 
12237
  test -d "$as_dir" || eval $as_mkdir_p || {
 
12238
    as_dirs=
 
12239
    while :; do
 
12240
      case $as_dir in #(
 
12241
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
12242
      *) as_qdir=$as_dir;;
 
12243
      esac
 
12244
      as_dirs="'$as_qdir' $as_dirs"
 
12245
      as_dir=`$as_dirname -- "$as_dir" ||
 
12246
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12247
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
12248
         X"$as_dir" : 'X\(//\)$' \| \
 
12249
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
12250
$as_echo X"$as_dir" |
 
12251
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12252
            s//\1/
 
12253
            q
 
12254
          }
 
12255
          /^X\(\/\/\)[^/].*/{
 
12256
            s//\1/
 
12257
            q
 
12258
          }
 
12259
          /^X\(\/\/\)$/{
 
12260
            s//\1/
 
12261
            q
 
12262
          }
 
12263
          /^X\(\/\).*/{
 
12264
            s//\1/
 
12265
            q
 
12266
          }
 
12267
          s/.*/./; q'`
 
12268
      test -d "$as_dir" && break
 
12269
    done
 
12270
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
12271
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
12272
 
 
12273
 
 
12274
} # as_fn_mkdir_p
 
12275
if mkdir -p . 2>/dev/null; then
 
12276
  as_mkdir_p='mkdir -p "$as_dir"'
 
12277
else
 
12278
  test -d ./-p && rmdir ./-p
 
12279
  as_mkdir_p=false
 
12280
fi
 
12281
 
 
12282
if test -x / >/dev/null 2>&1; then
 
12283
  as_test_x='test -x'
 
12284
else
 
12285
  if ls -dL / >/dev/null 2>&1; then
 
12286
    as_ls_L_option=L
 
12287
  else
 
12288
    as_ls_L_option=
 
12289
  fi
 
12290
  as_test_x='
 
12291
    eval sh -c '\''
 
12292
      if test -d "$1"; then
 
12293
        test -d "$1/.";
 
12294
      else
 
12295
        case $1 in #(
 
12296
        -*)set "./$1";;
 
12297
        esac;
 
12298
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
12299
        ???[sx]*):;;*)false;;esac;fi
 
12300
    '\'' sh
 
12301
  '
 
12302
fi
 
12303
as_executable_p=$as_test_x
 
12304
 
 
12305
# Sed expression to map a string onto a valid CPP name.
 
12306
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
12307
 
 
12308
# Sed expression to map a string onto a valid variable name.
 
12309
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
12310
 
 
12311
 
 
12312
exec 6>&1
 
12313
## ----------------------------------- ##
 
12314
## Main body of $CONFIG_STATUS script. ##
 
12315
## ----------------------------------- ##
 
12316
_ASEOF
 
12317
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
12318
 
 
12319
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12320
# Save the log message, to keep $0 and so on meaningful, and to
 
12321
# report actual input values of CONFIG_FILES etc. instead of their
 
12322
# values after options handling.
 
12323
ac_log="
 
12324
This file was extended by $as_me, which was
 
12325
generated by GNU Autoconf 2.67.  Invocation command line was
 
12326
 
 
12327
  CONFIG_FILES    = $CONFIG_FILES
 
12328
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
12329
  CONFIG_LINKS    = $CONFIG_LINKS
 
12330
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
12331
  $ $0 $@
 
12332
 
 
12333
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
12334
"
 
12335
 
 
12336
_ACEOF
 
12337
 
 
12338
case $ac_config_files in *"
 
12339
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
12340
esac
 
12341
 
 
12342
 
 
12343
 
 
12344
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12345
# Files that config.status was made for.
 
12346
config_files="$ac_config_files"
 
12347
config_commands="$ac_config_commands"
 
12348
 
 
12349
_ACEOF
 
12350
 
 
12351
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12352
ac_cs_usage="\
 
12353
\`$as_me' instantiates files and other configuration actions
 
12354
from templates according to the current configuration.  Unless the files
 
12355
and actions are specified as TAGs, all are instantiated by default.
 
12356
 
 
12357
Usage: $0 [OPTION]... [TAG]...
 
12358
 
 
12359
  -h, --help       print this help, then exit
 
12360
  -V, --version    print version number and configuration settings, then exit
 
12361
      --config     print configuration, then exit
 
12362
  -q, --quiet, --silent
 
12363
                   do not print progress messages
 
12364
  -d, --debug      don't remove temporary files
 
12365
      --recheck    update $as_me by reconfiguring in the same conditions
 
12366
      --file=FILE[:TEMPLATE]
 
12367
                   instantiate the configuration file FILE
 
12368
 
 
12369
Configuration files:
 
12370
$config_files
 
12371
 
 
12372
Configuration commands:
 
12373
$config_commands
 
12374
 
 
12375
Report bugs to the package provider."
 
12376
 
 
12377
_ACEOF
 
12378
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12379
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
12380
ac_cs_version="\\
 
12381
config.status
 
12382
configured by $0, generated by GNU Autoconf 2.67,
 
12383
  with options \\"\$ac_cs_config\\"
 
12384
 
 
12385
Copyright (C) 2010 Free Software Foundation, Inc.
 
12386
This config.status script is free software; the Free Software Foundation
 
12387
gives unlimited permission to copy, distribute and modify it."
 
12388
 
 
12389
ac_pwd='$ac_pwd'
 
12390
srcdir='$srcdir'
 
12391
INSTALL='$INSTALL'
 
12392
MKDIR_P='$MKDIR_P'
 
12393
AWK='$AWK'
 
12394
test -n "\$AWK" || AWK=awk
 
12395
_ACEOF
 
12396
 
 
12397
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12398
# The default lists apply if the user does not specify any file.
 
12399
ac_need_defaults=:
 
12400
while test $# != 0
 
12401
do
 
12402
  case $1 in
 
12403
  --*=?*)
 
12404
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
12405
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
12406
    ac_shift=:
 
12407
    ;;
 
12408
  --*=)
 
12409
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
12410
    ac_optarg=
 
12411
    ac_shift=:
 
12412
    ;;
 
12413
  *)
 
12414
    ac_option=$1
 
12415
    ac_optarg=$2
 
12416
    ac_shift=shift
 
12417
    ;;
 
12418
  esac
 
12419
 
 
12420
  case $ac_option in
 
12421
  # Handling of the options.
 
12422
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
12423
    ac_cs_recheck=: ;;
 
12424
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
12425
    $as_echo "$ac_cs_version"; exit ;;
 
12426
  --config | --confi | --conf | --con | --co | --c )
 
12427
    $as_echo "$ac_cs_config"; exit ;;
 
12428
  --debug | --debu | --deb | --de | --d | -d )
 
12429
    debug=: ;;
 
12430
  --file | --fil | --fi | --f )
 
12431
    $ac_shift
 
12432
    case $ac_optarg in
 
12433
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
12434
    '') as_fn_error $? "missing file argument" ;;
 
12435
    esac
 
12436
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
12437
    ac_need_defaults=false;;
 
12438
  --he | --h |  --help | --hel | -h )
 
12439
    $as_echo "$ac_cs_usage"; exit ;;
 
12440
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
12441
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
12442
    ac_cs_silent=: ;;
 
12443
 
 
12444
  # This is an error.
 
12445
  -*) as_fn_error $? "unrecognized option: \`$1'
 
12446
Try \`$0 --help' for more information." ;;
 
12447
 
 
12448
  *) as_fn_append ac_config_targets " $1"
 
12449
     ac_need_defaults=false ;;
 
12450
 
 
12451
  esac
 
12452
  shift
 
12453
done
 
12454
 
 
12455
ac_configure_extra_args=
 
12456
 
 
12457
if $ac_cs_silent; then
 
12458
  exec 6>/dev/null
 
12459
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
12460
fi
 
12461
 
 
12462
_ACEOF
 
12463
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12464
if \$ac_cs_recheck; then
 
12465
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
12466
  shift
 
12467
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
12468
  CONFIG_SHELL='$SHELL'
 
12469
  export CONFIG_SHELL
 
12470
  exec "\$@"
 
12471
fi
 
12472
 
 
12473
_ACEOF
 
12474
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12475
exec 5>>config.log
 
12476
{
 
12477
  echo
 
12478
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
12479
## Running $as_me. ##
 
12480
_ASBOX
 
12481
  $as_echo "$ac_log"
 
12482
} >&5
 
12483
 
 
12484
_ACEOF
 
12485
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12486
#
 
12487
# INIT-COMMANDS
 
12488
#
 
12489
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
12490
 
 
12491
 
 
12492
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
12493
# if CDPATH is set.
 
12494
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
12495
 
 
12496
sed_quote_subst='$sed_quote_subst'
 
12497
double_quote_subst='$double_quote_subst'
 
12498
delay_variable_subst='$delay_variable_subst'
 
12499
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
12500
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
12501
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
12502
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
12503
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
12504
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
12505
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
12506
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
12507
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
12508
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
12509
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
12510
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
12511
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
12512
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
12513
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
12514
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
12515
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
12516
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
12517
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
12518
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
12519
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
12520
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
12521
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
12522
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
12523
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
12524
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
12525
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12526
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12527
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
12528
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
12529
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
12530
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
12531
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
12532
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
12533
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
12534
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12535
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12536
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12537
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
12538
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
12539
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
12540
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
12541
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
12542
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
12543
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"`'
 
12544
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"`'
 
12545
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
12546
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
12547
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
12548
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
12549
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12550
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
12551
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
12552
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
12553
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
12554
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
12555
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
12556
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
12557
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
12558
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
12559
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
12560
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
12561
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12562
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12563
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
12564
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
12565
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12566
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12567
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
12568
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12569
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12570
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12571
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12572
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12573
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12574
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
12575
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12576
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12577
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12578
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
12579
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
12580
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
12581
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
12582
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
12583
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
12584
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
12585
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
12586
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
12587
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
12588
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
12589
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12590
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
12591
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
12592
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12593
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12594
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
12595
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
12596
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
12597
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
12598
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
12599
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
12600
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
12601
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12602
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12603
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12604
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12605
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12606
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12607
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
12608
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
12609
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12610
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12611
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
12612
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
12613
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
12614
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
12615
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
12616
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
12617
 
 
12618
LTCC='$LTCC'
 
12619
LTCFLAGS='$LTCFLAGS'
 
12620
compiler='$compiler_DEFAULT'
 
12621
 
 
12622
# Quote evaled strings.
 
12623
for var in SED \
 
12624
GREP \
 
12625
EGREP \
 
12626
FGREP \
 
12627
LD \
 
12628
NM \
 
12629
LN_S \
 
12630
lt_SP2NL \
 
12631
lt_NL2SP \
 
12632
reload_flag \
 
12633
OBJDUMP \
 
12634
deplibs_check_method \
 
12635
file_magic_cmd \
 
12636
AR \
 
12637
AR_FLAGS \
 
12638
STRIP \
 
12639
RANLIB \
 
12640
CC \
 
12641
CFLAGS \
 
12642
compiler \
 
12643
lt_cv_sys_global_symbol_pipe \
 
12644
lt_cv_sys_global_symbol_to_cdecl \
 
12645
lt_cv_sys_global_symbol_to_c_name_address \
 
12646
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
12647
SHELL \
 
12648
ECHO \
 
12649
lt_prog_compiler_no_builtin_flag \
 
12650
lt_prog_compiler_wl \
 
12651
lt_prog_compiler_pic \
 
12652
lt_prog_compiler_static \
 
12653
lt_cv_prog_compiler_c_o \
 
12654
need_locks \
 
12655
DSYMUTIL \
 
12656
NMEDIT \
 
12657
LIPO \
 
12658
OTOOL \
 
12659
OTOOL64 \
 
12660
shrext_cmds \
 
12661
export_dynamic_flag_spec \
 
12662
whole_archive_flag_spec \
 
12663
compiler_needs_object \
 
12664
with_gnu_ld \
 
12665
allow_undefined_flag \
 
12666
no_undefined_flag \
 
12667
hardcode_libdir_flag_spec \
 
12668
hardcode_libdir_flag_spec_ld \
 
12669
hardcode_libdir_separator \
 
12670
fix_srcfile_path \
 
12671
exclude_expsyms \
 
12672
include_expsyms \
 
12673
file_list_spec \
 
12674
variables_saved_for_relink \
 
12675
libname_spec \
 
12676
library_names_spec \
 
12677
soname_spec \
 
12678
finish_eval \
 
12679
old_striplib \
 
12680
striplib; do
 
12681
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
12682
    *[\\\\\\\`\\"\\\$]*)
 
12683
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
12684
      ;;
 
12685
    *)
 
12686
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
12687
      ;;
 
12688
    esac
 
12689
done
 
12690
 
 
12691
# Double-quote double-evaled strings.
 
12692
for var in reload_cmds \
 
12693
old_postinstall_cmds \
 
12694
old_postuninstall_cmds \
 
12695
old_archive_cmds \
 
12696
extract_expsyms_cmds \
 
12697
old_archive_from_new_cmds \
 
12698
old_archive_from_expsyms_cmds \
 
12699
archive_cmds \
 
12700
archive_expsym_cmds \
 
12701
module_cmds \
 
12702
module_expsym_cmds \
 
12703
export_symbols_cmds \
 
12704
prelink_cmds \
 
12705
postinstall_cmds \
 
12706
postuninstall_cmds \
 
12707
finish_cmds \
 
12708
sys_lib_search_path_spec \
 
12709
sys_lib_dlsearch_path_spec; do
 
12710
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
12711
    *[\\\\\\\`\\"\\\$]*)
 
12712
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
12713
      ;;
 
12714
    *)
 
12715
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
12716
      ;;
 
12717
    esac
 
12718
done
 
12719
 
 
12720
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
12721
case \$lt_ECHO in
 
12722
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
12723
  ;;
 
12724
esac
 
12725
 
 
12726
ac_aux_dir='$ac_aux_dir'
 
12727
xsi_shell='$xsi_shell'
 
12728
lt_shell_append='$lt_shell_append'
 
12729
 
 
12730
# See if we are running on zsh, and set the options which allow our
 
12731
# commands through without removal of \ escapes INIT.
 
12732
if test -n "\${ZSH_VERSION+set}" ; then
 
12733
   setopt NO_GLOB_SUBST
 
12734
fi
 
12735
 
 
12736
 
 
12737
    PACKAGE='$PACKAGE'
 
12738
    VERSION='$VERSION'
 
12739
    TIMESTAMP='$TIMESTAMP'
 
12740
    RM='$RM'
 
12741
    ofile='$ofile'
 
12742
 
 
12743
 
 
12744
 
 
12745
 
 
12746
_ACEOF
 
12747
 
 
12748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12749
 
 
12750
# Handling of arguments.
 
12751
for ac_config_target in $ac_config_targets
 
12752
do
 
12753
  case $ac_config_target in
 
12754
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
12755
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
12756
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
12757
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
12758
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
12759
    "swig/Makefile") CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
 
12760
    "swig/perl/Makefile") CONFIG_FILES="$CONFIG_FILES swig/perl/Makefile" ;;
 
12761
    "swig/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES swig/perl/Makefile.PL" ;;
 
12762
    "swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES swig/python/Makefile" ;;
 
12763
    "swig/python/setup.py") CONFIG_FILES="$CONFIG_FILES swig/python/setup.py" ;;
 
12764
    "swig/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES swig/ruby/Makefile" ;;
 
12765
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
 
12766
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
 
12767
    "testsuite/libaalogparse.test/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libaalogparse.test/Makefile" ;;
 
12768
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
 
12769
 
 
12770
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
12771
  esac
 
12772
done
 
12773
 
 
12774
 
 
12775
# If the user did not use the arguments to specify the items to instantiate,
 
12776
# then the envvar interface is used.  Set only those that are not.
 
12777
# We use the long form for the default assignment because of an extremely
 
12778
# bizarre bug on SunOS 4.1.3.
 
12779
if $ac_need_defaults; then
 
12780
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
12781
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
12782
fi
 
12783
 
 
12784
# Have a temporary directory for convenience.  Make it in the build tree
 
12785
# simply because there is no reason against having it here, and in addition,
 
12786
# creating and moving files from /tmp can sometimes cause problems.
 
12787
# Hook for its removal unless debugging.
 
12788
# Note that there is a small window in which the directory will not be cleaned:
 
12789
# after its creation but before its name has been assigned to `$tmp'.
 
12790
$debug ||
 
12791
{
 
12792
  tmp=
 
12793
  trap 'exit_status=$?
 
12794
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
12795
' 0
 
12796
  trap 'as_fn_exit 1' 1 2 13 15
 
12797
}
 
12798
# Create a (secure) tmp directory for tmp files.
 
12799
 
 
12800
{
 
12801
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
12802
  test -n "$tmp" && test -d "$tmp"
 
12803
}  ||
 
12804
{
 
12805
  tmp=./conf$$-$RANDOM
 
12806
  (umask 077 && mkdir "$tmp")
 
12807
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
12808
 
 
12809
# Set up the scripts for CONFIG_FILES section.
 
12810
# No need to generate them if there are no CONFIG_FILES.
 
12811
# This happens for instance with `./config.status config.h'.
 
12812
if test -n "$CONFIG_FILES"; then
 
12813
 
 
12814
 
 
12815
ac_cr=`echo X | tr X '\015'`
 
12816
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
12817
# But we know of no other shell where ac_cr would be empty at this
 
12818
# point, so we can use a bashism as a fallback.
 
12819
if test "x$ac_cr" = x; then
 
12820
  eval ac_cr=\$\'\\r\'
 
12821
fi
 
12822
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
12823
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
12824
  ac_cs_awk_cr='\\r'
 
12825
else
 
12826
  ac_cs_awk_cr=$ac_cr
 
12827
fi
 
12828
 
 
12829
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
12830
_ACEOF
 
12831
 
 
12832
 
 
12833
{
 
12834
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
12835
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
12836
  echo "_ACEOF"
 
12837
} >conf$$subs.sh ||
 
12838
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
12839
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
12840
ac_delim='%!_!# '
 
12841
for ac_last_try in false false false false false :; do
 
12842
  . ./conf$$subs.sh ||
 
12843
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
12844
 
 
12845
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
12846
  if test $ac_delim_n = $ac_delim_num; then
 
12847
    break
 
12848
  elif $ac_last_try; then
 
12849
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
12850
  else
 
12851
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
12852
  fi
 
12853
done
 
12854
rm -f conf$$subs.sh
 
12855
 
 
12856
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12857
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
12858
_ACEOF
 
12859
sed -n '
 
12860
h
 
12861
s/^/S["/; s/!.*/"]=/
 
12862
p
 
12863
g
 
12864
s/^[^!]*!//
 
12865
:repl
 
12866
t repl
 
12867
s/'"$ac_delim"'$//
 
12868
t delim
 
12869
:nl
 
12870
h
 
12871
s/\(.\{148\}\)..*/\1/
 
12872
t more1
 
12873
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
12874
p
 
12875
n
 
12876
b repl
 
12877
:more1
 
12878
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
12879
p
 
12880
g
 
12881
s/.\{148\}//
 
12882
t nl
 
12883
:delim
 
12884
h
 
12885
s/\(.\{148\}\)..*/\1/
 
12886
t more2
 
12887
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
12888
p
 
12889
b
 
12890
:more2
 
12891
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
12892
p
 
12893
g
 
12894
s/.\{148\}//
 
12895
t delim
 
12896
' <conf$$subs.awk | sed '
 
12897
/^[^""]/{
 
12898
  N
 
12899
  s/\n//
 
12900
}
 
12901
' >>$CONFIG_STATUS || ac_write_fail=1
 
12902
rm -f conf$$subs.awk
 
12903
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12904
_ACAWK
 
12905
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
12906
  for (key in S) S_is_set[key] = 1
 
12907
  FS = ""
 
12908
 
 
12909
}
 
12910
{
 
12911
  line = $ 0
 
12912
  nfields = split(line, field, "@")
 
12913
  substed = 0
 
12914
  len = length(field[1])
 
12915
  for (i = 2; i < nfields; i++) {
 
12916
    key = field[i]
 
12917
    keylen = length(key)
 
12918
    if (S_is_set[key]) {
 
12919
      value = S[key]
 
12920
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
12921
      len += length(value) + length(field[++i])
 
12922
      substed = 1
 
12923
    } else
 
12924
      len += 1 + keylen
 
12925
  }
 
12926
 
 
12927
  print line
 
12928
}
 
12929
 
 
12930
_ACAWK
 
12931
_ACEOF
 
12932
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12933
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
12934
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
12935
else
 
12936
  cat
 
12937
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
12938
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
12939
_ACEOF
 
12940
 
 
12941
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
12942
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
12943
# trailing colons and then remove the whole line if VPATH becomes empty
 
12944
# (actually we leave an empty line to preserve line numbers).
 
12945
if test "x$srcdir" = x.; then
 
12946
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
12947
h
 
12948
s///
 
12949
s/^/:/
 
12950
s/[      ]*$/:/
 
12951
s/:\$(srcdir):/:/g
 
12952
s/:\${srcdir}:/:/g
 
12953
s/:@srcdir@:/:/g
 
12954
s/^:*//
 
12955
s/:*$//
 
12956
x
 
12957
s/\(=[   ]*\).*/\1/
 
12958
G
 
12959
s/\n//
 
12960
s/^[^=]*=[       ]*$//
 
12961
}'
 
12962
fi
 
12963
 
 
12964
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12965
fi # test -n "$CONFIG_FILES"
 
12966
 
 
12967
 
 
12968
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
 
12969
shift
 
12970
for ac_tag
 
12971
do
 
12972
  case $ac_tag in
 
12973
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
12974
  esac
 
12975
  case $ac_mode$ac_tag in
 
12976
  :[FHL]*:*);;
 
12977
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
12978
  :[FH]-) ac_tag=-:-;;
 
12979
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
12980
  esac
 
12981
  ac_save_IFS=$IFS
 
12982
  IFS=:
 
12983
  set x $ac_tag
 
12984
  IFS=$ac_save_IFS
 
12985
  shift
 
12986
  ac_file=$1
 
12987
  shift
 
12988
 
 
12989
  case $ac_mode in
 
12990
  :L) ac_source=$1;;
 
12991
  :[FH])
 
12992
    ac_file_inputs=
 
12993
    for ac_f
 
12994
    do
 
12995
      case $ac_f in
 
12996
      -) ac_f="$tmp/stdin";;
 
12997
      *) # Look for the file first in the build tree, then in the source tree
 
12998
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
12999
         # because $ac_f cannot contain `:'.
 
13000
         test -f "$ac_f" ||
 
13001
           case $ac_f in
 
13002
           [\\/$]*) false;;
 
13003
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
13004
           esac ||
 
13005
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
13006
      esac
 
13007
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
13008
      as_fn_append ac_file_inputs " '$ac_f'"
 
13009
    done
 
13010
 
 
13011
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
13012
    # use $as_me), people would be surprised to read:
 
13013
    #    /* config.h.  Generated by config.status.  */
 
13014
    configure_input='Generated from '`
 
13015
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
13016
        `' by configure.'
 
13017
    if test x"$ac_file" != x-; then
 
13018
      configure_input="$ac_file.  $configure_input"
 
13019
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
13020
$as_echo "$as_me: creating $ac_file" >&6;}
 
13021
    fi
 
13022
    # Neutralize special characters interpreted by sed in replacement strings.
 
13023
    case $configure_input in #(
 
13024
    *\&* | *\|* | *\\* )
 
13025
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
13026
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
13027
    *) ac_sed_conf_input=$configure_input;;
 
13028
    esac
 
13029
 
 
13030
    case $ac_tag in
 
13031
    *:-:* | *:-) cat >"$tmp/stdin" \
 
13032
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
13033
    esac
 
13034
    ;;
 
13035
  esac
 
13036
 
 
13037
  ac_dir=`$as_dirname -- "$ac_file" ||
 
13038
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13039
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
13040
         X"$ac_file" : 'X\(//\)$' \| \
 
13041
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
13042
$as_echo X"$ac_file" |
 
13043
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13044
            s//\1/
 
13045
            q
 
13046
          }
 
13047
          /^X\(\/\/\)[^/].*/{
 
13048
            s//\1/
 
13049
            q
 
13050
          }
 
13051
          /^X\(\/\/\)$/{
 
13052
            s//\1/
 
13053
            q
 
13054
          }
 
13055
          /^X\(\/\).*/{
 
13056
            s//\1/
 
13057
            q
 
13058
          }
 
13059
          s/.*/./; q'`
 
13060
  as_dir="$ac_dir"; as_fn_mkdir_p
 
13061
  ac_builddir=.
 
13062
 
 
13063
case "$ac_dir" in
 
13064
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
13065
*)
 
13066
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
13067
  # A ".." for each directory in $ac_dir_suffix.
 
13068
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
13069
  case $ac_top_builddir_sub in
 
13070
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
13071
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
13072
  esac ;;
 
13073
esac
 
13074
ac_abs_top_builddir=$ac_pwd
 
13075
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
13076
# for backward compatibility:
 
13077
ac_top_builddir=$ac_top_build_prefix
 
13078
 
 
13079
case $srcdir in
 
13080
  .)  # We are building in place.
 
13081
    ac_srcdir=.
 
13082
    ac_top_srcdir=$ac_top_builddir_sub
 
13083
    ac_abs_top_srcdir=$ac_pwd ;;
 
13084
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
13085
    ac_srcdir=$srcdir$ac_dir_suffix;
 
13086
    ac_top_srcdir=$srcdir
 
13087
    ac_abs_top_srcdir=$srcdir ;;
 
13088
  *) # Relative name.
 
13089
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
13090
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
13091
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
13092
esac
 
13093
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
13094
 
 
13095
 
 
13096
  case $ac_mode in
 
13097
  :F)
 
13098
  #
 
13099
  # CONFIG_FILE
 
13100
  #
 
13101
 
 
13102
  case $INSTALL in
 
13103
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
13104
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
13105
  esac
 
13106
  ac_MKDIR_P=$MKDIR_P
 
13107
  case $MKDIR_P in
 
13108
  [\\/$]* | ?:[\\/]* ) ;;
 
13109
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
13110
  esac
 
13111
_ACEOF
 
13112
 
 
13113
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13114
# If the template does not know about datarootdir, expand it.
 
13115
# FIXME: This hack should be removed a few years after 2.60.
 
13116
ac_datarootdir_hack=; ac_datarootdir_seen=
 
13117
ac_sed_dataroot='
 
13118
/datarootdir/ {
 
13119
  p
 
13120
  q
 
13121
}
 
13122
/@datadir@/p
 
13123
/@docdir@/p
 
13124
/@infodir@/p
 
13125
/@localedir@/p
 
13126
/@mandir@/p'
 
13127
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
13128
*datarootdir*) ac_datarootdir_seen=yes;;
 
13129
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
13130
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
13131
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
13132
_ACEOF
 
13133
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13134
  ac_datarootdir_hack='
 
13135
  s&@datadir@&$datadir&g
 
13136
  s&@docdir@&$docdir&g
 
13137
  s&@infodir@&$infodir&g
 
13138
  s&@localedir@&$localedir&g
 
13139
  s&@mandir@&$mandir&g
 
13140
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
13141
esac
 
13142
_ACEOF
 
13143
 
 
13144
# Neutralize VPATH when `$srcdir' = `.'.
 
13145
# Shell code in configure.ac might set extrasub.
 
13146
# FIXME: do we really want to maintain this feature?
 
13147
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13148
ac_sed_extra="$ac_vpsub
 
13149
$extrasub
 
13150
_ACEOF
 
13151
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13152
:t
 
13153
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
13154
s|@configure_input@|$ac_sed_conf_input|;t t
 
13155
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
13156
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
13157
s&@srcdir@&$ac_srcdir&;t t
 
13158
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
13159
s&@top_srcdir@&$ac_top_srcdir&;t t
 
13160
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
13161
s&@builddir@&$ac_builddir&;t t
 
13162
s&@abs_builddir@&$ac_abs_builddir&;t t
 
13163
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
13164
s&@INSTALL@&$ac_INSTALL&;t t
 
13165
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
13166
$ac_datarootdir_hack
 
13167
"
 
13168
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
13169
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
13170
 
 
13171
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
13172
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
13173
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
13174
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
13175
which seems to be undefined.  Please make sure it is defined" >&5
 
13176
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
13177
which seems to be undefined.  Please make sure it is defined" >&2;}
 
13178
 
 
13179
  rm -f "$tmp/stdin"
 
13180
  case $ac_file in
 
13181
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
13182
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
13183
  esac \
 
13184
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
13185
 ;;
 
13186
 
 
13187
 
 
13188
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
13189
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
13190
 ;;
 
13191
  esac
 
13192
 
 
13193
 
 
13194
  case $ac_file$ac_mode in
 
13195
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
13196
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
13197
  # are listed without --file.  Let's play safe and only enable the eval
 
13198
  # if we detect the quoting.
 
13199
  case $CONFIG_FILES in
 
13200
  *\'*) eval set x "$CONFIG_FILES" ;;
 
13201
  *)   set x $CONFIG_FILES ;;
 
13202
  esac
 
13203
  shift
 
13204
  for mf
 
13205
  do
 
13206
    # Strip MF so we end up with the name of the file.
 
13207
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
13208
    # Check whether this is an Automake generated Makefile or not.
 
13209
    # We used to match only the files named `Makefile.in', but
 
13210
    # some people rename them; so instead we look at the file content.
 
13211
    # Grep'ing the first line is not enough: some people post-process
 
13212
    # each Makefile.in and add a new line on top of each file to say so.
 
13213
    # Grep'ing the whole file is not good either: AIX grep has a line
 
13214
    # limit of 2048, but all sed's we know have understand at least 4000.
 
13215
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
13216
      dirpart=`$as_dirname -- "$mf" ||
 
13217
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13218
         X"$mf" : 'X\(//\)[^/]' \| \
 
13219
         X"$mf" : 'X\(//\)$' \| \
 
13220
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
13221
$as_echo X"$mf" |
 
13222
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13223
            s//\1/
 
13224
            q
 
13225
          }
 
13226
          /^X\(\/\/\)[^/].*/{
 
13227
            s//\1/
 
13228
            q
 
13229
          }
 
13230
          /^X\(\/\/\)$/{
 
13231
            s//\1/
 
13232
            q
 
13233
          }
 
13234
          /^X\(\/\).*/{
 
13235
            s//\1/
 
13236
            q
 
13237
          }
 
13238
          s/.*/./; q'`
 
13239
    else
 
13240
      continue
 
13241
    fi
 
13242
    # Extract the definition of DEPDIR, am__include, and am__quote
 
13243
    # from the Makefile without running `make'.
 
13244
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
13245
    test -z "$DEPDIR" && continue
 
13246
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
13247
    test -z "am__include" && continue
 
13248
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
13249
    # When using ansi2knr, U may be empty or an underscore; expand it
 
13250
    U=`sed -n 's/^U = //p' < "$mf"`
 
13251
    # Find all dependency output files, they are included files with
 
13252
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
13253
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
13254
    # expansion.
 
13255
    for file in `sed -n "
 
13256
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
13257
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
13258
      # Make sure the directory exists.
 
13259
      test -f "$dirpart/$file" && continue
 
13260
      fdir=`$as_dirname -- "$file" ||
 
13261
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13262
         X"$file" : 'X\(//\)[^/]' \| \
 
13263
         X"$file" : 'X\(//\)$' \| \
 
13264
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
13265
$as_echo X"$file" |
 
13266
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13267
            s//\1/
 
13268
            q
 
13269
          }
 
13270
          /^X\(\/\/\)[^/].*/{
 
13271
            s//\1/
 
13272
            q
 
13273
          }
 
13274
          /^X\(\/\/\)$/{
 
13275
            s//\1/
 
13276
            q
 
13277
          }
 
13278
          /^X\(\/\).*/{
 
13279
            s//\1/
 
13280
            q
 
13281
          }
 
13282
          s/.*/./; q'`
 
13283
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
13284
      # echo "creating $dirpart/$file"
 
13285
      echo '# dummy' > "$dirpart/$file"
 
13286
    done
 
13287
  done
 
13288
}
 
13289
 ;;
 
13290
    "libtool":C)
 
13291
 
 
13292
    # See if we are running on zsh, and set the options which allow our
 
13293
    # commands through without removal of \ escapes.
 
13294
    if test -n "${ZSH_VERSION+set}" ; then
 
13295
      setopt NO_GLOB_SUBST
 
13296
    fi
 
13297
 
 
13298
    cfgfile="${ofile}T"
 
13299
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
13300
    $RM "$cfgfile"
 
13301
 
 
13302
    cat <<_LT_EOF >> "$cfgfile"
 
13303
#! $SHELL
 
13304
 
 
13305
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
13306
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
13307
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13308
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
13309
#
 
13310
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
13311
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
13312
#   Written by Gordon Matzigkeit, 1996
 
13313
#
 
13314
#   This file is part of GNU Libtool.
 
13315
#
 
13316
# GNU Libtool is free software; you can redistribute it and/or
 
13317
# modify it under the terms of the GNU General Public License as
 
13318
# published by the Free Software Foundation; either version 2 of
 
13319
# the License, or (at your option) any later version.
 
13320
#
 
13321
# As a special exception to the GNU General Public License,
 
13322
# if you distribute this file as part of a program or library that
 
13323
# is built using GNU Libtool, you may include this file under the
 
13324
# same distribution terms that you use for the rest of that program.
 
13325
#
 
13326
# GNU Libtool is distributed in the hope that it will be useful,
 
13327
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13328
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13329
# GNU General Public License for more details.
 
13330
#
 
13331
# You should have received a copy of the GNU General Public License
 
13332
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
13333
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
13334
# obtained by writing to the Free Software Foundation, Inc.,
 
13335
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
13336
 
 
13337
 
 
13338
# The names of the tagged configurations supported by this script.
 
13339
available_tags=""
 
13340
 
 
13341
# ### BEGIN LIBTOOL CONFIG
 
13342
 
 
13343
# Which release of libtool.m4 was used?
 
13344
macro_version=$macro_version
 
13345
macro_revision=$macro_revision
 
13346
 
 
13347
# Whether or not to build shared libraries.
 
13348
build_libtool_libs=$enable_shared
 
13349
 
 
13350
# Whether or not to build static libraries.
 
13351
build_old_libs=$enable_static
 
13352
 
 
13353
# What type of objects to build.
 
13354
pic_mode=$pic_mode
 
13355
 
 
13356
# Whether or not to optimize for fast installation.
 
13357
fast_install=$enable_fast_install
 
13358
 
 
13359
# The host system.
 
13360
host_alias=$host_alias
 
13361
host=$host
 
13362
host_os=$host_os
 
13363
 
 
13364
# The build system.
 
13365
build_alias=$build_alias
 
13366
build=$build
 
13367
build_os=$build_os
 
13368
 
 
13369
# A sed program that does not truncate output.
 
13370
SED=$lt_SED
 
13371
 
 
13372
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
13373
Xsed="\$SED -e 1s/^X//"
 
13374
 
 
13375
# A grep program that handles long lines.
 
13376
GREP=$lt_GREP
 
13377
 
 
13378
# An ERE matcher.
 
13379
EGREP=$lt_EGREP
 
13380
 
 
13381
# A literal string matcher.
 
13382
FGREP=$lt_FGREP
 
13383
 
 
13384
# A BSD- or MS-compatible name lister.
 
13385
NM=$lt_NM
 
13386
 
 
13387
# Whether we need soft or hard links.
 
13388
LN_S=$lt_LN_S
 
13389
 
 
13390
# What is the maximum length of a command?
 
13391
max_cmd_len=$max_cmd_len
 
13392
 
 
13393
# Object file suffix (normally "o").
 
13394
objext=$ac_objext
 
13395
 
 
13396
# Executable file suffix (normally "").
 
13397
exeext=$exeext
 
13398
 
 
13399
# whether the shell understands "unset".
 
13400
lt_unset=$lt_unset
 
13401
 
 
13402
# turn spaces into newlines.
 
13403
SP2NL=$lt_lt_SP2NL
 
13404
 
 
13405
# turn newlines into spaces.
 
13406
NL2SP=$lt_lt_NL2SP
 
13407
 
 
13408
# How to create reloadable object files.
 
13409
reload_flag=$lt_reload_flag
 
13410
reload_cmds=$lt_reload_cmds
 
13411
 
 
13412
# An object symbol dumper.
 
13413
OBJDUMP=$lt_OBJDUMP
 
13414
 
 
13415
# Method to check whether dependent libraries are shared objects.
 
13416
deplibs_check_method=$lt_deplibs_check_method
 
13417
 
 
13418
# Command to use when deplibs_check_method == "file_magic".
 
13419
file_magic_cmd=$lt_file_magic_cmd
 
13420
 
 
13421
# The archiver.
 
13422
AR=$lt_AR
 
13423
AR_FLAGS=$lt_AR_FLAGS
 
13424
 
 
13425
# A symbol stripping program.
 
13426
STRIP=$lt_STRIP
 
13427
 
 
13428
# Commands used to install an old-style archive.
 
13429
RANLIB=$lt_RANLIB
 
13430
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13431
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13432
 
 
13433
# A C compiler.
 
13434
LTCC=$lt_CC
 
13435
 
 
13436
# LTCC compiler flags.
 
13437
LTCFLAGS=$lt_CFLAGS
 
13438
 
 
13439
# Take the output of nm and produce a listing of raw symbols and C names.
 
13440
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13441
 
 
13442
# Transform the output of nm in a proper C declaration.
 
13443
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13444
 
 
13445
# Transform the output of nm in a C name address pair.
 
13446
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13447
 
 
13448
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
13449
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
13450
 
 
13451
# The name of the directory that contains temporary libtool files.
 
13452
objdir=$objdir
 
13453
 
 
13454
# Shell to use when invoking shell scripts.
 
13455
SHELL=$lt_SHELL
 
13456
 
 
13457
# An echo program that does not interpret backslashes.
 
13458
ECHO=$lt_ECHO
 
13459
 
 
13460
# Used to examine libraries when file_magic_cmd begins with "file".
 
13461
MAGIC_CMD=$MAGIC_CMD
 
13462
 
 
13463
# Must we lock files when doing compilation?
 
13464
need_locks=$lt_need_locks
 
13465
 
 
13466
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
13467
DSYMUTIL=$lt_DSYMUTIL
 
13468
 
 
13469
# Tool to change global to local symbols on Mac OS X.
 
13470
NMEDIT=$lt_NMEDIT
 
13471
 
 
13472
# Tool to manipulate fat objects and archives on Mac OS X.
 
13473
LIPO=$lt_LIPO
 
13474
 
 
13475
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
13476
OTOOL=$lt_OTOOL
 
13477
 
 
13478
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
13479
OTOOL64=$lt_OTOOL64
 
13480
 
 
13481
# Old archive suffix (normally "a").
 
13482
libext=$libext
 
13483
 
 
13484
# Shared library suffix (normally ".so").
 
13485
shrext_cmds=$lt_shrext_cmds
 
13486
 
 
13487
# The commands to extract the exported symbol list from a shared archive.
 
13488
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13489
 
 
13490
# Variables whose values should be saved in libtool wrapper scripts and
 
13491
# restored at link time.
 
13492
variables_saved_for_relink=$lt_variables_saved_for_relink
 
13493
 
 
13494
# Do we need the "lib" prefix for modules?
 
13495
need_lib_prefix=$need_lib_prefix
 
13496
 
 
13497
# Do we need a version for libraries?
 
13498
need_version=$need_version
 
13499
 
 
13500
# Library versioning type.
 
13501
version_type=$version_type
 
13502
 
 
13503
# Shared library runtime path variable.
 
13504
runpath_var=$runpath_var
 
13505
 
 
13506
# Shared library path variable.
 
13507
shlibpath_var=$shlibpath_var
 
13508
 
 
13509
# Is shlibpath searched before the hard-coded library search path?
 
13510
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13511
 
 
13512
# Format of library name prefix.
 
13513
libname_spec=$lt_libname_spec
 
13514
 
 
13515
# List of archive names.  First name is the real one, the rest are links.
 
13516
# The last name is the one that the linker finds with -lNAME
 
13517
library_names_spec=$lt_library_names_spec
 
13518
 
 
13519
# The coded name of the library, if different from the real name.
 
13520
soname_spec=$lt_soname_spec
 
13521
 
 
13522
# Command to use after installation of a shared archive.
 
13523
postinstall_cmds=$lt_postinstall_cmds
 
13524
 
 
13525
# Command to use after uninstallation of a shared archive.
 
13526
postuninstall_cmds=$lt_postuninstall_cmds
 
13527
 
 
13528
# Commands used to finish a libtool library installation in a directory.
 
13529
finish_cmds=$lt_finish_cmds
 
13530
 
 
13531
# As "finish_cmds", except a single script fragment to be evaled but
 
13532
# not shown.
 
13533
finish_eval=$lt_finish_eval
 
13534
 
 
13535
# Whether we should hardcode library paths into libraries.
 
13536
hardcode_into_libs=$hardcode_into_libs
 
13537
 
 
13538
# Compile-time system search path for libraries.
 
13539
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13540
 
 
13541
# Run-time system search path for libraries.
 
13542
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13543
 
 
13544
# Whether dlopen is supported.
 
13545
dlopen_support=$enable_dlopen
 
13546
 
 
13547
# Whether dlopen of programs is supported.
 
13548
dlopen_self=$enable_dlopen_self
 
13549
 
 
13550
# Whether dlopen of statically linked programs is supported.
 
13551
dlopen_self_static=$enable_dlopen_self_static
 
13552
 
 
13553
# Commands to strip libraries.
 
13554
old_striplib=$lt_old_striplib
 
13555
striplib=$lt_striplib
 
13556
 
 
13557
 
 
13558
# The linker used to build libraries.
 
13559
LD=$lt_LD
 
13560
 
 
13561
# Commands used to build an old-style archive.
 
13562
old_archive_cmds=$lt_old_archive_cmds
 
13563
 
 
13564
# A language specific compiler.
 
13565
CC=$lt_compiler
 
13566
 
 
13567
# Is the compiler the GNU compiler?
 
13568
with_gcc=$GCC
 
13569
 
 
13570
# Compiler flag to turn off builtin functions.
 
13571
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
13572
 
 
13573
# How to pass a linker flag through the compiler.
 
13574
wl=$lt_lt_prog_compiler_wl
 
13575
 
 
13576
# Additional compiler flags for building library objects.
 
13577
pic_flag=$lt_lt_prog_compiler_pic
 
13578
 
 
13579
# Compiler flag to prevent dynamic linking.
 
13580
link_static_flag=$lt_lt_prog_compiler_static
 
13581
 
 
13582
# Does compiler simultaneously support -c and -o options?
 
13583
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
13584
 
 
13585
# Whether or not to add -lc for building shared libraries.
 
13586
build_libtool_need_lc=$archive_cmds_need_lc
 
13587
 
 
13588
# Whether or not to disallow shared libs when runtime libs are static.
 
13589
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
13590
 
 
13591
# Compiler flag to allow reflexive dlopens.
 
13592
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
13593
 
 
13594
# Compiler flag to generate shared objects directly from archives.
 
13595
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
13596
 
 
13597
# Whether the compiler copes with passing no objects directly.
 
13598
compiler_needs_object=$lt_compiler_needs_object
 
13599
 
 
13600
# Create an old-style archive from a shared archive.
 
13601
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
13602
 
 
13603
# Create a temporary old-style archive to link instead of a shared archive.
 
13604
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
13605
 
 
13606
# Commands used to build a shared archive.
 
13607
archive_cmds=$lt_archive_cmds
 
13608
archive_expsym_cmds=$lt_archive_expsym_cmds
 
13609
 
 
13610
# Commands used to build a loadable module if different from building
 
13611
# a shared archive.
 
13612
module_cmds=$lt_module_cmds
 
13613
module_expsym_cmds=$lt_module_expsym_cmds
 
13614
 
 
13615
# Whether we are building with GNU ld or not.
 
13616
with_gnu_ld=$lt_with_gnu_ld
 
13617
 
 
13618
# Flag that allows shared libraries with undefined symbols to be built.
 
13619
allow_undefined_flag=$lt_allow_undefined_flag
 
13620
 
 
13621
# Flag that enforces no undefined symbols.
 
13622
no_undefined_flag=$lt_no_undefined_flag
 
13623
 
 
13624
# Flag to hardcode \$libdir into a binary during linking.
 
13625
# This must work even if \$libdir does not exist
 
13626
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
13627
 
 
13628
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
13629
# during linking.  This must work even if \$libdir does not exist.
 
13630
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
13631
 
 
13632
# Whether we need a single "-rpath" flag with a separated argument.
 
13633
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
13634
 
 
13635
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
13636
# DIR into the resulting binary.
 
13637
hardcode_direct=$hardcode_direct
 
13638
 
 
13639
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
13640
# DIR into the resulting binary and the resulting library dependency is
 
13641
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
13642
# library is relocated.
 
13643
hardcode_direct_absolute=$hardcode_direct_absolute
 
13644
 
 
13645
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
13646
# into the resulting binary.
 
13647
hardcode_minus_L=$hardcode_minus_L
 
13648
 
 
13649
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
13650
# into the resulting binary.
 
13651
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
13652
 
 
13653
# Set to "yes" if building a shared library automatically hardcodes DIR
 
13654
# into the library and all subsequent libraries and executables linked
 
13655
# against it.
 
13656
hardcode_automatic=$hardcode_automatic
 
13657
 
 
13658
# Set to yes if linker adds runtime paths of dependent libraries
 
13659
# to runtime path list.
 
13660
inherit_rpath=$inherit_rpath
 
13661
 
 
13662
# Whether libtool must link a program against all its dependency libraries.
 
13663
link_all_deplibs=$link_all_deplibs
 
13664
 
 
13665
# Fix the shell variable \$srcfile for the compiler.
 
13666
fix_srcfile_path=$lt_fix_srcfile_path
 
13667
 
 
13668
# Set to "yes" if exported symbols are required.
 
13669
always_export_symbols=$always_export_symbols
 
13670
 
 
13671
# The commands to list exported symbols.
 
13672
export_symbols_cmds=$lt_export_symbols_cmds
 
13673
 
 
13674
# Symbols that should not be listed in the preloaded symbols.
 
13675
exclude_expsyms=$lt_exclude_expsyms
 
13676
 
 
13677
# Symbols that must always be exported.
 
13678
include_expsyms=$lt_include_expsyms
 
13679
 
 
13680
# Commands necessary for linking programs (against libraries) with templates.
 
13681
prelink_cmds=$lt_prelink_cmds
 
13682
 
 
13683
# Specify filename containing input files.
 
13684
file_list_spec=$lt_file_list_spec
 
13685
 
 
13686
# How to hardcode a shared library path into an executable.
 
13687
hardcode_action=$hardcode_action
 
13688
 
 
13689
# ### END LIBTOOL CONFIG
 
13690
 
 
13691
_LT_EOF
 
13692
 
 
13693
  case $host_os in
 
13694
  aix3*)
 
13695
    cat <<\_LT_EOF >> "$cfgfile"
 
13696
# AIX sometimes has problems with the GCC collect2 program.  For some
 
13697
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
13698
# vanish in a puff of smoke.
 
13699
if test "X${COLLECT_NAMES+set}" != Xset; then
 
13700
  COLLECT_NAMES=
 
13701
  export COLLECT_NAMES
 
13702
fi
 
13703
_LT_EOF
 
13704
    ;;
 
13705
  esac
 
13706
 
 
13707
 
 
13708
ltmain="$ac_aux_dir/ltmain.sh"
 
13709
 
 
13710
 
 
13711
  # We use sed instead of cat because bash on DJGPP gets confused if
 
13712
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
13713
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
13714
  # is reportedly fixed, but why not run on old versions too?
 
13715
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
13716
    || (rm -f "$cfgfile"; exit 1)
 
13717
 
 
13718
  case $xsi_shell in
 
13719
  yes)
 
13720
    cat << \_LT_EOF >> "$cfgfile"
 
13721
 
 
13722
# func_dirname file append nondir_replacement
 
13723
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
13724
# otherwise set result to NONDIR_REPLACEMENT.
 
13725
func_dirname ()
 
13726
{
 
13727
  case ${1} in
 
13728
    */*) func_dirname_result="${1%/*}${2}" ;;
 
13729
    *  ) func_dirname_result="${3}" ;;
 
13730
  esac
 
13731
}
 
13732
 
 
13733
# func_basename file
 
13734
func_basename ()
 
13735
{
 
13736
  func_basename_result="${1##*/}"
 
13737
}
 
13738
 
 
13739
# func_dirname_and_basename file append nondir_replacement
 
13740
# perform func_basename and func_dirname in a single function
 
13741
# call:
 
13742
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
13743
#             add APPEND to the result, otherwise set result
 
13744
#             to NONDIR_REPLACEMENT.
 
13745
#             value returned in "$func_dirname_result"
 
13746
#   basename: Compute filename of FILE.
 
13747
#             value retuned in "$func_basename_result"
 
13748
# Implementation must be kept synchronized with func_dirname
 
13749
# and func_basename. For efficiency, we do not delegate to
 
13750
# those functions but instead duplicate the functionality here.
 
13751
func_dirname_and_basename ()
 
13752
{
 
13753
  case ${1} in
 
13754
    */*) func_dirname_result="${1%/*}${2}" ;;
 
13755
    *  ) func_dirname_result="${3}" ;;
 
13756
  esac
 
13757
  func_basename_result="${1##*/}"
 
13758
}
 
13759
 
 
13760
# func_stripname prefix suffix name
 
13761
# strip PREFIX and SUFFIX off of NAME.
 
13762
# PREFIX and SUFFIX must not contain globbing or regex special
 
13763
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
13764
# dot (in which case that matches only a dot).
 
13765
func_stripname ()
 
13766
{
 
13767
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
13768
  # positional parameters, so assign one to ordinary parameter first.
 
13769
  func_stripname_result=${3}
 
13770
  func_stripname_result=${func_stripname_result#"${1}"}
 
13771
  func_stripname_result=${func_stripname_result%"${2}"}
 
13772
}
 
13773
 
 
13774
# func_opt_split
 
13775
func_opt_split ()
 
13776
{
 
13777
  func_opt_split_opt=${1%%=*}
 
13778
  func_opt_split_arg=${1#*=}
 
13779
}
 
13780
 
 
13781
# func_lo2o object
 
13782
func_lo2o ()
 
13783
{
 
13784
  case ${1} in
 
13785
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
13786
    *)    func_lo2o_result=${1} ;;
 
13787
  esac
 
13788
}
 
13789
 
 
13790
# func_xform libobj-or-source
 
13791
func_xform ()
 
13792
{
 
13793
  func_xform_result=${1%.*}.lo
 
13794
}
 
13795
 
 
13796
# func_arith arithmetic-term...
 
13797
func_arith ()
 
13798
{
 
13799
  func_arith_result=$(( $* ))
 
13800
}
 
13801
 
 
13802
# func_len string
 
13803
# STRING may not start with a hyphen.
 
13804
func_len ()
 
13805
{
 
13806
  func_len_result=${#1}
 
13807
}
 
13808
 
 
13809
_LT_EOF
 
13810
    ;;
 
13811
  *) # Bourne compatible functions.
 
13812
    cat << \_LT_EOF >> "$cfgfile"
 
13813
 
 
13814
# func_dirname file append nondir_replacement
 
13815
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
13816
# otherwise set result to NONDIR_REPLACEMENT.
 
13817
func_dirname ()
 
13818
{
 
13819
  # Extract subdirectory from the argument.
 
13820
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
13821
  if test "X$func_dirname_result" = "X${1}"; then
 
13822
    func_dirname_result="${3}"
 
13823
  else
 
13824
    func_dirname_result="$func_dirname_result${2}"
 
13825
  fi
 
13826
}
 
13827
 
 
13828
# func_basename file
 
13829
func_basename ()
 
13830
{
 
13831
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
13832
}
 
13833
 
 
13834
 
 
13835
# func_stripname prefix suffix name
 
13836
# strip PREFIX and SUFFIX off of NAME.
 
13837
# PREFIX and SUFFIX must not contain globbing or regex special
 
13838
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
13839
# dot (in which case that matches only a dot).
 
13840
# func_strip_suffix prefix name
 
13841
func_stripname ()
 
13842
{
 
13843
  case ${2} in
 
13844
    .*) func_stripname_result=`$ECHO "X${3}" \
 
13845
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
13846
    *)  func_stripname_result=`$ECHO "X${3}" \
 
13847
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
13848
  esac
 
13849
}
 
13850
 
 
13851
# sed scripts:
 
13852
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
13853
my_sed_long_arg='1s/^-[^=]*=//'
 
13854
 
 
13855
# func_opt_split
 
13856
func_opt_split ()
 
13857
{
 
13858
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
13859
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
13860
}
 
13861
 
 
13862
# func_lo2o object
 
13863
func_lo2o ()
 
13864
{
 
13865
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
13866
}
 
13867
 
 
13868
# func_xform libobj-or-source
 
13869
func_xform ()
 
13870
{
 
13871
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
13872
}
 
13873
 
 
13874
# func_arith arithmetic-term...
 
13875
func_arith ()
 
13876
{
 
13877
  func_arith_result=`expr "$@"`
 
13878
}
 
13879
 
 
13880
# func_len string
 
13881
# STRING may not start with a hyphen.
 
13882
func_len ()
 
13883
{
 
13884
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
13885
}
 
13886
 
 
13887
_LT_EOF
 
13888
esac
 
13889
 
 
13890
case $lt_shell_append in
 
13891
  yes)
 
13892
    cat << \_LT_EOF >> "$cfgfile"
 
13893
 
 
13894
# func_append var value
 
13895
# Append VALUE to the end of shell variable VAR.
 
13896
func_append ()
 
13897
{
 
13898
  eval "$1+=\$2"
 
13899
}
 
13900
_LT_EOF
 
13901
    ;;
 
13902
  *)
 
13903
    cat << \_LT_EOF >> "$cfgfile"
 
13904
 
 
13905
# func_append var value
 
13906
# Append VALUE to the end of shell variable VAR.
 
13907
func_append ()
 
13908
{
 
13909
  eval "$1=\$$1\$2"
 
13910
}
 
13911
 
 
13912
_LT_EOF
 
13913
    ;;
 
13914
  esac
 
13915
 
 
13916
 
 
13917
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
13918
    || (rm -f "$cfgfile"; exit 1)
 
13919
 
 
13920
  mv -f "$cfgfile" "$ofile" ||
 
13921
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
13922
  chmod +x "$ofile"
 
13923
 
 
13924
 ;;
 
13925
 
 
13926
  esac
 
13927
done # for ac_tag
 
13928
 
 
13929
 
 
13930
as_fn_exit 0
 
13931
_ACEOF
 
13932
ac_clean_files=$ac_clean_files_save
 
13933
 
 
13934
test $ac_write_fail = 0 ||
 
13935
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
13936
 
 
13937
 
 
13938
# configure is writing to config.log, and then calls config.status.
 
13939
# config.status does its own redirection, appending to config.log.
 
13940
# Unfortunately, on DOS this fails, as config.log is still kept open
 
13941
# by configure, so config.status won't be able to write to it; its
 
13942
# output is simply discarded.  So we exec the FD to /dev/null,
 
13943
# effectively closing config.log, so it can be properly (re)opened and
 
13944
# appended to by config.status.  When coming back to configure, we
 
13945
# need to make the FD available again.
 
13946
if test "$no_create" != yes; then
 
13947
  ac_cs_success=:
 
13948
  ac_config_status_args=
 
13949
  test "$silent" = yes &&
 
13950
    ac_config_status_args="$ac_config_status_args --quiet"
 
13951
  exec 5>/dev/null
 
13952
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
13953
  exec 5>>config.log
 
13954
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
13955
  # would make configure fail if this is the last instruction.
 
13956
  $ac_cs_success || as_fn_exit 1
 
13957
fi
 
13958
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
13959
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
13960
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
13961
fi
 
13962