~ubuntu-branches/ubuntu/maverick/gnutls26/maverick-security

« back to all changes in this revision

Viewing changes to .pc/16_unnecessarydep.diff/libextra/configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2010-03-20 15:53:35 UTC
  • mfrom: (1.1.10 upstream) (12.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100320155335-vk9gkueeb3e4ljxa
Tags: 2.8.6-1
* Use dh_lintian.
* Use dh_makeshlibs for the guile stuff, too. This gets us 
  a) ldconfig in postinst. Closes: #553109
  and
  b) a shlibs file.
  However the shared objects /usr/lib/libguile-gnutls*so* are still not
  designed to be used as libraries (linking) but are dlopened. guile-1.10
  will address this issue by keeping this stuff in a private directory.
* hotfix pkg-config files (proper fix to be included upstream).
* Stop unneeeded linkage against libgpg-error. 16_unnecessarydep.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.65 for libgnutls-extra 2.8.6.
 
4
#
 
5
# Report bugs to <bug-gnutls@gnu.org>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
 
125
PS1='$ '
 
126
PS2='> '
 
127
PS4='+ '
 
128
 
 
129
# NLS nuisances.
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
 
178
  as_have_required=yes
 
179
else
 
180
  as_have_required=no
 
181
fi
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
 
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
188
do
 
189
  IFS=$as_save_IFS
 
190
  test -z "$as_dir" && as_dir=.
 
191
  as_found=:
 
192
  case $as_dir in #(
 
193
         /*)
 
194
           for as_base in sh bash ksh sh5; do
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
 
204
           done;;
 
205
       esac
 
206
  as_found=false
 
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
 
212
IFS=$as_save_IFS
 
213
 
 
214
 
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
224
fi
 
225
 
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
232
  else
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gnutls@gnu.org
 
234
$0: about your system, including any error possibly output
 
235
$0: before this message. Then install a modern shell, or
 
236
$0: manually run the script under such a shell if you do
 
237
$0: have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error ERROR [LINENO LOG_FD]
 
363
# ---------------------------------
 
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
366
# script with status $?, using 1 if that was 0.
 
367
as_fn_error ()
 
368
{
 
369
  as_status=$?; test $as_status -eq 0 && as_status=1
 
370
  if test "$3"; then
 
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
373
  fi
 
374
  $as_echo "$as_me: error: $1" >&2
 
375
  as_fn_exit $as_status
 
376
} # as_fn_error
 
377
 
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
380
  as_expr=expr
 
381
else
 
382
  as_expr=false
 
383
fi
 
384
 
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
386
  as_basename=basename
 
387
else
 
388
  as_basename=false
 
389
fi
 
390
 
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
392
  as_dirname=dirname
 
393
else
 
394
  as_dirname=false
 
395
fi
 
396
 
 
397
as_me=`$as_basename -- "$0" ||
 
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
399
         X"$0" : 'X\(//\)$' \| \
 
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
401
$as_echo X/"$0" |
 
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
403
            s//\1/
 
404
            q
 
405
          }
 
406
          /^X\/\(\/\/\)$/{
 
407
            s//\1/
 
408
            q
 
409
          }
 
410
          /^X\/\(\/\).*/{
 
411
            s//\1/
 
412
            q
 
413
          }
 
414
          s/.*/./; q'`
 
415
 
 
416
# Avoid depending upon Character Ranges.
 
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
420
as_cr_digits='0123456789'
 
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
429
  sed -n '
 
430
    p
 
431
    /[$]LINENO/=
 
432
  ' <$as_myself |
 
433
    sed '
 
434
      s/[$]LINENO.*/&-/
 
435
      t lineno
 
436
      b
 
437
      :lineno
 
438
      N
 
439
      :loop
 
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
441
      t loop
 
442
      s/-\n.*//
 
443
    ' >$as_me.lineno &&
 
444
  chmod +x "$as_me.lineno" ||
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
446
 
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
 
448
  # (the dirname of $[0] is not the place where we might find the
 
449
  # original and so on.  Autoconf is especially sensitive to this).
 
450
  . "./$as_me.lineno"
 
451
  # Exit status is that of the last command.
 
452
  exit
 
453
}
 
454
 
 
455
ECHO_C= ECHO_N= ECHO_T=
 
456
case `echo -n x` in #(((((
 
457
-n*)
 
458
  case `echo 'xy\c'` in
 
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
 
463
  esac;;
 
464
*)
 
465
  ECHO_N='-n';;
 
466
esac
 
467
 
 
468
rm -f conf$$ conf$$.exe conf$$.file
 
469
if test -d conf$$.dir; then
 
470
  rm -f conf$$.dir/conf$$.file
 
471
else
 
472
  rm -f conf$$.dir
 
473
  mkdir conf$$.dir 2>/dev/null
 
474
fi
 
475
if (echo >conf$$.file) 2>/dev/null; then
 
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
477
    as_ln_s='ln -s'
 
478
    # ... but there are two gotchas:
 
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
481
    # In both cases, we have to default to `cp -p'.
 
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
483
      as_ln_s='cp -p'
 
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
485
    as_ln_s=ln
 
486
  else
 
487
    as_ln_s='cp -p'
 
488
  fi
 
489
else
 
490
  as_ln_s='cp -p'
 
491
fi
 
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
493
rmdir conf$$.dir 2>/dev/null
 
494
 
 
495
if mkdir -p . 2>/dev/null; then
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
 
497
else
 
498
  test -d ./-p && rmdir ./-p
 
499
  as_mkdir_p=false
 
500
fi
 
501
 
 
502
if test -x / >/dev/null 2>&1; then
 
503
  as_test_x='test -x'
 
504
else
 
505
  if ls -dL / >/dev/null 2>&1; then
 
506
    as_ls_L_option=L
 
507
  else
 
508
    as_ls_L_option=
 
509
  fi
 
510
  as_test_x='
 
511
    eval sh -c '\''
 
512
      if test -d "$1"; then
 
513
        test -d "$1/.";
 
514
      else
 
515
        case $1 in #(
 
516
        -*)set "./$1";;
 
517
        esac;
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
519
        ???[sx]*):;;*)false;;esac;fi
 
520
    '\'' sh
 
521
  '
 
522
fi
 
523
as_executable_p=$as_test_x
 
524
 
 
525
# Sed expression to map a string onto a valid CPP name.
 
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
# Sed expression to map a string onto a valid variable name.
 
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
530
 
 
531
 
 
532
 
 
533
# Check that we are running under the correct shell.
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
 
535
 
 
536
case X$lt_ECHO in
 
537
X*--fallback-echo)
 
538
  # Remove one level of quotation (which was required for Make).
 
539
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
540
  ;;
 
541
esac
 
542
 
 
543
ECHO=${lt_ECHO-echo}
 
544
if test "X$1" = X--no-reexec; then
 
545
  # Discard the --no-reexec flag, and continue.
 
546
  shift
 
547
elif test "X$1" = X--fallback-echo; then
 
548
  # Avoid inline document here, it may be left over
 
549
  :
 
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
551
  # Yippee, $ECHO works!
 
552
  :
 
553
else
 
554
  # Restart under the correct shell.
 
555
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
556
fi
 
557
 
 
558
if test "X$1" = X--fallback-echo; then
 
559
  # used as fallback echo
 
560
  shift
 
561
  cat <<_LT_EOF
 
562
$*
 
563
_LT_EOF
 
564
  exit 0
 
565
fi
 
566
 
 
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
568
# if CDPATH is set.
 
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
570
 
 
571
if test -z "$lt_ECHO"; then
 
572
  if test "X${echo_test_string+set}" != Xset; then
 
573
    # find a string as large as possible, as long as the shell can cope with it
 
574
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
575
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
576
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
577
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
578
      then
 
579
        break
 
580
      fi
 
581
    done
 
582
  fi
 
583
 
 
584
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
585
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
586
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
587
    :
 
588
  else
 
589
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
590
    # backslashes.  This makes it impossible to quote backslashes using
 
591
    #   echo "$something" | sed 's/\\/\\\\/g'
 
592
    #
 
593
    # So, first we look for a working echo in the user's PATH.
 
594
 
 
595
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
596
    for dir in $PATH /usr/ucb; do
 
597
      IFS="$lt_save_ifs"
 
598
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
599
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
600
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
601
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
602
        ECHO="$dir/echo"
 
603
        break
 
604
      fi
 
605
    done
 
606
    IFS="$lt_save_ifs"
 
607
 
 
608
    if test "X$ECHO" = Xecho; then
 
609
      # We didn't find a better echo, so look for alternatives.
 
610
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
611
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
612
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
613
        # This shell has a builtin print -r that does the trick.
 
614
        ECHO='print -r'
 
615
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
616
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
617
        # If we have ksh, try running configure again with it.
 
618
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
619
        export ORIGINAL_CONFIG_SHELL
 
620
        CONFIG_SHELL=/bin/ksh
 
621
        export CONFIG_SHELL
 
622
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
623
      else
 
624
        # Try using printf.
 
625
        ECHO='printf %s\n'
 
626
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
627
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
628
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
629
          # Cool, printf works
 
630
          :
 
631
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = 'X\t' &&
 
633
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
634
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
636
          export CONFIG_SHELL
 
637
          SHELL="$CONFIG_SHELL"
 
638
          export SHELL
 
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
640
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = 'X\t' &&
 
642
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
643
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
644
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
645
        else
 
646
          # maybe with a smaller string...
 
647
          prev=:
 
648
 
 
649
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
650
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
651
            then
 
652
              break
 
653
            fi
 
654
            prev="$cmd"
 
655
          done
 
656
 
 
657
          if test "$prev" != 'sed 50q "$0"'; then
 
658
            echo_test_string=`eval $prev`
 
659
            export echo_test_string
 
660
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
661
          else
 
662
            # Oops.  We lost completely, so just stick with echo.
 
663
            ECHO=echo
 
664
          fi
 
665
        fi
 
666
      fi
 
667
    fi
 
668
  fi
 
669
fi
 
670
 
 
671
# Copy echo and quote the copy suitably for passing to libtool from
 
672
# the Makefile, instead of quoting the original, which is used later.
 
673
lt_ECHO=$ECHO
 
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
675
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
676
fi
 
677
 
 
678
 
 
679
 
 
680
 
 
681
test -n "$DJDIR" || exec 7<&0 </dev/null
 
682
exec 6>&1
 
683
 
 
684
# Name of the host.
 
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
686
# so uname gets run too.
 
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
688
 
 
689
#
 
690
# Initializations.
 
691
#
 
692
ac_default_prefix=/usr/local
 
693
ac_clean_files=
 
694
ac_config_libobj_dir=.
 
695
LIBOBJS=
 
696
cross_compiling=no
 
697
subdirs=
 
698
MFLAGS=
 
699
MAKEFLAGS=
 
700
 
 
701
# Identity of this package.
 
702
PACKAGE_NAME='libgnutls-extra'
 
703
PACKAGE_TARNAME='libgnutls-extra'
 
704
PACKAGE_VERSION='2.8.6'
 
705
PACKAGE_STRING='libgnutls-extra 2.8.6'
 
706
PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
 
707
PACKAGE_URL=''
 
708
 
 
709
# Factoring default headers for most tests.
 
710
ac_includes_default="\
 
711
#include <stdio.h>
 
712
#ifdef HAVE_SYS_TYPES_H
 
713
# include <sys/types.h>
 
714
#endif
 
715
#ifdef HAVE_SYS_STAT_H
 
716
# include <sys/stat.h>
 
717
#endif
 
718
#ifdef STDC_HEADERS
 
719
# include <stdlib.h>
 
720
# include <stddef.h>
 
721
#else
 
722
# ifdef HAVE_STDLIB_H
 
723
#  include <stdlib.h>
 
724
# endif
 
725
#endif
 
726
#ifdef HAVE_STRING_H
 
727
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
728
#  include <memory.h>
 
729
# endif
 
730
# include <string.h>
 
731
#endif
 
732
#ifdef HAVE_STRINGS_H
 
733
# include <strings.h>
 
734
#endif
 
735
#ifdef HAVE_INTTYPES_H
 
736
# include <inttypes.h>
 
737
#endif
 
738
#ifdef HAVE_STDINT_H
 
739
# include <stdint.h>
 
740
#endif
 
741
#ifdef HAVE_UNISTD_H
 
742
# include <unistd.h>
 
743
#endif"
 
744
 
 
745
ac_header_list=
 
746
ac_subst_vars='xgltests_LTLIBOBJS
 
747
xgltests_LIBOBJS
 
748
xgl_LTLIBOBJS
 
749
xgl_LIBOBJS
 
750
am__EXEEXT_FALSE
 
751
am__EXEEXT_TRUE
 
752
LTLIBOBJS
 
753
LIBOBJS
 
754
WERROR_CFLAGS
 
755
WARN_CFLAGS
 
756
LIBGNUTLS_EXTRA_CFLAGS
 
757
LIBGNUTLS_EXTRA_LIBS
 
758
HAVE_LD_VERSION_SCRIPT_FALSE
 
759
HAVE_LD_VERSION_SCRIPT_TRUE
 
760
HAVE_LD_OUTPUT_DEF_FALSE
 
761
HAVE_LD_OUTPUT_DEF_TRUE
 
762
GL_COND_LIBTOOL_FALSE
 
763
GL_COND_LIBTOOL_TRUE
 
764
LIBSOCKET
 
765
HAVE_WINSOCK2_H
 
766
UNISTD_H_HAVE_WINSOCK2_H
 
767
REPLACE_WRITE
 
768
REPLACE_LSEEK
 
769
REPLACE_LCHOWN
 
770
REPLACE_GETPAGESIZE
 
771
REPLACE_GETCWD
 
772
REPLACE_FCHDIR
 
773
REPLACE_CLOSE
 
774
REPLACE_CHOWN
 
775
HAVE_SYS_PARAM_H
 
776
HAVE_OS_H
 
777
HAVE_DECL_GETLOGIN_R
 
778
HAVE_DECL_ENVIRON
 
779
HAVE_SLEEP
 
780
HAVE_READLINK
 
781
HAVE_LINK
 
782
HAVE_GETUSERSHELL
 
783
HAVE_GETPAGESIZE
 
784
HAVE_GETHOSTNAME
 
785
HAVE_GETDTABLESIZE
 
786
HAVE_GETDOMAINNAME
 
787
HAVE_FTRUNCATE
 
788
HAVE_FSYNC
 
789
HAVE_EUIDACCESS
 
790
HAVE_DUP2
 
791
GNULIB_WRITE
 
792
GNULIB_UNISTD_H_SIGPIPE
 
793
GNULIB_SLEEP
 
794
GNULIB_READLINK
 
795
GNULIB_LSEEK
 
796
GNULIB_LINK
 
797
GNULIB_LCHOWN
 
798
GNULIB_GETUSERSHELL
 
799
GNULIB_GETPAGESIZE
 
800
GNULIB_GETLOGIN_R
 
801
GNULIB_GETHOSTNAME
 
802
GNULIB_GETDTABLESIZE
 
803
GNULIB_GETDOMAINNAME
 
804
GNULIB_GETCWD
 
805
GNULIB_FTRUNCATE
 
806
GNULIB_FSYNC
 
807
GNULIB_FCHDIR
 
808
GNULIB_EUIDACCESS
 
809
GNULIB_ENVIRON
 
810
GNULIB_DUP2
 
811
GNULIB_CLOSE
 
812
GNULIB_CHOWN
 
813
ENABLE_OPENSSL_FALSE
 
814
ENABLE_OPENSSL_TRUE
 
815
ENABLE_OPENPGP_FALSE
 
816
ENABLE_OPENPGP_TRUE
 
817
ENABLE_PKI_FALSE
 
818
ENABLE_PKI_TRUE
 
819
ENABLE_ANON_FALSE
 
820
ENABLE_ANON_TRUE
 
821
ENABLE_PSK_FALSE
 
822
ENABLE_PSK_TRUE
 
823
ENABLE_SRP_FALSE
 
824
ENABLE_SRP_TRUE
 
825
ENABLE_OPRFI_FALSE
 
826
ENABLE_OPRFI_TRUE
 
827
USE_LZO_FALSE
 
828
USE_LZO_TRUE
 
829
LZO_LIBS
 
830
ENABLE_MINITASN1_FALSE
 
831
ENABLE_MINITASN1_TRUE
 
832
LIBTASN1_PREFIX
 
833
LTLIBTASN1
 
834
LIBTASN1
 
835
HAVE_LIBTASN1
 
836
LIBGCRYPT_PREFIX
 
837
LTLIBGCRYPT
 
838
LIBGCRYPT
 
839
HAVE_LIBGCRYPT
 
840
DLL_VERSION
 
841
LT_AGE
 
842
LT_REVISION
 
843
LT_CURRENT
 
844
OTOOL64
 
845
OTOOL
 
846
LIPO
 
847
NMEDIT
 
848
DSYMUTIL
 
849
lt_ECHO
 
850
AR
 
851
LN_S
 
852
NM
 
853
ac_ct_DUMPBIN
 
854
DUMPBIN
 
855
LD
 
856
FGREP
 
857
SED
 
858
LIBTOOL
 
859
OBJDUMP
 
860
DLLTOOL
 
861
AS
 
862
EGREP
 
863
GREP
 
864
CPP
 
865
host_os
 
866
host_vendor
 
867
host_cpu
 
868
host
 
869
build_os
 
870
build_vendor
 
871
build_cpu
 
872
build
 
873
RANLIB
 
874
am__fastdepCC_FALSE
 
875
am__fastdepCC_TRUE
 
876
CCDEPMODE
 
877
AMDEPBACKSLASH
 
878
AMDEP_FALSE
 
879
AMDEP_TRUE
 
880
am__quote
 
881
am__include
 
882
DEPDIR
 
883
OBJEXT
 
884
EXEEXT
 
885
ac_ct_CC
 
886
CPPFLAGS
 
887
LDFLAGS
 
888
CFLAGS
 
889
CC
 
890
am__untar
 
891
am__tar
 
892
AMTAR
 
893
am__leading_dot
 
894
SET_MAKE
 
895
AWK
 
896
mkdir_p
 
897
MKDIR_P
 
898
INSTALL_STRIP_PROGRAM
 
899
STRIP
 
900
install_sh
 
901
MAKEINFO
 
902
AUTOHEADER
 
903
AUTOMAKE
 
904
AUTOCONF
 
905
ACLOCAL
 
906
VERSION
 
907
PACKAGE
 
908
CYGPATH_W
 
909
am__isrc
 
910
INSTALL_DATA
 
911
INSTALL_SCRIPT
 
912
INSTALL_PROGRAM
 
913
target_alias
 
914
host_alias
 
915
build_alias
 
916
LIBS
 
917
ECHO_T
 
918
ECHO_N
 
919
ECHO_C
 
920
DEFS
 
921
mandir
 
922
localedir
 
923
libdir
 
924
psdir
 
925
pdfdir
 
926
dvidir
 
927
htmldir
 
928
infodir
 
929
docdir
 
930
oldincludedir
 
931
includedir
 
932
localstatedir
 
933
sharedstatedir
 
934
sysconfdir
 
935
datadir
 
936
datarootdir
 
937
libexecdir
 
938
sbindir
 
939
bindir
 
940
program_transform_name
 
941
prefix
 
942
exec_prefix
 
943
PACKAGE_URL
 
944
PACKAGE_BUGREPORT
 
945
PACKAGE_STRING
 
946
PACKAGE_VERSION
 
947
PACKAGE_TARNAME
 
948
PACKAGE_NAME
 
949
PATH_SEPARATOR
 
950
SHELL'
 
951
ac_subst_files=''
 
952
ac_user_opts='
 
953
enable_option_checking
 
954
enable_dependency_tracking
 
955
enable_shared
 
956
enable_static
 
957
with_pic
 
958
enable_fast_install
 
959
with_gnu_ld
 
960
enable_libtool_lock
 
961
enable_rpath
 
962
with_libgcrypt_prefix
 
963
with_included_libtasn1
 
964
with_libtasn1_prefix
 
965
with_lzo
 
966
enable_opaque_prf_input
 
967
enable_srp_authentication
 
968
enable_psk_authentication
 
969
enable_anon_authentication
 
970
enable_camellia
 
971
enable_extra_pki
 
972
enable_openpgp_authentication
 
973
enable_openssl_compatibility
 
974
enable_ld_version_script
 
975
'
 
976
      ac_precious_vars='build_alias
 
977
host_alias
 
978
target_alias
 
979
CC
 
980
CFLAGS
 
981
LDFLAGS
 
982
LIBS
 
983
CPPFLAGS
 
984
CPP'
 
985
 
 
986
 
 
987
# Initialize some variables set by options.
 
988
ac_init_help=
 
989
ac_init_version=false
 
990
ac_unrecognized_opts=
 
991
ac_unrecognized_sep=
 
992
# The variables have the same names as the options, with
 
993
# dashes changed to underlines.
 
994
cache_file=/dev/null
 
995
exec_prefix=NONE
 
996
no_create=
 
997
no_recursion=
 
998
prefix=NONE
 
999
program_prefix=NONE
 
1000
program_suffix=NONE
 
1001
program_transform_name=s,x,x,
 
1002
silent=
 
1003
site=
 
1004
srcdir=
 
1005
verbose=
 
1006
x_includes=NONE
 
1007
x_libraries=NONE
 
1008
 
 
1009
# Installation directory options.
 
1010
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1011
# and all the variables that are supposed to be based on exec_prefix
 
1012
# by default will actually change.
 
1013
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1014
# (The list follows the same order as the GNU Coding Standards.)
 
1015
bindir='${exec_prefix}/bin'
 
1016
sbindir='${exec_prefix}/sbin'
 
1017
libexecdir='${exec_prefix}/libexec'
 
1018
datarootdir='${prefix}/share'
 
1019
datadir='${datarootdir}'
 
1020
sysconfdir='${prefix}/etc'
 
1021
sharedstatedir='${prefix}/com'
 
1022
localstatedir='${prefix}/var'
 
1023
includedir='${prefix}/include'
 
1024
oldincludedir='/usr/include'
 
1025
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1026
infodir='${datarootdir}/info'
 
1027
htmldir='${docdir}'
 
1028
dvidir='${docdir}'
 
1029
pdfdir='${docdir}'
 
1030
psdir='${docdir}'
 
1031
libdir='${exec_prefix}/lib'
 
1032
localedir='${datarootdir}/locale'
 
1033
mandir='${datarootdir}/man'
 
1034
 
 
1035
ac_prev=
 
1036
ac_dashdash=
 
1037
for ac_option
 
1038
do
 
1039
  # If the previous option needs an argument, assign it.
 
1040
  if test -n "$ac_prev"; then
 
1041
    eval $ac_prev=\$ac_option
 
1042
    ac_prev=
 
1043
    continue
 
1044
  fi
 
1045
 
 
1046
  case $ac_option in
 
1047
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1048
  *)    ac_optarg=yes ;;
 
1049
  esac
 
1050
 
 
1051
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1052
 
 
1053
  case $ac_dashdash$ac_option in
 
1054
  --)
 
1055
    ac_dashdash=yes ;;
 
1056
 
 
1057
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1058
    ac_prev=bindir ;;
 
1059
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1060
    bindir=$ac_optarg ;;
 
1061
 
 
1062
  -build | --build | --buil | --bui | --bu)
 
1063
    ac_prev=build_alias ;;
 
1064
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1065
    build_alias=$ac_optarg ;;
 
1066
 
 
1067
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1068
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1069
    ac_prev=cache_file ;;
 
1070
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1071
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1072
    cache_file=$ac_optarg ;;
 
1073
 
 
1074
  --config-cache | -C)
 
1075
    cache_file=config.cache ;;
 
1076
 
 
1077
  -datadir | --datadir | --datadi | --datad)
 
1078
    ac_prev=datadir ;;
 
1079
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1080
    datadir=$ac_optarg ;;
 
1081
 
 
1082
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1083
  | --dataroo | --dataro | --datar)
 
1084
    ac_prev=datarootdir ;;
 
1085
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1086
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1087
    datarootdir=$ac_optarg ;;
 
1088
 
 
1089
  -disable-* | --disable-*)
 
1090
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1091
    # Reject names that are not valid shell variable names.
 
1092
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1093
      as_fn_error "invalid feature name: $ac_useropt"
 
1094
    ac_useropt_orig=$ac_useropt
 
1095
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1096
    case $ac_user_opts in
 
1097
      *"
 
1098
"enable_$ac_useropt"
 
1099
"*) ;;
 
1100
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1101
         ac_unrecognized_sep=', ';;
 
1102
    esac
 
1103
    eval enable_$ac_useropt=no ;;
 
1104
 
 
1105
  -docdir | --docdir | --docdi | --doc | --do)
 
1106
    ac_prev=docdir ;;
 
1107
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1108
    docdir=$ac_optarg ;;
 
1109
 
 
1110
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1111
    ac_prev=dvidir ;;
 
1112
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1113
    dvidir=$ac_optarg ;;
 
1114
 
 
1115
  -enable-* | --enable-*)
 
1116
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1117
    # Reject names that are not valid shell variable names.
 
1118
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1119
      as_fn_error "invalid feature name: $ac_useropt"
 
1120
    ac_useropt_orig=$ac_useropt
 
1121
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1122
    case $ac_user_opts in
 
1123
      *"
 
1124
"enable_$ac_useropt"
 
1125
"*) ;;
 
1126
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1127
         ac_unrecognized_sep=', ';;
 
1128
    esac
 
1129
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1130
 
 
1131
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1132
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1133
  | --exec | --exe | --ex)
 
1134
    ac_prev=exec_prefix ;;
 
1135
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1136
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1137
  | --exec=* | --exe=* | --ex=*)
 
1138
    exec_prefix=$ac_optarg ;;
 
1139
 
 
1140
  -gas | --gas | --ga | --g)
 
1141
    # Obsolete; use --with-gas.
 
1142
    with_gas=yes ;;
 
1143
 
 
1144
  -help | --help | --hel | --he | -h)
 
1145
    ac_init_help=long ;;
 
1146
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1147
    ac_init_help=recursive ;;
 
1148
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1149
    ac_init_help=short ;;
 
1150
 
 
1151
  -host | --host | --hos | --ho)
 
1152
    ac_prev=host_alias ;;
 
1153
  -host=* | --host=* | --hos=* | --ho=*)
 
1154
    host_alias=$ac_optarg ;;
 
1155
 
 
1156
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1157
    ac_prev=htmldir ;;
 
1158
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1159
  | --ht=*)
 
1160
    htmldir=$ac_optarg ;;
 
1161
 
 
1162
  -includedir | --includedir | --includedi | --included | --include \
 
1163
  | --includ | --inclu | --incl | --inc)
 
1164
    ac_prev=includedir ;;
 
1165
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1166
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1167
    includedir=$ac_optarg ;;
 
1168
 
 
1169
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1170
    ac_prev=infodir ;;
 
1171
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1172
    infodir=$ac_optarg ;;
 
1173
 
 
1174
  -libdir | --libdir | --libdi | --libd)
 
1175
    ac_prev=libdir ;;
 
1176
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1177
    libdir=$ac_optarg ;;
 
1178
 
 
1179
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1180
  | --libexe | --libex | --libe)
 
1181
    ac_prev=libexecdir ;;
 
1182
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1183
  | --libexe=* | --libex=* | --libe=*)
 
1184
    libexecdir=$ac_optarg ;;
 
1185
 
 
1186
  -localedir | --localedir | --localedi | --localed | --locale)
 
1187
    ac_prev=localedir ;;
 
1188
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1189
    localedir=$ac_optarg ;;
 
1190
 
 
1191
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1192
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1193
    ac_prev=localstatedir ;;
 
1194
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1195
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1196
    localstatedir=$ac_optarg ;;
 
1197
 
 
1198
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1199
    ac_prev=mandir ;;
 
1200
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1201
    mandir=$ac_optarg ;;
 
1202
 
 
1203
  -nfp | --nfp | --nf)
 
1204
    # Obsolete; use --without-fp.
 
1205
    with_fp=no ;;
 
1206
 
 
1207
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1208
  | --no-cr | --no-c | -n)
 
1209
    no_create=yes ;;
 
1210
 
 
1211
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1212
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1213
    no_recursion=yes ;;
 
1214
 
 
1215
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1216
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1217
  | --oldin | --oldi | --old | --ol | --o)
 
1218
    ac_prev=oldincludedir ;;
 
1219
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1220
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1221
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1222
    oldincludedir=$ac_optarg ;;
 
1223
 
 
1224
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1225
    ac_prev=prefix ;;
 
1226
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1227
    prefix=$ac_optarg ;;
 
1228
 
 
1229
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1230
  | --program-pre | --program-pr | --program-p)
 
1231
    ac_prev=program_prefix ;;
 
1232
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1233
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1234
    program_prefix=$ac_optarg ;;
 
1235
 
 
1236
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1237
  | --program-suf | --program-su | --program-s)
 
1238
    ac_prev=program_suffix ;;
 
1239
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1240
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1241
    program_suffix=$ac_optarg ;;
 
1242
 
 
1243
  -program-transform-name | --program-transform-name \
 
1244
  | --program-transform-nam | --program-transform-na \
 
1245
  | --program-transform-n | --program-transform- \
 
1246
  | --program-transform | --program-transfor \
 
1247
  | --program-transfo | --program-transf \
 
1248
  | --program-trans | --program-tran \
 
1249
  | --progr-tra | --program-tr | --program-t)
 
1250
    ac_prev=program_transform_name ;;
 
1251
  -program-transform-name=* | --program-transform-name=* \
 
1252
  | --program-transform-nam=* | --program-transform-na=* \
 
1253
  | --program-transform-n=* | --program-transform-=* \
 
1254
  | --program-transform=* | --program-transfor=* \
 
1255
  | --program-transfo=* | --program-transf=* \
 
1256
  | --program-trans=* | --program-tran=* \
 
1257
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1258
    program_transform_name=$ac_optarg ;;
 
1259
 
 
1260
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1261
    ac_prev=pdfdir ;;
 
1262
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1263
    pdfdir=$ac_optarg ;;
 
1264
 
 
1265
  -psdir | --psdir | --psdi | --psd | --ps)
 
1266
    ac_prev=psdir ;;
 
1267
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1268
    psdir=$ac_optarg ;;
 
1269
 
 
1270
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1271
  | -silent | --silent | --silen | --sile | --sil)
 
1272
    silent=yes ;;
 
1273
 
 
1274
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1275
    ac_prev=sbindir ;;
 
1276
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1277
  | --sbi=* | --sb=*)
 
1278
    sbindir=$ac_optarg ;;
 
1279
 
 
1280
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1281
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1282
  | --sharedst | --shareds | --shared | --share | --shar \
 
1283
  | --sha | --sh)
 
1284
    ac_prev=sharedstatedir ;;
 
1285
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1286
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1287
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1288
  | --sha=* | --sh=*)
 
1289
    sharedstatedir=$ac_optarg ;;
 
1290
 
 
1291
  -site | --site | --sit)
 
1292
    ac_prev=site ;;
 
1293
  -site=* | --site=* | --sit=*)
 
1294
    site=$ac_optarg ;;
 
1295
 
 
1296
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1297
    ac_prev=srcdir ;;
 
1298
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1299
    srcdir=$ac_optarg ;;
 
1300
 
 
1301
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1302
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1303
    ac_prev=sysconfdir ;;
 
1304
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1305
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1306
    sysconfdir=$ac_optarg ;;
 
1307
 
 
1308
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1309
    ac_prev=target_alias ;;
 
1310
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1311
    target_alias=$ac_optarg ;;
 
1312
 
 
1313
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1314
    verbose=yes ;;
 
1315
 
 
1316
  -version | --version | --versio | --versi | --vers | -V)
 
1317
    ac_init_version=: ;;
 
1318
 
 
1319
  -with-* | --with-*)
 
1320
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1321
    # Reject names that are not valid shell variable names.
 
1322
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1323
      as_fn_error "invalid package name: $ac_useropt"
 
1324
    ac_useropt_orig=$ac_useropt
 
1325
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1326
    case $ac_user_opts in
 
1327
      *"
 
1328
"with_$ac_useropt"
 
1329
"*) ;;
 
1330
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1331
         ac_unrecognized_sep=', ';;
 
1332
    esac
 
1333
    eval with_$ac_useropt=\$ac_optarg ;;
 
1334
 
 
1335
  -without-* | --without-*)
 
1336
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1337
    # Reject names that are not valid shell variable names.
 
1338
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1339
      as_fn_error "invalid package name: $ac_useropt"
 
1340
    ac_useropt_orig=$ac_useropt
 
1341
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1342
    case $ac_user_opts in
 
1343
      *"
 
1344
"with_$ac_useropt"
 
1345
"*) ;;
 
1346
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1347
         ac_unrecognized_sep=', ';;
 
1348
    esac
 
1349
    eval with_$ac_useropt=no ;;
 
1350
 
 
1351
  --x)
 
1352
    # Obsolete; use --with-x.
 
1353
    with_x=yes ;;
 
1354
 
 
1355
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1356
  | --x-incl | --x-inc | --x-in | --x-i)
 
1357
    ac_prev=x_includes ;;
 
1358
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1359
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1360
    x_includes=$ac_optarg ;;
 
1361
 
 
1362
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1363
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1364
    ac_prev=x_libraries ;;
 
1365
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1366
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1367
    x_libraries=$ac_optarg ;;
 
1368
 
 
1369
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1370
Try \`$0 --help' for more information."
 
1371
    ;;
 
1372
 
 
1373
  *=*)
 
1374
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1375
    # Reject names that are not valid shell variable names.
 
1376
    case $ac_envvar in #(
 
1377
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1378
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1379
    esac
 
1380
    eval $ac_envvar=\$ac_optarg
 
1381
    export $ac_envvar ;;
 
1382
 
 
1383
  *)
 
1384
    # FIXME: should be removed in autoconf 3.0.
 
1385
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1386
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1387
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1388
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1389
    ;;
 
1390
 
 
1391
  esac
 
1392
done
 
1393
 
 
1394
if test -n "$ac_prev"; then
 
1395
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1396
  as_fn_error "missing argument to $ac_option"
 
1397
fi
 
1398
 
 
1399
if test -n "$ac_unrecognized_opts"; then
 
1400
  case $enable_option_checking in
 
1401
    no) ;;
 
1402
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1403
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1404
  esac
 
1405
fi
 
1406
 
 
1407
# Check all directory arguments for consistency.
 
1408
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1409
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1410
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1411
                libdir localedir mandir
 
1412
do
 
1413
  eval ac_val=\$$ac_var
 
1414
  # Remove trailing slashes.
 
1415
  case $ac_val in
 
1416
    */ )
 
1417
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1418
      eval $ac_var=\$ac_val;;
 
1419
  esac
 
1420
  # Be sure to have absolute directory names.
 
1421
  case $ac_val in
 
1422
    [\\/$]* | ?:[\\/]* )  continue;;
 
1423
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1424
  esac
 
1425
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1426
done
 
1427
 
 
1428
# There might be people who depend on the old broken behavior: `$host'
 
1429
# used to hold the argument of --host etc.
 
1430
# FIXME: To remove some day.
 
1431
build=$build_alias
 
1432
host=$host_alias
 
1433
target=$target_alias
 
1434
 
 
1435
# FIXME: To remove some day.
 
1436
if test "x$host_alias" != x; then
 
1437
  if test "x$build_alias" = x; then
 
1438
    cross_compiling=maybe
 
1439
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1440
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1441
  elif test "x$build_alias" != "x$host_alias"; then
 
1442
    cross_compiling=yes
 
1443
  fi
 
1444
fi
 
1445
 
 
1446
ac_tool_prefix=
 
1447
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1448
 
 
1449
test "$silent" = yes && exec 6>/dev/null
 
1450
 
 
1451
 
 
1452
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1453
ac_ls_di=`ls -di .` &&
 
1454
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1455
  as_fn_error "working directory cannot be determined"
 
1456
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1457
  as_fn_error "pwd does not report name of working directory"
 
1458
 
 
1459
 
 
1460
# Find the source files, if location was not specified.
 
1461
if test -z "$srcdir"; then
 
1462
  ac_srcdir_defaulted=yes
 
1463
  # Try the directory containing this script, then the parent directory.
 
1464
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1465
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1466
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1467
         X"$as_myself" : 'X\(//\)$' \| \
 
1468
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1469
$as_echo X"$as_myself" |
 
1470
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1471
            s//\1/
 
1472
            q
 
1473
          }
 
1474
          /^X\(\/\/\)[^/].*/{
 
1475
            s//\1/
 
1476
            q
 
1477
          }
 
1478
          /^X\(\/\/\)$/{
 
1479
            s//\1/
 
1480
            q
 
1481
          }
 
1482
          /^X\(\/\).*/{
 
1483
            s//\1/
 
1484
            q
 
1485
          }
 
1486
          s/.*/./; q'`
 
1487
  srcdir=$ac_confdir
 
1488
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1489
    srcdir=..
 
1490
  fi
 
1491
else
 
1492
  ac_srcdir_defaulted=no
 
1493
fi
 
1494
if test ! -r "$srcdir/$ac_unique_file"; then
 
1495
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1496
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1497
fi
 
1498
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1499
ac_abs_confdir=`(
 
1500
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1501
        pwd)`
 
1502
# When building in place, set srcdir=.
 
1503
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1504
  srcdir=.
 
1505
fi
 
1506
# Remove unnecessary trailing slashes from srcdir.
 
1507
# Double slashes in file names in object file debugging info
 
1508
# mess up M-x gdb in Emacs.
 
1509
case $srcdir in
 
1510
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1511
esac
 
1512
for ac_var in $ac_precious_vars; do
 
1513
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1514
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1515
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1516
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1517
done
 
1518
 
 
1519
#
 
1520
# Report the --help message.
 
1521
#
 
1522
if test "$ac_init_help" = "long"; then
 
1523
  # Omit some internal or obsolete options to make the list less imposing.
 
1524
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1525
  cat <<_ACEOF
 
1526
\`configure' configures libgnutls-extra 2.8.6 to adapt to many kinds of systems.
 
1527
 
 
1528
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1529
 
 
1530
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1531
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1532
 
 
1533
Defaults for the options are specified in brackets.
 
1534
 
 
1535
Configuration:
 
1536
  -h, --help              display this help and exit
 
1537
      --help=short        display options specific to this package
 
1538
      --help=recursive    display the short help of all the included packages
 
1539
  -V, --version           display version information and exit
 
1540
  -q, --quiet, --silent   do not print \`checking...' messages
 
1541
      --cache-file=FILE   cache test results in FILE [disabled]
 
1542
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1543
  -n, --no-create         do not create output files
 
1544
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1545
 
 
1546
Installation directories:
 
1547
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1548
                          [$ac_default_prefix]
 
1549
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1550
                          [PREFIX]
 
1551
 
 
1552
By default, \`make install' will install all the files in
 
1553
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1554
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1555
for instance \`--prefix=\$HOME'.
 
1556
 
 
1557
For better control, use the options below.
 
1558
 
 
1559
Fine tuning of the installation directories:
 
1560
  --bindir=DIR            user executables [EPREFIX/bin]
 
1561
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1562
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1563
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1564
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1565
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1566
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1567
  --includedir=DIR        C header files [PREFIX/include]
 
1568
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1569
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1570
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1571
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1572
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1573
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1574
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgnutls-extra]
 
1575
  --htmldir=DIR           html documentation [DOCDIR]
 
1576
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1577
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1578
  --psdir=DIR             ps documentation [DOCDIR]
 
1579
_ACEOF
 
1580
 
 
1581
  cat <<\_ACEOF
 
1582
 
 
1583
Program names:
 
1584
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1585
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1586
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1587
 
 
1588
System types:
 
1589
  --build=BUILD     configure for building on BUILD [guessed]
 
1590
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1591
_ACEOF
 
1592
fi
 
1593
 
 
1594
if test -n "$ac_init_help"; then
 
1595
  case $ac_init_help in
 
1596
     short | recursive ) echo "Configuration of libgnutls-extra 2.8.6:";;
 
1597
   esac
 
1598
  cat <<\_ACEOF
 
1599
 
 
1600
Optional Features:
 
1601
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1602
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1603
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1604
  --disable-dependency-tracking  speeds up one-time build
 
1605
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1606
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1607
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1608
  --enable-fast-install[=PKGS]
 
1609
                          optimize for fast installation [default=yes]
 
1610
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1611
  --disable-rpath         do not hardcode runtime library paths
 
1612
  --enable-opaque-prf-input=DD
 
1613
                          enable Opaque PRF input using DD as extension type
 
1614
  --disable-srp-authentication
 
1615
                          disable the SRP authentication support
 
1616
  --disable-psk-authentication
 
1617
                          disable the PSK authentication support
 
1618
  --disable-anon-authentication
 
1619
                          disable the anonymous authentication support
 
1620
  --disable-camellia      disable Camellia cipher
 
1621
  --disable-extra-pki     only enable the basic PKI stuff
 
1622
  --disable-openpgp-authentication
 
1623
                          disable the OpenPGP authentication support
 
1624
  --disable-openssl-compatibility
 
1625
                          disable the OpenSSL compatibility support
 
1626
  --enable-ld-version-script
 
1627
                          enable linker version script (default is enabled
 
1628
                          when possible)
 
1629
 
 
1630
Optional Packages:
 
1631
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1632
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1633
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1634
                          both]
 
1635
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1636
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1637
  --with-libgcrypt-prefix[=DIR]  search for libgcrypt in DIR/include and DIR/lib
 
1638
  --without-libgcrypt-prefix     don't search for libgcrypt in includedir and libdir
 
1639
  --with-included-libtasn1
 
1640
                          use the included libtasn1
 
1641
  --with-libtasn1-prefix[=DIR]  search for libtasn1 in DIR/include and DIR/lib
 
1642
  --without-libtasn1-prefix     don't search for libtasn1 in includedir and libdir
 
1643
  --with-lzo              use experimental LZO compression
 
1644
 
 
1645
Some influential environment variables:
 
1646
  CC          C compiler command
 
1647
  CFLAGS      C compiler flags
 
1648
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1649
              nonstandard directory <lib dir>
 
1650
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1651
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1652
              you have headers in a nonstandard directory <include dir>
 
1653
  CPP         C preprocessor
 
1654
 
 
1655
Use these variables to override the choices made by `configure' or to help
 
1656
it to find libraries and programs with nonstandard names/locations.
 
1657
 
 
1658
Report bugs to <bug-gnutls@gnu.org>.
 
1659
_ACEOF
 
1660
ac_status=$?
 
1661
fi
 
1662
 
 
1663
if test "$ac_init_help" = "recursive"; then
 
1664
  # If there are subdirs, report their specific --help.
 
1665
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1666
    test -d "$ac_dir" ||
 
1667
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1668
      continue
 
1669
    ac_builddir=.
 
1670
 
 
1671
case "$ac_dir" in
 
1672
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1673
*)
 
1674
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1675
  # A ".." for each directory in $ac_dir_suffix.
 
1676
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1677
  case $ac_top_builddir_sub in
 
1678
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1679
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1680
  esac ;;
 
1681
esac
 
1682
ac_abs_top_builddir=$ac_pwd
 
1683
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1684
# for backward compatibility:
 
1685
ac_top_builddir=$ac_top_build_prefix
 
1686
 
 
1687
case $srcdir in
 
1688
  .)  # We are building in place.
 
1689
    ac_srcdir=.
 
1690
    ac_top_srcdir=$ac_top_builddir_sub
 
1691
    ac_abs_top_srcdir=$ac_pwd ;;
 
1692
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1693
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1694
    ac_top_srcdir=$srcdir
 
1695
    ac_abs_top_srcdir=$srcdir ;;
 
1696
  *) # Relative name.
 
1697
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1698
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1699
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1700
esac
 
1701
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1702
 
 
1703
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1704
    # Check for guested configure.
 
1705
    if test -f "$ac_srcdir/configure.gnu"; then
 
1706
      echo &&
 
1707
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1708
    elif test -f "$ac_srcdir/configure"; then
 
1709
      echo &&
 
1710
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1711
    else
 
1712
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1713
    fi || ac_status=$?
 
1714
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1715
  done
 
1716
fi
 
1717
 
 
1718
test -n "$ac_init_help" && exit $ac_status
 
1719
if $ac_init_version; then
 
1720
  cat <<\_ACEOF
 
1721
libgnutls-extra configure 2.8.6
 
1722
generated by GNU Autoconf 2.65
 
1723
 
 
1724
Copyright (C) 2009 Free Software Foundation, Inc.
 
1725
This configure script is free software; the Free Software Foundation
 
1726
gives unlimited permission to copy, distribute and modify it.
 
1727
_ACEOF
 
1728
  exit
 
1729
fi
 
1730
 
 
1731
## ------------------------ ##
 
1732
## Autoconf initialization. ##
 
1733
## ------------------------ ##
 
1734
 
 
1735
# ac_fn_c_try_compile LINENO
 
1736
# --------------------------
 
1737
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1738
ac_fn_c_try_compile ()
 
1739
{
 
1740
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1741
  rm -f conftest.$ac_objext
 
1742
  if { { ac_try="$ac_compile"
 
1743
case "(($ac_try" in
 
1744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1745
  *) ac_try_echo=$ac_try;;
 
1746
esac
 
1747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1748
$as_echo "$ac_try_echo"; } >&5
 
1749
  (eval "$ac_compile") 2>conftest.err
 
1750
  ac_status=$?
 
1751
  if test -s conftest.err; then
 
1752
    grep -v '^ *+' conftest.err >conftest.er1
 
1753
    cat conftest.er1 >&5
 
1754
    mv -f conftest.er1 conftest.err
 
1755
  fi
 
1756
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1757
  test $ac_status = 0; } && {
 
1758
         test -z "$ac_c_werror_flag" ||
 
1759
         test ! -s conftest.err
 
1760
       } && test -s conftest.$ac_objext; then :
 
1761
  ac_retval=0
 
1762
else
 
1763
  $as_echo "$as_me: failed program was:" >&5
 
1764
sed 's/^/| /' conftest.$ac_ext >&5
 
1765
 
 
1766
        ac_retval=1
 
1767
fi
 
1768
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1769
  as_fn_set_status $ac_retval
 
1770
 
 
1771
} # ac_fn_c_try_compile
 
1772
 
 
1773
# ac_fn_c_try_cpp LINENO
 
1774
# ----------------------
 
1775
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1776
ac_fn_c_try_cpp ()
 
1777
{
 
1778
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1779
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1780
case "(($ac_try" in
 
1781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1782
  *) ac_try_echo=$ac_try;;
 
1783
esac
 
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1785
$as_echo "$ac_try_echo"; } >&5
 
1786
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1787
  ac_status=$?
 
1788
  if test -s conftest.err; then
 
1789
    grep -v '^ *+' conftest.err >conftest.er1
 
1790
    cat conftest.er1 >&5
 
1791
    mv -f conftest.er1 conftest.err
 
1792
  fi
 
1793
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1794
  test $ac_status = 0; } >/dev/null && {
 
1795
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1796
         test ! -s conftest.err
 
1797
       }; then :
 
1798
  ac_retval=0
 
1799
else
 
1800
  $as_echo "$as_me: failed program was:" >&5
 
1801
sed 's/^/| /' conftest.$ac_ext >&5
 
1802
 
 
1803
    ac_retval=1
 
1804
fi
 
1805
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1806
  as_fn_set_status $ac_retval
 
1807
 
 
1808
} # ac_fn_c_try_cpp
 
1809
 
 
1810
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1811
# -------------------------------------------------------
 
1812
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1813
# the include files in INCLUDES and setting the cache variable VAR
 
1814
# accordingly.
 
1815
ac_fn_c_check_header_mongrel ()
 
1816
{
 
1817
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1818
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1819
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1820
$as_echo_n "checking for $2... " >&6; }
 
1821
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1822
  $as_echo_n "(cached) " >&6
 
1823
fi
 
1824
eval ac_res=\$$3
 
1825
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1826
$as_echo "$ac_res" >&6; }
 
1827
else
 
1828
  # Is the header compilable?
 
1829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1830
$as_echo_n "checking $2 usability... " >&6; }
 
1831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1832
/* end confdefs.h.  */
 
1833
$4
 
1834
#include <$2>
 
1835
_ACEOF
 
1836
if ac_fn_c_try_compile "$LINENO"; then :
 
1837
  ac_header_compiler=yes
 
1838
else
 
1839
  ac_header_compiler=no
 
1840
fi
 
1841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1843
$as_echo "$ac_header_compiler" >&6; }
 
1844
 
 
1845
# Is the header present?
 
1846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1847
$as_echo_n "checking $2 presence... " >&6; }
 
1848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1849
/* end confdefs.h.  */
 
1850
#include <$2>
 
1851
_ACEOF
 
1852
if ac_fn_c_try_cpp "$LINENO"; then :
 
1853
  ac_header_preproc=yes
 
1854
else
 
1855
  ac_header_preproc=no
 
1856
fi
 
1857
rm -f conftest.err conftest.$ac_ext
 
1858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1859
$as_echo "$ac_header_preproc" >&6; }
 
1860
 
 
1861
# So?  What about this header?
 
1862
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1863
  yes:no: )
 
1864
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1865
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1866
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1867
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1868
    ;;
 
1869
  no:yes:* )
 
1870
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1871
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1872
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1873
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1874
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1875
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1876
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1877
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1878
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1879
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1880
( cat <<\_ASBOX
 
1881
## --------------------------------- ##
 
1882
## Report this to bug-gnutls@gnu.org ##
 
1883
## --------------------------------- ##
 
1884
_ASBOX
 
1885
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1886
    ;;
 
1887
esac
 
1888
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1889
$as_echo_n "checking for $2... " >&6; }
 
1890
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1891
  $as_echo_n "(cached) " >&6
 
1892
else
 
1893
  eval "$3=\$ac_header_compiler"
 
1894
fi
 
1895
eval ac_res=\$$3
 
1896
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1897
$as_echo "$ac_res" >&6; }
 
1898
fi
 
1899
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1900
 
 
1901
} # ac_fn_c_check_header_mongrel
 
1902
 
 
1903
# ac_fn_c_try_run LINENO
 
1904
# ----------------------
 
1905
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1906
# that executables *can* be run.
 
1907
ac_fn_c_try_run ()
 
1908
{
 
1909
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1910
  if { { ac_try="$ac_link"
 
1911
case "(($ac_try" in
 
1912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1913
  *) ac_try_echo=$ac_try;;
 
1914
esac
 
1915
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1916
$as_echo "$ac_try_echo"; } >&5
 
1917
  (eval "$ac_link") 2>&5
 
1918
  ac_status=$?
 
1919
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1920
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1921
  { { case "(($ac_try" in
 
1922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1923
  *) ac_try_echo=$ac_try;;
 
1924
esac
 
1925
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1926
$as_echo "$ac_try_echo"; } >&5
 
1927
  (eval "$ac_try") 2>&5
 
1928
  ac_status=$?
 
1929
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1930
  test $ac_status = 0; }; }; then :
 
1931
  ac_retval=0
 
1932
else
 
1933
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1934
       $as_echo "$as_me: failed program was:" >&5
 
1935
sed 's/^/| /' conftest.$ac_ext >&5
 
1936
 
 
1937
       ac_retval=$ac_status
 
1938
fi
 
1939
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1940
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1941
  as_fn_set_status $ac_retval
 
1942
 
 
1943
} # ac_fn_c_try_run
 
1944
 
 
1945
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1946
# -------------------------------------------------------
 
1947
# Tests whether HEADER exists and can be compiled using the include files in
 
1948
# INCLUDES, setting the cache variable VAR accordingly.
 
1949
ac_fn_c_check_header_compile ()
 
1950
{
 
1951
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1952
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1953
$as_echo_n "checking for $2... " >&6; }
 
1954
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1955
  $as_echo_n "(cached) " >&6
 
1956
else
 
1957
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1958
/* end confdefs.h.  */
 
1959
$4
 
1960
#include <$2>
 
1961
_ACEOF
 
1962
if ac_fn_c_try_compile "$LINENO"; then :
 
1963
  eval "$3=yes"
 
1964
else
 
1965
  eval "$3=no"
 
1966
fi
 
1967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1968
fi
 
1969
eval ac_res=\$$3
 
1970
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1971
$as_echo "$ac_res" >&6; }
 
1972
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1973
 
 
1974
} # ac_fn_c_check_header_compile
 
1975
 
 
1976
# ac_fn_c_try_link LINENO
 
1977
# -----------------------
 
1978
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1979
ac_fn_c_try_link ()
 
1980
{
 
1981
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1982
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1983
  if { { ac_try="$ac_link"
 
1984
case "(($ac_try" in
 
1985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1986
  *) ac_try_echo=$ac_try;;
 
1987
esac
 
1988
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1989
$as_echo "$ac_try_echo"; } >&5
 
1990
  (eval "$ac_link") 2>conftest.err
 
1991
  ac_status=$?
 
1992
  if test -s conftest.err; then
 
1993
    grep -v '^ *+' conftest.err >conftest.er1
 
1994
    cat conftest.er1 >&5
 
1995
    mv -f conftest.er1 conftest.err
 
1996
  fi
 
1997
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1998
  test $ac_status = 0; } && {
 
1999
         test -z "$ac_c_werror_flag" ||
 
2000
         test ! -s conftest.err
 
2001
       } && test -s conftest$ac_exeext && {
 
2002
         test "$cross_compiling" = yes ||
 
2003
         $as_test_x conftest$ac_exeext
 
2004
       }; then :
 
2005
  ac_retval=0
 
2006
else
 
2007
  $as_echo "$as_me: failed program was:" >&5
 
2008
sed 's/^/| /' conftest.$ac_ext >&5
 
2009
 
 
2010
        ac_retval=1
 
2011
fi
 
2012
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2013
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2014
  # interfere with the next link command; also delete a directory that is
 
2015
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2016
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2017
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2018
  as_fn_set_status $ac_retval
 
2019
 
 
2020
} # ac_fn_c_try_link
 
2021
 
 
2022
# ac_fn_c_check_func LINENO FUNC VAR
 
2023
# ----------------------------------
 
2024
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2025
ac_fn_c_check_func ()
 
2026
{
 
2027
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2028
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2029
$as_echo_n "checking for $2... " >&6; }
 
2030
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2031
  $as_echo_n "(cached) " >&6
 
2032
else
 
2033
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2034
/* end confdefs.h.  */
 
2035
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2036
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2037
#define $2 innocuous_$2
 
2038
 
 
2039
/* System header to define __stub macros and hopefully few prototypes,
 
2040
    which can conflict with char $2 (); below.
 
2041
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2042
    <limits.h> exists even on freestanding compilers.  */
 
2043
 
 
2044
#ifdef __STDC__
 
2045
# include <limits.h>
 
2046
#else
 
2047
# include <assert.h>
 
2048
#endif
 
2049
 
 
2050
#undef $2
 
2051
 
 
2052
/* Override any GCC internal prototype to avoid an error.
 
2053
   Use char because int might match the return type of a GCC
 
2054
   builtin and then its argument prototype would still apply.  */
 
2055
#ifdef __cplusplus
 
2056
extern "C"
 
2057
#endif
 
2058
char $2 ();
 
2059
/* The GNU C library defines this for functions which it implements
 
2060
    to always fail with ENOSYS.  Some functions are actually named
 
2061
    something starting with __ and the normal name is an alias.  */
 
2062
#if defined __stub_$2 || defined __stub___$2
 
2063
choke me
 
2064
#endif
 
2065
 
 
2066
int
 
2067
main ()
 
2068
{
 
2069
return $2 ();
 
2070
  ;
 
2071
  return 0;
 
2072
}
 
2073
_ACEOF
 
2074
if ac_fn_c_try_link "$LINENO"; then :
 
2075
  eval "$3=yes"
 
2076
else
 
2077
  eval "$3=no"
 
2078
fi
 
2079
rm -f core conftest.err conftest.$ac_objext \
 
2080
    conftest$ac_exeext conftest.$ac_ext
 
2081
fi
 
2082
eval ac_res=\$$3
 
2083
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2084
$as_echo "$ac_res" >&6; }
 
2085
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2086
 
 
2087
} # ac_fn_c_check_func
 
2088
 
 
2089
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2090
# --------------------------------------------
 
2091
# Tries to find the compile-time value of EXPR in a program that includes
 
2092
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2093
# computed
 
2094
ac_fn_c_compute_int ()
 
2095
{
 
2096
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2097
  if test "$cross_compiling" = yes; then
 
2098
    # Depending upon the size, compute the lo and hi bounds.
 
2099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2100
/* end confdefs.h.  */
 
2101
$4
 
2102
int
 
2103
main ()
 
2104
{
 
2105
static int test_array [1 - 2 * !(($2) >= 0)];
 
2106
test_array [0] = 0
 
2107
 
 
2108
  ;
 
2109
  return 0;
 
2110
}
 
2111
_ACEOF
 
2112
if ac_fn_c_try_compile "$LINENO"; then :
 
2113
  ac_lo=0 ac_mid=0
 
2114
  while :; do
 
2115
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2116
/* end confdefs.h.  */
 
2117
$4
 
2118
int
 
2119
main ()
 
2120
{
 
2121
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2122
test_array [0] = 0
 
2123
 
 
2124
  ;
 
2125
  return 0;
 
2126
}
 
2127
_ACEOF
 
2128
if ac_fn_c_try_compile "$LINENO"; then :
 
2129
  ac_hi=$ac_mid; break
 
2130
else
 
2131
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2132
                        if test $ac_lo -le $ac_mid; then
 
2133
                          ac_lo= ac_hi=
 
2134
                          break
 
2135
                        fi
 
2136
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2137
fi
 
2138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2139
  done
 
2140
else
 
2141
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2142
/* end confdefs.h.  */
 
2143
$4
 
2144
int
 
2145
main ()
 
2146
{
 
2147
static int test_array [1 - 2 * !(($2) < 0)];
 
2148
test_array [0] = 0
 
2149
 
 
2150
  ;
 
2151
  return 0;
 
2152
}
 
2153
_ACEOF
 
2154
if ac_fn_c_try_compile "$LINENO"; then :
 
2155
  ac_hi=-1 ac_mid=-1
 
2156
  while :; do
 
2157
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2158
/* end confdefs.h.  */
 
2159
$4
 
2160
int
 
2161
main ()
 
2162
{
 
2163
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2164
test_array [0] = 0
 
2165
 
 
2166
  ;
 
2167
  return 0;
 
2168
}
 
2169
_ACEOF
 
2170
if ac_fn_c_try_compile "$LINENO"; then :
 
2171
  ac_lo=$ac_mid; break
 
2172
else
 
2173
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2174
                        if test $ac_mid -le $ac_hi; then
 
2175
                          ac_lo= ac_hi=
 
2176
                          break
 
2177
                        fi
 
2178
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2179
fi
 
2180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2181
  done
 
2182
else
 
2183
  ac_lo= ac_hi=
 
2184
fi
 
2185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2186
fi
 
2187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2188
# Binary search between lo and hi bounds.
 
2189
while test "x$ac_lo" != "x$ac_hi"; do
 
2190
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2191
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2192
/* end confdefs.h.  */
 
2193
$4
 
2194
int
 
2195
main ()
 
2196
{
 
2197
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2198
test_array [0] = 0
 
2199
 
 
2200
  ;
 
2201
  return 0;
 
2202
}
 
2203
_ACEOF
 
2204
if ac_fn_c_try_compile "$LINENO"; then :
 
2205
  ac_hi=$ac_mid
 
2206
else
 
2207
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2208
fi
 
2209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2210
done
 
2211
case $ac_lo in #((
 
2212
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2213
'') ac_retval=1 ;;
 
2214
esac
 
2215
  else
 
2216
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2217
/* end confdefs.h.  */
 
2218
$4
 
2219
static long int longval () { return $2; }
 
2220
static unsigned long int ulongval () { return $2; }
 
2221
#include <stdio.h>
 
2222
#include <stdlib.h>
 
2223
int
 
2224
main ()
 
2225
{
 
2226
 
 
2227
  FILE *f = fopen ("conftest.val", "w");
 
2228
  if (! f)
 
2229
    return 1;
 
2230
  if (($2) < 0)
 
2231
    {
 
2232
      long int i = longval ();
 
2233
      if (i != ($2))
 
2234
        return 1;
 
2235
      fprintf (f, "%ld", i);
 
2236
    }
 
2237
  else
 
2238
    {
 
2239
      unsigned long int i = ulongval ();
 
2240
      if (i != ($2))
 
2241
        return 1;
 
2242
      fprintf (f, "%lu", i);
 
2243
    }
 
2244
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2245
     on some platforms.  */
 
2246
  return ferror (f) || fclose (f) != 0;
 
2247
 
 
2248
  ;
 
2249
  return 0;
 
2250
}
 
2251
_ACEOF
 
2252
if ac_fn_c_try_run "$LINENO"; then :
 
2253
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2254
else
 
2255
  ac_retval=1
 
2256
fi
 
2257
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2258
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2259
rm -f conftest.val
 
2260
 
 
2261
  fi
 
2262
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2263
  as_fn_set_status $ac_retval
 
2264
 
 
2265
} # ac_fn_c_compute_int
 
2266
cat >config.log <<_ACEOF
 
2267
This file contains any messages produced by compilers while
 
2268
running configure, to aid debugging if configure makes a mistake.
 
2269
 
 
2270
It was created by libgnutls-extra $as_me 2.8.6, which was
 
2271
generated by GNU Autoconf 2.65.  Invocation command line was
 
2272
 
 
2273
  $ $0 $@
 
2274
 
 
2275
_ACEOF
 
2276
exec 5>>config.log
 
2277
{
 
2278
cat <<_ASUNAME
 
2279
## --------- ##
 
2280
## Platform. ##
 
2281
## --------- ##
 
2282
 
 
2283
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2284
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2285
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2286
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2287
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2288
 
 
2289
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2290
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2291
 
 
2292
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2293
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2294
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2295
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2296
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2297
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2298
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2299
 
 
2300
_ASUNAME
 
2301
 
 
2302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2303
for as_dir in $PATH
 
2304
do
 
2305
  IFS=$as_save_IFS
 
2306
  test -z "$as_dir" && as_dir=.
 
2307
    $as_echo "PATH: $as_dir"
 
2308
  done
 
2309
IFS=$as_save_IFS
 
2310
 
 
2311
} >&5
 
2312
 
 
2313
cat >&5 <<_ACEOF
 
2314
 
 
2315
 
 
2316
## ----------- ##
 
2317
## Core tests. ##
 
2318
## ----------- ##
 
2319
 
 
2320
_ACEOF
 
2321
 
 
2322
 
 
2323
# Keep a trace of the command line.
 
2324
# Strip out --no-create and --no-recursion so they do not pile up.
 
2325
# Strip out --silent because we don't want to record it for future runs.
 
2326
# Also quote any args containing shell meta-characters.
 
2327
# Make two passes to allow for proper duplicate-argument suppression.
 
2328
ac_configure_args=
 
2329
ac_configure_args0=
 
2330
ac_configure_args1=
 
2331
ac_must_keep_next=false
 
2332
for ac_pass in 1 2
 
2333
do
 
2334
  for ac_arg
 
2335
  do
 
2336
    case $ac_arg in
 
2337
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2338
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2339
    | -silent | --silent | --silen | --sile | --sil)
 
2340
      continue ;;
 
2341
    *\'*)
 
2342
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2343
    esac
 
2344
    case $ac_pass in
 
2345
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2346
    2)
 
2347
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2348
      if test $ac_must_keep_next = true; then
 
2349
        ac_must_keep_next=false # Got value, back to normal.
 
2350
      else
 
2351
        case $ac_arg in
 
2352
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2353
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2354
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2355
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2356
            case "$ac_configure_args0 " in
 
2357
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2358
            esac
 
2359
            ;;
 
2360
          -* ) ac_must_keep_next=true ;;
 
2361
        esac
 
2362
      fi
 
2363
      as_fn_append ac_configure_args " '$ac_arg'"
 
2364
      ;;
 
2365
    esac
 
2366
  done
 
2367
done
 
2368
{ ac_configure_args0=; unset ac_configure_args0;}
 
2369
{ ac_configure_args1=; unset ac_configure_args1;}
 
2370
 
 
2371
# When interrupted or exit'd, cleanup temporary files, and complete
 
2372
# config.log.  We remove comments because anyway the quotes in there
 
2373
# would cause problems or look ugly.
 
2374
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2375
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2376
trap 'exit_status=$?
 
2377
  # Save into config.log some information that might help in debugging.
 
2378
  {
 
2379
    echo
 
2380
 
 
2381
    cat <<\_ASBOX
 
2382
## ---------------- ##
 
2383
## Cache variables. ##
 
2384
## ---------------- ##
 
2385
_ASBOX
 
2386
    echo
 
2387
    # The following way of writing the cache mishandles newlines in values,
 
2388
(
 
2389
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2390
    eval ac_val=\$$ac_var
 
2391
    case $ac_val in #(
 
2392
    *${as_nl}*)
 
2393
      case $ac_var in #(
 
2394
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2395
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2396
      esac
 
2397
      case $ac_var in #(
 
2398
      _ | IFS | as_nl) ;; #(
 
2399
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2400
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2401
      esac ;;
 
2402
    esac
 
2403
  done
 
2404
  (set) 2>&1 |
 
2405
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2406
    *${as_nl}ac_space=\ *)
 
2407
      sed -n \
 
2408
        "s/'\''/'\''\\\\'\'''\''/g;
 
2409
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2410
      ;; #(
 
2411
    *)
 
2412
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2413
      ;;
 
2414
    esac |
 
2415
    sort
 
2416
)
 
2417
    echo
 
2418
 
 
2419
    cat <<\_ASBOX
 
2420
## ----------------- ##
 
2421
## Output variables. ##
 
2422
## ----------------- ##
 
2423
_ASBOX
 
2424
    echo
 
2425
    for ac_var in $ac_subst_vars
 
2426
    do
 
2427
      eval ac_val=\$$ac_var
 
2428
      case $ac_val in
 
2429
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2430
      esac
 
2431
      $as_echo "$ac_var='\''$ac_val'\''"
 
2432
    done | sort
 
2433
    echo
 
2434
 
 
2435
    if test -n "$ac_subst_files"; then
 
2436
      cat <<\_ASBOX
 
2437
## ------------------- ##
 
2438
## File substitutions. ##
 
2439
## ------------------- ##
 
2440
_ASBOX
 
2441
      echo
 
2442
      for ac_var in $ac_subst_files
 
2443
      do
 
2444
        eval ac_val=\$$ac_var
 
2445
        case $ac_val in
 
2446
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2447
        esac
 
2448
        $as_echo "$ac_var='\''$ac_val'\''"
 
2449
      done | sort
 
2450
      echo
 
2451
    fi
 
2452
 
 
2453
    if test -s confdefs.h; then
 
2454
      cat <<\_ASBOX
 
2455
## ----------- ##
 
2456
## confdefs.h. ##
 
2457
## ----------- ##
 
2458
_ASBOX
 
2459
      echo
 
2460
      cat confdefs.h
 
2461
      echo
 
2462
    fi
 
2463
    test "$ac_signal" != 0 &&
 
2464
      $as_echo "$as_me: caught signal $ac_signal"
 
2465
    $as_echo "$as_me: exit $exit_status"
 
2466
  } >&5
 
2467
  rm -f core *.core core.conftest.* &&
 
2468
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2469
    exit $exit_status
 
2470
' 0
 
2471
for ac_signal in 1 2 13 15; do
 
2472
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2473
done
 
2474
ac_signal=0
 
2475
 
 
2476
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2477
rm -f -r conftest* confdefs.h
 
2478
 
 
2479
$as_echo "/* confdefs.h */" > confdefs.h
 
2480
 
 
2481
# Predefined preprocessor variables.
 
2482
 
 
2483
cat >>confdefs.h <<_ACEOF
 
2484
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2485
_ACEOF
 
2486
 
 
2487
cat >>confdefs.h <<_ACEOF
 
2488
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2489
_ACEOF
 
2490
 
 
2491
cat >>confdefs.h <<_ACEOF
 
2492
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2493
_ACEOF
 
2494
 
 
2495
cat >>confdefs.h <<_ACEOF
 
2496
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2497
_ACEOF
 
2498
 
 
2499
cat >>confdefs.h <<_ACEOF
 
2500
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2501
_ACEOF
 
2502
 
 
2503
cat >>confdefs.h <<_ACEOF
 
2504
#define PACKAGE_URL "$PACKAGE_URL"
 
2505
_ACEOF
 
2506
 
 
2507
 
 
2508
# Let the site file select an alternate cache file if it wants to.
 
2509
# Prefer an explicitly selected file to automatically selected ones.
 
2510
ac_site_file1=NONE
 
2511
ac_site_file2=NONE
 
2512
if test -n "$CONFIG_SITE"; then
 
2513
  ac_site_file1=$CONFIG_SITE
 
2514
elif test "x$prefix" != xNONE; then
 
2515
  ac_site_file1=$prefix/share/config.site
 
2516
  ac_site_file2=$prefix/etc/config.site
 
2517
else
 
2518
  ac_site_file1=$ac_default_prefix/share/config.site
 
2519
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2520
fi
 
2521
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2522
do
 
2523
  test "x$ac_site_file" = xNONE && continue
 
2524
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2525
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2526
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2527
    sed 's/^/| /' "$ac_site_file" >&5
 
2528
    . "$ac_site_file"
 
2529
  fi
 
2530
done
 
2531
 
 
2532
if test -r "$cache_file"; then
 
2533
  # Some versions of bash will fail to source /dev/null (special files
 
2534
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2535
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2536
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2537
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2538
    case $cache_file in
 
2539
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2540
      *)                      . "./$cache_file";;
 
2541
    esac
 
2542
  fi
 
2543
else
 
2544
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2545
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2546
  >$cache_file
 
2547
fi
 
2548
 
 
2549
as_fn_append ac_header_list " sys/socket.h"
 
2550
# Check that the precious variables saved in the cache have kept the same
 
2551
# value.
 
2552
ac_cache_corrupted=false
 
2553
for ac_var in $ac_precious_vars; do
 
2554
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2555
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2556
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2557
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2558
  case $ac_old_set,$ac_new_set in
 
2559
    set,)
 
2560
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2561
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2562
      ac_cache_corrupted=: ;;
 
2563
    ,set)
 
2564
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2565
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2566
      ac_cache_corrupted=: ;;
 
2567
    ,);;
 
2568
    *)
 
2569
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2570
        # differences in whitespace do not lead to failure.
 
2571
        ac_old_val_w=`echo x $ac_old_val`
 
2572
        ac_new_val_w=`echo x $ac_new_val`
 
2573
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2574
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2575
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2576
          ac_cache_corrupted=:
 
2577
        else
 
2578
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2579
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2580
          eval $ac_var=\$ac_old_val
 
2581
        fi
 
2582
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2583
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2584
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2585
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2586
      fi;;
 
2587
  esac
 
2588
  # Pass precious variables to config.status.
 
2589
  if test "$ac_new_set" = set; then
 
2590
    case $ac_new_val in
 
2591
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2592
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2593
    esac
 
2594
    case " $ac_configure_args " in
 
2595
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2596
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2597
    esac
 
2598
  fi
 
2599
done
 
2600
if $ac_cache_corrupted; then
 
2601
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2602
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2603
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2604
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2605
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2606
fi
 
2607
## -------------------- ##
 
2608
## Main body of script. ##
 
2609
## -------------------- ##
 
2610
 
 
2611
ac_ext=c
 
2612
ac_cpp='$CPP $CPPFLAGS'
 
2613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2616
 
 
2617
 
 
2618
ac_aux_dir=
 
2619
for ac_dir in build-aux "$srcdir"/build-aux; do
 
2620
  for ac_t in install-sh install.sh shtool; do
 
2621
    if test -f "$ac_dir/$ac_t"; then
 
2622
      ac_aux_dir=$ac_dir
 
2623
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2624
      break 2
 
2625
    fi
 
2626
  done
 
2627
done
 
2628
if test -z "$ac_aux_dir"; then
 
2629
  as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
2630
fi
 
2631
 
 
2632
# These three variables are undocumented and unsupported,
 
2633
# and are intended to be withdrawn in a future Autoconf release.
 
2634
# They can cause serious problems if a builder's source tree is in a directory
 
2635
# whose full name contains unusual characters.
 
2636
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2637
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2638
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2639
 
 
2640
 
 
2641
 
 
2642
 
 
2643
am__api_version='1.11'
 
2644
 
 
2645
# Find a good install program.  We prefer a C program (faster),
 
2646
# so one script is as good as another.  But avoid the broken or
 
2647
# incompatible versions:
 
2648
# SysV /etc/install, /usr/sbin/install
 
2649
# SunOS /usr/etc/install
 
2650
# IRIX /sbin/install
 
2651
# AIX /bin/install
 
2652
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2653
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2654
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2655
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2656
# OS/2's system install, which has a completely different semantic
 
2657
# ./install, which can be erroneously created by make from ./install.sh.
 
2658
# Reject install programs that cannot install multiple files.
 
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2660
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2661
if test -z "$INSTALL"; then
 
2662
if test "${ac_cv_path_install+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
 
2667
do
 
2668
  IFS=$as_save_IFS
 
2669
  test -z "$as_dir" && as_dir=.
 
2670
    # Account for people who put trailing slashes in PATH elements.
 
2671
case $as_dir/ in #((
 
2672
  ./ | .// | /[cC]/* | \
 
2673
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2674
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2675
  /usr/ucb/* ) ;;
 
2676
  *)
 
2677
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2678
    # Don't use installbsd from OSF since it installs stuff as root
 
2679
    # by default.
 
2680
    for ac_prog in ginstall scoinst install; do
 
2681
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2682
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2683
          if test $ac_prog = install &&
 
2684
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2685
            # AIX install.  It has an incompatible calling convention.
 
2686
            :
 
2687
          elif test $ac_prog = install &&
 
2688
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2689
            # program-specific install script used by HP pwplus--don't use.
 
2690
            :
 
2691
          else
 
2692
            rm -rf conftest.one conftest.two conftest.dir
 
2693
            echo one > conftest.one
 
2694
            echo two > conftest.two
 
2695
            mkdir conftest.dir
 
2696
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2697
              test -s conftest.one && test -s conftest.two &&
 
2698
              test -s conftest.dir/conftest.one &&
 
2699
              test -s conftest.dir/conftest.two
 
2700
            then
 
2701
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2702
              break 3
 
2703
            fi
 
2704
          fi
 
2705
        fi
 
2706
      done
 
2707
    done
 
2708
    ;;
 
2709
esac
 
2710
 
 
2711
  done
 
2712
IFS=$as_save_IFS
 
2713
 
 
2714
rm -rf conftest.one conftest.two conftest.dir
 
2715
 
 
2716
fi
 
2717
  if test "${ac_cv_path_install+set}" = set; then
 
2718
    INSTALL=$ac_cv_path_install
 
2719
  else
 
2720
    # As a last resort, use the slow shell script.  Don't cache a
 
2721
    # value for INSTALL within a source directory, because that will
 
2722
    # break other packages using the cache if that directory is
 
2723
    # removed, or if the value is a relative name.
 
2724
    INSTALL=$ac_install_sh
 
2725
  fi
 
2726
fi
 
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2728
$as_echo "$INSTALL" >&6; }
 
2729
 
 
2730
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2731
# It thinks the first close brace ends the variable substitution.
 
2732
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2733
 
 
2734
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2735
 
 
2736
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2737
 
 
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2739
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2740
# Just in case
 
2741
sleep 1
 
2742
echo timestamp > conftest.file
 
2743
# Reject unsafe characters in $srcdir or the absolute working directory
 
2744
# name.  Accept space and tab only in the latter.
 
2745
am_lf='
 
2746
'
 
2747
case `pwd` in
 
2748
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2749
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2750
esac
 
2751
case $srcdir in
 
2752
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2753
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2754
esac
 
2755
 
 
2756
# Do `set' in a subshell so we don't clobber the current shell's
 
2757
# arguments.  Must try -L first in case configure is actually a
 
2758
# symlink; some systems play weird games with the mod time of symlinks
 
2759
# (eg FreeBSD returns the mod time of the symlink's containing
 
2760
# directory).
 
2761
if (
 
2762
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2763
   if test "$*" = "X"; then
 
2764
      # -L didn't work.
 
2765
      set X `ls -t "$srcdir/configure" conftest.file`
 
2766
   fi
 
2767
   rm -f conftest.file
 
2768
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2769
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2770
 
 
2771
      # If neither matched, then we have a broken ls.  This can happen
 
2772
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2773
      # broken ls alias from the environment.  This has actually
 
2774
      # happened.  Such a system could not be considered "sane".
 
2775
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2776
alias in your environment" "$LINENO" 5
 
2777
   fi
 
2778
 
 
2779
   test "$2" = conftest.file
 
2780
   )
 
2781
then
 
2782
   # Ok.
 
2783
   :
 
2784
else
 
2785
   as_fn_error "newly created file is older than distributed files!
 
2786
Check your system clock" "$LINENO" 5
 
2787
fi
 
2788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2789
$as_echo "yes" >&6; }
 
2790
test "$program_prefix" != NONE &&
 
2791
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2792
# Use a double $ so make ignores it.
 
2793
test "$program_suffix" != NONE &&
 
2794
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2795
# Double any \ or $.
 
2796
# By default was `s,x,x', remove it if useless.
 
2797
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2798
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2799
 
 
2800
# expand $ac_aux_dir to an absolute path
 
2801
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2802
 
 
2803
if test x"${MISSING+set}" != xset; then
 
2804
  case $am_aux_dir in
 
2805
  *\ * | *\     *)
 
2806
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2807
  *)
 
2808
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2809
  esac
 
2810
fi
 
2811
# Use eval to expand $SHELL
 
2812
if eval "$MISSING --run true"; then
 
2813
  am_missing_run="$MISSING --run "
 
2814
else
 
2815
  am_missing_run=
 
2816
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2817
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2818
fi
 
2819
 
 
2820
if test x"${install_sh}" != xset; then
 
2821
  case $am_aux_dir in
 
2822
  *\ * | *\     *)
 
2823
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2824
  *)
 
2825
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2826
  esac
 
2827
fi
 
2828
 
 
2829
# Installed binaries are usually stripped using `strip' when the user
 
2830
# run `make install-strip'.  However `strip' might not be the right
 
2831
# tool to use in cross-compilation environments, therefore Automake
 
2832
# will honor the `STRIP' environment variable to overrule this program.
 
2833
if test "$cross_compiling" != no; then
 
2834
  if test -n "$ac_tool_prefix"; then
 
2835
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2836
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2838
$as_echo_n "checking for $ac_word... " >&6; }
 
2839
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2840
  $as_echo_n "(cached) " >&6
 
2841
else
 
2842
  if test -n "$STRIP"; then
 
2843
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2844
else
 
2845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2846
for as_dir in $PATH
 
2847
do
 
2848
  IFS=$as_save_IFS
 
2849
  test -z "$as_dir" && as_dir=.
 
2850
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2851
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2852
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2853
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2854
    break 2
 
2855
  fi
 
2856
done
 
2857
  done
 
2858
IFS=$as_save_IFS
 
2859
 
 
2860
fi
 
2861
fi
 
2862
STRIP=$ac_cv_prog_STRIP
 
2863
if test -n "$STRIP"; then
 
2864
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2865
$as_echo "$STRIP" >&6; }
 
2866
else
 
2867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2868
$as_echo "no" >&6; }
 
2869
fi
 
2870
 
 
2871
 
 
2872
fi
 
2873
if test -z "$ac_cv_prog_STRIP"; then
 
2874
  ac_ct_STRIP=$STRIP
 
2875
  # Extract the first word of "strip", so it can be a program name with args.
 
2876
set dummy strip; ac_word=$2
 
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2878
$as_echo_n "checking for $ac_word... " >&6; }
 
2879
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2880
  $as_echo_n "(cached) " >&6
 
2881
else
 
2882
  if test -n "$ac_ct_STRIP"; then
 
2883
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2884
else
 
2885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2886
for as_dir in $PATH
 
2887
do
 
2888
  IFS=$as_save_IFS
 
2889
  test -z "$as_dir" && as_dir=.
 
2890
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2891
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2892
    ac_cv_prog_ac_ct_STRIP="strip"
 
2893
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2894
    break 2
 
2895
  fi
 
2896
done
 
2897
  done
 
2898
IFS=$as_save_IFS
 
2899
 
 
2900
fi
 
2901
fi
 
2902
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2903
if test -n "$ac_ct_STRIP"; then
 
2904
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2905
$as_echo "$ac_ct_STRIP" >&6; }
 
2906
else
 
2907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2908
$as_echo "no" >&6; }
 
2909
fi
 
2910
 
 
2911
  if test "x$ac_ct_STRIP" = x; then
 
2912
    STRIP=":"
 
2913
  else
 
2914
    case $cross_compiling:$ac_tool_warned in
 
2915
yes:)
 
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2917
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2918
ac_tool_warned=yes ;;
 
2919
esac
 
2920
    STRIP=$ac_ct_STRIP
 
2921
  fi
 
2922
else
 
2923
  STRIP="$ac_cv_prog_STRIP"
 
2924
fi
 
2925
 
 
2926
fi
 
2927
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2928
 
 
2929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2930
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2931
if test -z "$MKDIR_P"; then
 
2932
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2933
  $as_echo_n "(cached) " >&6
 
2934
else
 
2935
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2936
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2937
do
 
2938
  IFS=$as_save_IFS
 
2939
  test -z "$as_dir" && as_dir=.
 
2940
    for ac_prog in mkdir gmkdir; do
 
2941
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2942
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2943
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2944
             'mkdir (GNU coreutils) '* | \
 
2945
             'mkdir (coreutils) '* | \
 
2946
             'mkdir (fileutils) '4.1*)
 
2947
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2948
               break 3;;
 
2949
           esac
 
2950
         done
 
2951
       done
 
2952
  done
 
2953
IFS=$as_save_IFS
 
2954
 
 
2955
fi
 
2956
 
 
2957
  test -d ./--version && rmdir ./--version
 
2958
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2959
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2960
  else
 
2961
    # As a last resort, use the slow shell script.  Don't cache a
 
2962
    # value for MKDIR_P within a source directory, because that will
 
2963
    # break other packages using the cache if that directory is
 
2964
    # removed, or if the value is a relative name.
 
2965
    MKDIR_P="$ac_install_sh -d"
 
2966
  fi
 
2967
fi
 
2968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2969
$as_echo "$MKDIR_P" >&6; }
 
2970
 
 
2971
mkdir_p="$MKDIR_P"
 
2972
case $mkdir_p in
 
2973
  [\\/$]* | ?:[\\/]*) ;;
 
2974
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2975
esac
 
2976
 
 
2977
for ac_prog in gawk mawk nawk awk
 
2978
do
 
2979
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2980
set dummy $ac_prog; ac_word=$2
 
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2982
$as_echo_n "checking for $ac_word... " >&6; }
 
2983
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2984
  $as_echo_n "(cached) " >&6
 
2985
else
 
2986
  if test -n "$AWK"; then
 
2987
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2988
else
 
2989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2990
for as_dir in $PATH
 
2991
do
 
2992
  IFS=$as_save_IFS
 
2993
  test -z "$as_dir" && as_dir=.
 
2994
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2995
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2996
    ac_cv_prog_AWK="$ac_prog"
 
2997
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2998
    break 2
 
2999
  fi
 
3000
done
 
3001
  done
 
3002
IFS=$as_save_IFS
 
3003
 
 
3004
fi
 
3005
fi
 
3006
AWK=$ac_cv_prog_AWK
 
3007
if test -n "$AWK"; then
 
3008
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3009
$as_echo "$AWK" >&6; }
 
3010
else
 
3011
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3012
$as_echo "no" >&6; }
 
3013
fi
 
3014
 
 
3015
 
 
3016
  test -n "$AWK" && break
 
3017
done
 
3018
 
 
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3020
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3021
set x ${MAKE-make}
 
3022
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3023
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3024
  $as_echo_n "(cached) " >&6
 
3025
else
 
3026
  cat >conftest.make <<\_ACEOF
 
3027
SHELL = /bin/sh
 
3028
all:
 
3029
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3030
_ACEOF
 
3031
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3032
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3033
  *@@@%%%=?*=@@@%%%*)
 
3034
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3035
  *)
 
3036
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3037
esac
 
3038
rm -f conftest.make
 
3039
fi
 
3040
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3042
$as_echo "yes" >&6; }
 
3043
  SET_MAKE=
 
3044
else
 
3045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3046
$as_echo "no" >&6; }
 
3047
  SET_MAKE="MAKE=${MAKE-make}"
 
3048
fi
 
3049
 
 
3050
rm -rf .tst 2>/dev/null
 
3051
mkdir .tst 2>/dev/null
 
3052
if test -d .tst; then
 
3053
  am__leading_dot=.
 
3054
else
 
3055
  am__leading_dot=_
 
3056
fi
 
3057
rmdir .tst 2>/dev/null
 
3058
 
 
3059
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3060
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3061
  # is not polluted with repeated "-I."
 
3062
  am__isrc=' -I$(srcdir)'
 
3063
  # test to see if srcdir already configured
 
3064
  if test -f $srcdir/config.status; then
 
3065
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3066
  fi
 
3067
fi
 
3068
 
 
3069
# test whether we have cygpath
 
3070
if test -z "$CYGPATH_W"; then
 
3071
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3072
    CYGPATH_W='cygpath -w'
 
3073
  else
 
3074
    CYGPATH_W=echo
 
3075
  fi
 
3076
fi
 
3077
 
 
3078
 
 
3079
# Define the identity of the package.
 
3080
 PACKAGE='libgnutls-extra'
 
3081
 VERSION='2.8.6'
 
3082
 
 
3083
 
 
3084
cat >>confdefs.h <<_ACEOF
 
3085
#define PACKAGE "$PACKAGE"
 
3086
_ACEOF
 
3087
 
 
3088
 
 
3089
cat >>confdefs.h <<_ACEOF
 
3090
#define VERSION "$VERSION"
 
3091
_ACEOF
 
3092
 
 
3093
# Some tools Automake needs.
 
3094
 
 
3095
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3096
 
 
3097
 
 
3098
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3099
 
 
3100
 
 
3101
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3102
 
 
3103
 
 
3104
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3105
 
 
3106
 
 
3107
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3108
 
 
3109
# We need awk for the "check" target.  The system "awk" is bad on
 
3110
# some platforms.
 
3111
# Always define AMTAR for backward compatibility.
 
3112
 
 
3113
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
3114
 
 
3115
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
3116
 
 
3117
 
 
3118
 
 
3119
 
 
3120
 
 
3121
ac_config_headers="$ac_config_headers config.h"
 
3122
 
 
3123
 
 
3124
ac_ext=c
 
3125
ac_cpp='$CPP $CPPFLAGS'
 
3126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3129
if test -n "$ac_tool_prefix"; then
 
3130
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3131
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3133
$as_echo_n "checking for $ac_word... " >&6; }
 
3134
if test "${ac_cv_prog_CC+set}" = set; then :
 
3135
  $as_echo_n "(cached) " >&6
 
3136
else
 
3137
  if test -n "$CC"; then
 
3138
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3139
else
 
3140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3141
for as_dir in $PATH
 
3142
do
 
3143
  IFS=$as_save_IFS
 
3144
  test -z "$as_dir" && as_dir=.
 
3145
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3146
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3147
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3148
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3149
    break 2
 
3150
  fi
 
3151
done
 
3152
  done
 
3153
IFS=$as_save_IFS
 
3154
 
 
3155
fi
 
3156
fi
 
3157
CC=$ac_cv_prog_CC
 
3158
if test -n "$CC"; then
 
3159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3160
$as_echo "$CC" >&6; }
 
3161
else
 
3162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3163
$as_echo "no" >&6; }
 
3164
fi
 
3165
 
 
3166
 
 
3167
fi
 
3168
if test -z "$ac_cv_prog_CC"; then
 
3169
  ac_ct_CC=$CC
 
3170
  # Extract the first word of "gcc", so it can be a program name with args.
 
3171
set dummy gcc; ac_word=$2
 
3172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3173
$as_echo_n "checking for $ac_word... " >&6; }
 
3174
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3175
  $as_echo_n "(cached) " >&6
 
3176
else
 
3177
  if test -n "$ac_ct_CC"; then
 
3178
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3179
else
 
3180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3181
for as_dir in $PATH
 
3182
do
 
3183
  IFS=$as_save_IFS
 
3184
  test -z "$as_dir" && as_dir=.
 
3185
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3186
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3187
    ac_cv_prog_ac_ct_CC="gcc"
 
3188
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3189
    break 2
 
3190
  fi
 
3191
done
 
3192
  done
 
3193
IFS=$as_save_IFS
 
3194
 
 
3195
fi
 
3196
fi
 
3197
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3198
if test -n "$ac_ct_CC"; then
 
3199
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3200
$as_echo "$ac_ct_CC" >&6; }
 
3201
else
 
3202
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3203
$as_echo "no" >&6; }
 
3204
fi
 
3205
 
 
3206
  if test "x$ac_ct_CC" = x; then
 
3207
    CC=""
 
3208
  else
 
3209
    case $cross_compiling:$ac_tool_warned in
 
3210
yes:)
 
3211
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3212
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3213
ac_tool_warned=yes ;;
 
3214
esac
 
3215
    CC=$ac_ct_CC
 
3216
  fi
 
3217
else
 
3218
  CC="$ac_cv_prog_CC"
 
3219
fi
 
3220
 
 
3221
if test -z "$CC"; then
 
3222
          if test -n "$ac_tool_prefix"; then
 
3223
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3224
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3226
$as_echo_n "checking for $ac_word... " >&6; }
 
3227
if test "${ac_cv_prog_CC+set}" = set; then :
 
3228
  $as_echo_n "(cached) " >&6
 
3229
else
 
3230
  if test -n "$CC"; then
 
3231
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3232
else
 
3233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3234
for as_dir in $PATH
 
3235
do
 
3236
  IFS=$as_save_IFS
 
3237
  test -z "$as_dir" && as_dir=.
 
3238
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3239
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3240
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3241
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3242
    break 2
 
3243
  fi
 
3244
done
 
3245
  done
 
3246
IFS=$as_save_IFS
 
3247
 
 
3248
fi
 
3249
fi
 
3250
CC=$ac_cv_prog_CC
 
3251
if test -n "$CC"; then
 
3252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3253
$as_echo "$CC" >&6; }
 
3254
else
 
3255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3256
$as_echo "no" >&6; }
 
3257
fi
 
3258
 
 
3259
 
 
3260
  fi
 
3261
fi
 
3262
if test -z "$CC"; then
 
3263
  # Extract the first word of "cc", so it can be a program name with args.
 
3264
set dummy cc; ac_word=$2
 
3265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3266
$as_echo_n "checking for $ac_word... " >&6; }
 
3267
if test "${ac_cv_prog_CC+set}" = set; then :
 
3268
  $as_echo_n "(cached) " >&6
 
3269
else
 
3270
  if test -n "$CC"; then
 
3271
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3272
else
 
3273
  ac_prog_rejected=no
 
3274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3275
for as_dir in $PATH
 
3276
do
 
3277
  IFS=$as_save_IFS
 
3278
  test -z "$as_dir" && as_dir=.
 
3279
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3281
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3282
       ac_prog_rejected=yes
 
3283
       continue
 
3284
     fi
 
3285
    ac_cv_prog_CC="cc"
 
3286
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3287
    break 2
 
3288
  fi
 
3289
done
 
3290
  done
 
3291
IFS=$as_save_IFS
 
3292
 
 
3293
if test $ac_prog_rejected = yes; then
 
3294
  # We found a bogon in the path, so make sure we never use it.
 
3295
  set dummy $ac_cv_prog_CC
 
3296
  shift
 
3297
  if test $# != 0; then
 
3298
    # We chose a different compiler from the bogus one.
 
3299
    # However, it has the same basename, so the bogon will be chosen
 
3300
    # first if we set CC to just the basename; use the full file name.
 
3301
    shift
 
3302
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3303
  fi
 
3304
fi
 
3305
fi
 
3306
fi
 
3307
CC=$ac_cv_prog_CC
 
3308
if test -n "$CC"; then
 
3309
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3310
$as_echo "$CC" >&6; }
 
3311
else
 
3312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3313
$as_echo "no" >&6; }
 
3314
fi
 
3315
 
 
3316
 
 
3317
fi
 
3318
if test -z "$CC"; then
 
3319
  if test -n "$ac_tool_prefix"; then
 
3320
  for ac_prog in cl.exe
 
3321
  do
 
3322
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3323
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3325
$as_echo_n "checking for $ac_word... " >&6; }
 
3326
if test "${ac_cv_prog_CC+set}" = set; then :
 
3327
  $as_echo_n "(cached) " >&6
 
3328
else
 
3329
  if test -n "$CC"; then
 
3330
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3331
else
 
3332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3333
for as_dir in $PATH
 
3334
do
 
3335
  IFS=$as_save_IFS
 
3336
  test -z "$as_dir" && as_dir=.
 
3337
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3338
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3339
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3340
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3341
    break 2
 
3342
  fi
 
3343
done
 
3344
  done
 
3345
IFS=$as_save_IFS
 
3346
 
 
3347
fi
 
3348
fi
 
3349
CC=$ac_cv_prog_CC
 
3350
if test -n "$CC"; then
 
3351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3352
$as_echo "$CC" >&6; }
 
3353
else
 
3354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3355
$as_echo "no" >&6; }
 
3356
fi
 
3357
 
 
3358
 
 
3359
    test -n "$CC" && break
 
3360
  done
 
3361
fi
 
3362
if test -z "$CC"; then
 
3363
  ac_ct_CC=$CC
 
3364
  for ac_prog in cl.exe
 
3365
do
 
3366
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3367
set dummy $ac_prog; ac_word=$2
 
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3369
$as_echo_n "checking for $ac_word... " >&6; }
 
3370
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3371
  $as_echo_n "(cached) " >&6
 
3372
else
 
3373
  if test -n "$ac_ct_CC"; then
 
3374
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3375
else
 
3376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3377
for as_dir in $PATH
 
3378
do
 
3379
  IFS=$as_save_IFS
 
3380
  test -z "$as_dir" && as_dir=.
 
3381
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3382
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3383
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3384
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3385
    break 2
 
3386
  fi
 
3387
done
 
3388
  done
 
3389
IFS=$as_save_IFS
 
3390
 
 
3391
fi
 
3392
fi
 
3393
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3394
if test -n "$ac_ct_CC"; then
 
3395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3396
$as_echo "$ac_ct_CC" >&6; }
 
3397
else
 
3398
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3399
$as_echo "no" >&6; }
 
3400
fi
 
3401
 
 
3402
 
 
3403
  test -n "$ac_ct_CC" && break
 
3404
done
 
3405
 
 
3406
  if test "x$ac_ct_CC" = x; then
 
3407
    CC=""
 
3408
  else
 
3409
    case $cross_compiling:$ac_tool_warned in
 
3410
yes:)
 
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3412
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3413
ac_tool_warned=yes ;;
 
3414
esac
 
3415
    CC=$ac_ct_CC
 
3416
  fi
 
3417
fi
 
3418
 
 
3419
fi
 
3420
 
 
3421
 
 
3422
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3423
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3424
as_fn_error "no acceptable C compiler found in \$PATH
 
3425
See \`config.log' for more details." "$LINENO" 5; }
 
3426
 
 
3427
# Provide some information about the compiler.
 
3428
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3429
set X $ac_compile
 
3430
ac_compiler=$2
 
3431
for ac_option in --version -v -V -qversion; do
 
3432
  { { ac_try="$ac_compiler $ac_option >&5"
 
3433
case "(($ac_try" in
 
3434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3435
  *) ac_try_echo=$ac_try;;
 
3436
esac
 
3437
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3438
$as_echo "$ac_try_echo"; } >&5
 
3439
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3440
  ac_status=$?
 
3441
  if test -s conftest.err; then
 
3442
    sed '10a\
 
3443
... rest of stderr output deleted ...
 
3444
         10q' conftest.err >conftest.er1
 
3445
    cat conftest.er1 >&5
 
3446
  fi
 
3447
  rm -f conftest.er1 conftest.err
 
3448
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3449
  test $ac_status = 0; }
 
3450
done
 
3451
 
 
3452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3453
/* end confdefs.h.  */
 
3454
 
 
3455
int
 
3456
main ()
 
3457
{
 
3458
 
 
3459
  ;
 
3460
  return 0;
 
3461
}
 
3462
_ACEOF
 
3463
ac_clean_files_save=$ac_clean_files
 
3464
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3465
# Try to create an executable without -o first, disregard a.out.
 
3466
# It will help us diagnose broken compilers, and finding out an intuition
 
3467
# of exeext.
 
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3469
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3470
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3471
 
 
3472
# The possible output files:
 
3473
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3474
 
 
3475
ac_rmfiles=
 
3476
for ac_file in $ac_files
 
3477
do
 
3478
  case $ac_file in
 
3479
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3480
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3481
  esac
 
3482
done
 
3483
rm -f $ac_rmfiles
 
3484
 
 
3485
if { { ac_try="$ac_link_default"
 
3486
case "(($ac_try" in
 
3487
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3488
  *) ac_try_echo=$ac_try;;
 
3489
esac
 
3490
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3491
$as_echo "$ac_try_echo"; } >&5
 
3492
  (eval "$ac_link_default") 2>&5
 
3493
  ac_status=$?
 
3494
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3495
  test $ac_status = 0; }; then :
 
3496
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3497
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3498
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3499
# so that the user can short-circuit this test for compilers unknown to
 
3500
# Autoconf.
 
3501
for ac_file in $ac_files ''
 
3502
do
 
3503
  test -f "$ac_file" || continue
 
3504
  case $ac_file in
 
3505
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3506
        ;;
 
3507
    [ab].out )
 
3508
        # We found the default executable, but exeext='' is most
 
3509
        # certainly right.
 
3510
        break;;
 
3511
    *.* )
 
3512
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3513
        then :; else
 
3514
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3515
        fi
 
3516
        # We set ac_cv_exeext here because the later test for it is not
 
3517
        # safe: cross compilers may not add the suffix if given an `-o'
 
3518
        # argument, so we may need to know it at that point already.
 
3519
        # Even if this section looks crufty: it has the advantage of
 
3520
        # actually working.
 
3521
        break;;
 
3522
    * )
 
3523
        break;;
 
3524
  esac
 
3525
done
 
3526
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3527
 
 
3528
else
 
3529
  ac_file=''
 
3530
fi
 
3531
if test -z "$ac_file"; then :
 
3532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3533
$as_echo "no" >&6; }
 
3534
$as_echo "$as_me: failed program was:" >&5
 
3535
sed 's/^/| /' conftest.$ac_ext >&5
 
3536
 
 
3537
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3538
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3539
{ as_fn_set_status 77
 
3540
as_fn_error "C compiler cannot create executables
 
3541
See \`config.log' for more details." "$LINENO" 5; }; }
 
3542
else
 
3543
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3544
$as_echo "yes" >&6; }
 
3545
fi
 
3546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3547
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3549
$as_echo "$ac_file" >&6; }
 
3550
ac_exeext=$ac_cv_exeext
 
3551
 
 
3552
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3553
ac_clean_files=$ac_clean_files_save
 
3554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3555
$as_echo_n "checking for suffix of executables... " >&6; }
 
3556
if { { ac_try="$ac_link"
 
3557
case "(($ac_try" in
 
3558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3559
  *) ac_try_echo=$ac_try;;
 
3560
esac
 
3561
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3562
$as_echo "$ac_try_echo"; } >&5
 
3563
  (eval "$ac_link") 2>&5
 
3564
  ac_status=$?
 
3565
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3566
  test $ac_status = 0; }; then :
 
3567
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3568
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3569
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3570
# `rm'.
 
3571
for ac_file in conftest.exe conftest conftest.*; do
 
3572
  test -f "$ac_file" || continue
 
3573
  case $ac_file in
 
3574
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3575
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3576
          break;;
 
3577
    * ) break;;
 
3578
  esac
 
3579
done
 
3580
else
 
3581
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3582
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3583
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3584
See \`config.log' for more details." "$LINENO" 5; }
 
3585
fi
 
3586
rm -f conftest conftest$ac_cv_exeext
 
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3588
$as_echo "$ac_cv_exeext" >&6; }
 
3589
 
 
3590
rm -f conftest.$ac_ext
 
3591
EXEEXT=$ac_cv_exeext
 
3592
ac_exeext=$EXEEXT
 
3593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3594
/* end confdefs.h.  */
 
3595
#include <stdio.h>
 
3596
int
 
3597
main ()
 
3598
{
 
3599
FILE *f = fopen ("conftest.out", "w");
 
3600
 return ferror (f) || fclose (f) != 0;
 
3601
 
 
3602
  ;
 
3603
  return 0;
 
3604
}
 
3605
_ACEOF
 
3606
ac_clean_files="$ac_clean_files conftest.out"
 
3607
# Check that the compiler produces executables we can run.  If not, either
 
3608
# the compiler is broken, or we cross compile.
 
3609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3610
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3611
if test "$cross_compiling" != yes; then
 
3612
  { { ac_try="$ac_link"
 
3613
case "(($ac_try" in
 
3614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3615
  *) ac_try_echo=$ac_try;;
 
3616
esac
 
3617
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3618
$as_echo "$ac_try_echo"; } >&5
 
3619
  (eval "$ac_link") 2>&5
 
3620
  ac_status=$?
 
3621
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3622
  test $ac_status = 0; }
 
3623
  if { ac_try='./conftest$ac_cv_exeext'
 
3624
  { { case "(($ac_try" in
 
3625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3626
  *) ac_try_echo=$ac_try;;
 
3627
esac
 
3628
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3629
$as_echo "$ac_try_echo"; } >&5
 
3630
  (eval "$ac_try") 2>&5
 
3631
  ac_status=$?
 
3632
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3633
  test $ac_status = 0; }; }; then
 
3634
    cross_compiling=no
 
3635
  else
 
3636
    if test "$cross_compiling" = maybe; then
 
3637
        cross_compiling=yes
 
3638
    else
 
3639
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3640
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3641
as_fn_error "cannot run C compiled programs.
 
3642
If you meant to cross compile, use \`--host'.
 
3643
See \`config.log' for more details." "$LINENO" 5; }
 
3644
    fi
 
3645
  fi
 
3646
fi
 
3647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3648
$as_echo "$cross_compiling" >&6; }
 
3649
 
 
3650
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3651
ac_clean_files=$ac_clean_files_save
 
3652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3653
$as_echo_n "checking for suffix of object files... " >&6; }
 
3654
if test "${ac_cv_objext+set}" = set; then :
 
3655
  $as_echo_n "(cached) " >&6
 
3656
else
 
3657
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3658
/* end confdefs.h.  */
 
3659
 
 
3660
int
 
3661
main ()
 
3662
{
 
3663
 
 
3664
  ;
 
3665
  return 0;
 
3666
}
 
3667
_ACEOF
 
3668
rm -f conftest.o conftest.obj
 
3669
if { { ac_try="$ac_compile"
 
3670
case "(($ac_try" in
 
3671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3672
  *) ac_try_echo=$ac_try;;
 
3673
esac
 
3674
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3675
$as_echo "$ac_try_echo"; } >&5
 
3676
  (eval "$ac_compile") 2>&5
 
3677
  ac_status=$?
 
3678
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3679
  test $ac_status = 0; }; then :
 
3680
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3681
  test -f "$ac_file" || continue;
 
3682
  case $ac_file in
 
3683
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3684
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3685
       break;;
 
3686
  esac
 
3687
done
 
3688
else
 
3689
  $as_echo "$as_me: failed program was:" >&5
 
3690
sed 's/^/| /' conftest.$ac_ext >&5
 
3691
 
 
3692
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3693
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3694
as_fn_error "cannot compute suffix of object files: cannot compile
 
3695
See \`config.log' for more details." "$LINENO" 5; }
 
3696
fi
 
3697
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3698
fi
 
3699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3700
$as_echo "$ac_cv_objext" >&6; }
 
3701
OBJEXT=$ac_cv_objext
 
3702
ac_objext=$OBJEXT
 
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3704
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3705
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3706
  $as_echo_n "(cached) " >&6
 
3707
else
 
3708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3709
/* end confdefs.h.  */
 
3710
 
 
3711
int
 
3712
main ()
 
3713
{
 
3714
#ifndef __GNUC__
 
3715
       choke me
 
3716
#endif
 
3717
 
 
3718
  ;
 
3719
  return 0;
 
3720
}
 
3721
_ACEOF
 
3722
if ac_fn_c_try_compile "$LINENO"; then :
 
3723
  ac_compiler_gnu=yes
 
3724
else
 
3725
  ac_compiler_gnu=no
 
3726
fi
 
3727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3728
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3729
 
 
3730
fi
 
3731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3732
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3733
if test $ac_compiler_gnu = yes; then
 
3734
  GCC=yes
 
3735
else
 
3736
  GCC=
 
3737
fi
 
3738
ac_test_CFLAGS=${CFLAGS+set}
 
3739
ac_save_CFLAGS=$CFLAGS
 
3740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3741
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3742
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3743
  $as_echo_n "(cached) " >&6
 
3744
else
 
3745
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3746
   ac_c_werror_flag=yes
 
3747
   ac_cv_prog_cc_g=no
 
3748
   CFLAGS="-g"
 
3749
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3750
/* end confdefs.h.  */
 
3751
 
 
3752
int
 
3753
main ()
 
3754
{
 
3755
 
 
3756
  ;
 
3757
  return 0;
 
3758
}
 
3759
_ACEOF
 
3760
if ac_fn_c_try_compile "$LINENO"; then :
 
3761
  ac_cv_prog_cc_g=yes
 
3762
else
 
3763
  CFLAGS=""
 
3764
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3765
/* end confdefs.h.  */
 
3766
 
 
3767
int
 
3768
main ()
 
3769
{
 
3770
 
 
3771
  ;
 
3772
  return 0;
 
3773
}
 
3774
_ACEOF
 
3775
if ac_fn_c_try_compile "$LINENO"; then :
 
3776
 
 
3777
else
 
3778
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3779
         CFLAGS="-g"
 
3780
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3781
/* end confdefs.h.  */
 
3782
 
 
3783
int
 
3784
main ()
 
3785
{
 
3786
 
 
3787
  ;
 
3788
  return 0;
 
3789
}
 
3790
_ACEOF
 
3791
if ac_fn_c_try_compile "$LINENO"; then :
 
3792
  ac_cv_prog_cc_g=yes
 
3793
fi
 
3794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3795
fi
 
3796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3797
fi
 
3798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3799
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3800
fi
 
3801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3802
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3803
if test "$ac_test_CFLAGS" = set; then
 
3804
  CFLAGS=$ac_save_CFLAGS
 
3805
elif test $ac_cv_prog_cc_g = yes; then
 
3806
  if test "$GCC" = yes; then
 
3807
    CFLAGS="-g -O2"
 
3808
  else
 
3809
    CFLAGS="-g"
 
3810
  fi
 
3811
else
 
3812
  if test "$GCC" = yes; then
 
3813
    CFLAGS="-O2"
 
3814
  else
 
3815
    CFLAGS=
 
3816
  fi
 
3817
fi
 
3818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3819
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3820
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3821
  $as_echo_n "(cached) " >&6
 
3822
else
 
3823
  ac_cv_prog_cc_c89=no
 
3824
ac_save_CC=$CC
 
3825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3826
/* end confdefs.h.  */
 
3827
#include <stdarg.h>
 
3828
#include <stdio.h>
 
3829
#include <sys/types.h>
 
3830
#include <sys/stat.h>
 
3831
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3832
struct buf { int x; };
 
3833
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3834
static char *e (p, i)
 
3835
     char **p;
 
3836
     int i;
 
3837
{
 
3838
  return p[i];
 
3839
}
 
3840
static char *f (char * (*g) (char **, int), char **p, ...)
 
3841
{
 
3842
  char *s;
 
3843
  va_list v;
 
3844
  va_start (v,p);
 
3845
  s = g (p, va_arg (v,int));
 
3846
  va_end (v);
 
3847
  return s;
 
3848
}
 
3849
 
 
3850
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3851
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3852
   These don't provoke an error unfortunately, instead are silently treated
 
3853
   as 'x'.  The following induces an error, until -std is added to get
 
3854
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3855
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3856
   that's true only with -std.  */
 
3857
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3858
 
 
3859
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3860
   inside strings and character constants.  */
 
3861
#define FOO(x) 'x'
 
3862
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3863
 
 
3864
int test (int i, double x);
 
3865
struct s1 {int (*f) (int a);};
 
3866
struct s2 {int (*f) (double a);};
 
3867
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3868
int argc;
 
3869
char **argv;
 
3870
int
 
3871
main ()
 
3872
{
 
3873
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3874
  ;
 
3875
  return 0;
 
3876
}
 
3877
_ACEOF
 
3878
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3879
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3880
do
 
3881
  CC="$ac_save_CC $ac_arg"
 
3882
  if ac_fn_c_try_compile "$LINENO"; then :
 
3883
  ac_cv_prog_cc_c89=$ac_arg
 
3884
fi
 
3885
rm -f core conftest.err conftest.$ac_objext
 
3886
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3887
done
 
3888
rm -f conftest.$ac_ext
 
3889
CC=$ac_save_CC
 
3890
 
 
3891
fi
 
3892
# AC_CACHE_VAL
 
3893
case "x$ac_cv_prog_cc_c89" in
 
3894
  x)
 
3895
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3896
$as_echo "none needed" >&6; } ;;
 
3897
  xno)
 
3898
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3899
$as_echo "unsupported" >&6; } ;;
 
3900
  *)
 
3901
    CC="$CC $ac_cv_prog_cc_c89"
 
3902
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3903
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3904
esac
 
3905
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3906
 
 
3907
fi
 
3908
 
 
3909
ac_ext=c
 
3910
ac_cpp='$CPP $CPPFLAGS'
 
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3914
DEPDIR="${am__leading_dot}deps"
 
3915
 
 
3916
ac_config_commands="$ac_config_commands depfiles"
 
3917
 
 
3918
 
 
3919
am_make=${MAKE-make}
 
3920
cat > confinc << 'END'
 
3921
am__doit:
 
3922
        @echo this is the am__doit target
 
3923
.PHONY: am__doit
 
3924
END
 
3925
# If we don't find an include directive, just comment out the code.
 
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3927
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3928
am__include="#"
 
3929
am__quote=
 
3930
_am_result=none
 
3931
# First try GNU make style include.
 
3932
echo "include confinc" > confmf
 
3933
# Ignore all kinds of additional output from `make'.
 
3934
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3935
*the\ am__doit\ target*)
 
3936
  am__include=include
 
3937
  am__quote=
 
3938
  _am_result=GNU
 
3939
  ;;
 
3940
esac
 
3941
# Now try BSD make style include.
 
3942
if test "$am__include" = "#"; then
 
3943
   echo '.include "confinc"' > confmf
 
3944
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3945
   *the\ am__doit\ target*)
 
3946
     am__include=.include
 
3947
     am__quote="\""
 
3948
     _am_result=BSD
 
3949
     ;;
 
3950
   esac
 
3951
fi
 
3952
 
 
3953
 
 
3954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3955
$as_echo "$_am_result" >&6; }
 
3956
rm -f confinc confmf
 
3957
 
 
3958
# Check whether --enable-dependency-tracking was given.
 
3959
if test "${enable_dependency_tracking+set}" = set; then :
 
3960
  enableval=$enable_dependency_tracking;
 
3961
fi
 
3962
 
 
3963
if test "x$enable_dependency_tracking" != xno; then
 
3964
  am_depcomp="$ac_aux_dir/depcomp"
 
3965
  AMDEPBACKSLASH='\'
 
3966
fi
 
3967
 if test "x$enable_dependency_tracking" != xno; then
 
3968
  AMDEP_TRUE=
 
3969
  AMDEP_FALSE='#'
 
3970
else
 
3971
  AMDEP_TRUE='#'
 
3972
  AMDEP_FALSE=
 
3973
fi
 
3974
 
 
3975
 
 
3976
 
 
3977
depcc="$CC"   am_compiler_list=
 
3978
 
 
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3980
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3981
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3982
  $as_echo_n "(cached) " >&6
 
3983
else
 
3984
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3985
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3986
  # making bogus files that we don't know about and never remove.  For
 
3987
  # instance it was reported that on HP-UX the gcc test will end up
 
3988
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3989
  # in D'.
 
3990
  mkdir conftest.dir
 
3991
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3992
  # using a relative directory.
 
3993
  cp "$am_depcomp" conftest.dir
 
3994
  cd conftest.dir
 
3995
  # We will build objects and dependencies in a subdirectory because
 
3996
  # it helps to detect inapplicable dependency modes.  For instance
 
3997
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3998
  # side effect of compilation, but ICC will put the dependencies in
 
3999
  # the current directory while Tru64 will put them in the object
 
4000
  # directory.
 
4001
  mkdir sub
 
4002
 
 
4003
  am_cv_CC_dependencies_compiler_type=none
 
4004
  if test "$am_compiler_list" = ""; then
 
4005
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4006
  fi
 
4007
  am__universal=false
 
4008
  case " $depcc " in #(
 
4009
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4010
     esac
 
4011
 
 
4012
  for depmode in $am_compiler_list; do
 
4013
    # Setup a source with many dependencies, because some compilers
 
4014
    # like to wrap large dependency lists on column 80 (with \), and
 
4015
    # we should not choose a depcomp mode which is confused by this.
 
4016
    #
 
4017
    # We need to recreate these files for each test, as the compiler may
 
4018
    # overwrite some of them when testing with obscure command lines.
 
4019
    # This happens at least with the AIX C compiler.
 
4020
    : > sub/conftest.c
 
4021
    for i in 1 2 3 4 5 6; do
 
4022
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4023
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4024
      # Solaris 8's {/usr,}/bin/sh.
 
4025
      touch sub/conftst$i.h
 
4026
    done
 
4027
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4028
 
 
4029
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4030
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4031
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4032
    # versions had trouble with output in subdirs
 
4033
    am__obj=sub/conftest.${OBJEXT-o}
 
4034
    am__minus_obj="-o $am__obj"
 
4035
    case $depmode in
 
4036
    gcc)
 
4037
      # This depmode causes a compiler race in universal mode.
 
4038
      test "$am__universal" = false || continue
 
4039
      ;;
 
4040
    nosideeffect)
 
4041
      # after this tag, mechanisms are not by side-effect, so they'll
 
4042
      # only be used when explicitly requested
 
4043
      if test "x$enable_dependency_tracking" = xyes; then
 
4044
        continue
 
4045
      else
 
4046
        break
 
4047
      fi
 
4048
      ;;
 
4049
    msvisualcpp | msvcmsys)
 
4050
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4051
      # not run yet.  These depmodes are late enough in the game, and
 
4052
      # so weak that their functioning should not be impacted.
 
4053
      am__obj=conftest.${OBJEXT-o}
 
4054
      am__minus_obj=
 
4055
      ;;
 
4056
    none) break ;;
 
4057
    esac
 
4058
    if depmode=$depmode \
 
4059
       source=sub/conftest.c object=$am__obj \
 
4060
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4061
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4062
         >/dev/null 2>conftest.err &&
 
4063
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4064
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4065
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4066
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4067
      # icc doesn't choke on unknown options, it will just issue warnings
 
4068
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4069
      # that says an option was ignored or not supported.
 
4070
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4071
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4072
      # The diagnosis changed in icc 8.0:
 
4073
      #   icc: Command line remark: option '-MP' not supported
 
4074
      if (grep 'ignoring option' conftest.err ||
 
4075
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4076
        am_cv_CC_dependencies_compiler_type=$depmode
 
4077
        break
 
4078
      fi
 
4079
    fi
 
4080
  done
 
4081
 
 
4082
  cd ..
 
4083
  rm -rf conftest.dir
 
4084
else
 
4085
  am_cv_CC_dependencies_compiler_type=none
 
4086
fi
 
4087
 
 
4088
fi
 
4089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4090
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4091
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4092
 
 
4093
 if
 
4094
  test "x$enable_dependency_tracking" != xno \
 
4095
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4096
  am__fastdepCC_TRUE=
 
4097
  am__fastdepCC_FALSE='#'
 
4098
else
 
4099
  am__fastdepCC_TRUE='#'
 
4100
  am__fastdepCC_FALSE=
 
4101
fi
 
4102
 
 
4103
 
 
4104
if test -n "$ac_tool_prefix"; then
 
4105
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4106
set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then :
 
4110
  $as_echo_n "(cached) " >&6
 
4111
else
 
4112
  if test -n "$RANLIB"; then
 
4113
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4114
else
 
4115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4116
for as_dir in $PATH
 
4117
do
 
4118
  IFS=$as_save_IFS
 
4119
  test -z "$as_dir" && as_dir=.
 
4120
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4121
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4122
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4123
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4124
    break 2
 
4125
  fi
 
4126
done
 
4127
  done
 
4128
IFS=$as_save_IFS
 
4129
 
 
4130
fi
 
4131
fi
 
4132
RANLIB=$ac_cv_prog_RANLIB
 
4133
if test -n "$RANLIB"; then
 
4134
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
4135
$as_echo "$RANLIB" >&6; }
 
4136
else
 
4137
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4138
$as_echo "no" >&6; }
 
4139
fi
 
4140
 
 
4141
 
 
4142
fi
 
4143
if test -z "$ac_cv_prog_RANLIB"; then
 
4144
  ac_ct_RANLIB=$RANLIB
 
4145
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4146
set dummy ranlib; ac_word=$2
 
4147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4148
$as_echo_n "checking for $ac_word... " >&6; }
 
4149
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
4150
  $as_echo_n "(cached) " >&6
 
4151
else
 
4152
  if test -n "$ac_ct_RANLIB"; then
 
4153
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4154
else
 
4155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4156
for as_dir in $PATH
 
4157
do
 
4158
  IFS=$as_save_IFS
 
4159
  test -z "$as_dir" && as_dir=.
 
4160
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4161
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4162
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4163
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4164
    break 2
 
4165
  fi
 
4166
done
 
4167
  done
 
4168
IFS=$as_save_IFS
 
4169
 
 
4170
fi
 
4171
fi
 
4172
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4173
if test -n "$ac_ct_RANLIB"; then
 
4174
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
4175
$as_echo "$ac_ct_RANLIB" >&6; }
 
4176
else
 
4177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4178
$as_echo "no" >&6; }
 
4179
fi
 
4180
 
 
4181
  if test "x$ac_ct_RANLIB" = x; then
 
4182
    RANLIB=":"
 
4183
  else
 
4184
    case $cross_compiling:$ac_tool_warned in
 
4185
yes:)
 
4186
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4187
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4188
ac_tool_warned=yes ;;
 
4189
esac
 
4190
    RANLIB=$ac_ct_RANLIB
 
4191
  fi
 
4192
else
 
4193
  RANLIB="$ac_cv_prog_RANLIB"
 
4194
fi
 
4195
 
 
4196
# Make sure we can run config.sub.
 
4197
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4198
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4199
 
 
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4201
$as_echo_n "checking build system type... " >&6; }
 
4202
if test "${ac_cv_build+set}" = set; then :
 
4203
  $as_echo_n "(cached) " >&6
 
4204
else
 
4205
  ac_build_alias=$build_alias
 
4206
test "x$ac_build_alias" = x &&
 
4207
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4208
test "x$ac_build_alias" = x &&
 
4209
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
4210
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4211
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4212
 
 
4213
fi
 
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4215
$as_echo "$ac_cv_build" >&6; }
 
4216
case $ac_cv_build in
 
4217
*-*-*) ;;
 
4218
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
4219
esac
 
4220
build=$ac_cv_build
 
4221
ac_save_IFS=$IFS; IFS='-'
 
4222
set x $ac_cv_build
 
4223
shift
 
4224
build_cpu=$1
 
4225
build_vendor=$2
 
4226
shift; shift
 
4227
# Remember, the first character of IFS is used to create $*,
 
4228
# except with old shells:
 
4229
build_os=$*
 
4230
IFS=$ac_save_IFS
 
4231
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4232
 
 
4233
 
 
4234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4235
$as_echo_n "checking host system type... " >&6; }
 
4236
if test "${ac_cv_host+set}" = set; then :
 
4237
  $as_echo_n "(cached) " >&6
 
4238
else
 
4239
  if test "x$host_alias" = x; then
 
4240
  ac_cv_host=$ac_cv_build
 
4241
else
 
4242
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4243
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4244
fi
 
4245
 
 
4246
fi
 
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4248
$as_echo "$ac_cv_host" >&6; }
 
4249
case $ac_cv_host in
 
4250
*-*-*) ;;
 
4251
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
4252
esac
 
4253
host=$ac_cv_host
 
4254
ac_save_IFS=$IFS; IFS='-'
 
4255
set x $ac_cv_host
 
4256
shift
 
4257
host_cpu=$1
 
4258
host_vendor=$2
 
4259
shift; shift
 
4260
# Remember, the first character of IFS is used to create $*,
 
4261
# except with old shells:
 
4262
host_os=$*
 
4263
IFS=$ac_save_IFS
 
4264
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4265
 
 
4266
 
 
4267
 
 
4268
ac_ext=c
 
4269
ac_cpp='$CPP $CPPFLAGS'
 
4270
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4271
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4272
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4274
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4275
# On Suns, sometimes $CPP names a directory.
 
4276
if test -n "$CPP" && test -d "$CPP"; then
 
4277
  CPP=
 
4278
fi
 
4279
if test -z "$CPP"; then
 
4280
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4281
  $as_echo_n "(cached) " >&6
 
4282
else
 
4283
      # Double quotes because CPP needs to be expanded
 
4284
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4285
    do
 
4286
      ac_preproc_ok=false
 
4287
for ac_c_preproc_warn_flag in '' yes
 
4288
do
 
4289
  # Use a header file that comes with gcc, so configuring glibc
 
4290
  # with a fresh cross-compiler works.
 
4291
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4292
  # <limits.h> exists even on freestanding compilers.
 
4293
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4294
  # not just through cpp. "Syntax error" is here to catch this case.
 
4295
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4296
/* end confdefs.h.  */
 
4297
#ifdef __STDC__
 
4298
# include <limits.h>
 
4299
#else
 
4300
# include <assert.h>
 
4301
#endif
 
4302
                     Syntax error
 
4303
_ACEOF
 
4304
if ac_fn_c_try_cpp "$LINENO"; then :
 
4305
 
 
4306
else
 
4307
  # Broken: fails on valid input.
 
4308
continue
 
4309
fi
 
4310
rm -f conftest.err conftest.$ac_ext
 
4311
 
 
4312
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4313
  # can be detected and how.
 
4314
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4315
/* end confdefs.h.  */
 
4316
#include <ac_nonexistent.h>
 
4317
_ACEOF
 
4318
if ac_fn_c_try_cpp "$LINENO"; then :
 
4319
  # Broken: success on invalid input.
 
4320
continue
 
4321
else
 
4322
  # Passes both tests.
 
4323
ac_preproc_ok=:
 
4324
break
 
4325
fi
 
4326
rm -f conftest.err conftest.$ac_ext
 
4327
 
 
4328
done
 
4329
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4330
rm -f conftest.err conftest.$ac_ext
 
4331
if $ac_preproc_ok; then :
 
4332
  break
 
4333
fi
 
4334
 
 
4335
    done
 
4336
    ac_cv_prog_CPP=$CPP
 
4337
 
 
4338
fi
 
4339
  CPP=$ac_cv_prog_CPP
 
4340
else
 
4341
  ac_cv_prog_CPP=$CPP
 
4342
fi
 
4343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4344
$as_echo "$CPP" >&6; }
 
4345
ac_preproc_ok=false
 
4346
for ac_c_preproc_warn_flag in '' yes
 
4347
do
 
4348
  # Use a header file that comes with gcc, so configuring glibc
 
4349
  # with a fresh cross-compiler works.
 
4350
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4351
  # <limits.h> exists even on freestanding compilers.
 
4352
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4353
  # not just through cpp. "Syntax error" is here to catch this case.
 
4354
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4355
/* end confdefs.h.  */
 
4356
#ifdef __STDC__
 
4357
# include <limits.h>
 
4358
#else
 
4359
# include <assert.h>
 
4360
#endif
 
4361
                     Syntax error
 
4362
_ACEOF
 
4363
if ac_fn_c_try_cpp "$LINENO"; then :
 
4364
 
 
4365
else
 
4366
  # Broken: fails on valid input.
 
4367
continue
 
4368
fi
 
4369
rm -f conftest.err conftest.$ac_ext
 
4370
 
 
4371
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4372
  # can be detected and how.
 
4373
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4374
/* end confdefs.h.  */
 
4375
#include <ac_nonexistent.h>
 
4376
_ACEOF
 
4377
if ac_fn_c_try_cpp "$LINENO"; then :
 
4378
  # Broken: success on invalid input.
 
4379
continue
 
4380
else
 
4381
  # Passes both tests.
 
4382
ac_preproc_ok=:
 
4383
break
 
4384
fi
 
4385
rm -f conftest.err conftest.$ac_ext
 
4386
 
 
4387
done
 
4388
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4389
rm -f conftest.err conftest.$ac_ext
 
4390
if $ac_preproc_ok; then :
 
4391
 
 
4392
else
 
4393
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4394
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4395
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
4396
See \`config.log' for more details." "$LINENO" 5; }
 
4397
fi
 
4398
 
 
4399
ac_ext=c
 
4400
ac_cpp='$CPP $CPPFLAGS'
 
4401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4404
 
 
4405
 
 
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4407
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4408
if test "${ac_cv_path_GREP+set}" = set; then :
 
4409
  $as_echo_n "(cached) " >&6
 
4410
else
 
4411
  if test -z "$GREP"; then
 
4412
  ac_path_GREP_found=false
 
4413
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4414
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4415
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4416
do
 
4417
  IFS=$as_save_IFS
 
4418
  test -z "$as_dir" && as_dir=.
 
4419
    for ac_prog in grep ggrep; do
 
4420
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4421
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4422
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4423
# Check for GNU ac_path_GREP and select it if it is found.
 
4424
  # Check for GNU $ac_path_GREP
 
4425
case `"$ac_path_GREP" --version 2>&1` in
 
4426
*GNU*)
 
4427
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4428
*)
 
4429
  ac_count=0
 
4430
  $as_echo_n 0123456789 >"conftest.in"
 
4431
  while :
 
4432
  do
 
4433
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4434
    mv "conftest.tmp" "conftest.in"
 
4435
    cp "conftest.in" "conftest.nl"
 
4436
    $as_echo 'GREP' >> "conftest.nl"
 
4437
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4438
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4439
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4440
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4441
      # Best one so far, save it but keep looking for a better one
 
4442
      ac_cv_path_GREP="$ac_path_GREP"
 
4443
      ac_path_GREP_max=$ac_count
 
4444
    fi
 
4445
    # 10*(2^10) chars as input seems more than enough
 
4446
    test $ac_count -gt 10 && break
 
4447
  done
 
4448
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4449
esac
 
4450
 
 
4451
      $ac_path_GREP_found && break 3
 
4452
    done
 
4453
  done
 
4454
  done
 
4455
IFS=$as_save_IFS
 
4456
  if test -z "$ac_cv_path_GREP"; then
 
4457
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4458
  fi
 
4459
else
 
4460
  ac_cv_path_GREP=$GREP
 
4461
fi
 
4462
 
 
4463
fi
 
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4465
$as_echo "$ac_cv_path_GREP" >&6; }
 
4466
 GREP="$ac_cv_path_GREP"
 
4467
 
 
4468
 
 
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4470
$as_echo_n "checking for egrep... " >&6; }
 
4471
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4472
  $as_echo_n "(cached) " >&6
 
4473
else
 
4474
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4475
   then ac_cv_path_EGREP="$GREP -E"
 
4476
   else
 
4477
     if test -z "$EGREP"; then
 
4478
  ac_path_EGREP_found=false
 
4479
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4480
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4481
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4482
do
 
4483
  IFS=$as_save_IFS
 
4484
  test -z "$as_dir" && as_dir=.
 
4485
    for ac_prog in egrep; do
 
4486
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4487
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4488
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4489
# Check for GNU ac_path_EGREP and select it if it is found.
 
4490
  # Check for GNU $ac_path_EGREP
 
4491
case `"$ac_path_EGREP" --version 2>&1` in
 
4492
*GNU*)
 
4493
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4494
*)
 
4495
  ac_count=0
 
4496
  $as_echo_n 0123456789 >"conftest.in"
 
4497
  while :
 
4498
  do
 
4499
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4500
    mv "conftest.tmp" "conftest.in"
 
4501
    cp "conftest.in" "conftest.nl"
 
4502
    $as_echo 'EGREP' >> "conftest.nl"
 
4503
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4504
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4505
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4506
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4507
      # Best one so far, save it but keep looking for a better one
 
4508
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4509
      ac_path_EGREP_max=$ac_count
 
4510
    fi
 
4511
    # 10*(2^10) chars as input seems more than enough
 
4512
    test $ac_count -gt 10 && break
 
4513
  done
 
4514
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4515
esac
 
4516
 
 
4517
      $ac_path_EGREP_found && break 3
 
4518
    done
 
4519
  done
 
4520
  done
 
4521
IFS=$as_save_IFS
 
4522
  if test -z "$ac_cv_path_EGREP"; then
 
4523
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4524
  fi
 
4525
else
 
4526
  ac_cv_path_EGREP=$EGREP
 
4527
fi
 
4528
 
 
4529
   fi
 
4530
fi
 
4531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4532
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4533
 EGREP="$ac_cv_path_EGREP"
 
4534
 
 
4535
 
 
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4537
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4538
if test "${ac_cv_header_stdc+set}" = set; then :
 
4539
  $as_echo_n "(cached) " >&6
 
4540
else
 
4541
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4542
/* end confdefs.h.  */
 
4543
#include <stdlib.h>
 
4544
#include <stdarg.h>
 
4545
#include <string.h>
 
4546
#include <float.h>
 
4547
 
 
4548
int
 
4549
main ()
 
4550
{
 
4551
 
 
4552
  ;
 
4553
  return 0;
 
4554
}
 
4555
_ACEOF
 
4556
if ac_fn_c_try_compile "$LINENO"; then :
 
4557
  ac_cv_header_stdc=yes
 
4558
else
 
4559
  ac_cv_header_stdc=no
 
4560
fi
 
4561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4562
 
 
4563
if test $ac_cv_header_stdc = yes; then
 
4564
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4565
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4566
/* end confdefs.h.  */
 
4567
#include <string.h>
 
4568
 
 
4569
_ACEOF
 
4570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4571
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4572
 
 
4573
else
 
4574
  ac_cv_header_stdc=no
 
4575
fi
 
4576
rm -f conftest*
 
4577
 
 
4578
fi
 
4579
 
 
4580
if test $ac_cv_header_stdc = yes; then
 
4581
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4582
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4583
/* end confdefs.h.  */
 
4584
#include <stdlib.h>
 
4585
 
 
4586
_ACEOF
 
4587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4588
  $EGREP "free" >/dev/null 2>&1; then :
 
4589
 
 
4590
else
 
4591
  ac_cv_header_stdc=no
 
4592
fi
 
4593
rm -f conftest*
 
4594
 
 
4595
fi
 
4596
 
 
4597
if test $ac_cv_header_stdc = yes; then
 
4598
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4599
  if test "$cross_compiling" = yes; then :
 
4600
  :
 
4601
else
 
4602
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4603
/* end confdefs.h.  */
 
4604
#include <ctype.h>
 
4605
#include <stdlib.h>
 
4606
#if ((' ' & 0x0FF) == 0x020)
 
4607
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4608
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4609
#else
 
4610
# define ISLOWER(c) \
 
4611
                   (('a' <= (c) && (c) <= 'i') \
 
4612
                     || ('j' <= (c) && (c) <= 'r') \
 
4613
                     || ('s' <= (c) && (c) <= 'z'))
 
4614
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4615
#endif
 
4616
 
 
4617
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4618
int
 
4619
main ()
 
4620
{
 
4621
  int i;
 
4622
  for (i = 0; i < 256; i++)
 
4623
    if (XOR (islower (i), ISLOWER (i))
 
4624
        || toupper (i) != TOUPPER (i))
 
4625
      return 2;
 
4626
  return 0;
 
4627
}
 
4628
_ACEOF
 
4629
if ac_fn_c_try_run "$LINENO"; then :
 
4630
 
 
4631
else
 
4632
  ac_cv_header_stdc=no
 
4633
fi
 
4634
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4635
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4636
fi
 
4637
 
 
4638
fi
 
4639
fi
 
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4641
$as_echo "$ac_cv_header_stdc" >&6; }
 
4642
if test $ac_cv_header_stdc = yes; then
 
4643
 
 
4644
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4645
 
 
4646
fi
 
4647
 
 
4648
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4649
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4650
                  inttypes.h stdint.h unistd.h
 
4651
do :
 
4652
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4653
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4654
"
 
4655
eval as_val=\$$as_ac_Header
 
4656
   if test "x$as_val" = x""yes; then :
 
4657
  cat >>confdefs.h <<_ACEOF
 
4658
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4659
_ACEOF
 
4660
 
 
4661
fi
 
4662
 
 
4663
done
 
4664
 
 
4665
 
 
4666
 
 
4667
 
 
4668
 
 
4669
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4670
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
4671
  MINIX=yes
 
4672
else
 
4673
  MINIX=
 
4674
fi
 
4675
 
 
4676
 
 
4677
  if test "$MINIX" = yes; then
 
4678
 
 
4679
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4680
 
 
4681
 
 
4682
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4683
 
 
4684
 
 
4685
$as_echo "#define _MINIX 1" >>confdefs.h
 
4686
 
 
4687
  fi
 
4688
 
 
4689
        case "$host_os" in
 
4690
    hpux*)
 
4691
 
 
4692
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
 
4693
 
 
4694
      ;;
 
4695
  esac
 
4696
 
 
4697
 
 
4698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4699
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4700
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
4701
  $as_echo_n "(cached) " >&6
 
4702
else
 
4703
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4704
/* end confdefs.h.  */
 
4705
 
 
4706
#         define __EXTENSIONS__ 1
 
4707
          $ac_includes_default
 
4708
int
 
4709
main ()
 
4710
{
 
4711
 
 
4712
  ;
 
4713
  return 0;
 
4714
}
 
4715
_ACEOF
 
4716
if ac_fn_c_try_compile "$LINENO"; then :
 
4717
  ac_cv_safe_to_define___extensions__=yes
 
4718
else
 
4719
  ac_cv_safe_to_define___extensions__=no
 
4720
fi
 
4721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4722
fi
 
4723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4724
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4725
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4726
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4727
 
 
4728
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4729
 
 
4730
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4731
 
 
4732
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4733
 
 
4734
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4735
 
 
4736
 
 
4737
 
 
4738
 
 
4739
 
 
4740
 
 
4741
 
 
4742
 
 
4743
 
 
4744
 
 
4745
 
 
4746
 
 
4747
 
 
4748
enable_win32_dll=yes
 
4749
 
 
4750
case $host in
 
4751
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
4752
  if test -n "$ac_tool_prefix"; then
 
4753
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4754
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4756
$as_echo_n "checking for $ac_word... " >&6; }
 
4757
if test "${ac_cv_prog_AS+set}" = set; then :
 
4758
  $as_echo_n "(cached) " >&6
 
4759
else
 
4760
  if test -n "$AS"; then
 
4761
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4762
else
 
4763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4764
for as_dir in $PATH
 
4765
do
 
4766
  IFS=$as_save_IFS
 
4767
  test -z "$as_dir" && as_dir=.
 
4768
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4769
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4770
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4771
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4772
    break 2
 
4773
  fi
 
4774
done
 
4775
  done
 
4776
IFS=$as_save_IFS
 
4777
 
 
4778
fi
 
4779
fi
 
4780
AS=$ac_cv_prog_AS
 
4781
if test -n "$AS"; then
 
4782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 
4783
$as_echo "$AS" >&6; }
 
4784
else
 
4785
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4786
$as_echo "no" >&6; }
 
4787
fi
 
4788
 
 
4789
 
 
4790
fi
 
4791
if test -z "$ac_cv_prog_AS"; then
 
4792
  ac_ct_AS=$AS
 
4793
  # Extract the first word of "as", so it can be a program name with args.
 
4794
set dummy as; ac_word=$2
 
4795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4796
$as_echo_n "checking for $ac_word... " >&6; }
 
4797
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
 
4798
  $as_echo_n "(cached) " >&6
 
4799
else
 
4800
  if test -n "$ac_ct_AS"; then
 
4801
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4802
else
 
4803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4804
for as_dir in $PATH
 
4805
do
 
4806
  IFS=$as_save_IFS
 
4807
  test -z "$as_dir" && as_dir=.
 
4808
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4809
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4810
    ac_cv_prog_ac_ct_AS="as"
 
4811
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4812
    break 2
 
4813
  fi
 
4814
done
 
4815
  done
 
4816
IFS=$as_save_IFS
 
4817
 
 
4818
fi
 
4819
fi
 
4820
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4821
if test -n "$ac_ct_AS"; then
 
4822
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 
4823
$as_echo "$ac_ct_AS" >&6; }
 
4824
else
 
4825
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4826
$as_echo "no" >&6; }
 
4827
fi
 
4828
 
 
4829
  if test "x$ac_ct_AS" = x; then
 
4830
    AS="false"
 
4831
  else
 
4832
    case $cross_compiling:$ac_tool_warned in
 
4833
yes:)
 
4834
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4835
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4836
ac_tool_warned=yes ;;
 
4837
esac
 
4838
    AS=$ac_ct_AS
 
4839
  fi
 
4840
else
 
4841
  AS="$ac_cv_prog_AS"
 
4842
fi
 
4843
 
 
4844
  if test -n "$ac_tool_prefix"; then
 
4845
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
4846
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
4847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4848
$as_echo_n "checking for $ac_word... " >&6; }
 
4849
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
 
4850
  $as_echo_n "(cached) " >&6
 
4851
else
 
4852
  if test -n "$DLLTOOL"; then
 
4853
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
4854
else
 
4855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4856
for as_dir in $PATH
 
4857
do
 
4858
  IFS=$as_save_IFS
 
4859
  test -z "$as_dir" && as_dir=.
 
4860
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4862
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4863
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4864
    break 2
 
4865
  fi
 
4866
done
 
4867
  done
 
4868
IFS=$as_save_IFS
 
4869
 
 
4870
fi
 
4871
fi
 
4872
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4873
if test -n "$DLLTOOL"; then
 
4874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
4875
$as_echo "$DLLTOOL" >&6; }
 
4876
else
 
4877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4878
$as_echo "no" >&6; }
 
4879
fi
 
4880
 
 
4881
 
 
4882
fi
 
4883
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4884
  ac_ct_DLLTOOL=$DLLTOOL
 
4885
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4886
set dummy dlltool; ac_word=$2
 
4887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4888
$as_echo_n "checking for $ac_word... " >&6; }
 
4889
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
 
4890
  $as_echo_n "(cached) " >&6
 
4891
else
 
4892
  if test -n "$ac_ct_DLLTOOL"; then
 
4893
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4894
else
 
4895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4896
for as_dir in $PATH
 
4897
do
 
4898
  IFS=$as_save_IFS
 
4899
  test -z "$as_dir" && as_dir=.
 
4900
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4902
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4903
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4904
    break 2
 
4905
  fi
 
4906
done
 
4907
  done
 
4908
IFS=$as_save_IFS
 
4909
 
 
4910
fi
 
4911
fi
 
4912
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4913
if test -n "$ac_ct_DLLTOOL"; then
 
4914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
4915
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
4916
else
 
4917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4918
$as_echo "no" >&6; }
 
4919
fi
 
4920
 
 
4921
  if test "x$ac_ct_DLLTOOL" = x; then
 
4922
    DLLTOOL="false"
 
4923
  else
 
4924
    case $cross_compiling:$ac_tool_warned in
 
4925
yes:)
 
4926
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4927
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4928
ac_tool_warned=yes ;;
 
4929
esac
 
4930
    DLLTOOL=$ac_ct_DLLTOOL
 
4931
  fi
 
4932
else
 
4933
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4934
fi
 
4935
 
 
4936
  if test -n "$ac_tool_prefix"; then
 
4937
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4938
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4940
$as_echo_n "checking for $ac_word... " >&6; }
 
4941
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
4942
  $as_echo_n "(cached) " >&6
 
4943
else
 
4944
  if test -n "$OBJDUMP"; then
 
4945
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4946
else
 
4947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4948
for as_dir in $PATH
 
4949
do
 
4950
  IFS=$as_save_IFS
 
4951
  test -z "$as_dir" && as_dir=.
 
4952
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4953
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4954
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4955
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4956
    break 2
 
4957
  fi
 
4958
done
 
4959
  done
 
4960
IFS=$as_save_IFS
 
4961
 
 
4962
fi
 
4963
fi
 
4964
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4965
if test -n "$OBJDUMP"; then
 
4966
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
4967
$as_echo "$OBJDUMP" >&6; }
 
4968
else
 
4969
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4970
$as_echo "no" >&6; }
 
4971
fi
 
4972
 
 
4973
 
 
4974
fi
 
4975
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4976
  ac_ct_OBJDUMP=$OBJDUMP
 
4977
  # Extract the first word of "objdump", so it can be a program name with args.
 
4978
set dummy objdump; ac_word=$2
 
4979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4980
$as_echo_n "checking for $ac_word... " >&6; }
 
4981
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
4982
  $as_echo_n "(cached) " >&6
 
4983
else
 
4984
  if test -n "$ac_ct_OBJDUMP"; then
 
4985
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4986
else
 
4987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4988
for as_dir in $PATH
 
4989
do
 
4990
  IFS=$as_save_IFS
 
4991
  test -z "$as_dir" && as_dir=.
 
4992
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4993
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4994
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4995
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4996
    break 2
 
4997
  fi
 
4998
done
 
4999
  done
 
5000
IFS=$as_save_IFS
 
5001
 
 
5002
fi
 
5003
fi
 
5004
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5005
if test -n "$ac_ct_OBJDUMP"; then
 
5006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5007
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5008
else
 
5009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5010
$as_echo "no" >&6; }
 
5011
fi
 
5012
 
 
5013
  if test "x$ac_ct_OBJDUMP" = x; then
 
5014
    OBJDUMP="false"
 
5015
  else
 
5016
    case $cross_compiling:$ac_tool_warned in
 
5017
yes:)
 
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5019
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5020
ac_tool_warned=yes ;;
 
5021
esac
 
5022
    OBJDUMP=$ac_ct_OBJDUMP
 
5023
  fi
 
5024
else
 
5025
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5026
fi
 
5027
 
 
5028
  ;;
 
5029
esac
 
5030
 
 
5031
test -z "$AS" && AS=as
 
5032
 
 
5033
 
 
5034
 
 
5035
 
 
5036
 
 
5037
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5038
 
 
5039
 
 
5040
 
 
5041
 
 
5042
 
 
5043
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
 
 
5049
 
 
5050
 
 
5051
case `pwd` in
 
5052
  *\ * | *\     *)
 
5053
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5054
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5055
esac
 
5056
 
 
5057
 
 
5058
 
 
5059
macro_version='2.2.6b'
 
5060
macro_revision='1.3017'
 
5061
 
 
5062
 
 
5063
 
 
5064
 
 
5065
 
 
5066
 
 
5067
 
 
5068
 
 
5069
 
 
5070
 
 
5071
 
 
5072
 
 
5073
 
 
5074
ltmain="$ac_aux_dir/ltmain.sh"
 
5075
 
 
5076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5077
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5078
if test "${ac_cv_path_SED+set}" = set; then :
 
5079
  $as_echo_n "(cached) " >&6
 
5080
else
 
5081
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5082
     for ac_i in 1 2 3 4 5 6 7; do
 
5083
       ac_script="$ac_script$as_nl$ac_script"
 
5084
     done
 
5085
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5086
     { ac_script=; unset ac_script;}
 
5087
     if test -z "$SED"; then
 
5088
  ac_path_SED_found=false
 
5089
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5090
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5091
for as_dir in $PATH
 
5092
do
 
5093
  IFS=$as_save_IFS
 
5094
  test -z "$as_dir" && as_dir=.
 
5095
    for ac_prog in sed gsed; do
 
5096
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5097
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5098
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
5099
# Check for GNU ac_path_SED and select it if it is found.
 
5100
  # Check for GNU $ac_path_SED
 
5101
case `"$ac_path_SED" --version 2>&1` in
 
5102
*GNU*)
 
5103
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5104
*)
 
5105
  ac_count=0
 
5106
  $as_echo_n 0123456789 >"conftest.in"
 
5107
  while :
 
5108
  do
 
5109
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5110
    mv "conftest.tmp" "conftest.in"
 
5111
    cp "conftest.in" "conftest.nl"
 
5112
    $as_echo '' >> "conftest.nl"
 
5113
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5114
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5115
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5116
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5117
      # Best one so far, save it but keep looking for a better one
 
5118
      ac_cv_path_SED="$ac_path_SED"
 
5119
      ac_path_SED_max=$ac_count
 
5120
    fi
 
5121
    # 10*(2^10) chars as input seems more than enough
 
5122
    test $ac_count -gt 10 && break
 
5123
  done
 
5124
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5125
esac
 
5126
 
 
5127
      $ac_path_SED_found && break 3
 
5128
    done
 
5129
  done
 
5130
  done
 
5131
IFS=$as_save_IFS
 
5132
  if test -z "$ac_cv_path_SED"; then
 
5133
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5134
  fi
 
5135
else
 
5136
  ac_cv_path_SED=$SED
 
5137
fi
 
5138
 
 
5139
fi
 
5140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5141
$as_echo "$ac_cv_path_SED" >&6; }
 
5142
 SED="$ac_cv_path_SED"
 
5143
  rm -f conftest.sed
 
5144
 
 
5145
test -z "$SED" && SED=sed
 
5146
Xsed="$SED -e 1s/^X//"
 
5147
 
 
5148
 
 
5149
 
 
5150
 
 
5151
 
 
5152
 
 
5153
 
 
5154
 
 
5155
 
 
5156
 
 
5157
 
 
5158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5159
$as_echo_n "checking for fgrep... " >&6; }
 
5160
if test "${ac_cv_path_FGREP+set}" = set; then :
 
5161
  $as_echo_n "(cached) " >&6
 
5162
else
 
5163
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5164
   then ac_cv_path_FGREP="$GREP -F"
 
5165
   else
 
5166
     if test -z "$FGREP"; then
 
5167
  ac_path_FGREP_found=false
 
5168
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5169
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5170
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5171
do
 
5172
  IFS=$as_save_IFS
 
5173
  test -z "$as_dir" && as_dir=.
 
5174
    for ac_prog in fgrep; do
 
5175
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5176
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5177
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
5178
# Check for GNU ac_path_FGREP and select it if it is found.
 
5179
  # Check for GNU $ac_path_FGREP
 
5180
case `"$ac_path_FGREP" --version 2>&1` in
 
5181
*GNU*)
 
5182
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5183
*)
 
5184
  ac_count=0
 
5185
  $as_echo_n 0123456789 >"conftest.in"
 
5186
  while :
 
5187
  do
 
5188
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5189
    mv "conftest.tmp" "conftest.in"
 
5190
    cp "conftest.in" "conftest.nl"
 
5191
    $as_echo 'FGREP' >> "conftest.nl"
 
5192
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5193
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5194
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5195
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5196
      # Best one so far, save it but keep looking for a better one
 
5197
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5198
      ac_path_FGREP_max=$ac_count
 
5199
    fi
 
5200
    # 10*(2^10) chars as input seems more than enough
 
5201
    test $ac_count -gt 10 && break
 
5202
  done
 
5203
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5204
esac
 
5205
 
 
5206
      $ac_path_FGREP_found && break 3
 
5207
    done
 
5208
  done
 
5209
  done
 
5210
IFS=$as_save_IFS
 
5211
  if test -z "$ac_cv_path_FGREP"; then
 
5212
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5213
  fi
 
5214
else
 
5215
  ac_cv_path_FGREP=$FGREP
 
5216
fi
 
5217
 
 
5218
   fi
 
5219
fi
 
5220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5221
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5222
 FGREP="$ac_cv_path_FGREP"
 
5223
 
 
5224
 
 
5225
test -z "$GREP" && GREP=grep
 
5226
 
 
5227
 
 
5228
 
 
5229
 
 
5230
 
 
5231
 
 
5232
 
 
5233
 
 
5234
 
 
5235
 
 
5236
 
 
5237
 
 
5238
 
 
5239
 
 
5240
 
 
5241
 
 
5242
 
 
5243
 
 
5244
 
 
5245
# Check whether --with-gnu-ld was given.
 
5246
if test "${with_gnu_ld+set}" = set; then :
 
5247
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5248
else
 
5249
  with_gnu_ld=no
 
5250
fi
 
5251
 
 
5252
ac_prog=ld
 
5253
if test "$GCC" = yes; then
 
5254
  # Check if gcc -print-prog-name=ld gives a path.
 
5255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5256
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5257
  case $host in
 
5258
  *-*-mingw*)
 
5259
    # gcc leaves a trailing carriage return which upsets mingw
 
5260
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5261
  *)
 
5262
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5263
  esac
 
5264
  case $ac_prog in
 
5265
    # Accept absolute paths.
 
5266
    [\\/]* | ?:[\\/]*)
 
5267
      re_direlt='/[^/][^/]*/\.\./'
 
5268
      # Canonicalize the pathname of ld
 
5269
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5270
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5271
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5272
      done
 
5273
      test -z "$LD" && LD="$ac_prog"
 
5274
      ;;
 
5275
  "")
 
5276
    # If it fails, then pretend we aren't using GCC.
 
5277
    ac_prog=ld
 
5278
    ;;
 
5279
  *)
 
5280
    # If it is relative, then search for the first ld in PATH.
 
5281
    with_gnu_ld=unknown
 
5282
    ;;
 
5283
  esac
 
5284
elif test "$with_gnu_ld" = yes; then
 
5285
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5286
$as_echo_n "checking for GNU ld... " >&6; }
 
5287
else
 
5288
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5289
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5290
fi
 
5291
if test "${lt_cv_path_LD+set}" = set; then :
 
5292
  $as_echo_n "(cached) " >&6
 
5293
else
 
5294
  if test -z "$LD"; then
 
5295
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5296
  for ac_dir in $PATH; do
 
5297
    IFS="$lt_save_ifs"
 
5298
    test -z "$ac_dir" && ac_dir=.
 
5299
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5300
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5301
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5302
      # but apparently some variants of GNU ld only accept -v.
 
5303
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5304
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5305
      *GNU* | *'with BFD'*)
 
5306
        test "$with_gnu_ld" != no && break
 
5307
        ;;
 
5308
      *)
 
5309
        test "$with_gnu_ld" != yes && break
 
5310
        ;;
 
5311
      esac
 
5312
    fi
 
5313
  done
 
5314
  IFS="$lt_save_ifs"
 
5315
else
 
5316
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5317
fi
 
5318
fi
 
5319
 
 
5320
LD="$lt_cv_path_LD"
 
5321
if test -n "$LD"; then
 
5322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5323
$as_echo "$LD" >&6; }
 
5324
else
 
5325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5326
$as_echo "no" >&6; }
 
5327
fi
 
5328
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
5329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5330
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5331
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
5332
  $as_echo_n "(cached) " >&6
 
5333
else
 
5334
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5335
case `$LD -v 2>&1 </dev/null` in
 
5336
*GNU* | *'with BFD'*)
 
5337
  lt_cv_prog_gnu_ld=yes
 
5338
  ;;
 
5339
*)
 
5340
  lt_cv_prog_gnu_ld=no
 
5341
  ;;
 
5342
esac
 
5343
fi
 
5344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5345
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5346
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5357
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5358
if test "${lt_cv_path_NM+set}" = set; then :
 
5359
  $as_echo_n "(cached) " >&6
 
5360
else
 
5361
  if test -n "$NM"; then
 
5362
  # Let the user override the test.
 
5363
  lt_cv_path_NM="$NM"
 
5364
else
 
5365
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5366
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5367
    lt_nm_to_check="$lt_nm_to_check nm"
 
5368
  fi
 
5369
  for lt_tmp_nm in $lt_nm_to_check; do
 
5370
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5371
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5372
      IFS="$lt_save_ifs"
 
5373
      test -z "$ac_dir" && ac_dir=.
 
5374
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5375
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5376
        # Check to see if the nm accepts a BSD-compat flag.
 
5377
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5378
        #   nm: unknown option "B" ignored
 
5379
        # Tru64's nm complains that /dev/null is an invalid object file
 
5380
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5381
        */dev/null* | *'Invalid file or object type'*)
 
5382
          lt_cv_path_NM="$tmp_nm -B"
 
5383
          break
 
5384
          ;;
 
5385
        *)
 
5386
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5387
          */dev/null*)
 
5388
            lt_cv_path_NM="$tmp_nm -p"
 
5389
            break
 
5390
            ;;
 
5391
          *)
 
5392
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5393
            continue # so that we can try to find one that supports BSD flags
 
5394
            ;;
 
5395
          esac
 
5396
          ;;
 
5397
        esac
 
5398
      fi
 
5399
    done
 
5400
    IFS="$lt_save_ifs"
 
5401
  done
 
5402
  : ${lt_cv_path_NM=no}
 
5403
fi
 
5404
fi
 
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5406
$as_echo "$lt_cv_path_NM" >&6; }
 
5407
if test "$lt_cv_path_NM" != "no"; then
 
5408
  NM="$lt_cv_path_NM"
 
5409
else
 
5410
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5411
  if test -n "$ac_tool_prefix"; then
 
5412
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5413
  do
 
5414
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5415
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5417
$as_echo_n "checking for $ac_word... " >&6; }
 
5418
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
5419
  $as_echo_n "(cached) " >&6
 
5420
else
 
5421
  if test -n "$DUMPBIN"; then
 
5422
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5423
else
 
5424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5425
for as_dir in $PATH
 
5426
do
 
5427
  IFS=$as_save_IFS
 
5428
  test -z "$as_dir" && as_dir=.
 
5429
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5430
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5431
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5432
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5433
    break 2
 
5434
  fi
 
5435
done
 
5436
  done
 
5437
IFS=$as_save_IFS
 
5438
 
 
5439
fi
 
5440
fi
 
5441
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5442
if test -n "$DUMPBIN"; then
 
5443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5444
$as_echo "$DUMPBIN" >&6; }
 
5445
else
 
5446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5447
$as_echo "no" >&6; }
 
5448
fi
 
5449
 
 
5450
 
 
5451
    test -n "$DUMPBIN" && break
 
5452
  done
 
5453
fi
 
5454
if test -z "$DUMPBIN"; then
 
5455
  ac_ct_DUMPBIN=$DUMPBIN
 
5456
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5457
do
 
5458
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5459
set dummy $ac_prog; ac_word=$2
 
5460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5461
$as_echo_n "checking for $ac_word... " >&6; }
 
5462
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
5463
  $as_echo_n "(cached) " >&6
 
5464
else
 
5465
  if test -n "$ac_ct_DUMPBIN"; then
 
5466
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5467
else
 
5468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5469
for as_dir in $PATH
 
5470
do
 
5471
  IFS=$as_save_IFS
 
5472
  test -z "$as_dir" && as_dir=.
 
5473
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5474
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5475
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5476
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5477
    break 2
 
5478
  fi
 
5479
done
 
5480
  done
 
5481
IFS=$as_save_IFS
 
5482
 
 
5483
fi
 
5484
fi
 
5485
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5486
if test -n "$ac_ct_DUMPBIN"; then
 
5487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5488
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5489
else
 
5490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5491
$as_echo "no" >&6; }
 
5492
fi
 
5493
 
 
5494
 
 
5495
  test -n "$ac_ct_DUMPBIN" && break
 
5496
done
 
5497
 
 
5498
  if test "x$ac_ct_DUMPBIN" = x; then
 
5499
    DUMPBIN=":"
 
5500
  else
 
5501
    case $cross_compiling:$ac_tool_warned in
 
5502
yes:)
 
5503
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5504
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5505
ac_tool_warned=yes ;;
 
5506
esac
 
5507
    DUMPBIN=$ac_ct_DUMPBIN
 
5508
  fi
 
5509
fi
 
5510
 
 
5511
 
 
5512
  if test "$DUMPBIN" != ":"; then
 
5513
    NM="$DUMPBIN"
 
5514
  fi
 
5515
fi
 
5516
test -z "$NM" && NM=nm
 
5517
 
 
5518
 
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5524
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5525
if test "${lt_cv_nm_interface+set}" = set; then :
 
5526
  $as_echo_n "(cached) " >&6
 
5527
else
 
5528
  lt_cv_nm_interface="BSD nm"
 
5529
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5530
  (eval echo "\"\$as_me:5530: $ac_compile\"" >&5)
 
5531
  (eval "$ac_compile" 2>conftest.err)
 
5532
  cat conftest.err >&5
 
5533
  (eval echo "\"\$as_me:5533: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5534
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5535
  cat conftest.err >&5
 
5536
  (eval echo "\"\$as_me:5536: output\"" >&5)
 
5537
  cat conftest.out >&5
 
5538
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5539
    lt_cv_nm_interface="MS dumpbin"
 
5540
  fi
 
5541
  rm -f conftest*
 
5542
fi
 
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5544
$as_echo "$lt_cv_nm_interface" >&6; }
 
5545
 
 
5546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5547
$as_echo_n "checking whether ln -s works... " >&6; }
 
5548
LN_S=$as_ln_s
 
5549
if test "$LN_S" = "ln -s"; then
 
5550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5551
$as_echo "yes" >&6; }
 
5552
else
 
5553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5554
$as_echo "no, using $LN_S" >&6; }
 
5555
fi
 
5556
 
 
5557
# find the maximum length of command line arguments
 
5558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5559
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5560
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5561
  $as_echo_n "(cached) " >&6
 
5562
else
 
5563
    i=0
 
5564
  teststring="ABCD"
 
5565
 
 
5566
  case $build_os in
 
5567
  msdosdjgpp*)
 
5568
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5569
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5570
    # during glob expansion).  Even if it were fixed, the result of this
 
5571
    # check would be larger than it should be.
 
5572
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5573
    ;;
 
5574
 
 
5575
  gnu*)
 
5576
    # Under GNU Hurd, this test is not required because there is
 
5577
    # no limit to the length of command line arguments.
 
5578
    # Libtool will interpret -1 as no limit whatsoever
 
5579
    lt_cv_sys_max_cmd_len=-1;
 
5580
    ;;
 
5581
 
 
5582
  cygwin* | mingw* | cegcc*)
 
5583
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5584
    # about 5 minutes as the teststring grows exponentially.
 
5585
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5586
    # you end up with a "frozen" computer, even though with patience
 
5587
    # the test eventually succeeds (with a max line length of 256k).
 
5588
    # Instead, let's just punt: use the minimum linelength reported by
 
5589
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5590
    lt_cv_sys_max_cmd_len=8192;
 
5591
    ;;
 
5592
 
 
5593
  amigaos*)
 
5594
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5595
    # So we just punt and use a minimum line length of 8192.
 
5596
    lt_cv_sys_max_cmd_len=8192;
 
5597
    ;;
 
5598
 
 
5599
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5600
    # This has been around since 386BSD, at least.  Likely further.
 
5601
    if test -x /sbin/sysctl; then
 
5602
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5603
    elif test -x /usr/sbin/sysctl; then
 
5604
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5605
    else
 
5606
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5607
    fi
 
5608
    # And add a safety zone
 
5609
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5610
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5611
    ;;
 
5612
 
 
5613
  interix*)
 
5614
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5615
    lt_cv_sys_max_cmd_len=196608
 
5616
    ;;
 
5617
 
 
5618
  osf*)
 
5619
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5620
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5621
    # nice to cause kernel panics so lets avoid the loop below.
 
5622
    # First set a reasonable default.
 
5623
    lt_cv_sys_max_cmd_len=16384
 
5624
    #
 
5625
    if test -x /sbin/sysconfig; then
 
5626
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5627
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5628
      esac
 
5629
    fi
 
5630
    ;;
 
5631
  sco3.2v5*)
 
5632
    lt_cv_sys_max_cmd_len=102400
 
5633
    ;;
 
5634
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5635
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5636
    if test -n "$kargmax"; then
 
5637
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5638
    else
 
5639
      lt_cv_sys_max_cmd_len=32768
 
5640
    fi
 
5641
    ;;
 
5642
  *)
 
5643
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5644
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5645
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5646
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5647
    else
 
5648
      # Make teststring a little bigger before we do anything with it.
 
5649
      # a 1K string should be a reasonable start.
 
5650
      for i in 1 2 3 4 5 6 7 8 ; do
 
5651
        teststring=$teststring$teststring
 
5652
      done
 
5653
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5654
      # If test is not a shell built-in, we'll probably end up computing a
 
5655
      # maximum length that is only half of the actual maximum length, but
 
5656
      # we can't tell.
 
5657
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5658
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5659
              test $i != 17 # 1/2 MB should be enough
 
5660
      do
 
5661
        i=`expr $i + 1`
 
5662
        teststring=$teststring$teststring
 
5663
      done
 
5664
      # Only check the string length outside the loop.
 
5665
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5666
      teststring=
 
5667
      # Add a significant safety factor because C++ compilers can tack on
 
5668
      # massive amounts of additional arguments before passing them to the
 
5669
      # linker.  It appears as though 1/2 is a usable value.
 
5670
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5671
    fi
 
5672
    ;;
 
5673
  esac
 
5674
 
 
5675
fi
 
5676
 
 
5677
if test -n $lt_cv_sys_max_cmd_len ; then
 
5678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5679
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5680
else
 
5681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5682
$as_echo "none" >&6; }
 
5683
fi
 
5684
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5685
 
 
5686
 
 
5687
 
 
5688
 
 
5689
 
 
5690
 
 
5691
: ${CP="cp -f"}
 
5692
: ${MV="mv -f"}
 
5693
: ${RM="rm -f"}
 
5694
 
 
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5696
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5697
# Try some XSI features
 
5698
xsi_shell=no
 
5699
( _lt_dummy="a/b/c"
 
5700
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5701
      = c,a/b,, \
 
5702
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5703
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5704
  && xsi_shell=yes
 
5705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5706
$as_echo "$xsi_shell" >&6; }
 
5707
 
 
5708
 
 
5709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5710
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5711
lt_shell_append=no
 
5712
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5713
    >/dev/null 2>&1 \
 
5714
  && lt_shell_append=yes
 
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5716
$as_echo "$lt_shell_append" >&6; }
 
5717
 
 
5718
 
 
5719
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5720
  lt_unset=unset
 
5721
else
 
5722
  lt_unset=false
 
5723
fi
 
5724
 
 
5725
 
 
5726
 
 
5727
 
 
5728
 
 
5729
# test EBCDIC or ASCII
 
5730
case `echo X|tr X '\101'` in
 
5731
 A) # ASCII based system
 
5732
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5733
  lt_SP2NL='tr \040 \012'
 
5734
  lt_NL2SP='tr \015\012 \040\040'
 
5735
  ;;
 
5736
 *) # EBCDIC based system
 
5737
  lt_SP2NL='tr \100 \n'
 
5738
  lt_NL2SP='tr \r\n \100\100'
 
5739
  ;;
 
5740
esac
 
5741
 
 
5742
 
 
5743
 
 
5744
 
 
5745
 
 
5746
 
 
5747
 
 
5748
 
 
5749
 
 
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5751
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5752
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5753
  $as_echo_n "(cached) " >&6
 
5754
else
 
5755
  lt_cv_ld_reload_flag='-r'
 
5756
fi
 
5757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5758
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5759
reload_flag=$lt_cv_ld_reload_flag
 
5760
case $reload_flag in
 
5761
"" | " "*) ;;
 
5762
*) reload_flag=" $reload_flag" ;;
 
5763
esac
 
5764
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5765
case $host_os in
 
5766
  darwin*)
 
5767
    if test "$GCC" = yes; then
 
5768
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5769
    else
 
5770
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5771
    fi
 
5772
    ;;
 
5773
esac
 
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
 
5779
 
 
5780
 
 
5781
 
 
5782
 
 
5783
if test -n "$ac_tool_prefix"; then
 
5784
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5785
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5787
$as_echo_n "checking for $ac_word... " >&6; }
 
5788
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5789
  $as_echo_n "(cached) " >&6
 
5790
else
 
5791
  if test -n "$OBJDUMP"; then
 
5792
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5793
else
 
5794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5795
for as_dir in $PATH
 
5796
do
 
5797
  IFS=$as_save_IFS
 
5798
  test -z "$as_dir" && as_dir=.
 
5799
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5800
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5801
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5802
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5803
    break 2
 
5804
  fi
 
5805
done
 
5806
  done
 
5807
IFS=$as_save_IFS
 
5808
 
 
5809
fi
 
5810
fi
 
5811
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5812
if test -n "$OBJDUMP"; then
 
5813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5814
$as_echo "$OBJDUMP" >&6; }
 
5815
else
 
5816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5817
$as_echo "no" >&6; }
 
5818
fi
 
5819
 
 
5820
 
 
5821
fi
 
5822
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5823
  ac_ct_OBJDUMP=$OBJDUMP
 
5824
  # Extract the first word of "objdump", so it can be a program name with args.
 
5825
set dummy objdump; ac_word=$2
 
5826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5827
$as_echo_n "checking for $ac_word... " >&6; }
 
5828
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5829
  $as_echo_n "(cached) " >&6
 
5830
else
 
5831
  if test -n "$ac_ct_OBJDUMP"; then
 
5832
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5833
else
 
5834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5835
for as_dir in $PATH
 
5836
do
 
5837
  IFS=$as_save_IFS
 
5838
  test -z "$as_dir" && as_dir=.
 
5839
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5840
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5841
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5842
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5843
    break 2
 
5844
  fi
 
5845
done
 
5846
  done
 
5847
IFS=$as_save_IFS
 
5848
 
 
5849
fi
 
5850
fi
 
5851
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5852
if test -n "$ac_ct_OBJDUMP"; then
 
5853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5854
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5855
else
 
5856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5857
$as_echo "no" >&6; }
 
5858
fi
 
5859
 
 
5860
  if test "x$ac_ct_OBJDUMP" = x; then
 
5861
    OBJDUMP="false"
 
5862
  else
 
5863
    case $cross_compiling:$ac_tool_warned in
 
5864
yes:)
 
5865
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5866
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5867
ac_tool_warned=yes ;;
 
5868
esac
 
5869
    OBJDUMP=$ac_ct_OBJDUMP
 
5870
  fi
 
5871
else
 
5872
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5873
fi
 
5874
 
 
5875
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5883
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5884
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5885
  $as_echo_n "(cached) " >&6
 
5886
else
 
5887
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5888
lt_cv_file_magic_test_file=
 
5889
lt_cv_deplibs_check_method='unknown'
 
5890
# Need to set the preceding variable on all platforms that support
 
5891
# interlibrary dependencies.
 
5892
# 'none' -- dependencies not supported.
 
5893
# `unknown' -- same as none, but documents that we really don't know.
 
5894
# 'pass_all' -- all dependencies passed with no checks.
 
5895
# 'test_compile' -- check by making test program.
 
5896
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5897
# which responds to the $file_magic_cmd with a given extended regex.
 
5898
# If you have `file' or equivalent on your system and you're not sure
 
5899
# whether `pass_all' will *always* work, you probably want this one.
 
5900
 
 
5901
case $host_os in
 
5902
aix[4-9]*)
 
5903
  lt_cv_deplibs_check_method=pass_all
 
5904
  ;;
 
5905
 
 
5906
beos*)
 
5907
  lt_cv_deplibs_check_method=pass_all
 
5908
  ;;
 
5909
 
 
5910
bsdi[45]*)
 
5911
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5912
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5913
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5914
  ;;
 
5915
 
 
5916
cygwin*)
 
5917
  # func_win32_libid is a shell function defined in ltmain.sh
 
5918
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5919
  lt_cv_file_magic_cmd='func_win32_libid'
 
5920
  ;;
 
5921
 
 
5922
mingw* | pw32*)
 
5923
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5924
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5925
  # unless we find 'file', for example because we are cross-compiling.
 
5926
  if ( file / ) >/dev/null 2>&1; then
 
5927
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5928
    lt_cv_file_magic_cmd='func_win32_libid'
 
5929
  else
 
5930
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5931
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5932
  fi
 
5933
  ;;
 
5934
 
 
5935
cegcc)
 
5936
  # use the weaker test based on 'objdump'. See mingw*.
 
5937
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5938
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5939
  ;;
 
5940
 
 
5941
darwin* | rhapsody*)
 
5942
  lt_cv_deplibs_check_method=pass_all
 
5943
  ;;
 
5944
 
 
5945
freebsd* | dragonfly*)
 
5946
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5947
    case $host_cpu in
 
5948
    i*86 )
 
5949
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5950
      # Let's accept both of them until this is cleared up.
 
5951
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5952
      lt_cv_file_magic_cmd=/usr/bin/file
 
5953
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5954
      ;;
 
5955
    esac
 
5956
  else
 
5957
    lt_cv_deplibs_check_method=pass_all
 
5958
  fi
 
5959
  ;;
 
5960
 
 
5961
gnu*)
 
5962
  lt_cv_deplibs_check_method=pass_all
 
5963
  ;;
 
5964
 
 
5965
hpux10.20* | hpux11*)
 
5966
  lt_cv_file_magic_cmd=/usr/bin/file
 
5967
  case $host_cpu in
 
5968
  ia64*)
 
5969
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5970
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5971
    ;;
 
5972
  hppa*64*)
 
5973
    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]'
 
5974
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5975
    ;;
 
5976
  *)
 
5977
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5978
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5979
    ;;
 
5980
  esac
 
5981
  ;;
 
5982
 
 
5983
interix[3-9]*)
 
5984
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5985
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5986
  ;;
 
5987
 
 
5988
irix5* | irix6* | nonstopux*)
 
5989
  case $LD in
 
5990
  *-32|*"-32 ") libmagic=32-bit;;
 
5991
  *-n32|*"-n32 ") libmagic=N32;;
 
5992
  *-64|*"-64 ") libmagic=64-bit;;
 
5993
  *) libmagic=never-match;;
 
5994
  esac
 
5995
  lt_cv_deplibs_check_method=pass_all
 
5996
  ;;
 
5997
 
 
5998
# This must be Linux ELF.
 
5999
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6000
  lt_cv_deplibs_check_method=pass_all
 
6001
  ;;
 
6002
 
 
6003
netbsd* | netbsdelf*-gnu)
 
6004
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6005
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6006
  else
 
6007
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6008
  fi
 
6009
  ;;
 
6010
 
 
6011
newos6*)
 
6012
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6013
  lt_cv_file_magic_cmd=/usr/bin/file
 
6014
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6015
  ;;
 
6016
 
 
6017
*nto* | *qnx*)
 
6018
  lt_cv_deplibs_check_method=pass_all
 
6019
  ;;
 
6020
 
 
6021
openbsd*)
 
6022
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6023
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6024
  else
 
6025
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6026
  fi
 
6027
  ;;
 
6028
 
 
6029
osf3* | osf4* | osf5*)
 
6030
  lt_cv_deplibs_check_method=pass_all
 
6031
  ;;
 
6032
 
 
6033
rdos*)
 
6034
  lt_cv_deplibs_check_method=pass_all
 
6035
  ;;
 
6036
 
 
6037
solaris*)
 
6038
  lt_cv_deplibs_check_method=pass_all
 
6039
  ;;
 
6040
 
 
6041
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6042
  lt_cv_deplibs_check_method=pass_all
 
6043
  ;;
 
6044
 
 
6045
sysv4 | sysv4.3*)
 
6046
  case $host_vendor in
 
6047
  motorola)
 
6048
    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]'
 
6049
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6050
    ;;
 
6051
  ncr)
 
6052
    lt_cv_deplibs_check_method=pass_all
 
6053
    ;;
 
6054
  sequent)
 
6055
    lt_cv_file_magic_cmd='/bin/file'
 
6056
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6057
    ;;
 
6058
  sni)
 
6059
    lt_cv_file_magic_cmd='/bin/file'
 
6060
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6061
    lt_cv_file_magic_test_file=/lib/libc.so
 
6062
    ;;
 
6063
  siemens)
 
6064
    lt_cv_deplibs_check_method=pass_all
 
6065
    ;;
 
6066
  pc)
 
6067
    lt_cv_deplibs_check_method=pass_all
 
6068
    ;;
 
6069
  esac
 
6070
  ;;
 
6071
 
 
6072
tpf*)
 
6073
  lt_cv_deplibs_check_method=pass_all
 
6074
  ;;
 
6075
esac
 
6076
 
 
6077
fi
 
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6079
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6080
file_magic_cmd=$lt_cv_file_magic_cmd
 
6081
deplibs_check_method=$lt_cv_deplibs_check_method
 
6082
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6083
 
 
6084
 
 
6085
 
 
6086
 
 
6087
 
 
6088
 
 
6089
 
 
6090
 
 
6091
 
 
6092
 
 
6093
 
 
6094
 
 
6095
if test -n "$ac_tool_prefix"; then
 
6096
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6097
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6099
$as_echo_n "checking for $ac_word... " >&6; }
 
6100
if test "${ac_cv_prog_AR+set}" = set; then :
 
6101
  $as_echo_n "(cached) " >&6
 
6102
else
 
6103
  if test -n "$AR"; then
 
6104
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6105
else
 
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6107
for as_dir in $PATH
 
6108
do
 
6109
  IFS=$as_save_IFS
 
6110
  test -z "$as_dir" && as_dir=.
 
6111
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6112
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6113
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6114
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6115
    break 2
 
6116
  fi
 
6117
done
 
6118
  done
 
6119
IFS=$as_save_IFS
 
6120
 
 
6121
fi
 
6122
fi
 
6123
AR=$ac_cv_prog_AR
 
6124
if test -n "$AR"; then
 
6125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6126
$as_echo "$AR" >&6; }
 
6127
else
 
6128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6129
$as_echo "no" >&6; }
 
6130
fi
 
6131
 
 
6132
 
 
6133
fi
 
6134
if test -z "$ac_cv_prog_AR"; then
 
6135
  ac_ct_AR=$AR
 
6136
  # Extract the first word of "ar", so it can be a program name with args.
 
6137
set dummy ar; ac_word=$2
 
6138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6139
$as_echo_n "checking for $ac_word... " >&6; }
 
6140
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
6141
  $as_echo_n "(cached) " >&6
 
6142
else
 
6143
  if test -n "$ac_ct_AR"; then
 
6144
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6145
else
 
6146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6147
for as_dir in $PATH
 
6148
do
 
6149
  IFS=$as_save_IFS
 
6150
  test -z "$as_dir" && as_dir=.
 
6151
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6152
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6153
    ac_cv_prog_ac_ct_AR="ar"
 
6154
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6155
    break 2
 
6156
  fi
 
6157
done
 
6158
  done
 
6159
IFS=$as_save_IFS
 
6160
 
 
6161
fi
 
6162
fi
 
6163
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6164
if test -n "$ac_ct_AR"; then
 
6165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6166
$as_echo "$ac_ct_AR" >&6; }
 
6167
else
 
6168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6169
$as_echo "no" >&6; }
 
6170
fi
 
6171
 
 
6172
  if test "x$ac_ct_AR" = x; then
 
6173
    AR="false"
 
6174
  else
 
6175
    case $cross_compiling:$ac_tool_warned in
 
6176
yes:)
 
6177
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6178
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6179
ac_tool_warned=yes ;;
 
6180
esac
 
6181
    AR=$ac_ct_AR
 
6182
  fi
 
6183
else
 
6184
  AR="$ac_cv_prog_AR"
 
6185
fi
 
6186
 
 
6187
test -z "$AR" && AR=ar
 
6188
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6189
 
 
6190
 
 
6191
 
 
6192
 
 
6193
 
 
6194
 
 
6195
 
 
6196
 
 
6197
 
 
6198
 
 
6199
 
 
6200
if test -n "$ac_tool_prefix"; then
 
6201
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6202
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6204
$as_echo_n "checking for $ac_word... " >&6; }
 
6205
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
6206
  $as_echo_n "(cached) " >&6
 
6207
else
 
6208
  if test -n "$STRIP"; then
 
6209
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6210
else
 
6211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6212
for as_dir in $PATH
 
6213
do
 
6214
  IFS=$as_save_IFS
 
6215
  test -z "$as_dir" && as_dir=.
 
6216
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6217
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6218
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6219
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6220
    break 2
 
6221
  fi
 
6222
done
 
6223
  done
 
6224
IFS=$as_save_IFS
 
6225
 
 
6226
fi
 
6227
fi
 
6228
STRIP=$ac_cv_prog_STRIP
 
6229
if test -n "$STRIP"; then
 
6230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6231
$as_echo "$STRIP" >&6; }
 
6232
else
 
6233
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6234
$as_echo "no" >&6; }
 
6235
fi
 
6236
 
 
6237
 
 
6238
fi
 
6239
if test -z "$ac_cv_prog_STRIP"; then
 
6240
  ac_ct_STRIP=$STRIP
 
6241
  # Extract the first word of "strip", so it can be a program name with args.
 
6242
set dummy strip; ac_word=$2
 
6243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6244
$as_echo_n "checking for $ac_word... " >&6; }
 
6245
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
6246
  $as_echo_n "(cached) " >&6
 
6247
else
 
6248
  if test -n "$ac_ct_STRIP"; then
 
6249
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6250
else
 
6251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6252
for as_dir in $PATH
 
6253
do
 
6254
  IFS=$as_save_IFS
 
6255
  test -z "$as_dir" && as_dir=.
 
6256
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6257
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6258
    ac_cv_prog_ac_ct_STRIP="strip"
 
6259
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6260
    break 2
 
6261
  fi
 
6262
done
 
6263
  done
 
6264
IFS=$as_save_IFS
 
6265
 
 
6266
fi
 
6267
fi
 
6268
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6269
if test -n "$ac_ct_STRIP"; then
 
6270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6271
$as_echo "$ac_ct_STRIP" >&6; }
 
6272
else
 
6273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6274
$as_echo "no" >&6; }
 
6275
fi
 
6276
 
 
6277
  if test "x$ac_ct_STRIP" = x; then
 
6278
    STRIP=":"
 
6279
  else
 
6280
    case $cross_compiling:$ac_tool_warned in
 
6281
yes:)
 
6282
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6283
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6284
ac_tool_warned=yes ;;
 
6285
esac
 
6286
    STRIP=$ac_ct_STRIP
 
6287
  fi
 
6288
else
 
6289
  STRIP="$ac_cv_prog_STRIP"
 
6290
fi
 
6291
 
 
6292
test -z "$STRIP" && STRIP=:
 
6293
 
 
6294
 
 
6295
 
 
6296
 
 
6297
 
 
6298
 
 
6299
if test -n "$ac_tool_prefix"; then
 
6300
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6301
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6303
$as_echo_n "checking for $ac_word... " >&6; }
 
6304
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
6305
  $as_echo_n "(cached) " >&6
 
6306
else
 
6307
  if test -n "$RANLIB"; then
 
6308
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6309
else
 
6310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6311
for as_dir in $PATH
 
6312
do
 
6313
  IFS=$as_save_IFS
 
6314
  test -z "$as_dir" && as_dir=.
 
6315
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6317
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6318
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6319
    break 2
 
6320
  fi
 
6321
done
 
6322
  done
 
6323
IFS=$as_save_IFS
 
6324
 
 
6325
fi
 
6326
fi
 
6327
RANLIB=$ac_cv_prog_RANLIB
 
6328
if test -n "$RANLIB"; then
 
6329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6330
$as_echo "$RANLIB" >&6; }
 
6331
else
 
6332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6333
$as_echo "no" >&6; }
 
6334
fi
 
6335
 
 
6336
 
 
6337
fi
 
6338
if test -z "$ac_cv_prog_RANLIB"; then
 
6339
  ac_ct_RANLIB=$RANLIB
 
6340
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6341
set dummy ranlib; ac_word=$2
 
6342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6343
$as_echo_n "checking for $ac_word... " >&6; }
 
6344
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
6345
  $as_echo_n "(cached) " >&6
 
6346
else
 
6347
  if test -n "$ac_ct_RANLIB"; then
 
6348
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6349
else
 
6350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6351
for as_dir in $PATH
 
6352
do
 
6353
  IFS=$as_save_IFS
 
6354
  test -z "$as_dir" && as_dir=.
 
6355
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6357
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6358
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6359
    break 2
 
6360
  fi
 
6361
done
 
6362
  done
 
6363
IFS=$as_save_IFS
 
6364
 
 
6365
fi
 
6366
fi
 
6367
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6368
if test -n "$ac_ct_RANLIB"; then
 
6369
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6370
$as_echo "$ac_ct_RANLIB" >&6; }
 
6371
else
 
6372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6373
$as_echo "no" >&6; }
 
6374
fi
 
6375
 
 
6376
  if test "x$ac_ct_RANLIB" = x; then
 
6377
    RANLIB=":"
 
6378
  else
 
6379
    case $cross_compiling:$ac_tool_warned in
 
6380
yes:)
 
6381
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6382
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6383
ac_tool_warned=yes ;;
 
6384
esac
 
6385
    RANLIB=$ac_ct_RANLIB
 
6386
  fi
 
6387
else
 
6388
  RANLIB="$ac_cv_prog_RANLIB"
 
6389
fi
 
6390
 
 
6391
test -z "$RANLIB" && RANLIB=:
 
6392
 
 
6393
 
 
6394
 
 
6395
 
 
6396
 
 
6397
 
 
6398
# Determine commands to create old-style static archives.
 
6399
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6400
old_postinstall_cmds='chmod 644 $oldlib'
 
6401
old_postuninstall_cmds=
 
6402
 
 
6403
if test -n "$RANLIB"; then
 
6404
  case $host_os in
 
6405
  openbsd*)
 
6406
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6407
    ;;
 
6408
  *)
 
6409
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6410
    ;;
 
6411
  esac
 
6412
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6413
fi
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
 
 
6424
 
 
6425
 
 
6426
 
 
6427
 
 
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
 
 
6435
 
 
6436
 
 
6437
 
 
6438
 
 
6439
 
 
6440
 
 
6441
 
 
6442
 
 
6443
 
 
6444
 
 
6445
 
 
6446
 
 
6447
 
 
6448
# If no C compiler was specified, use CC.
 
6449
LTCC=${LTCC-"$CC"}
 
6450
 
 
6451
# If no C compiler flags were specified, use CFLAGS.
 
6452
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6453
 
 
6454
# Allow CC to be a program name with arguments.
 
6455
compiler=$CC
 
6456
 
 
6457
 
 
6458
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6460
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6461
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
6462
  $as_echo_n "(cached) " >&6
 
6463
else
 
6464
 
 
6465
# These are sane defaults that work on at least a few old systems.
 
6466
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6467
 
 
6468
# Character class describing NM global symbol codes.
 
6469
symcode='[BCDEGRST]'
 
6470
 
 
6471
# Regexp to match symbols that can be accessed directly from C.
 
6472
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6473
 
 
6474
# Define system-specific variables.
 
6475
case $host_os in
 
6476
aix*)
 
6477
  symcode='[BCDT]'
 
6478
  ;;
 
6479
cygwin* | mingw* | pw32* | cegcc*)
 
6480
  symcode='[ABCDGISTW]'
 
6481
  ;;
 
6482
hpux*)
 
6483
  if test "$host_cpu" = ia64; then
 
6484
    symcode='[ABCDEGRST]'
 
6485
  fi
 
6486
  ;;
 
6487
irix* | nonstopux*)
 
6488
  symcode='[BCDEGRST]'
 
6489
  ;;
 
6490
osf*)
 
6491
  symcode='[BCDEGQRST]'
 
6492
  ;;
 
6493
solaris*)
 
6494
  symcode='[BDRT]'
 
6495
  ;;
 
6496
sco3.2v5*)
 
6497
  symcode='[DT]'
 
6498
  ;;
 
6499
sysv4.2uw2*)
 
6500
  symcode='[DT]'
 
6501
  ;;
 
6502
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6503
  symcode='[ABDT]'
 
6504
  ;;
 
6505
sysv4)
 
6506
  symcode='[DFNSTU]'
 
6507
  ;;
 
6508
esac
 
6509
 
 
6510
# If we're using GNU nm, then use its standard symbol codes.
 
6511
case `$NM -V 2>&1` in
 
6512
*GNU* | *'with BFD'*)
 
6513
  symcode='[ABCDGIRSTW]' ;;
 
6514
esac
 
6515
 
 
6516
# Transform an extracted symbol line into a proper C declaration.
 
6517
# Some systems (esp. on ia64) link data and code symbols differently,
 
6518
# so use this general approach.
 
6519
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6520
 
 
6521
# Transform an extracted symbol line into symbol name and symbol address
 
6522
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6523
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'"
 
6524
 
 
6525
# Handle CRLF in mingw tool chain
 
6526
opt_cr=
 
6527
case $build_os in
 
6528
mingw*)
 
6529
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6530
  ;;
 
6531
esac
 
6532
 
 
6533
# Try without a prefix underscore, then with it.
 
6534
for ac_symprfx in "" "_"; do
 
6535
 
 
6536
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6537
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6538
 
 
6539
  # Write the raw and C identifiers.
 
6540
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6541
    # Fake it for dumpbin and say T for any non-static function
 
6542
    # and D for any global variable.
 
6543
    # Also find C++ and __fastcall symbols from MSVC++,
 
6544
    # which start with @ or ?.
 
6545
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6546
"     {last_section=section; section=\$ 3};"\
 
6547
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6548
"     \$ 0!~/External *\|/{next};"\
 
6549
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6550
"     {if(hide[section]) next};"\
 
6551
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6552
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6553
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6554
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6555
"     ' prfx=^$ac_symprfx"
 
6556
  else
 
6557
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6558
  fi
 
6559
 
 
6560
  # Check to see that the pipe works correctly.
 
6561
  pipe_works=no
 
6562
 
 
6563
  rm -f conftest*
 
6564
  cat > conftest.$ac_ext <<_LT_EOF
 
6565
#ifdef __cplusplus
 
6566
extern "C" {
 
6567
#endif
 
6568
char nm_test_var;
 
6569
void nm_test_func(void);
 
6570
void nm_test_func(void){}
 
6571
#ifdef __cplusplus
 
6572
}
 
6573
#endif
 
6574
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6575
_LT_EOF
 
6576
 
 
6577
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6578
  (eval $ac_compile) 2>&5
 
6579
  ac_status=$?
 
6580
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6581
  test $ac_status = 0; }; then
 
6582
    # Now try to grab the symbols.
 
6583
    nlist=conftest.nm
 
6584
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
6585
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6586
  ac_status=$?
 
6587
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6588
  test $ac_status = 0; } && test -s "$nlist"; then
 
6589
      # Try sorting and uniquifying the output.
 
6590
      if sort "$nlist" | uniq > "$nlist"T; then
 
6591
        mv -f "$nlist"T "$nlist"
 
6592
      else
 
6593
        rm -f "$nlist"T
 
6594
      fi
 
6595
 
 
6596
      # Make sure that we snagged all the symbols we need.
 
6597
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6598
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6599
          cat <<_LT_EOF > conftest.$ac_ext
 
6600
#ifdef __cplusplus
 
6601
extern "C" {
 
6602
#endif
 
6603
 
 
6604
_LT_EOF
 
6605
          # Now generate the symbol file.
 
6606
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6607
 
 
6608
          cat <<_LT_EOF >> conftest.$ac_ext
 
6609
 
 
6610
/* The mapping between symbol names and symbols.  */
 
6611
const struct {
 
6612
  const char *name;
 
6613
  void       *address;
 
6614
}
 
6615
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6616
{
 
6617
  { "@PROGRAM@", (void *) 0 },
 
6618
_LT_EOF
 
6619
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6620
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6621
  {0, (void *) 0}
 
6622
};
 
6623
 
 
6624
/* This works around a problem in FreeBSD linker */
 
6625
#ifdef FREEBSD_WORKAROUND
 
6626
static const void *lt_preloaded_setup() {
 
6627
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6628
}
 
6629
#endif
 
6630
 
 
6631
#ifdef __cplusplus
 
6632
}
 
6633
#endif
 
6634
_LT_EOF
 
6635
          # Now try linking the two files.
 
6636
          mv conftest.$ac_objext conftstm.$ac_objext
 
6637
          lt_save_LIBS="$LIBS"
 
6638
          lt_save_CFLAGS="$CFLAGS"
 
6639
          LIBS="conftstm.$ac_objext"
 
6640
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6641
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6642
  (eval $ac_link) 2>&5
 
6643
  ac_status=$?
 
6644
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6645
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6646
            pipe_works=yes
 
6647
          fi
 
6648
          LIBS="$lt_save_LIBS"
 
6649
          CFLAGS="$lt_save_CFLAGS"
 
6650
        else
 
6651
          echo "cannot find nm_test_func in $nlist" >&5
 
6652
        fi
 
6653
      else
 
6654
        echo "cannot find nm_test_var in $nlist" >&5
 
6655
      fi
 
6656
    else
 
6657
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6658
    fi
 
6659
  else
 
6660
    echo "$progname: failed program was:" >&5
 
6661
    cat conftest.$ac_ext >&5
 
6662
  fi
 
6663
  rm -rf conftest* conftst*
 
6664
 
 
6665
  # Do not use the global_symbol_pipe unless it works.
 
6666
  if test "$pipe_works" = yes; then
 
6667
    break
 
6668
  else
 
6669
    lt_cv_sys_global_symbol_pipe=
 
6670
  fi
 
6671
done
 
6672
 
 
6673
fi
 
6674
 
 
6675
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6676
  lt_cv_sys_global_symbol_to_cdecl=
 
6677
fi
 
6678
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6680
$as_echo "failed" >&6; }
 
6681
else
 
6682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6683
$as_echo "ok" >&6; }
 
6684
fi
 
6685
 
 
6686
 
 
6687
 
 
6688
 
 
6689
 
 
6690
 
 
6691
 
 
6692
 
 
6693
 
 
6694
 
 
6695
 
 
6696
 
 
6697
 
 
6698
 
 
6699
 
 
6700
 
 
6701
 
 
6702
 
 
6703
 
 
6704
 
 
6705
 
 
6706
 
 
6707
# Check whether --enable-libtool-lock was given.
 
6708
if test "${enable_libtool_lock+set}" = set; then :
 
6709
  enableval=$enable_libtool_lock;
 
6710
fi
 
6711
 
 
6712
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6713
 
 
6714
# Some flags need to be propagated to the compiler or linker for good
 
6715
# libtool support.
 
6716
case $host in
 
6717
ia64-*-hpux*)
 
6718
  # Find out which ABI we are using.
 
6719
  echo 'int i;' > conftest.$ac_ext
 
6720
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6721
  (eval $ac_compile) 2>&5
 
6722
  ac_status=$?
 
6723
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6724
  test $ac_status = 0; }; then
 
6725
    case `/usr/bin/file conftest.$ac_objext` in
 
6726
      *ELF-32*)
 
6727
        HPUX_IA64_MODE="32"
 
6728
        ;;
 
6729
      *ELF-64*)
 
6730
        HPUX_IA64_MODE="64"
 
6731
        ;;
 
6732
    esac
 
6733
  fi
 
6734
  rm -rf conftest*
 
6735
  ;;
 
6736
*-*-irix6*)
 
6737
  # Find out which ABI we are using.
 
6738
  echo '#line 6738 "configure"' > conftest.$ac_ext
 
6739
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6740
  (eval $ac_compile) 2>&5
 
6741
  ac_status=$?
 
6742
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6743
  test $ac_status = 0; }; then
 
6744
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6745
      case `/usr/bin/file conftest.$ac_objext` in
 
6746
        *32-bit*)
 
6747
          LD="${LD-ld} -melf32bsmip"
 
6748
          ;;
 
6749
        *N32*)
 
6750
          LD="${LD-ld} -melf32bmipn32"
 
6751
          ;;
 
6752
        *64-bit*)
 
6753
          LD="${LD-ld} -melf64bmip"
 
6754
        ;;
 
6755
      esac
 
6756
    else
 
6757
      case `/usr/bin/file conftest.$ac_objext` in
 
6758
        *32-bit*)
 
6759
          LD="${LD-ld} -32"
 
6760
          ;;
 
6761
        *N32*)
 
6762
          LD="${LD-ld} -n32"
 
6763
          ;;
 
6764
        *64-bit*)
 
6765
          LD="${LD-ld} -64"
 
6766
          ;;
 
6767
      esac
 
6768
    fi
 
6769
  fi
 
6770
  rm -rf conftest*
 
6771
  ;;
 
6772
 
 
6773
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6774
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6775
  # Find out which ABI we are using.
 
6776
  echo 'int i;' > conftest.$ac_ext
 
6777
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6778
  (eval $ac_compile) 2>&5
 
6779
  ac_status=$?
 
6780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6781
  test $ac_status = 0; }; then
 
6782
    case `/usr/bin/file conftest.o` in
 
6783
      *32-bit*)
 
6784
        case $host in
 
6785
          x86_64-*kfreebsd*-gnu)
 
6786
            LD="${LD-ld} -m elf_i386_fbsd"
 
6787
            ;;
 
6788
          x86_64-*linux*)
 
6789
            LD="${LD-ld} -m elf_i386"
 
6790
            ;;
 
6791
          ppc64-*linux*|powerpc64-*linux*)
 
6792
            LD="${LD-ld} -m elf32ppclinux"
 
6793
            ;;
 
6794
          s390x-*linux*)
 
6795
            LD="${LD-ld} -m elf_s390"
 
6796
            ;;
 
6797
          sparc64-*linux*)
 
6798
            LD="${LD-ld} -m elf32_sparc"
 
6799
            ;;
 
6800
        esac
 
6801
        ;;
 
6802
      *64-bit*)
 
6803
        case $host in
 
6804
          x86_64-*kfreebsd*-gnu)
 
6805
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6806
            ;;
 
6807
          x86_64-*linux*)
 
6808
            LD="${LD-ld} -m elf_x86_64"
 
6809
            ;;
 
6810
          ppc*-*linux*|powerpc*-*linux*)
 
6811
            LD="${LD-ld} -m elf64ppc"
 
6812
            ;;
 
6813
          s390*-*linux*|s390*-*tpf*)
 
6814
            LD="${LD-ld} -m elf64_s390"
 
6815
            ;;
 
6816
          sparc*-*linux*)
 
6817
            LD="${LD-ld} -m elf64_sparc"
 
6818
            ;;
 
6819
        esac
 
6820
        ;;
 
6821
    esac
 
6822
  fi
 
6823
  rm -rf conftest*
 
6824
  ;;
 
6825
 
 
6826
*-*-sco3.2v5*)
 
6827
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6828
  SAVE_CFLAGS="$CFLAGS"
 
6829
  CFLAGS="$CFLAGS -belf"
 
6830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6831
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6832
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6833
  $as_echo_n "(cached) " >&6
 
6834
else
 
6835
  ac_ext=c
 
6836
ac_cpp='$CPP $CPPFLAGS'
 
6837
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6838
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6839
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6840
 
 
6841
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6842
/* end confdefs.h.  */
 
6843
 
 
6844
int
 
6845
main ()
 
6846
{
 
6847
 
 
6848
  ;
 
6849
  return 0;
 
6850
}
 
6851
_ACEOF
 
6852
if ac_fn_c_try_link "$LINENO"; then :
 
6853
  lt_cv_cc_needs_belf=yes
 
6854
else
 
6855
  lt_cv_cc_needs_belf=no
 
6856
fi
 
6857
rm -f core conftest.err conftest.$ac_objext \
 
6858
    conftest$ac_exeext conftest.$ac_ext
 
6859
     ac_ext=c
 
6860
ac_cpp='$CPP $CPPFLAGS'
 
6861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6864
 
 
6865
fi
 
6866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6867
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6868
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6869
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6870
    CFLAGS="$SAVE_CFLAGS"
 
6871
  fi
 
6872
  ;;
 
6873
sparc*-*solaris*)
 
6874
  # Find out which ABI we are using.
 
6875
  echo 'int i;' > conftest.$ac_ext
 
6876
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6877
  (eval $ac_compile) 2>&5
 
6878
  ac_status=$?
 
6879
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6880
  test $ac_status = 0; }; then
 
6881
    case `/usr/bin/file conftest.o` in
 
6882
    *64-bit*)
 
6883
      case $lt_cv_prog_gnu_ld in
 
6884
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6885
      *)
 
6886
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6887
          LD="${LD-ld} -64"
 
6888
        fi
 
6889
        ;;
 
6890
      esac
 
6891
      ;;
 
6892
    esac
 
6893
  fi
 
6894
  rm -rf conftest*
 
6895
  ;;
 
6896
esac
 
6897
 
 
6898
need_locks="$enable_libtool_lock"
 
6899
 
 
6900
 
 
6901
  case $host_os in
 
6902
    rhapsody* | darwin*)
 
6903
    if test -n "$ac_tool_prefix"; then
 
6904
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6905
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6907
$as_echo_n "checking for $ac_word... " >&6; }
 
6908
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6909
  $as_echo_n "(cached) " >&6
 
6910
else
 
6911
  if test -n "$DSYMUTIL"; then
 
6912
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6913
else
 
6914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6915
for as_dir in $PATH
 
6916
do
 
6917
  IFS=$as_save_IFS
 
6918
  test -z "$as_dir" && as_dir=.
 
6919
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6920
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6921
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6922
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6923
    break 2
 
6924
  fi
 
6925
done
 
6926
  done
 
6927
IFS=$as_save_IFS
 
6928
 
 
6929
fi
 
6930
fi
 
6931
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6932
if test -n "$DSYMUTIL"; then
 
6933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6934
$as_echo "$DSYMUTIL" >&6; }
 
6935
else
 
6936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6937
$as_echo "no" >&6; }
 
6938
fi
 
6939
 
 
6940
 
 
6941
fi
 
6942
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6943
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6944
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6945
set dummy dsymutil; ac_word=$2
 
6946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6947
$as_echo_n "checking for $ac_word... " >&6; }
 
6948
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6949
  $as_echo_n "(cached) " >&6
 
6950
else
 
6951
  if test -n "$ac_ct_DSYMUTIL"; then
 
6952
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6953
else
 
6954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6955
for as_dir in $PATH
 
6956
do
 
6957
  IFS=$as_save_IFS
 
6958
  test -z "$as_dir" && as_dir=.
 
6959
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6960
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6961
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6962
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6963
    break 2
 
6964
  fi
 
6965
done
 
6966
  done
 
6967
IFS=$as_save_IFS
 
6968
 
 
6969
fi
 
6970
fi
 
6971
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6972
if test -n "$ac_ct_DSYMUTIL"; then
 
6973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6974
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6975
else
 
6976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6977
$as_echo "no" >&6; }
 
6978
fi
 
6979
 
 
6980
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6981
    DSYMUTIL=":"
 
6982
  else
 
6983
    case $cross_compiling:$ac_tool_warned in
 
6984
yes:)
 
6985
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6986
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6987
ac_tool_warned=yes ;;
 
6988
esac
 
6989
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6990
  fi
 
6991
else
 
6992
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6993
fi
 
6994
 
 
6995
    if test -n "$ac_tool_prefix"; then
 
6996
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6997
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6999
$as_echo_n "checking for $ac_word... " >&6; }
 
7000
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
7001
  $as_echo_n "(cached) " >&6
 
7002
else
 
7003
  if test -n "$NMEDIT"; then
 
7004
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7005
else
 
7006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7007
for as_dir in $PATH
 
7008
do
 
7009
  IFS=$as_save_IFS
 
7010
  test -z "$as_dir" && as_dir=.
 
7011
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7012
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7013
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7014
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7015
    break 2
 
7016
  fi
 
7017
done
 
7018
  done
 
7019
IFS=$as_save_IFS
 
7020
 
 
7021
fi
 
7022
fi
 
7023
NMEDIT=$ac_cv_prog_NMEDIT
 
7024
if test -n "$NMEDIT"; then
 
7025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7026
$as_echo "$NMEDIT" >&6; }
 
7027
else
 
7028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7029
$as_echo "no" >&6; }
 
7030
fi
 
7031
 
 
7032
 
 
7033
fi
 
7034
if test -z "$ac_cv_prog_NMEDIT"; then
 
7035
  ac_ct_NMEDIT=$NMEDIT
 
7036
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7037
set dummy nmedit; ac_word=$2
 
7038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7039
$as_echo_n "checking for $ac_word... " >&6; }
 
7040
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
7041
  $as_echo_n "(cached) " >&6
 
7042
else
 
7043
  if test -n "$ac_ct_NMEDIT"; then
 
7044
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7045
else
 
7046
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7047
for as_dir in $PATH
 
7048
do
 
7049
  IFS=$as_save_IFS
 
7050
  test -z "$as_dir" && as_dir=.
 
7051
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7052
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7053
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7054
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7055
    break 2
 
7056
  fi
 
7057
done
 
7058
  done
 
7059
IFS=$as_save_IFS
 
7060
 
 
7061
fi
 
7062
fi
 
7063
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7064
if test -n "$ac_ct_NMEDIT"; then
 
7065
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7066
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7067
else
 
7068
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7069
$as_echo "no" >&6; }
 
7070
fi
 
7071
 
 
7072
  if test "x$ac_ct_NMEDIT" = x; then
 
7073
    NMEDIT=":"
 
7074
  else
 
7075
    case $cross_compiling:$ac_tool_warned in
 
7076
yes:)
 
7077
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7078
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7079
ac_tool_warned=yes ;;
 
7080
esac
 
7081
    NMEDIT=$ac_ct_NMEDIT
 
7082
  fi
 
7083
else
 
7084
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7085
fi
 
7086
 
 
7087
    if test -n "$ac_tool_prefix"; then
 
7088
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7089
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7091
$as_echo_n "checking for $ac_word... " >&6; }
 
7092
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
7093
  $as_echo_n "(cached) " >&6
 
7094
else
 
7095
  if test -n "$LIPO"; then
 
7096
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7097
else
 
7098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7099
for as_dir in $PATH
 
7100
do
 
7101
  IFS=$as_save_IFS
 
7102
  test -z "$as_dir" && as_dir=.
 
7103
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7104
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7105
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7106
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7107
    break 2
 
7108
  fi
 
7109
done
 
7110
  done
 
7111
IFS=$as_save_IFS
 
7112
 
 
7113
fi
 
7114
fi
 
7115
LIPO=$ac_cv_prog_LIPO
 
7116
if test -n "$LIPO"; then
 
7117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7118
$as_echo "$LIPO" >&6; }
 
7119
else
 
7120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7121
$as_echo "no" >&6; }
 
7122
fi
 
7123
 
 
7124
 
 
7125
fi
 
7126
if test -z "$ac_cv_prog_LIPO"; then
 
7127
  ac_ct_LIPO=$LIPO
 
7128
  # Extract the first word of "lipo", so it can be a program name with args.
 
7129
set dummy lipo; ac_word=$2
 
7130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7131
$as_echo_n "checking for $ac_word... " >&6; }
 
7132
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
7133
  $as_echo_n "(cached) " >&6
 
7134
else
 
7135
  if test -n "$ac_ct_LIPO"; then
 
7136
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7137
else
 
7138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7139
for as_dir in $PATH
 
7140
do
 
7141
  IFS=$as_save_IFS
 
7142
  test -z "$as_dir" && as_dir=.
 
7143
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7144
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7145
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7146
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7147
    break 2
 
7148
  fi
 
7149
done
 
7150
  done
 
7151
IFS=$as_save_IFS
 
7152
 
 
7153
fi
 
7154
fi
 
7155
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7156
if test -n "$ac_ct_LIPO"; then
 
7157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7158
$as_echo "$ac_ct_LIPO" >&6; }
 
7159
else
 
7160
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7161
$as_echo "no" >&6; }
 
7162
fi
 
7163
 
 
7164
  if test "x$ac_ct_LIPO" = x; then
 
7165
    LIPO=":"
 
7166
  else
 
7167
    case $cross_compiling:$ac_tool_warned in
 
7168
yes:)
 
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7170
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7171
ac_tool_warned=yes ;;
 
7172
esac
 
7173
    LIPO=$ac_ct_LIPO
 
7174
  fi
 
7175
else
 
7176
  LIPO="$ac_cv_prog_LIPO"
 
7177
fi
 
7178
 
 
7179
    if test -n "$ac_tool_prefix"; then
 
7180
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7181
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7183
$as_echo_n "checking for $ac_word... " >&6; }
 
7184
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
7185
  $as_echo_n "(cached) " >&6
 
7186
else
 
7187
  if test -n "$OTOOL"; then
 
7188
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7189
else
 
7190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7191
for as_dir in $PATH
 
7192
do
 
7193
  IFS=$as_save_IFS
 
7194
  test -z "$as_dir" && as_dir=.
 
7195
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7197
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7198
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7199
    break 2
 
7200
  fi
 
7201
done
 
7202
  done
 
7203
IFS=$as_save_IFS
 
7204
 
 
7205
fi
 
7206
fi
 
7207
OTOOL=$ac_cv_prog_OTOOL
 
7208
if test -n "$OTOOL"; then
 
7209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7210
$as_echo "$OTOOL" >&6; }
 
7211
else
 
7212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7213
$as_echo "no" >&6; }
 
7214
fi
 
7215
 
 
7216
 
 
7217
fi
 
7218
if test -z "$ac_cv_prog_OTOOL"; then
 
7219
  ac_ct_OTOOL=$OTOOL
 
7220
  # Extract the first word of "otool", so it can be a program name with args.
 
7221
set dummy otool; ac_word=$2
 
7222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7223
$as_echo_n "checking for $ac_word... " >&6; }
 
7224
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
7225
  $as_echo_n "(cached) " >&6
 
7226
else
 
7227
  if test -n "$ac_ct_OTOOL"; then
 
7228
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7229
else
 
7230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7231
for as_dir in $PATH
 
7232
do
 
7233
  IFS=$as_save_IFS
 
7234
  test -z "$as_dir" && as_dir=.
 
7235
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7236
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7237
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7238
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7239
    break 2
 
7240
  fi
 
7241
done
 
7242
  done
 
7243
IFS=$as_save_IFS
 
7244
 
 
7245
fi
 
7246
fi
 
7247
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7248
if test -n "$ac_ct_OTOOL"; then
 
7249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7250
$as_echo "$ac_ct_OTOOL" >&6; }
 
7251
else
 
7252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7253
$as_echo "no" >&6; }
 
7254
fi
 
7255
 
 
7256
  if test "x$ac_ct_OTOOL" = x; then
 
7257
    OTOOL=":"
 
7258
  else
 
7259
    case $cross_compiling:$ac_tool_warned in
 
7260
yes:)
 
7261
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7262
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7263
ac_tool_warned=yes ;;
 
7264
esac
 
7265
    OTOOL=$ac_ct_OTOOL
 
7266
  fi
 
7267
else
 
7268
  OTOOL="$ac_cv_prog_OTOOL"
 
7269
fi
 
7270
 
 
7271
    if test -n "$ac_tool_prefix"; then
 
7272
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7273
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7275
$as_echo_n "checking for $ac_word... " >&6; }
 
7276
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
7277
  $as_echo_n "(cached) " >&6
 
7278
else
 
7279
  if test -n "$OTOOL64"; then
 
7280
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7281
else
 
7282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7283
for as_dir in $PATH
 
7284
do
 
7285
  IFS=$as_save_IFS
 
7286
  test -z "$as_dir" && as_dir=.
 
7287
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7288
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7289
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7290
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7291
    break 2
 
7292
  fi
 
7293
done
 
7294
  done
 
7295
IFS=$as_save_IFS
 
7296
 
 
7297
fi
 
7298
fi
 
7299
OTOOL64=$ac_cv_prog_OTOOL64
 
7300
if test -n "$OTOOL64"; then
 
7301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7302
$as_echo "$OTOOL64" >&6; }
 
7303
else
 
7304
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7305
$as_echo "no" >&6; }
 
7306
fi
 
7307
 
 
7308
 
 
7309
fi
 
7310
if test -z "$ac_cv_prog_OTOOL64"; then
 
7311
  ac_ct_OTOOL64=$OTOOL64
 
7312
  # Extract the first word of "otool64", so it can be a program name with args.
 
7313
set dummy otool64; ac_word=$2
 
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7315
$as_echo_n "checking for $ac_word... " >&6; }
 
7316
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
7317
  $as_echo_n "(cached) " >&6
 
7318
else
 
7319
  if test -n "$ac_ct_OTOOL64"; then
 
7320
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7321
else
 
7322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7323
for as_dir in $PATH
 
7324
do
 
7325
  IFS=$as_save_IFS
 
7326
  test -z "$as_dir" && as_dir=.
 
7327
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7328
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7329
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7330
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7331
    break 2
 
7332
  fi
 
7333
done
 
7334
  done
 
7335
IFS=$as_save_IFS
 
7336
 
 
7337
fi
 
7338
fi
 
7339
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7340
if test -n "$ac_ct_OTOOL64"; then
 
7341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7342
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7343
else
 
7344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7345
$as_echo "no" >&6; }
 
7346
fi
 
7347
 
 
7348
  if test "x$ac_ct_OTOOL64" = x; then
 
7349
    OTOOL64=":"
 
7350
  else
 
7351
    case $cross_compiling:$ac_tool_warned in
 
7352
yes:)
 
7353
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7354
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7355
ac_tool_warned=yes ;;
 
7356
esac
 
7357
    OTOOL64=$ac_ct_OTOOL64
 
7358
  fi
 
7359
else
 
7360
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7361
fi
 
7362
 
 
7363
 
 
7364
 
 
7365
 
 
7366
 
 
7367
 
 
7368
 
 
7369
 
 
7370
 
 
7371
 
 
7372
 
 
7373
 
 
7374
 
 
7375
 
 
7376
 
 
7377
 
 
7378
 
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
 
 
7386
 
 
7387
 
 
7388
 
 
7389
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7390
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7391
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
7392
  $as_echo_n "(cached) " >&6
 
7393
else
 
7394
  lt_cv_apple_cc_single_mod=no
 
7395
      if test -z "${LT_MULTI_MODULE}"; then
 
7396
        # By default we will add the -single_module flag. You can override
 
7397
        # by either setting the environment variable LT_MULTI_MODULE
 
7398
        # non-empty at configure time, or by adding -multi_module to the
 
7399
        # link flags.
 
7400
        rm -rf libconftest.dylib*
 
7401
        echo "int foo(void){return 1;}" > conftest.c
 
7402
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7403
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7404
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7405
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7406
        _lt_result=$?
 
7407
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7408
          lt_cv_apple_cc_single_mod=yes
 
7409
        else
 
7410
          cat conftest.err >&5
 
7411
        fi
 
7412
        rm -rf libconftest.dylib*
 
7413
        rm -f conftest.*
 
7414
      fi
 
7415
fi
 
7416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7417
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7418
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7419
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7420
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
7421
  $as_echo_n "(cached) " >&6
 
7422
else
 
7423
  lt_cv_ld_exported_symbols_list=no
 
7424
      save_LDFLAGS=$LDFLAGS
 
7425
      echo "_main" > conftest.sym
 
7426
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7427
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7428
/* end confdefs.h.  */
 
7429
 
 
7430
int
 
7431
main ()
 
7432
{
 
7433
 
 
7434
  ;
 
7435
  return 0;
 
7436
}
 
7437
_ACEOF
 
7438
if ac_fn_c_try_link "$LINENO"; then :
 
7439
  lt_cv_ld_exported_symbols_list=yes
 
7440
else
 
7441
  lt_cv_ld_exported_symbols_list=no
 
7442
fi
 
7443
rm -f core conftest.err conftest.$ac_objext \
 
7444
    conftest$ac_exeext conftest.$ac_ext
 
7445
        LDFLAGS="$save_LDFLAGS"
 
7446
 
 
7447
fi
 
7448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7449
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7450
    case $host_os in
 
7451
    rhapsody* | darwin1.[012])
 
7452
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7453
    darwin1.*)
 
7454
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7455
    darwin*) # darwin 5.x on
 
7456
      # if running on 10.5 or later, the deployment target defaults
 
7457
      # to the OS version, if on x86, and 10.4, the deployment
 
7458
      # target defaults to 10.4. Don't you love it?
 
7459
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7460
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7461
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7462
        10.[012]*)
 
7463
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7464
        10.*)
 
7465
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7466
      esac
 
7467
    ;;
 
7468
  esac
 
7469
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7470
      _lt_dar_single_mod='$single_module'
 
7471
    fi
 
7472
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7473
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7474
    else
 
7475
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7476
    fi
 
7477
    if test "$DSYMUTIL" != ":"; then
 
7478
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7479
    else
 
7480
      _lt_dsymutil=
 
7481
    fi
 
7482
    ;;
 
7483
  esac
 
7484
 
 
7485
for ac_header in dlfcn.h
 
7486
do :
 
7487
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7488
"
 
7489
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7490
  cat >>confdefs.h <<_ACEOF
 
7491
#define HAVE_DLFCN_H 1
 
7492
_ACEOF
 
7493
 
 
7494
fi
 
7495
 
 
7496
done
 
7497
 
 
7498
 
 
7499
 
 
7500
# Set options
 
7501
 
 
7502
 
 
7503
 
 
7504
        enable_dlopen=no
 
7505
 
 
7506
 
 
7507
 
 
7508
            # Check whether --enable-shared was given.
 
7509
if test "${enable_shared+set}" = set; then :
 
7510
  enableval=$enable_shared; p=${PACKAGE-default}
 
7511
    case $enableval in
 
7512
    yes) enable_shared=yes ;;
 
7513
    no) enable_shared=no ;;
 
7514
    *)
 
7515
      enable_shared=no
 
7516
      # Look at the argument we got.  We use all the common list separators.
 
7517
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7518
      for pkg in $enableval; do
 
7519
        IFS="$lt_save_ifs"
 
7520
        if test "X$pkg" = "X$p"; then
 
7521
          enable_shared=yes
 
7522
        fi
 
7523
      done
 
7524
      IFS="$lt_save_ifs"
 
7525
      ;;
 
7526
    esac
 
7527
else
 
7528
  enable_shared=yes
 
7529
fi
 
7530
 
 
7531
 
 
7532
 
 
7533
 
 
7534
 
 
7535
 
 
7536
 
 
7537
 
 
7538
 
 
7539
  # Check whether --enable-static was given.
 
7540
if test "${enable_static+set}" = set; then :
 
7541
  enableval=$enable_static; p=${PACKAGE-default}
 
7542
    case $enableval in
 
7543
    yes) enable_static=yes ;;
 
7544
    no) enable_static=no ;;
 
7545
    *)
 
7546
     enable_static=no
 
7547
      # Look at the argument we got.  We use all the common list separators.
 
7548
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7549
      for pkg in $enableval; do
 
7550
        IFS="$lt_save_ifs"
 
7551
        if test "X$pkg" = "X$p"; then
 
7552
          enable_static=yes
 
7553
        fi
 
7554
      done
 
7555
      IFS="$lt_save_ifs"
 
7556
      ;;
 
7557
    esac
 
7558
else
 
7559
  enable_static=yes
 
7560
fi
 
7561
 
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
 
 
7567
 
 
7568
 
 
7569
 
 
7570
 
 
7571
# Check whether --with-pic was given.
 
7572
if test "${with_pic+set}" = set; then :
 
7573
  withval=$with_pic; pic_mode="$withval"
 
7574
else
 
7575
  pic_mode=default
 
7576
fi
 
7577
 
 
7578
 
 
7579
test -z "$pic_mode" && pic_mode=default
 
7580
 
 
7581
 
 
7582
 
 
7583
 
 
7584
 
 
7585
 
 
7586
 
 
7587
  # Check whether --enable-fast-install was given.
 
7588
if test "${enable_fast_install+set}" = set; then :
 
7589
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7590
    case $enableval in
 
7591
    yes) enable_fast_install=yes ;;
 
7592
    no) enable_fast_install=no ;;
 
7593
    *)
 
7594
      enable_fast_install=no
 
7595
      # Look at the argument we got.  We use all the common list separators.
 
7596
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7597
      for pkg in $enableval; do
 
7598
        IFS="$lt_save_ifs"
 
7599
        if test "X$pkg" = "X$p"; then
 
7600
          enable_fast_install=yes
 
7601
        fi
 
7602
      done
 
7603
      IFS="$lt_save_ifs"
 
7604
      ;;
 
7605
    esac
 
7606
else
 
7607
  enable_fast_install=yes
 
7608
fi
 
7609
 
 
7610
 
 
7611
 
 
7612
 
 
7613
 
 
7614
 
 
7615
 
 
7616
 
 
7617
 
 
7618
 
 
7619
 
 
7620
# This can be used to rebuild libtool when needed
 
7621
LIBTOOL_DEPS="$ltmain"
 
7622
 
 
7623
# Always use our own libtool.
 
7624
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7625
 
 
7626
 
 
7627
 
 
7628
 
 
7629
 
 
7630
 
 
7631
 
 
7632
 
 
7633
 
 
7634
 
 
7635
 
 
7636
 
 
7637
 
 
7638
 
 
7639
 
 
7640
 
 
7641
 
 
7642
 
 
7643
 
 
7644
 
 
7645
 
 
7646
 
 
7647
 
 
7648
 
 
7649
 
 
7650
test -z "$LN_S" && LN_S="ln -s"
 
7651
 
 
7652
 
 
7653
 
 
7654
 
 
7655
 
 
7656
 
 
7657
 
 
7658
 
 
7659
 
 
7660
 
 
7661
 
 
7662
 
 
7663
 
 
7664
 
 
7665
if test -n "${ZSH_VERSION+set}" ; then
 
7666
   setopt NO_GLOB_SUBST
 
7667
fi
 
7668
 
 
7669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7670
$as_echo_n "checking for objdir... " >&6; }
 
7671
if test "${lt_cv_objdir+set}" = set; then :
 
7672
  $as_echo_n "(cached) " >&6
 
7673
else
 
7674
  rm -f .libs 2>/dev/null
 
7675
mkdir .libs 2>/dev/null
 
7676
if test -d .libs; then
 
7677
  lt_cv_objdir=.libs
 
7678
else
 
7679
  # MS-DOS does not allow filenames that begin with a dot.
 
7680
  lt_cv_objdir=_libs
 
7681
fi
 
7682
rmdir .libs 2>/dev/null
 
7683
fi
 
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7685
$as_echo "$lt_cv_objdir" >&6; }
 
7686
objdir=$lt_cv_objdir
 
7687
 
 
7688
 
 
7689
 
 
7690
 
 
7691
 
 
7692
cat >>confdefs.h <<_ACEOF
 
7693
#define LT_OBJDIR "$lt_cv_objdir/"
 
7694
_ACEOF
 
7695
 
 
7696
 
 
7697
 
 
7698
 
 
7699
 
 
7700
 
 
7701
 
 
7702
 
 
7703
 
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
 
 
7711
 
 
7712
case $host_os in
 
7713
aix3*)
 
7714
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7715
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7716
  # vanish in a puff of smoke.
 
7717
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7718
    COLLECT_NAMES=
 
7719
    export COLLECT_NAMES
 
7720
  fi
 
7721
  ;;
 
7722
esac
 
7723
 
 
7724
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7725
# metacharacters that are still active within double-quoted strings.
 
7726
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7727
 
 
7728
# Same as above, but do not quote variable references.
 
7729
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7730
 
 
7731
# Sed substitution to delay expansion of an escaped shell variable in a
 
7732
# double_quote_subst'ed string.
 
7733
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7734
 
 
7735
# Sed substitution to delay expansion of an escaped single quote.
 
7736
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7737
 
 
7738
# Sed substitution to avoid accidental globbing in evaled expressions
 
7739
no_glob_subst='s/\*/\\\*/g'
 
7740
 
 
7741
# Global variables:
 
7742
ofile=libtool
 
7743
can_build_shared=yes
 
7744
 
 
7745
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7746
# which needs '.lib').
 
7747
libext=a
 
7748
 
 
7749
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7750
 
 
7751
old_CC="$CC"
 
7752
old_CFLAGS="$CFLAGS"
 
7753
 
 
7754
# Set sane defaults for various variables
 
7755
test -z "$CC" && CC=cc
 
7756
test -z "$LTCC" && LTCC=$CC
 
7757
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7758
test -z "$LD" && LD=ld
 
7759
test -z "$ac_objext" && ac_objext=o
 
7760
 
 
7761
for cc_temp in $compiler""; do
 
7762
  case $cc_temp in
 
7763
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7764
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7765
    \-*) ;;
 
7766
    *) break;;
 
7767
  esac
 
7768
done
 
7769
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7770
 
 
7771
 
 
7772
# Only perform the check for file, if the check method requires it
 
7773
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7774
case $deplibs_check_method in
 
7775
file_magic*)
 
7776
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7777
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7778
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7779
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7780
  $as_echo_n "(cached) " >&6
 
7781
else
 
7782
  case $MAGIC_CMD in
 
7783
[\\/*] |  ?:[\\/]*)
 
7784
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7785
  ;;
 
7786
*)
 
7787
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7788
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7789
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7790
  for ac_dir in $ac_dummy; do
 
7791
    IFS="$lt_save_ifs"
 
7792
    test -z "$ac_dir" && ac_dir=.
 
7793
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7794
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7795
      if test -n "$file_magic_test_file"; then
 
7796
        case $deplibs_check_method in
 
7797
        "file_magic "*)
 
7798
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7799
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7800
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7801
            $EGREP "$file_magic_regex" > /dev/null; then
 
7802
            :
 
7803
          else
 
7804
            cat <<_LT_EOF 1>&2
 
7805
 
 
7806
*** Warning: the command libtool uses to detect shared libraries,
 
7807
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7808
*** The result is that libtool may fail to recognize shared libraries
 
7809
*** as such.  This will affect the creation of libtool libraries that
 
7810
*** depend on shared libraries, but programs linked with such libtool
 
7811
*** libraries will work regardless of this problem.  Nevertheless, you
 
7812
*** may want to report the problem to your system manager and/or to
 
7813
*** bug-libtool@gnu.org
 
7814
 
 
7815
_LT_EOF
 
7816
          fi ;;
 
7817
        esac
 
7818
      fi
 
7819
      break
 
7820
    fi
 
7821
  done
 
7822
  IFS="$lt_save_ifs"
 
7823
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7824
  ;;
 
7825
esac
 
7826
fi
 
7827
 
 
7828
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7829
if test -n "$MAGIC_CMD"; then
 
7830
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7831
$as_echo "$MAGIC_CMD" >&6; }
 
7832
else
 
7833
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7834
$as_echo "no" >&6; }
 
7835
fi
 
7836
 
 
7837
 
 
7838
 
 
7839
 
 
7840
 
 
7841
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7842
  if test -n "$ac_tool_prefix"; then
 
7843
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7844
$as_echo_n "checking for file... " >&6; }
 
7845
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7846
  $as_echo_n "(cached) " >&6
 
7847
else
 
7848
  case $MAGIC_CMD in
 
7849
[\\/*] |  ?:[\\/]*)
 
7850
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7851
  ;;
 
7852
*)
 
7853
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7854
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7855
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7856
  for ac_dir in $ac_dummy; do
 
7857
    IFS="$lt_save_ifs"
 
7858
    test -z "$ac_dir" && ac_dir=.
 
7859
    if test -f $ac_dir/file; then
 
7860
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7861
      if test -n "$file_magic_test_file"; then
 
7862
        case $deplibs_check_method in
 
7863
        "file_magic "*)
 
7864
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7865
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7866
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7867
            $EGREP "$file_magic_regex" > /dev/null; then
 
7868
            :
 
7869
          else
 
7870
            cat <<_LT_EOF 1>&2
 
7871
 
 
7872
*** Warning: the command libtool uses to detect shared libraries,
 
7873
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7874
*** The result is that libtool may fail to recognize shared libraries
 
7875
*** as such.  This will affect the creation of libtool libraries that
 
7876
*** depend on shared libraries, but programs linked with such libtool
 
7877
*** libraries will work regardless of this problem.  Nevertheless, you
 
7878
*** may want to report the problem to your system manager and/or to
 
7879
*** bug-libtool@gnu.org
 
7880
 
 
7881
_LT_EOF
 
7882
          fi ;;
 
7883
        esac
 
7884
      fi
 
7885
      break
 
7886
    fi
 
7887
  done
 
7888
  IFS="$lt_save_ifs"
 
7889
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7890
  ;;
 
7891
esac
 
7892
fi
 
7893
 
 
7894
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7895
if test -n "$MAGIC_CMD"; then
 
7896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7897
$as_echo "$MAGIC_CMD" >&6; }
 
7898
else
 
7899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7900
$as_echo "no" >&6; }
 
7901
fi
 
7902
 
 
7903
 
 
7904
  else
 
7905
    MAGIC_CMD=:
 
7906
  fi
 
7907
fi
 
7908
 
 
7909
  fi
 
7910
  ;;
 
7911
esac
 
7912
 
 
7913
# Use C for the default configuration in the libtool script
 
7914
 
 
7915
lt_save_CC="$CC"
 
7916
ac_ext=c
 
7917
ac_cpp='$CPP $CPPFLAGS'
 
7918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7921
 
 
7922
 
 
7923
# Source file extension for C test sources.
 
7924
ac_ext=c
 
7925
 
 
7926
# Object file extension for compiled C test sources.
 
7927
objext=o
 
7928
objext=$objext
 
7929
 
 
7930
# Code to be used in simple compile tests
 
7931
lt_simple_compile_test_code="int some_variable = 0;"
 
7932
 
 
7933
# Code to be used in simple link tests
 
7934
lt_simple_link_test_code='int main(){return(0);}'
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
# If no C compiler was specified, use CC.
 
7943
LTCC=${LTCC-"$CC"}
 
7944
 
 
7945
# If no C compiler flags were specified, use CFLAGS.
 
7946
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7947
 
 
7948
# Allow CC to be a program name with arguments.
 
7949
compiler=$CC
 
7950
 
 
7951
# Save the default compiler, since it gets overwritten when the other
 
7952
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7953
compiler_DEFAULT=$CC
 
7954
 
 
7955
# save warnings/boilerplate of simple test code
 
7956
ac_outfile=conftest.$ac_objext
 
7957
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7958
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7959
_lt_compiler_boilerplate=`cat conftest.err`
 
7960
$RM conftest*
 
7961
 
 
7962
ac_outfile=conftest.$ac_objext
 
7963
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7964
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7965
_lt_linker_boilerplate=`cat conftest.err`
 
7966
$RM -r conftest*
 
7967
 
 
7968
 
 
7969
## CAVEAT EMPTOR:
 
7970
## There is no encapsulation within the following macros, do not change
 
7971
## the running order or otherwise move them around unless you know exactly
 
7972
## what you are doing...
 
7973
if test -n "$compiler"; then
 
7974
 
 
7975
lt_prog_compiler_no_builtin_flag=
 
7976
 
 
7977
if test "$GCC" = yes; then
 
7978
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7979
 
 
7980
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7981
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7982
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
7983
  $as_echo_n "(cached) " >&6
 
7984
else
 
7985
  lt_cv_prog_compiler_rtti_exceptions=no
 
7986
   ac_outfile=conftest.$ac_objext
 
7987
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7988
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7989
   # Insert the option either (1) after the last *FLAGS variable, or
 
7990
   # (2) before a word containing "conftest.", or (3) at the end.
 
7991
   # Note that $ac_compile itself does not contain backslashes and begins
 
7992
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7993
   # The option is referenced via a variable to avoid confusing sed.
 
7994
   lt_compile=`echo "$ac_compile" | $SED \
 
7995
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7996
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7997
   -e 's:$: $lt_compiler_flag:'`
 
7998
   (eval echo "\"\$as_me:7998: $lt_compile\"" >&5)
 
7999
   (eval "$lt_compile" 2>conftest.err)
 
8000
   ac_status=$?
 
8001
   cat conftest.err >&5
 
8002
   echo "$as_me:8002: \$? = $ac_status" >&5
 
8003
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8004
     # The compiler can only warn and ignore the option if not recognized
 
8005
     # So say no if there are warnings other than the usual output.
 
8006
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8007
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8008
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8009
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8010
     fi
 
8011
   fi
 
8012
   $RM conftest*
 
8013
 
 
8014
fi
 
8015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8016
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8017
 
 
8018
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8019
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8020
else
 
8021
    :
 
8022
fi
 
8023
 
 
8024
fi
 
8025
 
 
8026
 
 
8027
 
 
8028
 
 
8029
 
 
8030
 
 
8031
  lt_prog_compiler_wl=
 
8032
lt_prog_compiler_pic=
 
8033
lt_prog_compiler_static=
 
8034
 
 
8035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8036
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8037
 
 
8038
  if test "$GCC" = yes; then
 
8039
    lt_prog_compiler_wl='-Wl,'
 
8040
    lt_prog_compiler_static='-static'
 
8041
 
 
8042
    case $host_os in
 
8043
      aix*)
 
8044
      # All AIX code is PIC.
 
8045
      if test "$host_cpu" = ia64; then
 
8046
        # AIX 5 now supports IA64 processor
 
8047
        lt_prog_compiler_static='-Bstatic'
 
8048
      fi
 
8049
      ;;
 
8050
 
 
8051
    amigaos*)
 
8052
      case $host_cpu in
 
8053
      powerpc)
 
8054
            # see comment about AmigaOS4 .so support
 
8055
            lt_prog_compiler_pic='-fPIC'
 
8056
        ;;
 
8057
      m68k)
 
8058
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8059
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8060
            # like `-m68040'.
 
8061
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8062
        ;;
 
8063
      esac
 
8064
      ;;
 
8065
 
 
8066
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8067
      # PIC is the default for these OSes.
 
8068
      ;;
 
8069
 
 
8070
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8071
      # This hack is so that the source file can tell whether it is being
 
8072
      # built for inclusion in a dll (and should export symbols for example).
 
8073
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8074
      # (--disable-auto-import) libraries
 
8075
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8076
      ;;
 
8077
 
 
8078
    darwin* | rhapsody*)
 
8079
      # PIC is the default on this platform
 
8080
      # Common symbols not allowed in MH_DYLIB files
 
8081
      lt_prog_compiler_pic='-fno-common'
 
8082
      ;;
 
8083
 
 
8084
    hpux*)
 
8085
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8086
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8087
      # sets the default TLS model and affects inlining.
 
8088
      case $host_cpu in
 
8089
      hppa*64*)
 
8090
        # +Z the default
 
8091
        ;;
 
8092
      *)
 
8093
        lt_prog_compiler_pic='-fPIC'
 
8094
        ;;
 
8095
      esac
 
8096
      ;;
 
8097
 
 
8098
    interix[3-9]*)
 
8099
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8100
      # Instead, we relocate shared libraries at runtime.
 
8101
      ;;
 
8102
 
 
8103
    msdosdjgpp*)
 
8104
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8105
      # on systems that don't support them.
 
8106
      lt_prog_compiler_can_build_shared=no
 
8107
      enable_shared=no
 
8108
      ;;
 
8109
 
 
8110
    *nto* | *qnx*)
 
8111
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8112
      # it will coredump.
 
8113
      lt_prog_compiler_pic='-fPIC -shared'
 
8114
      ;;
 
8115
 
 
8116
    sysv4*MP*)
 
8117
      if test -d /usr/nec; then
 
8118
        lt_prog_compiler_pic=-Kconform_pic
 
8119
      fi
 
8120
      ;;
 
8121
 
 
8122
    *)
 
8123
      lt_prog_compiler_pic='-fPIC'
 
8124
      ;;
 
8125
    esac
 
8126
  else
 
8127
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8128
    case $host_os in
 
8129
    aix*)
 
8130
      lt_prog_compiler_wl='-Wl,'
 
8131
      if test "$host_cpu" = ia64; then
 
8132
        # AIX 5 now supports IA64 processor
 
8133
        lt_prog_compiler_static='-Bstatic'
 
8134
      else
 
8135
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8136
      fi
 
8137
      ;;
 
8138
 
 
8139
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8140
      # This hack is so that the source file can tell whether it is being
 
8141
      # built for inclusion in a dll (and should export symbols for example).
 
8142
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8143
      ;;
 
8144
 
 
8145
    hpux9* | hpux10* | hpux11*)
 
8146
      lt_prog_compiler_wl='-Wl,'
 
8147
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8148
      # not for PA HP-UX.
 
8149
      case $host_cpu in
 
8150
      hppa*64*|ia64*)
 
8151
        # +Z the default
 
8152
        ;;
 
8153
      *)
 
8154
        lt_prog_compiler_pic='+Z'
 
8155
        ;;
 
8156
      esac
 
8157
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8158
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8159
      ;;
 
8160
 
 
8161
    irix5* | irix6* | nonstopux*)
 
8162
      lt_prog_compiler_wl='-Wl,'
 
8163
      # PIC (with -KPIC) is the default.
 
8164
      lt_prog_compiler_static='-non_shared'
 
8165
      ;;
 
8166
 
 
8167
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8168
      case $cc_basename in
 
8169
      # old Intel for x86_64 which still supported -KPIC.
 
8170
      ecc*)
 
8171
        lt_prog_compiler_wl='-Wl,'
 
8172
        lt_prog_compiler_pic='-KPIC'
 
8173
        lt_prog_compiler_static='-static'
 
8174
        ;;
 
8175
      # icc used to be incompatible with GCC.
 
8176
      # ICC 10 doesn't accept -KPIC any more.
 
8177
      icc* | ifort*)
 
8178
        lt_prog_compiler_wl='-Wl,'
 
8179
        lt_prog_compiler_pic='-fPIC'
 
8180
        lt_prog_compiler_static='-static'
 
8181
        ;;
 
8182
      # Lahey Fortran 8.1.
 
8183
      lf95*)
 
8184
        lt_prog_compiler_wl='-Wl,'
 
8185
        lt_prog_compiler_pic='--shared'
 
8186
        lt_prog_compiler_static='--static'
 
8187
        ;;
 
8188
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8189
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8190
        # which looks to be a dead project)
 
8191
        lt_prog_compiler_wl='-Wl,'
 
8192
        lt_prog_compiler_pic='-fpic'
 
8193
        lt_prog_compiler_static='-Bstatic'
 
8194
        ;;
 
8195
      ccc*)
 
8196
        lt_prog_compiler_wl='-Wl,'
 
8197
        # All Alpha code is PIC.
 
8198
        lt_prog_compiler_static='-non_shared'
 
8199
        ;;
 
8200
      xl*)
 
8201
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8202
        lt_prog_compiler_wl='-Wl,'
 
8203
        lt_prog_compiler_pic='-qpic'
 
8204
        lt_prog_compiler_static='-qstaticlink'
 
8205
        ;;
 
8206
      *)
 
8207
        case `$CC -V 2>&1 | sed 5q` in
 
8208
        *Sun\ C*)
 
8209
          # Sun C 5.9
 
8210
          lt_prog_compiler_pic='-KPIC'
 
8211
          lt_prog_compiler_static='-Bstatic'
 
8212
          lt_prog_compiler_wl='-Wl,'
 
8213
          ;;
 
8214
        *Sun\ F*)
 
8215
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8216
          lt_prog_compiler_pic='-KPIC'
 
8217
          lt_prog_compiler_static='-Bstatic'
 
8218
          lt_prog_compiler_wl=''
 
8219
          ;;
 
8220
        esac
 
8221
        ;;
 
8222
      esac
 
8223
      ;;
 
8224
 
 
8225
    newsos6)
 
8226
      lt_prog_compiler_pic='-KPIC'
 
8227
      lt_prog_compiler_static='-Bstatic'
 
8228
      ;;
 
8229
 
 
8230
    *nto* | *qnx*)
 
8231
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8232
      # it will coredump.
 
8233
      lt_prog_compiler_pic='-fPIC -shared'
 
8234
      ;;
 
8235
 
 
8236
    osf3* | osf4* | osf5*)
 
8237
      lt_prog_compiler_wl='-Wl,'
 
8238
      # All OSF/1 code is PIC.
 
8239
      lt_prog_compiler_static='-non_shared'
 
8240
      ;;
 
8241
 
 
8242
    rdos*)
 
8243
      lt_prog_compiler_static='-non_shared'
 
8244
      ;;
 
8245
 
 
8246
    solaris*)
 
8247
      lt_prog_compiler_pic='-KPIC'
 
8248
      lt_prog_compiler_static='-Bstatic'
 
8249
      case $cc_basename in
 
8250
      f77* | f90* | f95*)
 
8251
        lt_prog_compiler_wl='-Qoption ld ';;
 
8252
      *)
 
8253
        lt_prog_compiler_wl='-Wl,';;
 
8254
      esac
 
8255
      ;;
 
8256
 
 
8257
    sunos4*)
 
8258
      lt_prog_compiler_wl='-Qoption ld '
 
8259
      lt_prog_compiler_pic='-PIC'
 
8260
      lt_prog_compiler_static='-Bstatic'
 
8261
      ;;
 
8262
 
 
8263
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8264
      lt_prog_compiler_wl='-Wl,'
 
8265
      lt_prog_compiler_pic='-KPIC'
 
8266
      lt_prog_compiler_static='-Bstatic'
 
8267
      ;;
 
8268
 
 
8269
    sysv4*MP*)
 
8270
      if test -d /usr/nec ;then
 
8271
        lt_prog_compiler_pic='-Kconform_pic'
 
8272
        lt_prog_compiler_static='-Bstatic'
 
8273
      fi
 
8274
      ;;
 
8275
 
 
8276
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8277
      lt_prog_compiler_wl='-Wl,'
 
8278
      lt_prog_compiler_pic='-KPIC'
 
8279
      lt_prog_compiler_static='-Bstatic'
 
8280
      ;;
 
8281
 
 
8282
    unicos*)
 
8283
      lt_prog_compiler_wl='-Wl,'
 
8284
      lt_prog_compiler_can_build_shared=no
 
8285
      ;;
 
8286
 
 
8287
    uts4*)
 
8288
      lt_prog_compiler_pic='-pic'
 
8289
      lt_prog_compiler_static='-Bstatic'
 
8290
      ;;
 
8291
 
 
8292
    *)
 
8293
      lt_prog_compiler_can_build_shared=no
 
8294
      ;;
 
8295
    esac
 
8296
  fi
 
8297
 
 
8298
case $host_os in
 
8299
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8300
  *djgpp*)
 
8301
    lt_prog_compiler_pic=
 
8302
    ;;
 
8303
  *)
 
8304
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8305
    ;;
 
8306
esac
 
8307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
8308
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8309
 
 
8310
 
 
8311
 
 
8312
 
 
8313
 
 
8314
 
 
8315
#
 
8316
# Check to make sure the PIC flag actually works.
 
8317
#
 
8318
if test -n "$lt_prog_compiler_pic"; then
 
8319
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8320
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8321
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8322
  $as_echo_n "(cached) " >&6
 
8323
else
 
8324
  lt_cv_prog_compiler_pic_works=no
 
8325
   ac_outfile=conftest.$ac_objext
 
8326
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8327
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8328
   # Insert the option either (1) after the last *FLAGS variable, or
 
8329
   # (2) before a word containing "conftest.", or (3) at the end.
 
8330
   # Note that $ac_compile itself does not contain backslashes and begins
 
8331
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8332
   # The option is referenced via a variable to avoid confusing sed.
 
8333
   lt_compile=`echo "$ac_compile" | $SED \
 
8334
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8335
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8336
   -e 's:$: $lt_compiler_flag:'`
 
8337
   (eval echo "\"\$as_me:8337: $lt_compile\"" >&5)
 
8338
   (eval "$lt_compile" 2>conftest.err)
 
8339
   ac_status=$?
 
8340
   cat conftest.err >&5
 
8341
   echo "$as_me:8341: \$? = $ac_status" >&5
 
8342
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8343
     # The compiler can only warn and ignore the option if not recognized
 
8344
     # So say no if there are warnings other than the usual output.
 
8345
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8346
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8347
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8348
       lt_cv_prog_compiler_pic_works=yes
 
8349
     fi
 
8350
   fi
 
8351
   $RM conftest*
 
8352
 
 
8353
fi
 
8354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8355
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8356
 
 
8357
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8358
    case $lt_prog_compiler_pic in
 
8359
     "" | " "*) ;;
 
8360
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8361
     esac
 
8362
else
 
8363
    lt_prog_compiler_pic=
 
8364
     lt_prog_compiler_can_build_shared=no
 
8365
fi
 
8366
 
 
8367
fi
 
8368
 
 
8369
 
 
8370
 
 
8371
 
 
8372
 
 
8373
 
 
8374
#
 
8375
# Check to make sure the static flag actually works.
 
8376
#
 
8377
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8379
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8380
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8381
  $as_echo_n "(cached) " >&6
 
8382
else
 
8383
  lt_cv_prog_compiler_static_works=no
 
8384
   save_LDFLAGS="$LDFLAGS"
 
8385
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8386
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8387
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8388
     # The linker can only warn and ignore the option if not recognized
 
8389
     # So say no if there are warnings
 
8390
     if test -s conftest.err; then
 
8391
       # Append any errors to the config.log.
 
8392
       cat conftest.err 1>&5
 
8393
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8394
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8395
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8396
         lt_cv_prog_compiler_static_works=yes
 
8397
       fi
 
8398
     else
 
8399
       lt_cv_prog_compiler_static_works=yes
 
8400
     fi
 
8401
   fi
 
8402
   $RM -r conftest*
 
8403
   LDFLAGS="$save_LDFLAGS"
 
8404
 
 
8405
fi
 
8406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8407
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8408
 
 
8409
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8410
    :
 
8411
else
 
8412
    lt_prog_compiler_static=
 
8413
fi
 
8414
 
 
8415
 
 
8416
 
 
8417
 
 
8418
 
 
8419
 
 
8420
 
 
8421
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8422
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8423
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8424
  $as_echo_n "(cached) " >&6
 
8425
else
 
8426
  lt_cv_prog_compiler_c_o=no
 
8427
   $RM -r conftest 2>/dev/null
 
8428
   mkdir conftest
 
8429
   cd conftest
 
8430
   mkdir out
 
8431
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8432
 
 
8433
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8434
   # Insert the option either (1) after the last *FLAGS variable, or
 
8435
   # (2) before a word containing "conftest.", or (3) at the end.
 
8436
   # Note that $ac_compile itself does not contain backslashes and begins
 
8437
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8438
   lt_compile=`echo "$ac_compile" | $SED \
 
8439
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8440
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8441
   -e 's:$: $lt_compiler_flag:'`
 
8442
   (eval echo "\"\$as_me:8442: $lt_compile\"" >&5)
 
8443
   (eval "$lt_compile" 2>out/conftest.err)
 
8444
   ac_status=$?
 
8445
   cat out/conftest.err >&5
 
8446
   echo "$as_me:8446: \$? = $ac_status" >&5
 
8447
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8448
   then
 
8449
     # The compiler can only warn and ignore the option if not recognized
 
8450
     # So say no if there are warnings
 
8451
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8452
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8453
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8454
       lt_cv_prog_compiler_c_o=yes
 
8455
     fi
 
8456
   fi
 
8457
   chmod u+w . 2>&5
 
8458
   $RM conftest*
 
8459
   # SGI C++ compiler will create directory out/ii_files/ for
 
8460
   # template instantiation
 
8461
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8462
   $RM out/* && rmdir out
 
8463
   cd ..
 
8464
   $RM -r conftest
 
8465
   $RM conftest*
 
8466
 
 
8467
fi
 
8468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8469
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8470
 
 
8471
 
 
8472
 
 
8473
 
 
8474
 
 
8475
 
 
8476
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8477
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8478
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8479
  $as_echo_n "(cached) " >&6
 
8480
else
 
8481
  lt_cv_prog_compiler_c_o=no
 
8482
   $RM -r conftest 2>/dev/null
 
8483
   mkdir conftest
 
8484
   cd conftest
 
8485
   mkdir out
 
8486
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8487
 
 
8488
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8489
   # Insert the option either (1) after the last *FLAGS variable, or
 
8490
   # (2) before a word containing "conftest.", or (3) at the end.
 
8491
   # Note that $ac_compile itself does not contain backslashes and begins
 
8492
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8493
   lt_compile=`echo "$ac_compile" | $SED \
 
8494
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8495
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8496
   -e 's:$: $lt_compiler_flag:'`
 
8497
   (eval echo "\"\$as_me:8497: $lt_compile\"" >&5)
 
8498
   (eval "$lt_compile" 2>out/conftest.err)
 
8499
   ac_status=$?
 
8500
   cat out/conftest.err >&5
 
8501
   echo "$as_me:8501: \$? = $ac_status" >&5
 
8502
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8503
   then
 
8504
     # The compiler can only warn and ignore the option if not recognized
 
8505
     # So say no if there are warnings
 
8506
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8507
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8508
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8509
       lt_cv_prog_compiler_c_o=yes
 
8510
     fi
 
8511
   fi
 
8512
   chmod u+w . 2>&5
 
8513
   $RM conftest*
 
8514
   # SGI C++ compiler will create directory out/ii_files/ for
 
8515
   # template instantiation
 
8516
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8517
   $RM out/* && rmdir out
 
8518
   cd ..
 
8519
   $RM -r conftest
 
8520
   $RM conftest*
 
8521
 
 
8522
fi
 
8523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8524
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8525
 
 
8526
 
 
8527
 
 
8528
 
 
8529
hard_links="nottested"
 
8530
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8531
  # do not overwrite the value of need_locks provided by the user
 
8532
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8533
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8534
  hard_links=yes
 
8535
  $RM conftest*
 
8536
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8537
  touch conftest.a
 
8538
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8539
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8541
$as_echo "$hard_links" >&6; }
 
8542
  if test "$hard_links" = no; then
 
8543
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8544
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8545
    need_locks=warn
 
8546
  fi
 
8547
else
 
8548
  need_locks=no
 
8549
fi
 
8550
 
 
8551
 
 
8552
 
 
8553
 
 
8554
 
 
8555
 
 
8556
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8557
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8558
 
 
8559
  runpath_var=
 
8560
  allow_undefined_flag=
 
8561
  always_export_symbols=no
 
8562
  archive_cmds=
 
8563
  archive_expsym_cmds=
 
8564
  compiler_needs_object=no
 
8565
  enable_shared_with_static_runtimes=no
 
8566
  export_dynamic_flag_spec=
 
8567
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8568
  hardcode_automatic=no
 
8569
  hardcode_direct=no
 
8570
  hardcode_direct_absolute=no
 
8571
  hardcode_libdir_flag_spec=
 
8572
  hardcode_libdir_flag_spec_ld=
 
8573
  hardcode_libdir_separator=
 
8574
  hardcode_minus_L=no
 
8575
  hardcode_shlibpath_var=unsupported
 
8576
  inherit_rpath=no
 
8577
  link_all_deplibs=unknown
 
8578
  module_cmds=
 
8579
  module_expsym_cmds=
 
8580
  old_archive_from_new_cmds=
 
8581
  old_archive_from_expsyms_cmds=
 
8582
  thread_safe_flag_spec=
 
8583
  whole_archive_flag_spec=
 
8584
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8585
  # included in the symbol list
 
8586
  include_expsyms=
 
8587
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8588
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8589
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8590
  # as well as any symbol that contains `d'.
 
8591
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8592
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8593
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8594
  # the symbol is explicitly referenced.  Since portable code cannot
 
8595
  # rely on this symbol name, it's probably fine to never include it in
 
8596
  # preloaded symbol tables.
 
8597
  # Exclude shared library initialization/finalization symbols.
 
8598
  extract_expsyms_cmds=
 
8599
 
 
8600
  case $host_os in
 
8601
  cygwin* | mingw* | pw32* | cegcc*)
 
8602
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8603
    # When not using gcc, we currently assume that we are using
 
8604
    # Microsoft Visual C++.
 
8605
    if test "$GCC" != yes; then
 
8606
      with_gnu_ld=no
 
8607
    fi
 
8608
    ;;
 
8609
  interix*)
 
8610
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8611
    with_gnu_ld=yes
 
8612
    ;;
 
8613
  openbsd*)
 
8614
    with_gnu_ld=no
 
8615
    ;;
 
8616
  linux* | k*bsd*-gnu)
 
8617
    link_all_deplibs=no
 
8618
    ;;
 
8619
  esac
 
8620
 
 
8621
  ld_shlibs=yes
 
8622
  if test "$with_gnu_ld" = yes; then
 
8623
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8624
    wlarc='${wl}'
 
8625
 
 
8626
    # Set some defaults for GNU ld with shared library support. These
 
8627
    # are reset later if shared libraries are not supported. Putting them
 
8628
    # here allows them to be overridden if necessary.
 
8629
    runpath_var=LD_RUN_PATH
 
8630
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8631
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8632
    # ancient GNU ld didn't support --whole-archive et. al.
 
8633
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8634
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8635
    else
 
8636
      whole_archive_flag_spec=
 
8637
    fi
 
8638
    supports_anon_versioning=no
 
8639
    case `$LD -v 2>&1` in
 
8640
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8641
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8642
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8643
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8644
      *\ 2.11.*) ;; # other 2.11 versions
 
8645
      *) supports_anon_versioning=yes ;;
 
8646
    esac
 
8647
 
 
8648
    # See if GNU ld supports shared libraries.
 
8649
    case $host_os in
 
8650
    aix[3-9]*)
 
8651
      # On AIX/PPC, the GNU linker is very broken
 
8652
      if test "$host_cpu" != ia64; then
 
8653
        ld_shlibs=no
 
8654
        cat <<_LT_EOF 1>&2
 
8655
 
 
8656
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8657
*** to be unable to reliably create shared libraries on AIX.
 
8658
*** Therefore, libtool is disabling shared libraries support.  If you
 
8659
*** really care for shared libraries, you may want to modify your PATH
 
8660
*** so that a non-GNU linker is found, and then restart.
 
8661
 
 
8662
_LT_EOF
 
8663
      fi
 
8664
      ;;
 
8665
 
 
8666
    amigaos*)
 
8667
      case $host_cpu in
 
8668
      powerpc)
 
8669
            # see comment about AmigaOS4 .so support
 
8670
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8671
            archive_expsym_cmds=''
 
8672
        ;;
 
8673
      m68k)
 
8674
            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)'
 
8675
            hardcode_libdir_flag_spec='-L$libdir'
 
8676
            hardcode_minus_L=yes
 
8677
        ;;
 
8678
      esac
 
8679
      ;;
 
8680
 
 
8681
    beos*)
 
8682
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8683
        allow_undefined_flag=unsupported
 
8684
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8685
        # support --undefined.  This deserves some investigation.  FIXME
 
8686
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8687
      else
 
8688
        ld_shlibs=no
 
8689
      fi
 
8690
      ;;
 
8691
 
 
8692
    cygwin* | mingw* | pw32* | cegcc*)
 
8693
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8694
      # as there is no search path for DLLs.
 
8695
      hardcode_libdir_flag_spec='-L$libdir'
 
8696
      allow_undefined_flag=unsupported
 
8697
      always_export_symbols=no
 
8698
      enable_shared_with_static_runtimes=yes
 
8699
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8700
 
 
8701
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8702
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8703
        # If the export-symbols file already is a .def file (1st line
 
8704
        # is EXPORTS), use it as is; otherwise, prepend...
 
8705
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8706
          cp $export_symbols $output_objdir/$soname.def;
 
8707
        else
 
8708
          echo EXPORTS > $output_objdir/$soname.def;
 
8709
          cat $export_symbols >> $output_objdir/$soname.def;
 
8710
        fi~
 
8711
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8712
      else
 
8713
        ld_shlibs=no
 
8714
      fi
 
8715
      ;;
 
8716
 
 
8717
    interix[3-9]*)
 
8718
      hardcode_direct=no
 
8719
      hardcode_shlibpath_var=no
 
8720
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8721
      export_dynamic_flag_spec='${wl}-E'
 
8722
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8723
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8724
      # default) and relocated if they conflict, which is a slow very memory
 
8725
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8726
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8727
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8728
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8729
      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'
 
8730
      ;;
 
8731
 
 
8732
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8733
      tmp_diet=no
 
8734
      if test "$host_os" = linux-dietlibc; then
 
8735
        case $cc_basename in
 
8736
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8737
        esac
 
8738
      fi
 
8739
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8740
         && test "$tmp_diet" = no
 
8741
      then
 
8742
        tmp_addflag=
 
8743
        tmp_sharedflag='-shared'
 
8744
        case $cc_basename,$host_cpu in
 
8745
        pgcc*)                          # Portland Group C compiler
 
8746
          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'
 
8747
          tmp_addflag=' $pic_flag'
 
8748
          ;;
 
8749
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8750
          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'
 
8751
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8752
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8753
          tmp_addflag=' -i_dynamic' ;;
 
8754
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8755
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8756
        ifc* | ifort*)                  # Intel Fortran compiler
 
8757
          tmp_addflag=' -nofor_main' ;;
 
8758
        lf95*)                          # Lahey Fortran 8.1
 
8759
          whole_archive_flag_spec=
 
8760
          tmp_sharedflag='--shared' ;;
 
8761
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8762
          tmp_sharedflag='-qmkshrobj'
 
8763
          tmp_addflag= ;;
 
8764
        esac
 
8765
        case `$CC -V 2>&1 | sed 5q` in
 
8766
        *Sun\ C*)                       # Sun C 5.9
 
8767
          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'
 
8768
          compiler_needs_object=yes
 
8769
          tmp_sharedflag='-G' ;;
 
8770
        *Sun\ F*)                       # Sun Fortran 8.3
 
8771
          tmp_sharedflag='-G' ;;
 
8772
        esac
 
8773
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8774
 
 
8775
        if test "x$supports_anon_versioning" = xyes; then
 
8776
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8777
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8778
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8779
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8780
        fi
 
8781
 
 
8782
        case $cc_basename in
 
8783
        xlf*)
 
8784
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8785
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8786
          hardcode_libdir_flag_spec=
 
8787
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8788
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8789
          if test "x$supports_anon_versioning" = xyes; then
 
8790
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8791
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8792
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8793
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8794
          fi
 
8795
          ;;
 
8796
        esac
 
8797
      else
 
8798
        ld_shlibs=no
 
8799
      fi
 
8800
      ;;
 
8801
 
 
8802
    netbsd* | netbsdelf*-gnu)
 
8803
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8804
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8805
        wlarc=
 
8806
      else
 
8807
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8808
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8809
      fi
 
8810
      ;;
 
8811
 
 
8812
    solaris*)
 
8813
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8814
        ld_shlibs=no
 
8815
        cat <<_LT_EOF 1>&2
 
8816
 
 
8817
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8818
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8819
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8820
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8821
*** your PATH or compiler configuration so that the native linker is
 
8822
*** used, and then restart.
 
8823
 
 
8824
_LT_EOF
 
8825
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8826
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8827
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8828
      else
 
8829
        ld_shlibs=no
 
8830
      fi
 
8831
      ;;
 
8832
 
 
8833
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8834
      case `$LD -v 2>&1` in
 
8835
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8836
        ld_shlibs=no
 
8837
        cat <<_LT_EOF 1>&2
 
8838
 
 
8839
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8840
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8841
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8842
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8843
*** your PATH or compiler configuration so that the native linker is
 
8844
*** used, and then restart.
 
8845
 
 
8846
_LT_EOF
 
8847
        ;;
 
8848
        *)
 
8849
          # For security reasons, it is highly recommended that you always
 
8850
          # use absolute paths for naming shared libraries, and exclude the
 
8851
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8852
          # requires that you compile everything twice, which is a pain.
 
8853
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8854
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8855
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8856
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8857
          else
 
8858
            ld_shlibs=no
 
8859
          fi
 
8860
        ;;
 
8861
      esac
 
8862
      ;;
 
8863
 
 
8864
    sunos4*)
 
8865
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8866
      wlarc=
 
8867
      hardcode_direct=yes
 
8868
      hardcode_shlibpath_var=no
 
8869
      ;;
 
8870
 
 
8871
    *)
 
8872
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8873
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8874
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8875
      else
 
8876
        ld_shlibs=no
 
8877
      fi
 
8878
      ;;
 
8879
    esac
 
8880
 
 
8881
    if test "$ld_shlibs" = no; then
 
8882
      runpath_var=
 
8883
      hardcode_libdir_flag_spec=
 
8884
      export_dynamic_flag_spec=
 
8885
      whole_archive_flag_spec=
 
8886
    fi
 
8887
  else
 
8888
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8889
    case $host_os in
 
8890
    aix3*)
 
8891
      allow_undefined_flag=unsupported
 
8892
      always_export_symbols=yes
 
8893
      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'
 
8894
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8895
      # are no directories specified by -L.
 
8896
      hardcode_minus_L=yes
 
8897
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8898
        # Neither direct hardcoding nor static linking is supported with a
 
8899
        # broken collect2.
 
8900
        hardcode_direct=unsupported
 
8901
      fi
 
8902
      ;;
 
8903
 
 
8904
    aix[4-9]*)
 
8905
      if test "$host_cpu" = ia64; then
 
8906
        # On IA64, the linker does run time linking by default, so we don't
 
8907
        # have to do anything special.
 
8908
        aix_use_runtimelinking=no
 
8909
        exp_sym_flag='-Bexport'
 
8910
        no_entry_flag=""
 
8911
      else
 
8912
        # If we're using GNU nm, then we don't want the "-C" option.
 
8913
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8914
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8915
          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'
 
8916
        else
 
8917
          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'
 
8918
        fi
 
8919
        aix_use_runtimelinking=no
 
8920
 
 
8921
        # Test if we are trying to use run time linking or normal
 
8922
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8923
        # need to do runtime linking.
 
8924
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8925
          for ld_flag in $LDFLAGS; do
 
8926
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8927
            aix_use_runtimelinking=yes
 
8928
            break
 
8929
          fi
 
8930
          done
 
8931
          ;;
 
8932
        esac
 
8933
 
 
8934
        exp_sym_flag='-bexport'
 
8935
        no_entry_flag='-bnoentry'
 
8936
      fi
 
8937
 
 
8938
      # When large executables or shared objects are built, AIX ld can
 
8939
      # have problems creating the table of contents.  If linking a library
 
8940
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8941
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8942
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8943
 
 
8944
      archive_cmds=''
 
8945
      hardcode_direct=yes
 
8946
      hardcode_direct_absolute=yes
 
8947
      hardcode_libdir_separator=':'
 
8948
      link_all_deplibs=yes
 
8949
      file_list_spec='${wl}-f,'
 
8950
 
 
8951
      if test "$GCC" = yes; then
 
8952
        case $host_os in aix4.[012]|aix4.[012].*)
 
8953
        # We only want to do this on AIX 4.2 and lower, the check
 
8954
        # below for broken collect2 doesn't work under 4.3+
 
8955
          collect2name=`${CC} -print-prog-name=collect2`
 
8956
          if test -f "$collect2name" &&
 
8957
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8958
          then
 
8959
          # We have reworked collect2
 
8960
          :
 
8961
          else
 
8962
          # We have old collect2
 
8963
          hardcode_direct=unsupported
 
8964
          # It fails to find uninstalled libraries when the uninstalled
 
8965
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8966
          # to unsupported forces relinking
 
8967
          hardcode_minus_L=yes
 
8968
          hardcode_libdir_flag_spec='-L$libdir'
 
8969
          hardcode_libdir_separator=
 
8970
          fi
 
8971
          ;;
 
8972
        esac
 
8973
        shared_flag='-shared'
 
8974
        if test "$aix_use_runtimelinking" = yes; then
 
8975
          shared_flag="$shared_flag "'${wl}-G'
 
8976
        fi
 
8977
        link_all_deplibs=no
 
8978
      else
 
8979
        # not using gcc
 
8980
        if test "$host_cpu" = ia64; then
 
8981
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8982
        # chokes on -Wl,-G. The following line is correct:
 
8983
          shared_flag='-G'
 
8984
        else
 
8985
          if test "$aix_use_runtimelinking" = yes; then
 
8986
            shared_flag='${wl}-G'
 
8987
          else
 
8988
            shared_flag='${wl}-bM:SRE'
 
8989
          fi
 
8990
        fi
 
8991
      fi
 
8992
 
 
8993
      export_dynamic_flag_spec='${wl}-bexpall'
 
8994
      # It seems that -bexpall does not export symbols beginning with
 
8995
      # underscore (_), so it is better to generate a list of symbols to export.
 
8996
      always_export_symbols=yes
 
8997
      if test "$aix_use_runtimelinking" = yes; then
 
8998
        # Warning - without using the other runtime loading flags (-brtl),
 
8999
        # -berok will link without error, but may produce a broken library.
 
9000
        allow_undefined_flag='-berok'
 
9001
        # Determine the default libpath from the value encoded in an
 
9002
        # empty executable.
 
9003
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9004
/* end confdefs.h.  */
 
9005
 
 
9006
int
 
9007
main ()
 
9008
{
 
9009
 
 
9010
  ;
 
9011
  return 0;
 
9012
}
 
9013
_ACEOF
 
9014
if ac_fn_c_try_link "$LINENO"; then :
 
9015
 
 
9016
lt_aix_libpath_sed='
 
9017
    /Import File Strings/,/^$/ {
 
9018
        /^0/ {
 
9019
            s/^0  *\(.*\)$/\1/
 
9020
            p
 
9021
        }
 
9022
    }'
 
9023
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9024
# Check for a 64-bit object if we didn't find anything.
 
9025
if test -z "$aix_libpath"; then
 
9026
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9027
fi
 
9028
fi
 
9029
rm -f core conftest.err conftest.$ac_objext \
 
9030
    conftest$ac_exeext conftest.$ac_ext
 
9031
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9032
 
 
9033
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9034
        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"
 
9035
      else
 
9036
        if test "$host_cpu" = ia64; then
 
9037
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9038
          allow_undefined_flag="-z nodefs"
 
9039
          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"
 
9040
        else
 
9041
         # Determine the default libpath from the value encoded in an
 
9042
         # empty executable.
 
9043
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9044
/* end confdefs.h.  */
 
9045
 
 
9046
int
 
9047
main ()
 
9048
{
 
9049
 
 
9050
  ;
 
9051
  return 0;
 
9052
}
 
9053
_ACEOF
 
9054
if ac_fn_c_try_link "$LINENO"; then :
 
9055
 
 
9056
lt_aix_libpath_sed='
 
9057
    /Import File Strings/,/^$/ {
 
9058
        /^0/ {
 
9059
            s/^0  *\(.*\)$/\1/
 
9060
            p
 
9061
        }
 
9062
    }'
 
9063
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9064
# Check for a 64-bit object if we didn't find anything.
 
9065
if test -z "$aix_libpath"; then
 
9066
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9067
fi
 
9068
fi
 
9069
rm -f core conftest.err conftest.$ac_objext \
 
9070
    conftest$ac_exeext conftest.$ac_ext
 
9071
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9072
 
 
9073
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9074
          # Warning - without using the other run time loading flags,
 
9075
          # -berok will link without error, but may produce a broken library.
 
9076
          no_undefined_flag=' ${wl}-bernotok'
 
9077
          allow_undefined_flag=' ${wl}-berok'
 
9078
          # Exported symbols can be pulled into shared objects from archives
 
9079
          whole_archive_flag_spec='$convenience'
 
9080
          archive_cmds_need_lc=yes
 
9081
          # This is similar to how AIX traditionally builds its shared libraries.
 
9082
          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'
 
9083
        fi
 
9084
      fi
 
9085
      ;;
 
9086
 
 
9087
    amigaos*)
 
9088
      case $host_cpu in
 
9089
      powerpc)
 
9090
            # see comment about AmigaOS4 .so support
 
9091
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9092
            archive_expsym_cmds=''
 
9093
        ;;
 
9094
      m68k)
 
9095
            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)'
 
9096
            hardcode_libdir_flag_spec='-L$libdir'
 
9097
            hardcode_minus_L=yes
 
9098
        ;;
 
9099
      esac
 
9100
      ;;
 
9101
 
 
9102
    bsdi[45]*)
 
9103
      export_dynamic_flag_spec=-rdynamic
 
9104
      ;;
 
9105
 
 
9106
    cygwin* | mingw* | pw32* | cegcc*)
 
9107
      # When not using gcc, we currently assume that we are using
 
9108
      # Microsoft Visual C++.
 
9109
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9110
      # no search path for DLLs.
 
9111
      hardcode_libdir_flag_spec=' '
 
9112
      allow_undefined_flag=unsupported
 
9113
      # Tell ltmain to make .lib files, not .a files.
 
9114
      libext=lib
 
9115
      # Tell ltmain to make .dll files, not .so files.
 
9116
      shrext_cmds=".dll"
 
9117
      # FIXME: Setting linknames here is a bad hack.
 
9118
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9119
      # The linker will automatically build a .lib file if we build a DLL.
 
9120
      old_archive_from_new_cmds='true'
 
9121
      # FIXME: Should let the user specify the lib program.
 
9122
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9123
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9124
      enable_shared_with_static_runtimes=yes
 
9125
      ;;
 
9126
 
 
9127
    darwin* | rhapsody*)
 
9128
 
 
9129
 
 
9130
  archive_cmds_need_lc=no
 
9131
  hardcode_direct=no
 
9132
  hardcode_automatic=yes
 
9133
  hardcode_shlibpath_var=unsupported
 
9134
  whole_archive_flag_spec=''
 
9135
  link_all_deplibs=yes
 
9136
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9137
  case $cc_basename in
 
9138
     ifort*) _lt_dar_can_shared=yes ;;
 
9139
     *) _lt_dar_can_shared=$GCC ;;
 
9140
  esac
 
9141
  if test "$_lt_dar_can_shared" = "yes"; then
 
9142
    output_verbose_link_cmd=echo
 
9143
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9144
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9145
    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}"
 
9146
    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}"
 
9147
 
 
9148
  else
 
9149
  ld_shlibs=no
 
9150
  fi
 
9151
 
 
9152
      ;;
 
9153
 
 
9154
    dgux*)
 
9155
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9156
      hardcode_libdir_flag_spec='-L$libdir'
 
9157
      hardcode_shlibpath_var=no
 
9158
      ;;
 
9159
 
 
9160
    freebsd1*)
 
9161
      ld_shlibs=no
 
9162
      ;;
 
9163
 
 
9164
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9165
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9166
    # does not break anything, and helps significantly (at the cost of a little
 
9167
    # extra space).
 
9168
    freebsd2.2*)
 
9169
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9170
      hardcode_libdir_flag_spec='-R$libdir'
 
9171
      hardcode_direct=yes
 
9172
      hardcode_shlibpath_var=no
 
9173
      ;;
 
9174
 
 
9175
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9176
    freebsd2*)
 
9177
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9178
      hardcode_direct=yes
 
9179
      hardcode_minus_L=yes
 
9180
      hardcode_shlibpath_var=no
 
9181
      ;;
 
9182
 
 
9183
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9184
    freebsd* | dragonfly*)
 
9185
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9186
      hardcode_libdir_flag_spec='-R$libdir'
 
9187
      hardcode_direct=yes
 
9188
      hardcode_shlibpath_var=no
 
9189
      ;;
 
9190
 
 
9191
    hpux9*)
 
9192
      if test "$GCC" = yes; then
 
9193
        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'
 
9194
      else
 
9195
        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'
 
9196
      fi
 
9197
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9198
      hardcode_libdir_separator=:
 
9199
      hardcode_direct=yes
 
9200
 
 
9201
      # hardcode_minus_L: Not really in the search PATH,
 
9202
      # but as the default location of the library.
 
9203
      hardcode_minus_L=yes
 
9204
      export_dynamic_flag_spec='${wl}-E'
 
9205
      ;;
 
9206
 
 
9207
    hpux10*)
 
9208
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9209
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9210
      else
 
9211
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9212
      fi
 
9213
      if test "$with_gnu_ld" = no; then
 
9214
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9215
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9216
        hardcode_libdir_separator=:
 
9217
        hardcode_direct=yes
 
9218
        hardcode_direct_absolute=yes
 
9219
        export_dynamic_flag_spec='${wl}-E'
 
9220
        # hardcode_minus_L: Not really in the search PATH,
 
9221
        # but as the default location of the library.
 
9222
        hardcode_minus_L=yes
 
9223
      fi
 
9224
      ;;
 
9225
 
 
9226
    hpux11*)
 
9227
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9228
        case $host_cpu in
 
9229
        hppa*64*)
 
9230
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9231
          ;;
 
9232
        ia64*)
 
9233
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9234
          ;;
 
9235
        *)
 
9236
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9237
          ;;
 
9238
        esac
 
9239
      else
 
9240
        case $host_cpu in
 
9241
        hppa*64*)
 
9242
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9243
          ;;
 
9244
        ia64*)
 
9245
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9246
          ;;
 
9247
        *)
 
9248
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9249
          ;;
 
9250
        esac
 
9251
      fi
 
9252
      if test "$with_gnu_ld" = no; then
 
9253
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9254
        hardcode_libdir_separator=:
 
9255
 
 
9256
        case $host_cpu in
 
9257
        hppa*64*|ia64*)
 
9258
          hardcode_direct=no
 
9259
          hardcode_shlibpath_var=no
 
9260
          ;;
 
9261
        *)
 
9262
          hardcode_direct=yes
 
9263
          hardcode_direct_absolute=yes
 
9264
          export_dynamic_flag_spec='${wl}-E'
 
9265
 
 
9266
          # hardcode_minus_L: Not really in the search PATH,
 
9267
          # but as the default location of the library.
 
9268
          hardcode_minus_L=yes
 
9269
          ;;
 
9270
        esac
 
9271
      fi
 
9272
      ;;
 
9273
 
 
9274
    irix5* | irix6* | nonstopux*)
 
9275
      if test "$GCC" = yes; then
 
9276
        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'
 
9277
        # Try to use the -exported_symbol ld option, if it does not
 
9278
        # work, assume that -exports_file does not work either and
 
9279
        # implicitly export all symbols.
 
9280
        save_LDFLAGS="$LDFLAGS"
 
9281
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9282
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9283
/* end confdefs.h.  */
 
9284
int foo(void) {}
 
9285
_ACEOF
 
9286
if ac_fn_c_try_link "$LINENO"; then :
 
9287
  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'
 
9288
 
 
9289
fi
 
9290
rm -f core conftest.err conftest.$ac_objext \
 
9291
    conftest$ac_exeext conftest.$ac_ext
 
9292
        LDFLAGS="$save_LDFLAGS"
 
9293
      else
 
9294
        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'
 
9295
        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'
 
9296
      fi
 
9297
      archive_cmds_need_lc='no'
 
9298
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9299
      hardcode_libdir_separator=:
 
9300
      inherit_rpath=yes
 
9301
      link_all_deplibs=yes
 
9302
      ;;
 
9303
 
 
9304
    netbsd* | netbsdelf*-gnu)
 
9305
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9306
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9307
      else
 
9308
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9309
      fi
 
9310
      hardcode_libdir_flag_spec='-R$libdir'
 
9311
      hardcode_direct=yes
 
9312
      hardcode_shlibpath_var=no
 
9313
      ;;
 
9314
 
 
9315
    newsos6)
 
9316
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9317
      hardcode_direct=yes
 
9318
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9319
      hardcode_libdir_separator=:
 
9320
      hardcode_shlibpath_var=no
 
9321
      ;;
 
9322
 
 
9323
    *nto* | *qnx*)
 
9324
      ;;
 
9325
 
 
9326
    openbsd*)
 
9327
      if test -f /usr/libexec/ld.so; then
 
9328
        hardcode_direct=yes
 
9329
        hardcode_shlibpath_var=no
 
9330
        hardcode_direct_absolute=yes
 
9331
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9332
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9333
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9334
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9335
          export_dynamic_flag_spec='${wl}-E'
 
9336
        else
 
9337
          case $host_os in
 
9338
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9339
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9340
             hardcode_libdir_flag_spec='-R$libdir'
 
9341
             ;;
 
9342
           *)
 
9343
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9344
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9345
             ;;
 
9346
          esac
 
9347
        fi
 
9348
      else
 
9349
        ld_shlibs=no
 
9350
      fi
 
9351
      ;;
 
9352
 
 
9353
    os2*)
 
9354
      hardcode_libdir_flag_spec='-L$libdir'
 
9355
      hardcode_minus_L=yes
 
9356
      allow_undefined_flag=unsupported
 
9357
      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'
 
9358
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9359
      ;;
 
9360
 
 
9361
    osf3*)
 
9362
      if test "$GCC" = yes; then
 
9363
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9364
        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'
 
9365
      else
 
9366
        allow_undefined_flag=' -expect_unresolved \*'
 
9367
        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'
 
9368
      fi
 
9369
      archive_cmds_need_lc='no'
 
9370
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9371
      hardcode_libdir_separator=:
 
9372
      ;;
 
9373
 
 
9374
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9375
      if test "$GCC" = yes; then
 
9376
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9377
        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'
 
9378
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9379
      else
 
9380
        allow_undefined_flag=' -expect_unresolved \*'
 
9381
        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'
 
9382
        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~
 
9383
        $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'
 
9384
 
 
9385
        # Both c and cxx compiler support -rpath directly
 
9386
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9387
      fi
 
9388
      archive_cmds_need_lc='no'
 
9389
      hardcode_libdir_separator=:
 
9390
      ;;
 
9391
 
 
9392
    solaris*)
 
9393
      no_undefined_flag=' -z defs'
 
9394
      if test "$GCC" = yes; then
 
9395
        wlarc='${wl}'
 
9396
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9397
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9398
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9399
      else
 
9400
        case `$CC -V 2>&1` in
 
9401
        *"Compilers 5.0"*)
 
9402
          wlarc=''
 
9403
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9404
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9405
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9406
          ;;
 
9407
        *)
 
9408
          wlarc='${wl}'
 
9409
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9410
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9411
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9412
          ;;
 
9413
        esac
 
9414
      fi
 
9415
      hardcode_libdir_flag_spec='-R$libdir'
 
9416
      hardcode_shlibpath_var=no
 
9417
      case $host_os in
 
9418
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9419
      *)
 
9420
        # The compiler driver will combine and reorder linker options,
 
9421
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9422
        # but is careful enough not to reorder.
 
9423
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9424
        if test "$GCC" = yes; then
 
9425
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9426
        else
 
9427
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9428
        fi
 
9429
        ;;
 
9430
      esac
 
9431
      link_all_deplibs=yes
 
9432
      ;;
 
9433
 
 
9434
    sunos4*)
 
9435
      if test "x$host_vendor" = xsequent; then
 
9436
        # Use $CC to link under sequent, because it throws in some extra .o
 
9437
        # files that make .init and .fini sections work.
 
9438
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9439
      else
 
9440
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9441
      fi
 
9442
      hardcode_libdir_flag_spec='-L$libdir'
 
9443
      hardcode_direct=yes
 
9444
      hardcode_minus_L=yes
 
9445
      hardcode_shlibpath_var=no
 
9446
      ;;
 
9447
 
 
9448
    sysv4)
 
9449
      case $host_vendor in
 
9450
        sni)
 
9451
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9452
          hardcode_direct=yes # is this really true???
 
9453
        ;;
 
9454
        siemens)
 
9455
          ## LD is ld it makes a PLAMLIB
 
9456
          ## CC just makes a GrossModule.
 
9457
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9458
          reload_cmds='$CC -r -o $output$reload_objs'
 
9459
          hardcode_direct=no
 
9460
        ;;
 
9461
        motorola)
 
9462
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9463
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9464
        ;;
 
9465
      esac
 
9466
      runpath_var='LD_RUN_PATH'
 
9467
      hardcode_shlibpath_var=no
 
9468
      ;;
 
9469
 
 
9470
    sysv4.3*)
 
9471
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9472
      hardcode_shlibpath_var=no
 
9473
      export_dynamic_flag_spec='-Bexport'
 
9474
      ;;
 
9475
 
 
9476
    sysv4*MP*)
 
9477
      if test -d /usr/nec; then
 
9478
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9479
        hardcode_shlibpath_var=no
 
9480
        runpath_var=LD_RUN_PATH
 
9481
        hardcode_runpath_var=yes
 
9482
        ld_shlibs=yes
 
9483
      fi
 
9484
      ;;
 
9485
 
 
9486
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9487
      no_undefined_flag='${wl}-z,text'
 
9488
      archive_cmds_need_lc=no
 
9489
      hardcode_shlibpath_var=no
 
9490
      runpath_var='LD_RUN_PATH'
 
9491
 
 
9492
      if test "$GCC" = yes; then
 
9493
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9494
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9495
      else
 
9496
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9497
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9498
      fi
 
9499
      ;;
 
9500
 
 
9501
    sysv5* | sco3.2v5* | sco5v6*)
 
9502
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9503
      # link with -lc, and that would cause any symbols used from libc to
 
9504
      # always be unresolved, which means just about no library would
 
9505
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9506
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9507
      # as -z defs.
 
9508
      no_undefined_flag='${wl}-z,text'
 
9509
      allow_undefined_flag='${wl}-z,nodefs'
 
9510
      archive_cmds_need_lc=no
 
9511
      hardcode_shlibpath_var=no
 
9512
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9513
      hardcode_libdir_separator=':'
 
9514
      link_all_deplibs=yes
 
9515
      export_dynamic_flag_spec='${wl}-Bexport'
 
9516
      runpath_var='LD_RUN_PATH'
 
9517
 
 
9518
      if test "$GCC" = yes; then
 
9519
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9520
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9521
      else
 
9522
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9523
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9524
      fi
 
9525
      ;;
 
9526
 
 
9527
    uts4*)
 
9528
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9529
      hardcode_libdir_flag_spec='-L$libdir'
 
9530
      hardcode_shlibpath_var=no
 
9531
      ;;
 
9532
 
 
9533
    *)
 
9534
      ld_shlibs=no
 
9535
      ;;
 
9536
    esac
 
9537
 
 
9538
    if test x$host_vendor = xsni; then
 
9539
      case $host in
 
9540
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9541
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9542
        ;;
 
9543
      esac
 
9544
    fi
 
9545
  fi
 
9546
 
 
9547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9548
$as_echo "$ld_shlibs" >&6; }
 
9549
test "$ld_shlibs" = no && can_build_shared=no
 
9550
 
 
9551
with_gnu_ld=$with_gnu_ld
 
9552
 
 
9553
 
 
9554
 
 
9555
 
 
9556
 
 
9557
 
 
9558
 
 
9559
 
 
9560
 
 
9561
 
 
9562
 
 
9563
 
 
9564
 
 
9565
 
 
9566
 
 
9567
#
 
9568
# Do we need to explicitly link libc?
 
9569
#
 
9570
case "x$archive_cmds_need_lc" in
 
9571
x|xyes)
 
9572
  # Assume -lc should be added
 
9573
  archive_cmds_need_lc=yes
 
9574
 
 
9575
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9576
    case $archive_cmds in
 
9577
    *'~'*)
 
9578
      # FIXME: we may have to deal with multi-command sequences.
 
9579
      ;;
 
9580
    '$CC '*)
 
9581
      # Test whether the compiler implicitly links with -lc since on some
 
9582
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9583
      # to ld, don't add -lc before -lgcc.
 
9584
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9585
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9586
      $RM conftest*
 
9587
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9588
 
 
9589
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9590
  (eval $ac_compile) 2>&5
 
9591
  ac_status=$?
 
9592
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9593
  test $ac_status = 0; } 2>conftest.err; then
 
9594
        soname=conftest
 
9595
        lib=conftest
 
9596
        libobjs=conftest.$ac_objext
 
9597
        deplibs=
 
9598
        wl=$lt_prog_compiler_wl
 
9599
        pic_flag=$lt_prog_compiler_pic
 
9600
        compiler_flags=-v
 
9601
        linker_flags=-v
 
9602
        verstring=
 
9603
        output_objdir=.
 
9604
        libname=conftest
 
9605
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9606
        allow_undefined_flag=
 
9607
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9608
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9609
  ac_status=$?
 
9610
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9611
  test $ac_status = 0; }
 
9612
        then
 
9613
          archive_cmds_need_lc=no
 
9614
        else
 
9615
          archive_cmds_need_lc=yes
 
9616
        fi
 
9617
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9618
      else
 
9619
        cat conftest.err 1>&5
 
9620
      fi
 
9621
      $RM conftest*
 
9622
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9623
$as_echo "$archive_cmds_need_lc" >&6; }
 
9624
      ;;
 
9625
    esac
 
9626
  fi
 
9627
  ;;
 
9628
esac
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
 
9644
 
 
9645
 
 
9646
 
 
9647
 
 
9648
 
 
9649
 
 
9650
 
 
9651
 
 
9652
 
 
9653
 
 
9654
 
 
9655
 
 
9656
 
 
9657
 
 
9658
 
 
9659
 
 
9660
 
 
9661
 
 
9662
 
 
9663
 
 
9664
 
 
9665
 
 
9666
 
 
9667
 
 
9668
 
 
9669
 
 
9670
 
 
9671
 
 
9672
 
 
9673
 
 
9674
 
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
 
 
9680
 
 
9681
 
 
9682
 
 
9683
 
 
9684
 
 
9685
 
 
9686
 
 
9687
 
 
9688
 
 
9689
 
 
9690
 
 
9691
 
 
9692
 
 
9693
 
 
9694
 
 
9695
 
 
9696
 
 
9697
 
 
9698
 
 
9699
 
 
9700
 
 
9701
 
 
9702
 
 
9703
 
 
9704
 
 
9705
 
 
9706
 
 
9707
 
 
9708
 
 
9709
 
 
9710
 
 
9711
 
 
9712
 
 
9713
 
 
9714
 
 
9715
 
 
9716
 
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
 
 
9723
 
 
9724
 
 
9725
 
 
9726
 
 
9727
 
 
9728
 
 
9729
 
 
9730
 
 
9731
 
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
 
 
9737
 
 
9738
 
 
9739
 
 
9740
 
 
9741
 
 
9742
 
 
9743
 
 
9744
 
 
9745
 
 
9746
 
 
9747
 
 
9748
 
 
9749
 
 
9750
 
 
9751
 
 
9752
 
 
9753
 
 
9754
 
 
9755
 
 
9756
 
 
9757
 
 
9758
 
 
9759
 
 
9760
 
 
9761
 
 
9762
 
 
9763
 
 
9764
 
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
 
 
9773
 
 
9774
 
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
 
 
9782
 
 
9783
 
 
9784
 
 
9785
 
 
9786
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9787
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9788
 
 
9789
if test "$GCC" = yes; then
 
9790
  case $host_os in
 
9791
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9792
    *) lt_awk_arg="/^libraries:/" ;;
 
9793
  esac
 
9794
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9795
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9796
    # if the path contains ";" then we assume it to be the separator
 
9797
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9798
    # assumed that no part of a normal pathname contains ";" but that should
 
9799
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9800
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9801
  else
 
9802
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9803
  fi
 
9804
  # Ok, now we have the path, separated by spaces, we can step through it
 
9805
  # and add multilib dir if necessary.
 
9806
  lt_tmp_lt_search_path_spec=
 
9807
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9808
  for lt_sys_path in $lt_search_path_spec; do
 
9809
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9810
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9811
    else
 
9812
      test -d "$lt_sys_path" && \
 
9813
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9814
    fi
 
9815
  done
 
9816
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9817
BEGIN {RS=" "; FS="/|\n";} {
 
9818
  lt_foo="";
 
9819
  lt_count=0;
 
9820
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9821
    if ($lt_i != "" && $lt_i != ".") {
 
9822
      if ($lt_i == "..") {
 
9823
        lt_count++;
 
9824
      } else {
 
9825
        if (lt_count == 0) {
 
9826
          lt_foo="/" $lt_i lt_foo;
 
9827
        } else {
 
9828
          lt_count--;
 
9829
        }
 
9830
      }
 
9831
    }
 
9832
  }
 
9833
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9834
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9835
}'`
 
9836
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9837
else
 
9838
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9839
fi
 
9840
library_names_spec=
 
9841
libname_spec='lib$name'
 
9842
soname_spec=
 
9843
shrext_cmds=".so"
 
9844
postinstall_cmds=
 
9845
postuninstall_cmds=
 
9846
finish_cmds=
 
9847
finish_eval=
 
9848
shlibpath_var=
 
9849
shlibpath_overrides_runpath=unknown
 
9850
version_type=none
 
9851
dynamic_linker="$host_os ld.so"
 
9852
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9853
need_lib_prefix=unknown
 
9854
hardcode_into_libs=no
 
9855
 
 
9856
# when you set need_version to no, make sure it does not cause -set_version
 
9857
# flags to be left without arguments
 
9858
need_version=unknown
 
9859
 
 
9860
case $host_os in
 
9861
aix3*)
 
9862
  version_type=linux
 
9863
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9864
  shlibpath_var=LIBPATH
 
9865
 
 
9866
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9867
  soname_spec='${libname}${release}${shared_ext}$major'
 
9868
  ;;
 
9869
 
 
9870
aix[4-9]*)
 
9871
  version_type=linux
 
9872
  need_lib_prefix=no
 
9873
  need_version=no
 
9874
  hardcode_into_libs=yes
 
9875
  if test "$host_cpu" = ia64; then
 
9876
    # AIX 5 supports IA64
 
9877
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9878
    shlibpath_var=LD_LIBRARY_PATH
 
9879
  else
 
9880
    # With GCC up to 2.95.x, collect2 would create an import file
 
9881
    # for dependence libraries.  The import file would start with
 
9882
    # the line `#! .'.  This would cause the generated library to
 
9883
    # depend on `.', always an invalid library.  This was fixed in
 
9884
    # development snapshots of GCC prior to 3.0.
 
9885
    case $host_os in
 
9886
      aix4 | aix4.[01] | aix4.[01].*)
 
9887
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9888
           echo ' yes '
 
9889
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9890
        :
 
9891
      else
 
9892
        can_build_shared=no
 
9893
      fi
 
9894
      ;;
 
9895
    esac
 
9896
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9897
    # soname into executable. Probably we can add versioning support to
 
9898
    # collect2, so additional links can be useful in future.
 
9899
    if test "$aix_use_runtimelinking" = yes; then
 
9900
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9901
      # instead of lib<name>.a to let people know that these are not
 
9902
      # typical AIX shared libraries.
 
9903
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9904
    else
 
9905
      # We preserve .a as extension for shared libraries through AIX4.2
 
9906
      # and later when we are not doing run time linking.
 
9907
      library_names_spec='${libname}${release}.a $libname.a'
 
9908
      soname_spec='${libname}${release}${shared_ext}$major'
 
9909
    fi
 
9910
    shlibpath_var=LIBPATH
 
9911
  fi
 
9912
  ;;
 
9913
 
 
9914
amigaos*)
 
9915
  case $host_cpu in
 
9916
  powerpc)
 
9917
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9918
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9919
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9920
    ;;
 
9921
  m68k)
 
9922
    library_names_spec='$libname.ixlibrary $libname.a'
 
9923
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9924
    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'
 
9925
    ;;
 
9926
  esac
 
9927
  ;;
 
9928
 
 
9929
beos*)
 
9930
  library_names_spec='${libname}${shared_ext}'
 
9931
  dynamic_linker="$host_os ld.so"
 
9932
  shlibpath_var=LIBRARY_PATH
 
9933
  ;;
 
9934
 
 
9935
bsdi[45]*)
 
9936
  version_type=linux
 
9937
  need_version=no
 
9938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9939
  soname_spec='${libname}${release}${shared_ext}$major'
 
9940
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9941
  shlibpath_var=LD_LIBRARY_PATH
 
9942
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9943
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9944
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9945
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9946
  # libtool to hard-code these into programs
 
9947
  ;;
 
9948
 
 
9949
cygwin* | mingw* | pw32* | cegcc*)
 
9950
  version_type=windows
 
9951
  shrext_cmds=".dll"
 
9952
  need_version=no
 
9953
  need_lib_prefix=no
 
9954
 
 
9955
  case $GCC,$host_os in
 
9956
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9957
    library_names_spec='$libname.dll.a'
 
9958
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9959
    postinstall_cmds='base_file=`basename \${file}`~
 
9960
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9961
      dldir=$destdir/`dirname \$dlpath`~
 
9962
      test -d \$dldir || mkdir -p \$dldir~
 
9963
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9964
      chmod a+x \$dldir/$dlname~
 
9965
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9966
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9967
      fi'
 
9968
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9969
      dlpath=$dir/\$dldll~
 
9970
       $RM \$dlpath'
 
9971
    shlibpath_overrides_runpath=yes
 
9972
 
 
9973
    case $host_os in
 
9974
    cygwin*)
 
9975
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9976
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9977
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9978
      ;;
 
9979
    mingw* | cegcc*)
 
9980
      # MinGW DLLs use traditional 'lib' prefix
 
9981
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9982
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9983
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9984
        # It is most probably a Windows format PATH printed by
 
9985
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9986
        # path with ; separators, and with drive letters. We can handle the
 
9987
        # drive letters (cygwin fileutils understands them), so leave them,
 
9988
        # especially as we might pass files found there to a mingw objdump,
 
9989
        # which wouldn't understand a cygwinified path. Ahh.
 
9990
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9991
      else
 
9992
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9993
      fi
 
9994
      ;;
 
9995
    pw32*)
 
9996
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9997
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9998
      ;;
 
9999
    esac
 
10000
    ;;
 
10001
 
 
10002
  *)
 
10003
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10004
    ;;
 
10005
  esac
 
10006
  dynamic_linker='Win32 ld.exe'
 
10007
  # FIXME: first we should search . and the directory the executable is in
 
10008
  shlibpath_var=PATH
 
10009
  ;;
 
10010
 
 
10011
darwin* | rhapsody*)
 
10012
  dynamic_linker="$host_os dyld"
 
10013
  version_type=darwin
 
10014
  need_lib_prefix=no
 
10015
  need_version=no
 
10016
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10017
  soname_spec='${libname}${release}${major}$shared_ext'
 
10018
  shlibpath_overrides_runpath=yes
 
10019
  shlibpath_var=DYLD_LIBRARY_PATH
 
10020
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10021
 
 
10022
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10023
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10024
  ;;
 
10025
 
 
10026
dgux*)
 
10027
  version_type=linux
 
10028
  need_lib_prefix=no
 
10029
  need_version=no
 
10030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10031
  soname_spec='${libname}${release}${shared_ext}$major'
 
10032
  shlibpath_var=LD_LIBRARY_PATH
 
10033
  ;;
 
10034
 
 
10035
freebsd1*)
 
10036
  dynamic_linker=no
 
10037
  ;;
 
10038
 
 
10039
freebsd* | dragonfly*)
 
10040
  # DragonFly does not have aout.  When/if they implement a new
 
10041
  # versioning mechanism, adjust this.
 
10042
  if test -x /usr/bin/objformat; then
 
10043
    objformat=`/usr/bin/objformat`
 
10044
  else
 
10045
    case $host_os in
 
10046
    freebsd[123]*) objformat=aout ;;
 
10047
    *) objformat=elf ;;
 
10048
    esac
 
10049
  fi
 
10050
  version_type=freebsd-$objformat
 
10051
  case $version_type in
 
10052
    freebsd-elf*)
 
10053
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10054
      need_version=no
 
10055
      need_lib_prefix=no
 
10056
      ;;
 
10057
    freebsd-*)
 
10058
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10059
      need_version=yes
 
10060
      ;;
 
10061
  esac
 
10062
  shlibpath_var=LD_LIBRARY_PATH
 
10063
  case $host_os in
 
10064
  freebsd2*)
 
10065
    shlibpath_overrides_runpath=yes
 
10066
    ;;
 
10067
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10068
    shlibpath_overrides_runpath=yes
 
10069
    hardcode_into_libs=yes
 
10070
    ;;
 
10071
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10072
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10073
    shlibpath_overrides_runpath=no
 
10074
    hardcode_into_libs=yes
 
10075
    ;;
 
10076
  *) # from 4.6 on, and DragonFly
 
10077
    shlibpath_overrides_runpath=yes
 
10078
    hardcode_into_libs=yes
 
10079
    ;;
 
10080
  esac
 
10081
  ;;
 
10082
 
 
10083
gnu*)
 
10084
  version_type=linux
 
10085
  need_lib_prefix=no
 
10086
  need_version=no
 
10087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10088
  soname_spec='${libname}${release}${shared_ext}$major'
 
10089
  shlibpath_var=LD_LIBRARY_PATH
 
10090
  hardcode_into_libs=yes
 
10091
  ;;
 
10092
 
 
10093
hpux9* | hpux10* | hpux11*)
 
10094
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10095
  # link against other versions.
 
10096
  version_type=sunos
 
10097
  need_lib_prefix=no
 
10098
  need_version=no
 
10099
  case $host_cpu in
 
10100
  ia64*)
 
10101
    shrext_cmds='.so'
 
10102
    hardcode_into_libs=yes
 
10103
    dynamic_linker="$host_os dld.so"
 
10104
    shlibpath_var=LD_LIBRARY_PATH
 
10105
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10106
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10107
    soname_spec='${libname}${release}${shared_ext}$major'
 
10108
    if test "X$HPUX_IA64_MODE" = X32; then
 
10109
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10110
    else
 
10111
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10112
    fi
 
10113
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10114
    ;;
 
10115
  hppa*64*)
 
10116
    shrext_cmds='.sl'
 
10117
    hardcode_into_libs=yes
 
10118
    dynamic_linker="$host_os dld.sl"
 
10119
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10120
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10121
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10122
    soname_spec='${libname}${release}${shared_ext}$major'
 
10123
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10124
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10125
    ;;
 
10126
  *)
 
10127
    shrext_cmds='.sl'
 
10128
    dynamic_linker="$host_os dld.sl"
 
10129
    shlibpath_var=SHLIB_PATH
 
10130
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10131
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10132
    soname_spec='${libname}${release}${shared_ext}$major'
 
10133
    ;;
 
10134
  esac
 
10135
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10136
  postinstall_cmds='chmod 555 $lib'
 
10137
  ;;
 
10138
 
 
10139
interix[3-9]*)
 
10140
  version_type=linux
 
10141
  need_lib_prefix=no
 
10142
  need_version=no
 
10143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10144
  soname_spec='${libname}${release}${shared_ext}$major'
 
10145
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10146
  shlibpath_var=LD_LIBRARY_PATH
 
10147
  shlibpath_overrides_runpath=no
 
10148
  hardcode_into_libs=yes
 
10149
  ;;
 
10150
 
 
10151
irix5* | irix6* | nonstopux*)
 
10152
  case $host_os in
 
10153
    nonstopux*) version_type=nonstopux ;;
 
10154
    *)
 
10155
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10156
                version_type=linux
 
10157
        else
 
10158
                version_type=irix
 
10159
        fi ;;
 
10160
  esac
 
10161
  need_lib_prefix=no
 
10162
  need_version=no
 
10163
  soname_spec='${libname}${release}${shared_ext}$major'
 
10164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10165
  case $host_os in
 
10166
  irix5* | nonstopux*)
 
10167
    libsuff= shlibsuff=
 
10168
    ;;
 
10169
  *)
 
10170
    case $LD in # libtool.m4 will add one of these switches to LD
 
10171
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10172
      libsuff= shlibsuff= libmagic=32-bit;;
 
10173
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10174
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10175
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10176
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10177
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10178
    esac
 
10179
    ;;
 
10180
  esac
 
10181
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10182
  shlibpath_overrides_runpath=no
 
10183
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10184
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10185
  hardcode_into_libs=yes
 
10186
  ;;
 
10187
 
 
10188
# No shared lib support for Linux oldld, aout, or coff.
 
10189
linux*oldld* | linux*aout* | linux*coff*)
 
10190
  dynamic_linker=no
 
10191
  ;;
 
10192
 
 
10193
# This must be Linux ELF.
 
10194
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10195
  version_type=linux
 
10196
  need_lib_prefix=no
 
10197
  need_version=no
 
10198
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10199
  soname_spec='${libname}${release}${shared_ext}$major'
 
10200
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10201
  shlibpath_var=LD_LIBRARY_PATH
 
10202
  shlibpath_overrides_runpath=no
 
10203
  # Some binutils ld are patched to set DT_RUNPATH
 
10204
  save_LDFLAGS=$LDFLAGS
 
10205
  save_libdir=$libdir
 
10206
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10207
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10208
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10209
/* end confdefs.h.  */
 
10210
 
 
10211
int
 
10212
main ()
 
10213
{
 
10214
 
 
10215
  ;
 
10216
  return 0;
 
10217
}
 
10218
_ACEOF
 
10219
if ac_fn_c_try_link "$LINENO"; then :
 
10220
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10221
  shlibpath_overrides_runpath=yes
 
10222
fi
 
10223
fi
 
10224
rm -f core conftest.err conftest.$ac_objext \
 
10225
    conftest$ac_exeext conftest.$ac_ext
 
10226
  LDFLAGS=$save_LDFLAGS
 
10227
  libdir=$save_libdir
 
10228
 
 
10229
  # This implies no fast_install, which is unacceptable.
 
10230
  # Some rework will be needed to allow for fast_install
 
10231
  # before this can be enabled.
 
10232
  hardcode_into_libs=yes
 
10233
 
 
10234
  # Append ld.so.conf contents to the search path
 
10235
  if test -f /etc/ld.so.conf; then
 
10236
    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' ' '`
 
10237
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10238
  fi
 
10239
 
 
10240
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10241
  # powerpc, because MkLinux only supported shared libraries with the
 
10242
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10243
  # most powerpc-linux boxes support dynamic linking these days and
 
10244
  # people can always --disable-shared, the test was removed, and we
 
10245
  # assume the GNU/Linux dynamic linker is in use.
 
10246
  dynamic_linker='GNU/Linux ld.so'
 
10247
  ;;
 
10248
 
 
10249
netbsdelf*-gnu)
 
10250
  version_type=linux
 
10251
  need_lib_prefix=no
 
10252
  need_version=no
 
10253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10254
  soname_spec='${libname}${release}${shared_ext}$major'
 
10255
  shlibpath_var=LD_LIBRARY_PATH
 
10256
  shlibpath_overrides_runpath=no
 
10257
  hardcode_into_libs=yes
 
10258
  dynamic_linker='NetBSD ld.elf_so'
 
10259
  ;;
 
10260
 
 
10261
netbsd*)
 
10262
  version_type=sunos
 
10263
  need_lib_prefix=no
 
10264
  need_version=no
 
10265
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10266
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10267
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10268
    dynamic_linker='NetBSD (a.out) ld.so'
 
10269
  else
 
10270
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10271
    soname_spec='${libname}${release}${shared_ext}$major'
 
10272
    dynamic_linker='NetBSD ld.elf_so'
 
10273
  fi
 
10274
  shlibpath_var=LD_LIBRARY_PATH
 
10275
  shlibpath_overrides_runpath=yes
 
10276
  hardcode_into_libs=yes
 
10277
  ;;
 
10278
 
 
10279
newsos6)
 
10280
  version_type=linux
 
10281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10282
  shlibpath_var=LD_LIBRARY_PATH
 
10283
  shlibpath_overrides_runpath=yes
 
10284
  ;;
 
10285
 
 
10286
*nto* | *qnx*)
 
10287
  version_type=qnx
 
10288
  need_lib_prefix=no
 
10289
  need_version=no
 
10290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10291
  soname_spec='${libname}${release}${shared_ext}$major'
 
10292
  shlibpath_var=LD_LIBRARY_PATH
 
10293
  shlibpath_overrides_runpath=no
 
10294
  hardcode_into_libs=yes
 
10295
  dynamic_linker='ldqnx.so'
 
10296
  ;;
 
10297
 
 
10298
openbsd*)
 
10299
  version_type=sunos
 
10300
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10301
  need_lib_prefix=no
 
10302
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10303
  case $host_os in
 
10304
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10305
    *)                          need_version=no  ;;
 
10306
  esac
 
10307
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10308
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10309
  shlibpath_var=LD_LIBRARY_PATH
 
10310
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10311
    case $host_os in
 
10312
      openbsd2.[89] | openbsd2.[89].*)
 
10313
        shlibpath_overrides_runpath=no
 
10314
        ;;
 
10315
      *)
 
10316
        shlibpath_overrides_runpath=yes
 
10317
        ;;
 
10318
      esac
 
10319
  else
 
10320
    shlibpath_overrides_runpath=yes
 
10321
  fi
 
10322
  ;;
 
10323
 
 
10324
os2*)
 
10325
  libname_spec='$name'
 
10326
  shrext_cmds=".dll"
 
10327
  need_lib_prefix=no
 
10328
  library_names_spec='$libname${shared_ext} $libname.a'
 
10329
  dynamic_linker='OS/2 ld.exe'
 
10330
  shlibpath_var=LIBPATH
 
10331
  ;;
 
10332
 
 
10333
osf3* | osf4* | osf5*)
 
10334
  version_type=osf
 
10335
  need_lib_prefix=no
 
10336
  need_version=no
 
10337
  soname_spec='${libname}${release}${shared_ext}$major'
 
10338
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10339
  shlibpath_var=LD_LIBRARY_PATH
 
10340
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10341
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10342
  ;;
 
10343
 
 
10344
rdos*)
 
10345
  dynamic_linker=no
 
10346
  ;;
 
10347
 
 
10348
solaris*)
 
10349
  version_type=linux
 
10350
  need_lib_prefix=no
 
10351
  need_version=no
 
10352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10353
  soname_spec='${libname}${release}${shared_ext}$major'
 
10354
  shlibpath_var=LD_LIBRARY_PATH
 
10355
  shlibpath_overrides_runpath=yes
 
10356
  hardcode_into_libs=yes
 
10357
  # ldd complains unless libraries are executable
 
10358
  postinstall_cmds='chmod +x $lib'
 
10359
  ;;
 
10360
 
 
10361
sunos4*)
 
10362
  version_type=sunos
 
10363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10364
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10365
  shlibpath_var=LD_LIBRARY_PATH
 
10366
  shlibpath_overrides_runpath=yes
 
10367
  if test "$with_gnu_ld" = yes; then
 
10368
    need_lib_prefix=no
 
10369
  fi
 
10370
  need_version=yes
 
10371
  ;;
 
10372
 
 
10373
sysv4 | sysv4.3*)
 
10374
  version_type=linux
 
10375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10376
  soname_spec='${libname}${release}${shared_ext}$major'
 
10377
  shlibpath_var=LD_LIBRARY_PATH
 
10378
  case $host_vendor in
 
10379
    sni)
 
10380
      shlibpath_overrides_runpath=no
 
10381
      need_lib_prefix=no
 
10382
      runpath_var=LD_RUN_PATH
 
10383
      ;;
 
10384
    siemens)
 
10385
      need_lib_prefix=no
 
10386
      ;;
 
10387
    motorola)
 
10388
      need_lib_prefix=no
 
10389
      need_version=no
 
10390
      shlibpath_overrides_runpath=no
 
10391
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10392
      ;;
 
10393
  esac
 
10394
  ;;
 
10395
 
 
10396
sysv4*MP*)
 
10397
  if test -d /usr/nec ;then
 
10398
    version_type=linux
 
10399
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10400
    soname_spec='$libname${shared_ext}.$major'
 
10401
    shlibpath_var=LD_LIBRARY_PATH
 
10402
  fi
 
10403
  ;;
 
10404
 
 
10405
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10406
  version_type=freebsd-elf
 
10407
  need_lib_prefix=no
 
10408
  need_version=no
 
10409
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10410
  soname_spec='${libname}${release}${shared_ext}$major'
 
10411
  shlibpath_var=LD_LIBRARY_PATH
 
10412
  shlibpath_overrides_runpath=yes
 
10413
  hardcode_into_libs=yes
 
10414
  if test "$with_gnu_ld" = yes; then
 
10415
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10416
  else
 
10417
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10418
    case $host_os in
 
10419
      sco3.2v5*)
 
10420
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10421
        ;;
 
10422
    esac
 
10423
  fi
 
10424
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10425
  ;;
 
10426
 
 
10427
tpf*)
 
10428
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10429
  version_type=linux
 
10430
  need_lib_prefix=no
 
10431
  need_version=no
 
10432
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10433
  shlibpath_var=LD_LIBRARY_PATH
 
10434
  shlibpath_overrides_runpath=no
 
10435
  hardcode_into_libs=yes
 
10436
  ;;
 
10437
 
 
10438
uts4*)
 
10439
  version_type=linux
 
10440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10441
  soname_spec='${libname}${release}${shared_ext}$major'
 
10442
  shlibpath_var=LD_LIBRARY_PATH
 
10443
  ;;
 
10444
 
 
10445
*)
 
10446
  dynamic_linker=no
 
10447
  ;;
 
10448
esac
 
10449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10450
$as_echo "$dynamic_linker" >&6; }
 
10451
test "$dynamic_linker" = no && can_build_shared=no
 
10452
 
 
10453
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10454
if test "$GCC" = yes; then
 
10455
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10456
fi
 
10457
 
 
10458
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10459
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10460
fi
 
10461
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10462
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10463
fi
 
10464
 
 
10465
 
 
10466
 
 
10467
 
 
10468
 
 
10469
 
 
10470
 
 
10471
 
 
10472
 
 
10473
 
 
10474
 
 
10475
 
 
10476
 
 
10477
 
 
10478
 
 
10479
 
 
10480
 
 
10481
 
 
10482
 
 
10483
 
 
10484
 
 
10485
 
 
10486
 
 
10487
 
 
10488
 
 
10489
 
 
10490
 
 
10491
 
 
10492
 
 
10493
 
 
10494
 
 
10495
 
 
10496
 
 
10497
 
 
10498
 
 
10499
 
 
10500
 
 
10501
 
 
10502
 
 
10503
 
 
10504
 
 
10505
 
 
10506
 
 
10507
 
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
 
10516
 
 
10517
 
 
10518
 
 
10519
 
 
10520
 
 
10521
 
 
10522
 
 
10523
 
 
10524
 
 
10525
 
 
10526
 
 
10527
 
 
10528
 
 
10529
 
 
10530
 
 
10531
 
 
10532
 
 
10533
 
 
10534
 
 
10535
 
 
10536
 
 
10537
 
 
10538
 
 
10539
 
 
10540
 
 
10541
 
 
10542
 
 
10543
 
 
10544
 
 
10545
 
 
10546
 
 
10547
 
 
10548
 
 
10549
 
 
10550
 
 
10551
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10552
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10553
hardcode_action=
 
10554
if test -n "$hardcode_libdir_flag_spec" ||
 
10555
   test -n "$runpath_var" ||
 
10556
   test "X$hardcode_automatic" = "Xyes" ; then
 
10557
 
 
10558
  # We can hardcode non-existent directories.
 
10559
  if test "$hardcode_direct" != no &&
 
10560
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10561
     # have to relink, otherwise we might link with an installed library
 
10562
     # when we should be linking with a yet-to-be-installed one
 
10563
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10564
     test "$hardcode_minus_L" != no; then
 
10565
    # Linking always hardcodes the temporary library directory.
 
10566
    hardcode_action=relink
 
10567
  else
 
10568
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10569
    hardcode_action=immediate
 
10570
  fi
 
10571
else
 
10572
  # We cannot hardcode anything, or else we can only hardcode existing
 
10573
  # directories.
 
10574
  hardcode_action=unsupported
 
10575
fi
 
10576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10577
$as_echo "$hardcode_action" >&6; }
 
10578
 
 
10579
if test "$hardcode_action" = relink ||
 
10580
   test "$inherit_rpath" = yes; then
 
10581
  # Fast installation is not supported
 
10582
  enable_fast_install=no
 
10583
elif test "$shlibpath_overrides_runpath" = yes ||
 
10584
     test "$enable_shared" = no; then
 
10585
  # Fast installation is not necessary
 
10586
  enable_fast_install=needless
 
10587
fi
 
10588
 
 
10589
 
 
10590
 
 
10591
 
 
10592
 
 
10593
 
 
10594
  if test "x$enable_dlopen" != xyes; then
 
10595
  enable_dlopen=unknown
 
10596
  enable_dlopen_self=unknown
 
10597
  enable_dlopen_self_static=unknown
 
10598
else
 
10599
  lt_cv_dlopen=no
 
10600
  lt_cv_dlopen_libs=
 
10601
 
 
10602
  case $host_os in
 
10603
  beos*)
 
10604
    lt_cv_dlopen="load_add_on"
 
10605
    lt_cv_dlopen_libs=
 
10606
    lt_cv_dlopen_self=yes
 
10607
    ;;
 
10608
 
 
10609
  mingw* | pw32* | cegcc*)
 
10610
    lt_cv_dlopen="LoadLibrary"
 
10611
    lt_cv_dlopen_libs=
 
10612
    ;;
 
10613
 
 
10614
  cygwin*)
 
10615
    lt_cv_dlopen="dlopen"
 
10616
    lt_cv_dlopen_libs=
 
10617
    ;;
 
10618
 
 
10619
  darwin*)
 
10620
  # if libdl is installed we need to link against it
 
10621
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10622
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10623
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10624
  $as_echo_n "(cached) " >&6
 
10625
else
 
10626
  ac_check_lib_save_LIBS=$LIBS
 
10627
LIBS="-ldl  $LIBS"
 
10628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10629
/* end confdefs.h.  */
 
10630
 
 
10631
/* Override any GCC internal prototype to avoid an error.
 
10632
   Use char because int might match the return type of a GCC
 
10633
   builtin and then its argument prototype would still apply.  */
 
10634
#ifdef __cplusplus
 
10635
extern "C"
 
10636
#endif
 
10637
char dlopen ();
 
10638
int
 
10639
main ()
 
10640
{
 
10641
return dlopen ();
 
10642
  ;
 
10643
  return 0;
 
10644
}
 
10645
_ACEOF
 
10646
if ac_fn_c_try_link "$LINENO"; then :
 
10647
  ac_cv_lib_dl_dlopen=yes
 
10648
else
 
10649
  ac_cv_lib_dl_dlopen=no
 
10650
fi
 
10651
rm -f core conftest.err conftest.$ac_objext \
 
10652
    conftest$ac_exeext conftest.$ac_ext
 
10653
LIBS=$ac_check_lib_save_LIBS
 
10654
fi
 
10655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10656
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10657
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10658
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10659
else
 
10660
 
 
10661
    lt_cv_dlopen="dyld"
 
10662
    lt_cv_dlopen_libs=
 
10663
    lt_cv_dlopen_self=yes
 
10664
 
 
10665
fi
 
10666
 
 
10667
    ;;
 
10668
 
 
10669
  *)
 
10670
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10671
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
10672
  lt_cv_dlopen="shl_load"
 
10673
else
 
10674
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10675
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10676
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
10677
  $as_echo_n "(cached) " >&6
 
10678
else
 
10679
  ac_check_lib_save_LIBS=$LIBS
 
10680
LIBS="-ldld  $LIBS"
 
10681
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10682
/* end confdefs.h.  */
 
10683
 
 
10684
/* Override any GCC internal prototype to avoid an error.
 
10685
   Use char because int might match the return type of a GCC
 
10686
   builtin and then its argument prototype would still apply.  */
 
10687
#ifdef __cplusplus
 
10688
extern "C"
 
10689
#endif
 
10690
char shl_load ();
 
10691
int
 
10692
main ()
 
10693
{
 
10694
return shl_load ();
 
10695
  ;
 
10696
  return 0;
 
10697
}
 
10698
_ACEOF
 
10699
if ac_fn_c_try_link "$LINENO"; then :
 
10700
  ac_cv_lib_dld_shl_load=yes
 
10701
else
 
10702
  ac_cv_lib_dld_shl_load=no
 
10703
fi
 
10704
rm -f core conftest.err conftest.$ac_objext \
 
10705
    conftest$ac_exeext conftest.$ac_ext
 
10706
LIBS=$ac_check_lib_save_LIBS
 
10707
fi
 
10708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10709
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10710
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
10711
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10712
else
 
10713
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10714
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
10715
  lt_cv_dlopen="dlopen"
 
10716
else
 
10717
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10718
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10719
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10720
  $as_echo_n "(cached) " >&6
 
10721
else
 
10722
  ac_check_lib_save_LIBS=$LIBS
 
10723
LIBS="-ldl  $LIBS"
 
10724
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10725
/* end confdefs.h.  */
 
10726
 
 
10727
/* Override any GCC internal prototype to avoid an error.
 
10728
   Use char because int might match the return type of a GCC
 
10729
   builtin and then its argument prototype would still apply.  */
 
10730
#ifdef __cplusplus
 
10731
extern "C"
 
10732
#endif
 
10733
char dlopen ();
 
10734
int
 
10735
main ()
 
10736
{
 
10737
return dlopen ();
 
10738
  ;
 
10739
  return 0;
 
10740
}
 
10741
_ACEOF
 
10742
if ac_fn_c_try_link "$LINENO"; then :
 
10743
  ac_cv_lib_dl_dlopen=yes
 
10744
else
 
10745
  ac_cv_lib_dl_dlopen=no
 
10746
fi
 
10747
rm -f core conftest.err conftest.$ac_objext \
 
10748
    conftest$ac_exeext conftest.$ac_ext
 
10749
LIBS=$ac_check_lib_save_LIBS
 
10750
fi
 
10751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10752
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10753
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10754
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10755
else
 
10756
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10757
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10758
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
10759
  $as_echo_n "(cached) " >&6
 
10760
else
 
10761
  ac_check_lib_save_LIBS=$LIBS
 
10762
LIBS="-lsvld  $LIBS"
 
10763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10764
/* end confdefs.h.  */
 
10765
 
 
10766
/* Override any GCC internal prototype to avoid an error.
 
10767
   Use char because int might match the return type of a GCC
 
10768
   builtin and then its argument prototype would still apply.  */
 
10769
#ifdef __cplusplus
 
10770
extern "C"
 
10771
#endif
 
10772
char dlopen ();
 
10773
int
 
10774
main ()
 
10775
{
 
10776
return dlopen ();
 
10777
  ;
 
10778
  return 0;
 
10779
}
 
10780
_ACEOF
 
10781
if ac_fn_c_try_link "$LINENO"; then :
 
10782
  ac_cv_lib_svld_dlopen=yes
 
10783
else
 
10784
  ac_cv_lib_svld_dlopen=no
 
10785
fi
 
10786
rm -f core conftest.err conftest.$ac_objext \
 
10787
    conftest$ac_exeext conftest.$ac_ext
 
10788
LIBS=$ac_check_lib_save_LIBS
 
10789
fi
 
10790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10791
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10792
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
10793
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10794
else
 
10795
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10796
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10797
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
10798
  $as_echo_n "(cached) " >&6
 
10799
else
 
10800
  ac_check_lib_save_LIBS=$LIBS
 
10801
LIBS="-ldld  $LIBS"
 
10802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10803
/* end confdefs.h.  */
 
10804
 
 
10805
/* Override any GCC internal prototype to avoid an error.
 
10806
   Use char because int might match the return type of a GCC
 
10807
   builtin and then its argument prototype would still apply.  */
 
10808
#ifdef __cplusplus
 
10809
extern "C"
 
10810
#endif
 
10811
char dld_link ();
 
10812
int
 
10813
main ()
 
10814
{
 
10815
return dld_link ();
 
10816
  ;
 
10817
  return 0;
 
10818
}
 
10819
_ACEOF
 
10820
if ac_fn_c_try_link "$LINENO"; then :
 
10821
  ac_cv_lib_dld_dld_link=yes
 
10822
else
 
10823
  ac_cv_lib_dld_dld_link=no
 
10824
fi
 
10825
rm -f core conftest.err conftest.$ac_objext \
 
10826
    conftest$ac_exeext conftest.$ac_ext
 
10827
LIBS=$ac_check_lib_save_LIBS
 
10828
fi
 
10829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
10830
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10831
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
10832
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10833
fi
 
10834
 
 
10835
 
 
10836
fi
 
10837
 
 
10838
 
 
10839
fi
 
10840
 
 
10841
 
 
10842
fi
 
10843
 
 
10844
 
 
10845
fi
 
10846
 
 
10847
 
 
10848
fi
 
10849
 
 
10850
    ;;
 
10851
  esac
 
10852
 
 
10853
  if test "x$lt_cv_dlopen" != xno; then
 
10854
    enable_dlopen=yes
 
10855
  else
 
10856
    enable_dlopen=no
 
10857
  fi
 
10858
 
 
10859
  case $lt_cv_dlopen in
 
10860
  dlopen)
 
10861
    save_CPPFLAGS="$CPPFLAGS"
 
10862
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10863
 
 
10864
    save_LDFLAGS="$LDFLAGS"
 
10865
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10866
 
 
10867
    save_LIBS="$LIBS"
 
10868
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10869
 
 
10870
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
10871
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10872
if test "${lt_cv_dlopen_self+set}" = set; then :
 
10873
  $as_echo_n "(cached) " >&6
 
10874
else
 
10875
          if test "$cross_compiling" = yes; then :
 
10876
  lt_cv_dlopen_self=cross
 
10877
else
 
10878
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10879
  lt_status=$lt_dlunknown
 
10880
  cat > conftest.$ac_ext <<_LT_EOF
 
10881
#line 10881 "configure"
 
10882
#include "confdefs.h"
 
10883
 
 
10884
#if HAVE_DLFCN_H
 
10885
#include <dlfcn.h>
 
10886
#endif
 
10887
 
 
10888
#include <stdio.h>
 
10889
 
 
10890
#ifdef RTLD_GLOBAL
 
10891
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10892
#else
 
10893
#  ifdef DL_GLOBAL
 
10894
#    define LT_DLGLOBAL         DL_GLOBAL
 
10895
#  else
 
10896
#    define LT_DLGLOBAL         0
 
10897
#  endif
 
10898
#endif
 
10899
 
 
10900
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10901
   find out it does not work in some platform. */
 
10902
#ifndef LT_DLLAZY_OR_NOW
 
10903
#  ifdef RTLD_LAZY
 
10904
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10905
#  else
 
10906
#    ifdef DL_LAZY
 
10907
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10908
#    else
 
10909
#      ifdef RTLD_NOW
 
10910
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10911
#      else
 
10912
#        ifdef DL_NOW
 
10913
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10914
#        else
 
10915
#          define LT_DLLAZY_OR_NOW      0
 
10916
#        endif
 
10917
#      endif
 
10918
#    endif
 
10919
#  endif
 
10920
#endif
 
10921
 
 
10922
void fnord() { int i=42;}
 
10923
int main ()
 
10924
{
 
10925
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10926
  int status = $lt_dlunknown;
 
10927
 
 
10928
  if (self)
 
10929
    {
 
10930
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10931
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10932
      /* dlclose (self); */
 
10933
    }
 
10934
  else
 
10935
    puts (dlerror ());
 
10936
 
 
10937
  return status;
 
10938
}
 
10939
_LT_EOF
 
10940
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10941
  (eval $ac_link) 2>&5
 
10942
  ac_status=$?
 
10943
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10944
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10945
    (./conftest; exit; ) >&5 2>/dev/null
 
10946
    lt_status=$?
 
10947
    case x$lt_status in
 
10948
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10949
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10950
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10951
    esac
 
10952
  else :
 
10953
    # compilation failed
 
10954
    lt_cv_dlopen_self=no
 
10955
  fi
 
10956
fi
 
10957
rm -fr conftest*
 
10958
 
 
10959
 
 
10960
fi
 
10961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
10962
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10963
 
 
10964
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10965
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10966
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
10967
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10968
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
10969
  $as_echo_n "(cached) " >&6
 
10970
else
 
10971
          if test "$cross_compiling" = yes; then :
 
10972
  lt_cv_dlopen_self_static=cross
 
10973
else
 
10974
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10975
  lt_status=$lt_dlunknown
 
10976
  cat > conftest.$ac_ext <<_LT_EOF
 
10977
#line 10977 "configure"
 
10978
#include "confdefs.h"
 
10979
 
 
10980
#if HAVE_DLFCN_H
 
10981
#include <dlfcn.h>
 
10982
#endif
 
10983
 
 
10984
#include <stdio.h>
 
10985
 
 
10986
#ifdef RTLD_GLOBAL
 
10987
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10988
#else
 
10989
#  ifdef DL_GLOBAL
 
10990
#    define LT_DLGLOBAL         DL_GLOBAL
 
10991
#  else
 
10992
#    define LT_DLGLOBAL         0
 
10993
#  endif
 
10994
#endif
 
10995
 
 
10996
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10997
   find out it does not work in some platform. */
 
10998
#ifndef LT_DLLAZY_OR_NOW
 
10999
#  ifdef RTLD_LAZY
 
11000
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11001
#  else
 
11002
#    ifdef DL_LAZY
 
11003
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11004
#    else
 
11005
#      ifdef RTLD_NOW
 
11006
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11007
#      else
 
11008
#        ifdef DL_NOW
 
11009
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11010
#        else
 
11011
#          define LT_DLLAZY_OR_NOW      0
 
11012
#        endif
 
11013
#      endif
 
11014
#    endif
 
11015
#  endif
 
11016
#endif
 
11017
 
 
11018
void fnord() { int i=42;}
 
11019
int main ()
 
11020
{
 
11021
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11022
  int status = $lt_dlunknown;
 
11023
 
 
11024
  if (self)
 
11025
    {
 
11026
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11027
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11028
      /* dlclose (self); */
 
11029
    }
 
11030
  else
 
11031
    puts (dlerror ());
 
11032
 
 
11033
  return status;
 
11034
}
 
11035
_LT_EOF
 
11036
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11037
  (eval $ac_link) 2>&5
 
11038
  ac_status=$?
 
11039
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11040
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11041
    (./conftest; exit; ) >&5 2>/dev/null
 
11042
    lt_status=$?
 
11043
    case x$lt_status in
 
11044
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11045
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11046
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11047
    esac
 
11048
  else :
 
11049
    # compilation failed
 
11050
    lt_cv_dlopen_self_static=no
 
11051
  fi
 
11052
fi
 
11053
rm -fr conftest*
 
11054
 
 
11055
 
 
11056
fi
 
11057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11058
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11059
    fi
 
11060
 
 
11061
    CPPFLAGS="$save_CPPFLAGS"
 
11062
    LDFLAGS="$save_LDFLAGS"
 
11063
    LIBS="$save_LIBS"
 
11064
    ;;
 
11065
  esac
 
11066
 
 
11067
  case $lt_cv_dlopen_self in
 
11068
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11069
  *) enable_dlopen_self=unknown ;;
 
11070
  esac
 
11071
 
 
11072
  case $lt_cv_dlopen_self_static in
 
11073
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11074
  *) enable_dlopen_self_static=unknown ;;
 
11075
  esac
 
11076
fi
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
 
11089
 
 
11090
 
 
11091
 
 
11092
 
 
11093
 
 
11094
striplib=
 
11095
old_striplib=
 
11096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11097
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11098
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11099
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11100
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11102
$as_echo "yes" >&6; }
 
11103
else
 
11104
# FIXME - insert some real tests, host_os isn't really good enough
 
11105
  case $host_os in
 
11106
  darwin*)
 
11107
    if test -n "$STRIP" ; then
 
11108
      striplib="$STRIP -x"
 
11109
      old_striplib="$STRIP -S"
 
11110
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11111
$as_echo "yes" >&6; }
 
11112
    else
 
11113
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11114
$as_echo "no" >&6; }
 
11115
    fi
 
11116
    ;;
 
11117
  *)
 
11118
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11119
$as_echo "no" >&6; }
 
11120
    ;;
 
11121
  esac
 
11122
fi
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
  # Report which library types will actually be built
 
11136
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11137
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11139
$as_echo "$can_build_shared" >&6; }
 
11140
 
 
11141
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11142
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11143
  test "$can_build_shared" = "no" && enable_shared=no
 
11144
 
 
11145
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11146
  # are all built from PIC.
 
11147
  case $host_os in
 
11148
  aix3*)
 
11149
    test "$enable_shared" = yes && enable_static=no
 
11150
    if test -n "$RANLIB"; then
 
11151
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11152
      postinstall_cmds='$RANLIB $lib'
 
11153
    fi
 
11154
    ;;
 
11155
 
 
11156
  aix[4-9]*)
 
11157
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11158
      test "$enable_shared" = yes && enable_static=no
 
11159
    fi
 
11160
    ;;
 
11161
  esac
 
11162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11163
$as_echo "$enable_shared" >&6; }
 
11164
 
 
11165
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11166
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11167
  # Make sure either enable_shared or enable_static is yes.
 
11168
  test "$enable_shared" = yes || enable_static=yes
 
11169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11170
$as_echo "$enable_static" >&6; }
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
fi
 
11176
ac_ext=c
 
11177
ac_cpp='$CPP $CPPFLAGS'
 
11178
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11179
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11180
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11181
 
 
11182
CC="$lt_save_CC"
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
        ac_config_commands="$ac_config_commands libtool"
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
# Only expand once:
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
      if test "X$prefix" = "XNONE"; then
 
11207
    acl_final_prefix="$ac_default_prefix"
 
11208
  else
 
11209
    acl_final_prefix="$prefix"
 
11210
  fi
 
11211
  if test "X$exec_prefix" = "XNONE"; then
 
11212
    acl_final_exec_prefix='${prefix}'
 
11213
  else
 
11214
    acl_final_exec_prefix="$exec_prefix"
 
11215
  fi
 
11216
  acl_save_prefix="$prefix"
 
11217
  prefix="$acl_final_prefix"
 
11218
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
11219
  prefix="$acl_save_prefix"
 
11220
 
 
11221
 
 
11222
# Check whether --with-gnu-ld was given.
 
11223
if test "${with_gnu_ld+set}" = set; then :
 
11224
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11225
else
 
11226
  with_gnu_ld=no
 
11227
fi
 
11228
 
 
11229
# Prepare PATH_SEPARATOR.
 
11230
# The user is always right.
 
11231
if test "${PATH_SEPARATOR+set}" != set; then
 
11232
  echo "#! /bin/sh" >conf$$.sh
 
11233
  echo  "exit 0"   >>conf$$.sh
 
11234
  chmod +x conf$$.sh
 
11235
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
11236
    PATH_SEPARATOR=';'
 
11237
  else
 
11238
    PATH_SEPARATOR=:
 
11239
  fi
 
11240
  rm -f conf$$.sh
 
11241
fi
 
11242
ac_prog=ld
 
11243
if test "$GCC" = yes; then
 
11244
  # Check if gcc -print-prog-name=ld gives a path.
 
11245
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
11246
$as_echo_n "checking for ld used by GCC... " >&6; }
 
11247
  case $host in
 
11248
  *-*-mingw*)
 
11249
    # gcc leaves a trailing carriage return which upsets mingw
 
11250
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11251
  *)
 
11252
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11253
  esac
 
11254
  case $ac_prog in
 
11255
    # Accept absolute paths.
 
11256
    [\\/]* | [A-Za-z]:[\\/]*)
 
11257
      re_direlt='/[^/][^/]*/\.\./'
 
11258
      # Canonicalize the path of ld
 
11259
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
11260
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11261
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
11262
      done
 
11263
      test -z "$LD" && LD="$ac_prog"
 
11264
      ;;
 
11265
  "")
 
11266
    # If it fails, then pretend we aren't using GCC.
 
11267
    ac_prog=ld
 
11268
    ;;
 
11269
  *)
 
11270
    # If it is relative, then search for the first ld in PATH.
 
11271
    with_gnu_ld=unknown
 
11272
    ;;
 
11273
  esac
 
11274
elif test "$with_gnu_ld" = yes; then
 
11275
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
11276
$as_echo_n "checking for GNU ld... " >&6; }
 
11277
else
 
11278
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
11279
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11280
fi
 
11281
if test "${acl_cv_path_LD+set}" = set; then :
 
11282
  $as_echo_n "(cached) " >&6
 
11283
else
 
11284
  if test -z "$LD"; then
 
11285
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
11286
  for ac_dir in $PATH; do
 
11287
    test -z "$ac_dir" && ac_dir=.
 
11288
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11289
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
11290
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11291
      # but apparently some GNU ld's only accept -v.
 
11292
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11293
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
11294
      *GNU* | *'with BFD'*)
 
11295
        test "$with_gnu_ld" != no && break ;;
 
11296
      *)
 
11297
        test "$with_gnu_ld" != yes && break ;;
 
11298
      esac
 
11299
    fi
 
11300
  done
 
11301
  IFS="$ac_save_ifs"
 
11302
else
 
11303
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
11304
fi
 
11305
fi
 
11306
 
 
11307
LD="$acl_cv_path_LD"
 
11308
if test -n "$LD"; then
 
11309
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
11310
$as_echo "$LD" >&6; }
 
11311
else
 
11312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11313
$as_echo "no" >&6; }
 
11314
fi
 
11315
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
11316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
11317
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11318
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
11319
  $as_echo_n "(cached) " >&6
 
11320
else
 
11321
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11322
case `$LD -v 2>&1 </dev/null` in
 
11323
*GNU* | *'with BFD'*)
 
11324
  acl_cv_prog_gnu_ld=yes ;;
 
11325
*)
 
11326
  acl_cv_prog_gnu_ld=no ;;
 
11327
esac
 
11328
fi
 
11329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
11330
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
11331
with_gnu_ld=$acl_cv_prog_gnu_ld
 
11332
 
 
11333
 
 
11334
 
 
11335
 
 
11336
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
11337
$as_echo_n "checking for shared library run path origin... " >&6; }
 
11338
if test "${acl_cv_rpath+set}" = set; then :
 
11339
  $as_echo_n "(cached) " >&6
 
11340
else
 
11341
 
 
11342
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
11343
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
11344
    . ./conftest.sh
 
11345
    rm -f ./conftest.sh
 
11346
    acl_cv_rpath=done
 
11347
 
 
11348
fi
 
11349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
11350
$as_echo "$acl_cv_rpath" >&6; }
 
11351
  wl="$acl_cv_wl"
 
11352
  acl_libext="$acl_cv_libext"
 
11353
  acl_shlibext="$acl_cv_shlibext"
 
11354
  acl_libname_spec="$acl_cv_libname_spec"
 
11355
  acl_library_names_spec="$acl_cv_library_names_spec"
 
11356
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
11357
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
11358
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
11359
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
11360
    # Check whether --enable-rpath was given.
 
11361
if test "${enable_rpath+set}" = set; then :
 
11362
  enableval=$enable_rpath; :
 
11363
else
 
11364
  enable_rpath=yes
 
11365
fi
 
11366
 
 
11367
 
 
11368
 
 
11369
 
 
11370
  acl_libdirstem=lib
 
11371
  acl_libdirstem2=
 
11372
  case "$host_os" in
 
11373
    solaris*)
 
11374
                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
 
11375
$as_echo_n "checking for 64-bit host... " >&6; }
 
11376
if test "${gl_cv_solaris_64bit+set}" = set; then :
 
11377
  $as_echo_n "(cached) " >&6
 
11378
else
 
11379
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11380
/* end confdefs.h.  */
 
11381
 
 
11382
#ifdef _LP64
 
11383
sixtyfour bits
 
11384
#endif
 
11385
 
 
11386
_ACEOF
 
11387
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11388
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
 
11389
  gl_cv_solaris_64bit=yes
 
11390
else
 
11391
  gl_cv_solaris_64bit=no
 
11392
fi
 
11393
rm -f conftest*
 
11394
 
 
11395
 
 
11396
fi
 
11397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
 
11398
$as_echo "$gl_cv_solaris_64bit" >&6; }
 
11399
      if test $gl_cv_solaris_64bit = yes; then
 
11400
        acl_libdirstem=lib/64
 
11401
        case "$host_cpu" in
 
11402
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 
11403
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 
11404
        esac
 
11405
      fi
 
11406
      ;;
 
11407
    *)
 
11408
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
11409
      if test -n "$searchpath"; then
 
11410
        acl_save_IFS="${IFS=    }"; IFS=":"
 
11411
        for searchdir in $searchpath; do
 
11412
          if test -d "$searchdir"; then
 
11413
            case "$searchdir" in
 
11414
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
11415
              */../ | */.. )
 
11416
                # Better ignore directories of this form. They are misleading.
 
11417
                ;;
 
11418
              *) searchdir=`cd "$searchdir" && pwd`
 
11419
                 case "$searchdir" in
 
11420
                   */lib64 ) acl_libdirstem=lib64 ;;
 
11421
                 esac ;;
 
11422
            esac
 
11423
          fi
 
11424
        done
 
11425
        IFS="$acl_save_IFS"
 
11426
      fi
 
11427
      ;;
 
11428
  esac
 
11429
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 
11430
 
 
11431
 
 
11432
  # Library code modified:                              REVISION++
 
11433
  # Interfaces changed/added/removed:   CURRENT++       REVISION=0
 
11434
  # Interfaces added:                             AGE++
 
11435
  # Interfaces removed:                           AGE=0
 
11436
  LT_CURRENT=40
 
11437
 
 
11438
  LT_REVISION=12
 
11439
 
 
11440
  LT_AGE=14
 
11441
 
 
11442
 
 
11443
  # Used when creating the Windows libgnutls-XX.def files.
 
11444
  DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
 
11445
 
 
11446
 
 
11447
 
 
11448
 
 
11449
 
 
11450
 
 
11451
 
 
11452
 
 
11453
 
 
11454
 
 
11455
 
 
11456
 
 
11457
 
 
11458
 
 
11459
 
 
11460
    use_additional=yes
 
11461
 
 
11462
  acl_save_prefix="$prefix"
 
11463
  prefix="$acl_final_prefix"
 
11464
  acl_save_exec_prefix="$exec_prefix"
 
11465
  exec_prefix="$acl_final_exec_prefix"
 
11466
 
 
11467
    eval additional_includedir=\"$includedir\"
 
11468
    eval additional_libdir=\"$libdir\"
 
11469
 
 
11470
  exec_prefix="$acl_save_exec_prefix"
 
11471
  prefix="$acl_save_prefix"
 
11472
 
 
11473
 
 
11474
# Check whether --with-libgcrypt-prefix was given.
 
11475
if test "${with_libgcrypt_prefix+set}" = set; then :
 
11476
  withval=$with_libgcrypt_prefix;
 
11477
    if test "X$withval" = "Xno"; then
 
11478
      use_additional=no
 
11479
    else
 
11480
      if test "X$withval" = "X"; then
 
11481
 
 
11482
  acl_save_prefix="$prefix"
 
11483
  prefix="$acl_final_prefix"
 
11484
  acl_save_exec_prefix="$exec_prefix"
 
11485
  exec_prefix="$acl_final_exec_prefix"
 
11486
 
 
11487
          eval additional_includedir=\"$includedir\"
 
11488
          eval additional_libdir=\"$libdir\"
 
11489
 
 
11490
  exec_prefix="$acl_save_exec_prefix"
 
11491
  prefix="$acl_save_prefix"
 
11492
 
 
11493
      else
 
11494
        additional_includedir="$withval/include"
 
11495
        additional_libdir="$withval/$acl_libdirstem"
 
11496
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
11497
           && ! test -d "$withval/$acl_libdirstem"; then
 
11498
          additional_libdir="$withval/$acl_libdirstem2"
 
11499
        fi
 
11500
      fi
 
11501
    fi
 
11502
 
 
11503
fi
 
11504
 
 
11505
      LIBGCRYPT=
 
11506
  LTLIBGCRYPT=
 
11507
  INCGCRYPT=
 
11508
  LIBGCRYPT_PREFIX=
 
11509
  rpathdirs=
 
11510
  ltrpathdirs=
 
11511
  names_already_handled=
 
11512
  names_next_round='gcrypt gpg-error'
 
11513
  while test -n "$names_next_round"; do
 
11514
    names_this_round="$names_next_round"
 
11515
    names_next_round=
 
11516
    for name in $names_this_round; do
 
11517
      already_handled=
 
11518
      for n in $names_already_handled; do
 
11519
        if test "$n" = "$name"; then
 
11520
          already_handled=yes
 
11521
          break
 
11522
        fi
 
11523
      done
 
11524
      if test -z "$already_handled"; then
 
11525
        names_already_handled="$names_already_handled $name"
 
11526
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
11527
        eval value=\"\$HAVE_LIB$uppername\"
 
11528
        if test -n "$value"; then
 
11529
          if test "$value" = yes; then
 
11530
            eval value=\"\$LIB$uppername\"
 
11531
            test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
 
11532
            eval value=\"\$LTLIB$uppername\"
 
11533
            test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
 
11534
          else
 
11535
                                    :
 
11536
          fi
 
11537
        else
 
11538
                              found_dir=
 
11539
          found_la=
 
11540
          found_so=
 
11541
          found_a=
 
11542
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
11543
          if test -n "$acl_shlibext"; then
 
11544
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
11545
          else
 
11546
            shrext=
 
11547
          fi
 
11548
          if test $use_additional = yes; then
 
11549
            dir="$additional_libdir"
 
11550
                                    if test -n "$acl_shlibext"; then
 
11551
              if test -f "$dir/$libname$shrext"; then
 
11552
                found_dir="$dir"
 
11553
                found_so="$dir/$libname$shrext"
 
11554
              else
 
11555
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11556
                  ver=`(cd "$dir" && \
 
11557
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
11558
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
11559
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11560
                        | sed 1q ) 2>/dev/null`
 
11561
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11562
                    found_dir="$dir"
 
11563
                    found_so="$dir/$libname$shrext.$ver"
 
11564
                  fi
 
11565
                else
 
11566
                  eval library_names=\"$acl_library_names_spec\"
 
11567
                  for f in $library_names; do
 
11568
                    if test -f "$dir/$f"; then
 
11569
                      found_dir="$dir"
 
11570
                      found_so="$dir/$f"
 
11571
                      break
 
11572
                    fi
 
11573
                  done
 
11574
                fi
 
11575
              fi
 
11576
            fi
 
11577
                        if test "X$found_dir" = "X"; then
 
11578
              if test -f "$dir/$libname.$acl_libext"; then
 
11579
                found_dir="$dir"
 
11580
                found_a="$dir/$libname.$acl_libext"
 
11581
              fi
 
11582
            fi
 
11583
            if test "X$found_dir" != "X"; then
 
11584
              if test -f "$dir/$libname.la"; then
 
11585
                found_la="$dir/$libname.la"
 
11586
              fi
 
11587
            fi
 
11588
          fi
 
11589
          if test "X$found_dir" = "X"; then
 
11590
            for x in $LDFLAGS $LTLIBGCRYPT; do
 
11591
 
 
11592
  acl_save_prefix="$prefix"
 
11593
  prefix="$acl_final_prefix"
 
11594
  acl_save_exec_prefix="$exec_prefix"
 
11595
  exec_prefix="$acl_final_exec_prefix"
 
11596
  eval x=\"$x\"
 
11597
  exec_prefix="$acl_save_exec_prefix"
 
11598
  prefix="$acl_save_prefix"
 
11599
 
 
11600
              case "$x" in
 
11601
                -L*)
 
11602
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
11603
                                    if test -n "$acl_shlibext"; then
 
11604
                    if test -f "$dir/$libname$shrext"; then
 
11605
                      found_dir="$dir"
 
11606
                      found_so="$dir/$libname$shrext"
 
11607
                    else
 
11608
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11609
                        ver=`(cd "$dir" && \
 
11610
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
11611
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
11612
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11613
                              | sed 1q ) 2>/dev/null`
 
11614
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11615
                          found_dir="$dir"
 
11616
                          found_so="$dir/$libname$shrext.$ver"
 
11617
                        fi
 
11618
                      else
 
11619
                        eval library_names=\"$acl_library_names_spec\"
 
11620
                        for f in $library_names; do
 
11621
                          if test -f "$dir/$f"; then
 
11622
                            found_dir="$dir"
 
11623
                            found_so="$dir/$f"
 
11624
                            break
 
11625
                          fi
 
11626
                        done
 
11627
                      fi
 
11628
                    fi
 
11629
                  fi
 
11630
                                    if test "X$found_dir" = "X"; then
 
11631
                    if test -f "$dir/$libname.$acl_libext"; then
 
11632
                      found_dir="$dir"
 
11633
                      found_a="$dir/$libname.$acl_libext"
 
11634
                    fi
 
11635
                  fi
 
11636
                  if test "X$found_dir" != "X"; then
 
11637
                    if test -f "$dir/$libname.la"; then
 
11638
                      found_la="$dir/$libname.la"
 
11639
                    fi
 
11640
                  fi
 
11641
                  ;;
 
11642
              esac
 
11643
              if test "X$found_dir" != "X"; then
 
11644
                break
 
11645
              fi
 
11646
            done
 
11647
          fi
 
11648
          if test "X$found_dir" != "X"; then
 
11649
                        LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
 
11650
            if test "X$found_so" != "X"; then
 
11651
                                                        if test "$enable_rpath" = no \
 
11652
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
11653
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
11654
                                LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
 
11655
              else
 
11656
                                                                                haveit=
 
11657
                for x in $ltrpathdirs; do
 
11658
                  if test "X$x" = "X$found_dir"; then
 
11659
                    haveit=yes
 
11660
                    break
 
11661
                  fi
 
11662
                done
 
11663
                if test -z "$haveit"; then
 
11664
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
11665
                fi
 
11666
                                if test "$acl_hardcode_direct" = yes; then
 
11667
                                                      LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
 
11668
                else
 
11669
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
11670
                                                            LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
 
11671
                                                            haveit=
 
11672
                    for x in $rpathdirs; do
 
11673
                      if test "X$x" = "X$found_dir"; then
 
11674
                        haveit=yes
 
11675
                        break
 
11676
                      fi
 
11677
                    done
 
11678
                    if test -z "$haveit"; then
 
11679
                      rpathdirs="$rpathdirs $found_dir"
 
11680
                    fi
 
11681
                  else
 
11682
                                                                                haveit=
 
11683
                    for x in $LDFLAGS $LIBGCRYPT; do
 
11684
 
 
11685
  acl_save_prefix="$prefix"
 
11686
  prefix="$acl_final_prefix"
 
11687
  acl_save_exec_prefix="$exec_prefix"
 
11688
  exec_prefix="$acl_final_exec_prefix"
 
11689
  eval x=\"$x\"
 
11690
  exec_prefix="$acl_save_exec_prefix"
 
11691
  prefix="$acl_save_prefix"
 
11692
 
 
11693
                      if test "X$x" = "X-L$found_dir"; then
 
11694
                        haveit=yes
 
11695
                        break
 
11696
                      fi
 
11697
                    done
 
11698
                    if test -z "$haveit"; then
 
11699
                      LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
 
11700
                    fi
 
11701
                    if test "$acl_hardcode_minus_L" != no; then
 
11702
                                                                                        LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
 
11703
                    else
 
11704
                                                                                                                                                                                LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
 
11705
                    fi
 
11706
                  fi
 
11707
                fi
 
11708
              fi
 
11709
            else
 
11710
              if test "X$found_a" != "X"; then
 
11711
                                LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
 
11712
              else
 
11713
                                                LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
 
11714
              fi
 
11715
            fi
 
11716
                        additional_includedir=
 
11717
            case "$found_dir" in
 
11718
              */$acl_libdirstem | */$acl_libdirstem/)
 
11719
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
11720
                if test "$name" = 'gcrypt'; then
 
11721
                  LIBGCRYPT_PREFIX="$basedir"
 
11722
                fi
 
11723
                additional_includedir="$basedir/include"
 
11724
                ;;
 
11725
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
11726
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
11727
                if test "$name" = 'gcrypt'; then
 
11728
                  LIBGCRYPT_PREFIX="$basedir"
 
11729
                fi
 
11730
                additional_includedir="$basedir/include"
 
11731
                ;;
 
11732
            esac
 
11733
            if test "X$additional_includedir" != "X"; then
 
11734
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
11735
                haveit=
 
11736
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
11737
                  if test -n "$GCC"; then
 
11738
                    case $host_os in
 
11739
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
11740
                    esac
 
11741
                  fi
 
11742
                fi
 
11743
                if test -z "$haveit"; then
 
11744
                  for x in $CPPFLAGS $INCGCRYPT; do
 
11745
 
 
11746
  acl_save_prefix="$prefix"
 
11747
  prefix="$acl_final_prefix"
 
11748
  acl_save_exec_prefix="$exec_prefix"
 
11749
  exec_prefix="$acl_final_exec_prefix"
 
11750
  eval x=\"$x\"
 
11751
  exec_prefix="$acl_save_exec_prefix"
 
11752
  prefix="$acl_save_prefix"
 
11753
 
 
11754
                    if test "X$x" = "X-I$additional_includedir"; then
 
11755
                      haveit=yes
 
11756
                      break
 
11757
                    fi
 
11758
                  done
 
11759
                  if test -z "$haveit"; then
 
11760
                    if test -d "$additional_includedir"; then
 
11761
                                            INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
 
11762
                    fi
 
11763
                  fi
 
11764
                fi
 
11765
              fi
 
11766
            fi
 
11767
                        if test -n "$found_la"; then
 
11768
                                                        save_libdir="$libdir"
 
11769
              case "$found_la" in
 
11770
                */* | *\\*) . "$found_la" ;;
 
11771
                *) . "./$found_la" ;;
 
11772
              esac
 
11773
              libdir="$save_libdir"
 
11774
                            for dep in $dependency_libs; do
 
11775
                case "$dep" in
 
11776
                  -L*)
 
11777
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
11778
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
11779
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
11780
                      haveit=
 
11781
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
11782
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
11783
                        if test -n "$GCC"; then
 
11784
                          case $host_os in
 
11785
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
11786
                          esac
 
11787
                        fi
 
11788
                      fi
 
11789
                      if test -z "$haveit"; then
 
11790
                        haveit=
 
11791
                        for x in $LDFLAGS $LIBGCRYPT; do
 
11792
 
 
11793
  acl_save_prefix="$prefix"
 
11794
  prefix="$acl_final_prefix"
 
11795
  acl_save_exec_prefix="$exec_prefix"
 
11796
  exec_prefix="$acl_final_exec_prefix"
 
11797
  eval x=\"$x\"
 
11798
  exec_prefix="$acl_save_exec_prefix"
 
11799
  prefix="$acl_save_prefix"
 
11800
 
 
11801
                          if test "X$x" = "X-L$additional_libdir"; then
 
11802
                            haveit=yes
 
11803
                            break
 
11804
                          fi
 
11805
                        done
 
11806
                        if test -z "$haveit"; then
 
11807
                          if test -d "$additional_libdir"; then
 
11808
                                                        LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
 
11809
                          fi
 
11810
                        fi
 
11811
                        haveit=
 
11812
                        for x in $LDFLAGS $LTLIBGCRYPT; do
 
11813
 
 
11814
  acl_save_prefix="$prefix"
 
11815
  prefix="$acl_final_prefix"
 
11816
  acl_save_exec_prefix="$exec_prefix"
 
11817
  exec_prefix="$acl_final_exec_prefix"
 
11818
  eval x=\"$x\"
 
11819
  exec_prefix="$acl_save_exec_prefix"
 
11820
  prefix="$acl_save_prefix"
 
11821
 
 
11822
                          if test "X$x" = "X-L$additional_libdir"; then
 
11823
                            haveit=yes
 
11824
                            break
 
11825
                          fi
 
11826
                        done
 
11827
                        if test -z "$haveit"; then
 
11828
                          if test -d "$additional_libdir"; then
 
11829
                                                        LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
 
11830
                          fi
 
11831
                        fi
 
11832
                      fi
 
11833
                    fi
 
11834
                    ;;
 
11835
                  -R*)
 
11836
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
11837
                    if test "$enable_rpath" != no; then
 
11838
                                                                  haveit=
 
11839
                      for x in $rpathdirs; do
 
11840
                        if test "X$x" = "X$dir"; then
 
11841
                          haveit=yes
 
11842
                          break
 
11843
                        fi
 
11844
                      done
 
11845
                      if test -z "$haveit"; then
 
11846
                        rpathdirs="$rpathdirs $dir"
 
11847
                      fi
 
11848
                                                                  haveit=
 
11849
                      for x in $ltrpathdirs; do
 
11850
                        if test "X$x" = "X$dir"; then
 
11851
                          haveit=yes
 
11852
                          break
 
11853
                        fi
 
11854
                      done
 
11855
                      if test -z "$haveit"; then
 
11856
                        ltrpathdirs="$ltrpathdirs $dir"
 
11857
                      fi
 
11858
                    fi
 
11859
                    ;;
 
11860
                  -l*)
 
11861
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
11862
                    ;;
 
11863
                  *.la)
 
11864
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
11865
                    ;;
 
11866
                  *)
 
11867
                                        LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
 
11868
                    LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
 
11869
                    ;;
 
11870
                esac
 
11871
              done
 
11872
            fi
 
11873
          else
 
11874
                                                            LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
 
11875
            LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
 
11876
          fi
 
11877
        fi
 
11878
      fi
 
11879
    done
 
11880
  done
 
11881
  if test "X$rpathdirs" != "X"; then
 
11882
    if test -n "$acl_hardcode_libdir_separator"; then
 
11883
                        alldirs=
 
11884
      for found_dir in $rpathdirs; do
 
11885
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
11886
      done
 
11887
            acl_save_libdir="$libdir"
 
11888
      libdir="$alldirs"
 
11889
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
11890
      libdir="$acl_save_libdir"
 
11891
      LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
 
11892
    else
 
11893
            for found_dir in $rpathdirs; do
 
11894
        acl_save_libdir="$libdir"
 
11895
        libdir="$found_dir"
 
11896
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
11897
        libdir="$acl_save_libdir"
 
11898
        LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
 
11899
      done
 
11900
    fi
 
11901
  fi
 
11902
  if test "X$ltrpathdirs" != "X"; then
 
11903
            for found_dir in $ltrpathdirs; do
 
11904
      LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
 
11905
    done
 
11906
  fi
 
11907
 
 
11908
 
 
11909
 
 
11910
 
 
11911
 
 
11912
 
 
11913
 
 
11914
        ac_save_CPPFLAGS="$CPPFLAGS"
 
11915
 
 
11916
  for element in $INCGCRYPT; do
 
11917
    haveit=
 
11918
    for x in $CPPFLAGS; do
 
11919
 
 
11920
  acl_save_prefix="$prefix"
 
11921
  prefix="$acl_final_prefix"
 
11922
  acl_save_exec_prefix="$exec_prefix"
 
11923
  exec_prefix="$acl_final_exec_prefix"
 
11924
  eval x=\"$x\"
 
11925
  exec_prefix="$acl_save_exec_prefix"
 
11926
  prefix="$acl_save_prefix"
 
11927
 
 
11928
      if test "X$x" = "X$element"; then
 
11929
        haveit=yes
 
11930
        break
 
11931
      fi
 
11932
    done
 
11933
    if test -z "$haveit"; then
 
11934
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
11935
    fi
 
11936
  done
 
11937
 
 
11938
 
 
11939
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
 
11940
$as_echo_n "checking for libgcrypt... " >&6; }
 
11941
if test "${ac_cv_libgcrypt+set}" = set; then :
 
11942
  $as_echo_n "(cached) " >&6
 
11943
else
 
11944
 
 
11945
    ac_save_LIBS="$LIBS"
 
11946
    LIBS="$LIBS $LIBGCRYPT"
 
11947
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11948
/* end confdefs.h.  */
 
11949
#include <gcrypt.h>
 
11950
int
 
11951
main ()
 
11952
{
 
11953
enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
 
11954
  ;
 
11955
  return 0;
 
11956
}
 
11957
_ACEOF
 
11958
if ac_fn_c_try_link "$LINENO"; then :
 
11959
  ac_cv_libgcrypt=yes
 
11960
else
 
11961
  ac_cv_libgcrypt='no'
 
11962
fi
 
11963
rm -f core conftest.err conftest.$ac_objext \
 
11964
    conftest$ac_exeext conftest.$ac_ext
 
11965
    LIBS="$ac_save_LIBS"
 
11966
 
 
11967
fi
 
11968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
 
11969
$as_echo "$ac_cv_libgcrypt" >&6; }
 
11970
  if test "$ac_cv_libgcrypt" = yes; then
 
11971
    HAVE_LIBGCRYPT=yes
 
11972
 
 
11973
$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
 
11974
 
 
11975
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
 
11976
$as_echo_n "checking how to link with libgcrypt... " >&6; }
 
11977
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
 
11978
$as_echo "$LIBGCRYPT" >&6; }
 
11979
  else
 
11980
    HAVE_LIBGCRYPT=no
 
11981
            CPPFLAGS="$ac_save_CPPFLAGS"
 
11982
    LIBGCRYPT=
 
11983
    LTLIBGCRYPT=
 
11984
    LIBGCRYPT_PREFIX=
 
11985
  fi
 
11986
 
 
11987
 
 
11988
 
 
11989
 
 
11990
 
 
11991
 
 
11992
 
 
11993
  if test "$ac_cv_libgcrypt" != yes; then
 
11994
    as_fn_error "
 
11995
***
 
11996
*** libgcrypt was not found. You may want to get it from
 
11997
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
 
11998
***
 
11999
    " "$LINENO" 5
 
12000
  fi
 
12001
 
 
12002
 
 
12003
# Check whether --with-included-libtasn1 was given.
 
12004
if test "${with_included_libtasn1+set}" = set; then :
 
12005
  withval=$with_included_libtasn1; included_libtasn1=$withval
 
12006
else
 
12007
  included_libtasn1=no
 
12008
fi
 
12009
 
 
12010
  if test "$included_libtasn1" = "no"; then
 
12011
 
 
12012
 
 
12013
 
 
12014
 
 
12015
 
 
12016
 
 
12017
 
 
12018
 
 
12019
 
 
12020
 
 
12021
 
 
12022
 
 
12023
 
 
12024
    use_additional=yes
 
12025
 
 
12026
  acl_save_prefix="$prefix"
 
12027
  prefix="$acl_final_prefix"
 
12028
  acl_save_exec_prefix="$exec_prefix"
 
12029
  exec_prefix="$acl_final_exec_prefix"
 
12030
 
 
12031
    eval additional_includedir=\"$includedir\"
 
12032
    eval additional_libdir=\"$libdir\"
 
12033
 
 
12034
  exec_prefix="$acl_save_exec_prefix"
 
12035
  prefix="$acl_save_prefix"
 
12036
 
 
12037
 
 
12038
# Check whether --with-libtasn1-prefix was given.
 
12039
if test "${with_libtasn1_prefix+set}" = set; then :
 
12040
  withval=$with_libtasn1_prefix;
 
12041
    if test "X$withval" = "Xno"; then
 
12042
      use_additional=no
 
12043
    else
 
12044
      if test "X$withval" = "X"; then
 
12045
 
 
12046
  acl_save_prefix="$prefix"
 
12047
  prefix="$acl_final_prefix"
 
12048
  acl_save_exec_prefix="$exec_prefix"
 
12049
  exec_prefix="$acl_final_exec_prefix"
 
12050
 
 
12051
          eval additional_includedir=\"$includedir\"
 
12052
          eval additional_libdir=\"$libdir\"
 
12053
 
 
12054
  exec_prefix="$acl_save_exec_prefix"
 
12055
  prefix="$acl_save_prefix"
 
12056
 
 
12057
      else
 
12058
        additional_includedir="$withval/include"
 
12059
        additional_libdir="$withval/$acl_libdirstem"
 
12060
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
12061
           && ! test -d "$withval/$acl_libdirstem"; then
 
12062
          additional_libdir="$withval/$acl_libdirstem2"
 
12063
        fi
 
12064
      fi
 
12065
    fi
 
12066
 
 
12067
fi
 
12068
 
 
12069
      LIBTASN1=
 
12070
  LTLIBTASN1=
 
12071
  INCTASN1=
 
12072
  LIBTASN1_PREFIX=
 
12073
  rpathdirs=
 
12074
  ltrpathdirs=
 
12075
  names_already_handled=
 
12076
  names_next_round='tasn1 '
 
12077
  while test -n "$names_next_round"; do
 
12078
    names_this_round="$names_next_round"
 
12079
    names_next_round=
 
12080
    for name in $names_this_round; do
 
12081
      already_handled=
 
12082
      for n in $names_already_handled; do
 
12083
        if test "$n" = "$name"; then
 
12084
          already_handled=yes
 
12085
          break
 
12086
        fi
 
12087
      done
 
12088
      if test -z "$already_handled"; then
 
12089
        names_already_handled="$names_already_handled $name"
 
12090
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
12091
        eval value=\"\$HAVE_LIB$uppername\"
 
12092
        if test -n "$value"; then
 
12093
          if test "$value" = yes; then
 
12094
            eval value=\"\$LIB$uppername\"
 
12095
            test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value"
 
12096
            eval value=\"\$LTLIB$uppername\"
 
12097
            test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value"
 
12098
          else
 
12099
                                    :
 
12100
          fi
 
12101
        else
 
12102
                              found_dir=
 
12103
          found_la=
 
12104
          found_so=
 
12105
          found_a=
 
12106
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
12107
          if test -n "$acl_shlibext"; then
 
12108
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
12109
          else
 
12110
            shrext=
 
12111
          fi
 
12112
          if test $use_additional = yes; then
 
12113
            dir="$additional_libdir"
 
12114
                                    if test -n "$acl_shlibext"; then
 
12115
              if test -f "$dir/$libname$shrext"; then
 
12116
                found_dir="$dir"
 
12117
                found_so="$dir/$libname$shrext"
 
12118
              else
 
12119
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12120
                  ver=`(cd "$dir" && \
 
12121
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
12122
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
12123
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12124
                        | sed 1q ) 2>/dev/null`
 
12125
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12126
                    found_dir="$dir"
 
12127
                    found_so="$dir/$libname$shrext.$ver"
 
12128
                  fi
 
12129
                else
 
12130
                  eval library_names=\"$acl_library_names_spec\"
 
12131
                  for f in $library_names; do
 
12132
                    if test -f "$dir/$f"; then
 
12133
                      found_dir="$dir"
 
12134
                      found_so="$dir/$f"
 
12135
                      break
 
12136
                    fi
 
12137
                  done
 
12138
                fi
 
12139
              fi
 
12140
            fi
 
12141
                        if test "X$found_dir" = "X"; then
 
12142
              if test -f "$dir/$libname.$acl_libext"; then
 
12143
                found_dir="$dir"
 
12144
                found_a="$dir/$libname.$acl_libext"
 
12145
              fi
 
12146
            fi
 
12147
            if test "X$found_dir" != "X"; then
 
12148
              if test -f "$dir/$libname.la"; then
 
12149
                found_la="$dir/$libname.la"
 
12150
              fi
 
12151
            fi
 
12152
          fi
 
12153
          if test "X$found_dir" = "X"; then
 
12154
            for x in $LDFLAGS $LTLIBTASN1; do
 
12155
 
 
12156
  acl_save_prefix="$prefix"
 
12157
  prefix="$acl_final_prefix"
 
12158
  acl_save_exec_prefix="$exec_prefix"
 
12159
  exec_prefix="$acl_final_exec_prefix"
 
12160
  eval x=\"$x\"
 
12161
  exec_prefix="$acl_save_exec_prefix"
 
12162
  prefix="$acl_save_prefix"
 
12163
 
 
12164
              case "$x" in
 
12165
                -L*)
 
12166
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
12167
                                    if test -n "$acl_shlibext"; then
 
12168
                    if test -f "$dir/$libname$shrext"; then
 
12169
                      found_dir="$dir"
 
12170
                      found_so="$dir/$libname$shrext"
 
12171
                    else
 
12172
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12173
                        ver=`(cd "$dir" && \
 
12174
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
12175
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
12176
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12177
                              | sed 1q ) 2>/dev/null`
 
12178
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12179
                          found_dir="$dir"
 
12180
                          found_so="$dir/$libname$shrext.$ver"
 
12181
                        fi
 
12182
                      else
 
12183
                        eval library_names=\"$acl_library_names_spec\"
 
12184
                        for f in $library_names; do
 
12185
                          if test -f "$dir/$f"; then
 
12186
                            found_dir="$dir"
 
12187
                            found_so="$dir/$f"
 
12188
                            break
 
12189
                          fi
 
12190
                        done
 
12191
                      fi
 
12192
                    fi
 
12193
                  fi
 
12194
                                    if test "X$found_dir" = "X"; then
 
12195
                    if test -f "$dir/$libname.$acl_libext"; then
 
12196
                      found_dir="$dir"
 
12197
                      found_a="$dir/$libname.$acl_libext"
 
12198
                    fi
 
12199
                  fi
 
12200
                  if test "X$found_dir" != "X"; then
 
12201
                    if test -f "$dir/$libname.la"; then
 
12202
                      found_la="$dir/$libname.la"
 
12203
                    fi
 
12204
                  fi
 
12205
                  ;;
 
12206
              esac
 
12207
              if test "X$found_dir" != "X"; then
 
12208
                break
 
12209
              fi
 
12210
            done
 
12211
          fi
 
12212
          if test "X$found_dir" != "X"; then
 
12213
                        LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name"
 
12214
            if test "X$found_so" != "X"; then
 
12215
                                                        if test "$enable_rpath" = no \
 
12216
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
12217
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
12218
                                LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
 
12219
              else
 
12220
                                                                                haveit=
 
12221
                for x in $ltrpathdirs; do
 
12222
                  if test "X$x" = "X$found_dir"; then
 
12223
                    haveit=yes
 
12224
                    break
 
12225
                  fi
 
12226
                done
 
12227
                if test -z "$haveit"; then
 
12228
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
12229
                fi
 
12230
                                if test "$acl_hardcode_direct" = yes; then
 
12231
                                                      LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
 
12232
                else
 
12233
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
12234
                                                            LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
 
12235
                                                            haveit=
 
12236
                    for x in $rpathdirs; do
 
12237
                      if test "X$x" = "X$found_dir"; then
 
12238
                        haveit=yes
 
12239
                        break
 
12240
                      fi
 
12241
                    done
 
12242
                    if test -z "$haveit"; then
 
12243
                      rpathdirs="$rpathdirs $found_dir"
 
12244
                    fi
 
12245
                  else
 
12246
                                                                                haveit=
 
12247
                    for x in $LDFLAGS $LIBTASN1; do
 
12248
 
 
12249
  acl_save_prefix="$prefix"
 
12250
  prefix="$acl_final_prefix"
 
12251
  acl_save_exec_prefix="$exec_prefix"
 
12252
  exec_prefix="$acl_final_exec_prefix"
 
12253
  eval x=\"$x\"
 
12254
  exec_prefix="$acl_save_exec_prefix"
 
12255
  prefix="$acl_save_prefix"
 
12256
 
 
12257
                      if test "X$x" = "X-L$found_dir"; then
 
12258
                        haveit=yes
 
12259
                        break
 
12260
                      fi
 
12261
                    done
 
12262
                    if test -z "$haveit"; then
 
12263
                      LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir"
 
12264
                    fi
 
12265
                    if test "$acl_hardcode_minus_L" != no; then
 
12266
                                                                                        LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
 
12267
                    else
 
12268
                                                                                                                                                                                LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
 
12269
                    fi
 
12270
                  fi
 
12271
                fi
 
12272
              fi
 
12273
            else
 
12274
              if test "X$found_a" != "X"; then
 
12275
                                LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a"
 
12276
              else
 
12277
                                                LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name"
 
12278
              fi
 
12279
            fi
 
12280
                        additional_includedir=
 
12281
            case "$found_dir" in
 
12282
              */$acl_libdirstem | */$acl_libdirstem/)
 
12283
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
12284
                if test "$name" = 'tasn1'; then
 
12285
                  LIBTASN1_PREFIX="$basedir"
 
12286
                fi
 
12287
                additional_includedir="$basedir/include"
 
12288
                ;;
 
12289
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
12290
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
12291
                if test "$name" = 'tasn1'; then
 
12292
                  LIBTASN1_PREFIX="$basedir"
 
12293
                fi
 
12294
                additional_includedir="$basedir/include"
 
12295
                ;;
 
12296
            esac
 
12297
            if test "X$additional_includedir" != "X"; then
 
12298
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
12299
                haveit=
 
12300
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
12301
                  if test -n "$GCC"; then
 
12302
                    case $host_os in
 
12303
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
12304
                    esac
 
12305
                  fi
 
12306
                fi
 
12307
                if test -z "$haveit"; then
 
12308
                  for x in $CPPFLAGS $INCTASN1; do
 
12309
 
 
12310
  acl_save_prefix="$prefix"
 
12311
  prefix="$acl_final_prefix"
 
12312
  acl_save_exec_prefix="$exec_prefix"
 
12313
  exec_prefix="$acl_final_exec_prefix"
 
12314
  eval x=\"$x\"
 
12315
  exec_prefix="$acl_save_exec_prefix"
 
12316
  prefix="$acl_save_prefix"
 
12317
 
 
12318
                    if test "X$x" = "X-I$additional_includedir"; then
 
12319
                      haveit=yes
 
12320
                      break
 
12321
                    fi
 
12322
                  done
 
12323
                  if test -z "$haveit"; then
 
12324
                    if test -d "$additional_includedir"; then
 
12325
                                            INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir"
 
12326
                    fi
 
12327
                  fi
 
12328
                fi
 
12329
              fi
 
12330
            fi
 
12331
                        if test -n "$found_la"; then
 
12332
                                                        save_libdir="$libdir"
 
12333
              case "$found_la" in
 
12334
                */* | *\\*) . "$found_la" ;;
 
12335
                *) . "./$found_la" ;;
 
12336
              esac
 
12337
              libdir="$save_libdir"
 
12338
                            for dep in $dependency_libs; do
 
12339
                case "$dep" in
 
12340
                  -L*)
 
12341
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
12342
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
12343
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
12344
                      haveit=
 
12345
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
12346
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
12347
                        if test -n "$GCC"; then
 
12348
                          case $host_os in
 
12349
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
12350
                          esac
 
12351
                        fi
 
12352
                      fi
 
12353
                      if test -z "$haveit"; then
 
12354
                        haveit=
 
12355
                        for x in $LDFLAGS $LIBTASN1; do
 
12356
 
 
12357
  acl_save_prefix="$prefix"
 
12358
  prefix="$acl_final_prefix"
 
12359
  acl_save_exec_prefix="$exec_prefix"
 
12360
  exec_prefix="$acl_final_exec_prefix"
 
12361
  eval x=\"$x\"
 
12362
  exec_prefix="$acl_save_exec_prefix"
 
12363
  prefix="$acl_save_prefix"
 
12364
 
 
12365
                          if test "X$x" = "X-L$additional_libdir"; then
 
12366
                            haveit=yes
 
12367
                            break
 
12368
                          fi
 
12369
                        done
 
12370
                        if test -z "$haveit"; then
 
12371
                          if test -d "$additional_libdir"; then
 
12372
                                                        LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$additional_libdir"
 
12373
                          fi
 
12374
                        fi
 
12375
                        haveit=
 
12376
                        for x in $LDFLAGS $LTLIBTASN1; do
 
12377
 
 
12378
  acl_save_prefix="$prefix"
 
12379
  prefix="$acl_final_prefix"
 
12380
  acl_save_exec_prefix="$exec_prefix"
 
12381
  exec_prefix="$acl_final_exec_prefix"
 
12382
  eval x=\"$x\"
 
12383
  exec_prefix="$acl_save_exec_prefix"
 
12384
  prefix="$acl_save_prefix"
 
12385
 
 
12386
                          if test "X$x" = "X-L$additional_libdir"; then
 
12387
                            haveit=yes
 
12388
                            break
 
12389
                          fi
 
12390
                        done
 
12391
                        if test -z "$haveit"; then
 
12392
                          if test -d "$additional_libdir"; then
 
12393
                                                        LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$additional_libdir"
 
12394
                          fi
 
12395
                        fi
 
12396
                      fi
 
12397
                    fi
 
12398
                    ;;
 
12399
                  -R*)
 
12400
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
12401
                    if test "$enable_rpath" != no; then
 
12402
                                                                  haveit=
 
12403
                      for x in $rpathdirs; do
 
12404
                        if test "X$x" = "X$dir"; then
 
12405
                          haveit=yes
 
12406
                          break
 
12407
                        fi
 
12408
                      done
 
12409
                      if test -z "$haveit"; then
 
12410
                        rpathdirs="$rpathdirs $dir"
 
12411
                      fi
 
12412
                                                                  haveit=
 
12413
                      for x in $ltrpathdirs; do
 
12414
                        if test "X$x" = "X$dir"; then
 
12415
                          haveit=yes
 
12416
                          break
 
12417
                        fi
 
12418
                      done
 
12419
                      if test -z "$haveit"; then
 
12420
                        ltrpathdirs="$ltrpathdirs $dir"
 
12421
                      fi
 
12422
                    fi
 
12423
                    ;;
 
12424
                  -l*)
 
12425
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
12426
                    ;;
 
12427
                  *.la)
 
12428
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
12429
                    ;;
 
12430
                  *)
 
12431
                                        LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep"
 
12432
                    LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep"
 
12433
                    ;;
 
12434
                esac
 
12435
              done
 
12436
            fi
 
12437
          else
 
12438
                                                            LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
 
12439
            LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name"
 
12440
          fi
 
12441
        fi
 
12442
      fi
 
12443
    done
 
12444
  done
 
12445
  if test "X$rpathdirs" != "X"; then
 
12446
    if test -n "$acl_hardcode_libdir_separator"; then
 
12447
                        alldirs=
 
12448
      for found_dir in $rpathdirs; do
 
12449
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
12450
      done
 
12451
            acl_save_libdir="$libdir"
 
12452
      libdir="$alldirs"
 
12453
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
12454
      libdir="$acl_save_libdir"
 
12455
      LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
 
12456
    else
 
12457
            for found_dir in $rpathdirs; do
 
12458
        acl_save_libdir="$libdir"
 
12459
        libdir="$found_dir"
 
12460
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
12461
        libdir="$acl_save_libdir"
 
12462
        LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
 
12463
      done
 
12464
    fi
 
12465
  fi
 
12466
  if test "X$ltrpathdirs" != "X"; then
 
12467
            for found_dir in $ltrpathdirs; do
 
12468
      LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir"
 
12469
    done
 
12470
  fi
 
12471
 
 
12472
 
 
12473
 
 
12474
 
 
12475
 
 
12476
 
 
12477
 
 
12478
        ac_save_CPPFLAGS="$CPPFLAGS"
 
12479
 
 
12480
  for element in $INCTASN1; do
 
12481
    haveit=
 
12482
    for x in $CPPFLAGS; do
 
12483
 
 
12484
  acl_save_prefix="$prefix"
 
12485
  prefix="$acl_final_prefix"
 
12486
  acl_save_exec_prefix="$exec_prefix"
 
12487
  exec_prefix="$acl_final_exec_prefix"
 
12488
  eval x=\"$x\"
 
12489
  exec_prefix="$acl_save_exec_prefix"
 
12490
  prefix="$acl_save_prefix"
 
12491
 
 
12492
      if test "X$x" = "X$element"; then
 
12493
        haveit=yes
 
12494
        break
 
12495
      fi
 
12496
    done
 
12497
    if test -z "$haveit"; then
 
12498
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
12499
    fi
 
12500
  done
 
12501
 
 
12502
 
 
12503
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
 
12504
$as_echo_n "checking for libtasn1... " >&6; }
 
12505
if test "${ac_cv_libtasn1+set}" = set; then :
 
12506
  $as_echo_n "(cached) " >&6
 
12507
else
 
12508
 
 
12509
    ac_save_LIBS="$LIBS"
 
12510
    LIBS="$LIBS $LIBTASN1"
 
12511
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12512
/* end confdefs.h.  */
 
12513
#include <libtasn1.h>
 
12514
int
 
12515
main ()
 
12516
{
 
12517
asn1_check_version (NULL)
 
12518
  ;
 
12519
  return 0;
 
12520
}
 
12521
_ACEOF
 
12522
if ac_fn_c_try_link "$LINENO"; then :
 
12523
  ac_cv_libtasn1=yes
 
12524
else
 
12525
  ac_cv_libtasn1='no'
 
12526
fi
 
12527
rm -f core conftest.err conftest.$ac_objext \
 
12528
    conftest$ac_exeext conftest.$ac_ext
 
12529
    LIBS="$ac_save_LIBS"
 
12530
 
 
12531
fi
 
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5
 
12533
$as_echo "$ac_cv_libtasn1" >&6; }
 
12534
  if test "$ac_cv_libtasn1" = yes; then
 
12535
    HAVE_LIBTASN1=yes
 
12536
 
 
12537
$as_echo "#define HAVE_LIBTASN1 1" >>confdefs.h
 
12538
 
 
12539
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5
 
12540
$as_echo_n "checking how to link with libtasn1... " >&6; }
 
12541
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5
 
12542
$as_echo "$LIBTASN1" >&6; }
 
12543
  else
 
12544
    HAVE_LIBTASN1=no
 
12545
            CPPFLAGS="$ac_save_CPPFLAGS"
 
12546
    LIBTASN1=
 
12547
    LTLIBTASN1=
 
12548
    LIBTASN1_PREFIX=
 
12549
  fi
 
12550
 
 
12551
 
 
12552
 
 
12553
 
 
12554
 
 
12555
 
 
12556
 
 
12557
    if test "$ac_cv_libtasn1" != yes; then
 
12558
      included_libtasn1=yes
 
12559
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
 
12560
  ***
 
12561
  *** Libtasn1 was not found. Will use the included one.
 
12562
  " >&5
 
12563
$as_echo "$as_me: WARNING:
 
12564
  ***
 
12565
  *** Libtasn1 was not found. Will use the included one.
 
12566
  " >&2;}
 
12567
    fi
 
12568
  fi
 
12569
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
 
12570
$as_echo_n "checking whether to use the included minitasn1... " >&6; }
 
12571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
 
12572
$as_echo "$included_libtasn1" >&6; }
 
12573
   if test "$included_libtasn1" = "yes"; then
 
12574
  ENABLE_MINITASN1_TRUE=
 
12575
  ENABLE_MINITASN1_FALSE='#'
 
12576
else
 
12577
  ENABLE_MINITASN1_TRUE='#'
 
12578
  ENABLE_MINITASN1_FALSE=
 
12579
fi
 
12580
 
 
12581
 
 
12582
 
 
12583
# Check whether --with-lzo was given.
 
12584
if test "${with_lzo+set}" = set; then :
 
12585
  withval=$with_lzo; use_lzo=$withval
 
12586
else
 
12587
  use_lzo=no
 
12588
fi
 
12589
 
 
12590
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include LZO compression support" >&5
 
12591
$as_echo_n "checking whether to include LZO compression support... " >&6; }
 
12592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lzo" >&5
 
12593
$as_echo "$use_lzo" >&6; }
 
12594
  LZO_LIBS=
 
12595
  if test "$use_lzo" = "yes"; then
 
12596
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
 
12597
$as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
 
12598
if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
 
12599
  $as_echo_n "(cached) " >&6
 
12600
else
 
12601
  ac_check_lib_save_LIBS=$LIBS
 
12602
LIBS="-llzo2  $LIBS"
 
12603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12604
/* end confdefs.h.  */
 
12605
 
 
12606
/* Override any GCC internal prototype to avoid an error.
 
12607
   Use char because int might match the return type of a GCC
 
12608
   builtin and then its argument prototype would still apply.  */
 
12609
#ifdef __cplusplus
 
12610
extern "C"
 
12611
#endif
 
12612
char lzo1x_1_compress ();
 
12613
int
 
12614
main ()
 
12615
{
 
12616
return lzo1x_1_compress ();
 
12617
  ;
 
12618
  return 0;
 
12619
}
 
12620
_ACEOF
 
12621
if ac_fn_c_try_link "$LINENO"; then :
 
12622
  ac_cv_lib_lzo2_lzo1x_1_compress=yes
 
12623
else
 
12624
  ac_cv_lib_lzo2_lzo1x_1_compress=no
 
12625
fi
 
12626
rm -f core conftest.err conftest.$ac_objext \
 
12627
    conftest$ac_exeext conftest.$ac_ext
 
12628
LIBS=$ac_check_lib_save_LIBS
 
12629
fi
 
12630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
 
12631
$as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
 
12632
if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
 
12633
  LZO_LIBS=-llzo2
 
12634
fi
 
12635
 
 
12636
    if test "$LZO_LIBS" = ""; then
 
12637
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
 
12638
$as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
 
12639
if test "${ac_cv_lib_lzo_lzo1x_1_compress+set}" = set; then :
 
12640
  $as_echo_n "(cached) " >&6
 
12641
else
 
12642
  ac_check_lib_save_LIBS=$LIBS
 
12643
LIBS="-llzo  $LIBS"
 
12644
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12645
/* end confdefs.h.  */
 
12646
 
 
12647
/* Override any GCC internal prototype to avoid an error.
 
12648
   Use char because int might match the return type of a GCC
 
12649
   builtin and then its argument prototype would still apply.  */
 
12650
#ifdef __cplusplus
 
12651
extern "C"
 
12652
#endif
 
12653
char lzo1x_1_compress ();
 
12654
int
 
12655
main ()
 
12656
{
 
12657
return lzo1x_1_compress ();
 
12658
  ;
 
12659
  return 0;
 
12660
}
 
12661
_ACEOF
 
12662
if ac_fn_c_try_link "$LINENO"; then :
 
12663
  ac_cv_lib_lzo_lzo1x_1_compress=yes
 
12664
else
 
12665
  ac_cv_lib_lzo_lzo1x_1_compress=no
 
12666
fi
 
12667
rm -f core conftest.err conftest.$ac_objext \
 
12668
    conftest$ac_exeext conftest.$ac_ext
 
12669
LIBS=$ac_check_lib_save_LIBS
 
12670
fi
 
12671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
 
12672
$as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
 
12673
if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = x""yes; then :
 
12674
  LZO_LIBS=-llzo
 
12675
else
 
12676
 
 
12677
        use_lzo=no
 
12678
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
 
12679
  *** Could not find liblzo or liblzo2.  Disabling LZO compression.
 
12680
  " >&5
 
12681
$as_echo "$as_me: WARNING: ***
 
12682
  *** Could not find liblzo or liblzo2.  Disabling LZO compression.
 
12683
  " >&2;}
 
12684
 
 
12685
fi
 
12686
 
 
12687
    fi
 
12688
  fi
 
12689
 
 
12690
  if test "$use_lzo" = "yes"; then
 
12691
 
 
12692
$as_echo "#define USE_LZO 1" >>confdefs.h
 
12693
 
 
12694
    if test "$LZO_LIBS" = "-llzo"; then
 
12695
      for ac_header in lzo1x.h
 
12696
do :
 
12697
  ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
 
12698
if test "x$ac_cv_header_lzo1x_h" = x""yes; then :
 
12699
  cat >>confdefs.h <<_ACEOF
 
12700
#define HAVE_LZO1X_H 1
 
12701
_ACEOF
 
12702
 
 
12703
fi
 
12704
 
 
12705
done
 
12706
 
 
12707
    elif test "$LZO_LIBS" = "-llzo2"; then
 
12708
      for ac_header in lzo/lzo1x.h
 
12709
do :
 
12710
  ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
 
12711
if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
 
12712
  cat >>confdefs.h <<_ACEOF
 
12713
#define HAVE_LZO_LZO1X_H 1
 
12714
_ACEOF
 
12715
 
 
12716
fi
 
12717
 
 
12718
done
 
12719
 
 
12720
    fi
 
12721
  fi
 
12722
   if test "$use_lzo" = "yes"; then
 
12723
  USE_LZO_TRUE=
 
12724
  USE_LZO_FALSE='#'
 
12725
else
 
12726
  USE_LZO_TRUE='#'
 
12727
  USE_LZO_FALSE=
 
12728
fi
 
12729
 
 
12730
 
 
12731
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
 
12732
$as_echo_n "checking whether C99 macros are supported... " >&6; }
 
12733
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12734
/* end confdefs.h.  */
 
12735
 
 
12736
int
 
12737
main ()
 
12738
{
 
12739
 
 
12740
    #define test_mac(...)
 
12741
    int z,y,x;
 
12742
    test_mac(x,y,z);
 
12743
    return 0;
 
12744
 
 
12745
  ;
 
12746
  return 0;
 
12747
}
 
12748
_ACEOF
 
12749
if ac_fn_c_try_compile "$LINENO"; then :
 
12750
 
 
12751
 
 
12752
$as_echo "#define C99_MACROS 1" >>confdefs.h
 
12753
 
 
12754
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12755
$as_echo "yes" >&6; }
 
12756
 
 
12757
else
 
12758
 
 
12759
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12760
$as_echo "no" >&6; }
 
12761
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
 
12762
$as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
 
12763
 
 
12764
fi
 
12765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12766
 
 
12767
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Opaque PRF input support" >&5
 
12768
$as_echo_n "checking whether to enable Opaque PRF input support... " >&6; }
 
12769
  # Check whether --enable-opaque-prf-input was given.
 
12770
if test "${enable_opaque_prf_input+set}" = set; then :
 
12771
  enableval=$enable_opaque_prf_input; ac_opaque_prf_input=$enableval
 
12772
else
 
12773
  ac_opaque_prf_input=no
 
12774
fi
 
12775
 
 
12776
  if test "$ac_opaque_prf_input" != "no"; then
 
12777
    if ! echo $ac_opaque_prf_input | egrep -q '^[0-9]+$'; then
 
12778
      ac_opaque_prf_input=no
 
12779
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
 
12780
  *** Could not parse Opaque PRF Input extension type.
 
12781
  *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
 
12782
  *** to use extension value 42 use --enable-opqaue-prf-input=42" >&5
 
12783
$as_echo "$as_me: WARNING:
 
12784
  *** Could not parse Opaque PRF Input extension type.
 
12785
  *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
 
12786
  *** to use extension value 42 use --enable-opqaue-prf-input=42" >&2;}
 
12787
    fi
 
12788
  fi
 
12789
  if test "$ac_opaque_prf_input" != "no"; then
 
12790
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (extension value $ac_opaque_prf_input)" >&5
 
12791
$as_echo "yes (extension value $ac_opaque_prf_input)" >&6; }
 
12792
 
 
12793
cat >>confdefs.h <<_ACEOF
 
12794
#define ENABLE_OPRFI $ac_opaque_prf_input
 
12795
_ACEOF
 
12796
 
 
12797
  else
 
12798
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12799
$as_echo "no" >&6; }
 
12800
  fi
 
12801
   if test "$ac_opaque_prf_input" != "no"; then
 
12802
  ENABLE_OPRFI_TRUE=
 
12803
  ENABLE_OPRFI_FALSE='#'
 
12804
else
 
12805
  ENABLE_OPRFI_TRUE='#'
 
12806
  ENABLE_OPRFI_FALSE=
 
12807
fi
 
12808
 
 
12809
 
 
12810
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
 
12811
$as_echo_n "checking whether to disable SRP authentication support... " >&6; }
 
12812
  # Check whether --enable-srp-authentication was given.
 
12813
if test "${enable_srp_authentication+set}" = set; then :
 
12814
  enableval=$enable_srp_authentication; ac_enable_srp=no
 
12815
fi
 
12816
 
 
12817
  if test x$ac_enable_srp != xno; then
 
12818
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12819
$as_echo "no" >&6; }
 
12820
 
 
12821
$as_echo "#define ENABLE_SRP 1" >>confdefs.h
 
12822
 
 
12823
  else
 
12824
   ac_full=0
 
12825
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12826
$as_echo "yes" >&6; }
 
12827
  fi
 
12828
   if test "$ac_enable_srp" != "no"; then
 
12829
  ENABLE_SRP_TRUE=
 
12830
  ENABLE_SRP_FALSE='#'
 
12831
else
 
12832
  ENABLE_SRP_TRUE='#'
 
12833
  ENABLE_SRP_FALSE=
 
12834
fi
 
12835
 
 
12836
 
 
12837
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
 
12838
$as_echo_n "checking whether to disable PSK authentication support... " >&6; }
 
12839
  # Check whether --enable-psk-authentication was given.
 
12840
if test "${enable_psk_authentication+set}" = set; then :
 
12841
  enableval=$enable_psk_authentication; ac_enable_psk=no
 
12842
fi
 
12843
 
 
12844
  if test x$ac_enable_psk != xno; then
 
12845
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12846
$as_echo "no" >&6; }
 
12847
 
 
12848
$as_echo "#define ENABLE_PSK 1" >>confdefs.h
 
12849
 
 
12850
  else
 
12851
   ac_full=0
 
12852
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12853
$as_echo "yes" >&6; }
 
12854
  fi
 
12855
   if test "$ac_enable_psk" != "no"; then
 
12856
  ENABLE_PSK_TRUE=
 
12857
  ENABLE_PSK_FALSE='#'
 
12858
else
 
12859
  ENABLE_PSK_TRUE='#'
 
12860
  ENABLE_PSK_FALSE=
 
12861
fi
 
12862
 
 
12863
 
 
12864
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
 
12865
$as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
 
12866
  # Check whether --enable-anon-authentication was given.
 
12867
if test "${enable_anon_authentication+set}" = set; then :
 
12868
  enableval=$enable_anon_authentication; ac_enable_anon=no
 
12869
fi
 
12870
 
 
12871
  if test x$ac_enable_anon != xno; then
 
12872
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12873
$as_echo "no" >&6; }
 
12874
 
 
12875
$as_echo "#define ENABLE_ANON 1" >>confdefs.h
 
12876
 
 
12877
  else
 
12878
   ac_full=0
 
12879
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12880
$as_echo "yes" >&6; }
 
12881
  fi
 
12882
   if test "$ac_enable_anon" != "no"; then
 
12883
  ENABLE_ANON_TRUE=
 
12884
  ENABLE_ANON_FALSE='#'
 
12885
else
 
12886
  ENABLE_ANON_TRUE='#'
 
12887
  ENABLE_ANON_FALSE=
 
12888
fi
 
12889
 
 
12890
 
 
12891
  # Allow disabling Camellia
 
12892
  # Check whether --enable-camellia was given.
 
12893
if test "${enable_camellia+set}" = set; then :
 
12894
  enableval=$enable_camellia; enable_camellia=$enableval
 
12895
else
 
12896
  enable_camellia=yes
 
12897
fi
 
12898
 
 
12899
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
 
12900
$as_echo_n "checking whether to disable Camellia cipher... " >&6; }
 
12901
  if test "$enable_camellia" != "no"; then
 
12902
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12903
$as_echo "no" >&6; }
 
12904
 
 
12905
$as_echo "#define ENABLE_CAMELLIA 1" >>confdefs.h
 
12906
 
 
12907
  else
 
12908
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12909
$as_echo "yes" >&6; }
 
12910
  fi
 
12911
 
 
12912
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable extra PKI stuff" >&5
 
12913
$as_echo_n "checking whether to disable extra PKI stuff... " >&6; }
 
12914
  # Check whether --enable-extra-pki was given.
 
12915
if test "${enable_extra_pki+set}" = set; then :
 
12916
  enableval=$enable_extra_pki; enable_pki=$enableval
 
12917
else
 
12918
  enable_pki=yes
 
12919
fi
 
12920
 
 
12921
  if test "$enable_pki" != "yes"; then
 
12922
   ac_full=0
 
12923
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12924
$as_echo "yes" >&6; }
 
12925
  else
 
12926
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12927
$as_echo "no" >&6; }
 
12928
 
 
12929
$as_echo "#define ENABLE_PKI 1" >>confdefs.h
 
12930
 
 
12931
  fi
 
12932
   if test "$enable_pki" = "yes"; then
 
12933
  ENABLE_PKI_TRUE=
 
12934
  ENABLE_PKI_FALSE='#'
 
12935
else
 
12936
  ENABLE_PKI_TRUE='#'
 
12937
  ENABLE_PKI_FALSE=
 
12938
fi
 
12939
 
 
12940
 
 
12941
  ac_enable_openpgp=yes
 
12942
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
 
12943
$as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
 
12944
  # Check whether --enable-openpgp-authentication was given.
 
12945
if test "${enable_openpgp_authentication+set}" = set; then :
 
12946
  enableval=$enable_openpgp_authentication; ac_enable_openpgp=no
 
12947
fi
 
12948
 
 
12949
  if test x$ac_enable_openpgp = xno; then
 
12950
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12951
$as_echo "yes" >&6; }
 
12952
   ac_full=0
 
12953
  else
 
12954
 
 
12955
$as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
 
12956
 
 
12957
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12958
$as_echo "no" >&6; }
 
12959
  fi
 
12960
   if test "$ac_enable_openpgp" = "yes"; then
 
12961
  ENABLE_OPENPGP_TRUE=
 
12962
  ENABLE_OPENPGP_FALSE='#'
 
12963
else
 
12964
  ENABLE_OPENPGP_TRUE='#'
 
12965
  ENABLE_OPENPGP_FALSE=
 
12966
fi
 
12967
 
 
12968
 
 
12969
  # For storing integers in pointers without warnings
 
12970
  # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
 
12971
  # The cast to long int works around a bug in the HP C Compiler
 
12972
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
12973
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
12974
# This bug is HP SR number 8606223364.
 
12975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
 
12976
$as_echo_n "checking size of void *... " >&6; }
 
12977
if test "${ac_cv_sizeof_void_p+set}" = set; then :
 
12978
  $as_echo_n "(cached) " >&6
 
12979
else
 
12980
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
 
12981
 
 
12982
else
 
12983
  if test "$ac_cv_type_void_p" = yes; then
 
12984
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12985
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12986
{ as_fn_set_status 77
 
12987
as_fn_error "cannot compute sizeof (void *)
 
12988
See \`config.log' for more details." "$LINENO" 5; }; }
 
12989
   else
 
12990
     ac_cv_sizeof_void_p=0
 
12991
   fi
 
12992
fi
 
12993
 
 
12994
fi
 
12995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
 
12996
$as_echo "$ac_cv_sizeof_void_p" >&6; }
 
12997
 
 
12998
 
 
12999
 
 
13000
cat >>confdefs.h <<_ACEOF
 
13001
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
13002
_ACEOF
 
13003
 
 
13004
 
 
13005
  # The cast to long int works around a bug in the HP C Compiler
 
13006
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13007
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13008
# This bug is HP SR number 8606223364.
 
13009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
13010
$as_echo_n "checking size of long... " >&6; }
 
13011
if test "${ac_cv_sizeof_long+set}" = set; then :
 
13012
  $as_echo_n "(cached) " >&6
 
13013
else
 
13014
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
13015
 
 
13016
else
 
13017
  if test "$ac_cv_type_long" = yes; then
 
13018
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13019
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13020
{ as_fn_set_status 77
 
13021
as_fn_error "cannot compute sizeof (long)
 
13022
See \`config.log' for more details." "$LINENO" 5; }; }
 
13023
   else
 
13024
     ac_cv_sizeof_long=0
 
13025
   fi
 
13026
fi
 
13027
 
 
13028
fi
 
13029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
13030
$as_echo "$ac_cv_sizeof_long" >&6; }
 
13031
 
 
13032
 
 
13033
 
 
13034
cat >>confdefs.h <<_ACEOF
 
13035
#define SIZEOF_LONG $ac_cv_sizeof_long
 
13036
_ACEOF
 
13037
 
 
13038
 
 
13039
  # The cast to long int works around a bug in the HP C Compiler
 
13040
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13041
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13042
# This bug is HP SR number 8606223364.
 
13043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
 
13044
$as_echo_n "checking size of int... " >&6; }
 
13045
if test "${ac_cv_sizeof_int+set}" = set; then :
 
13046
  $as_echo_n "(cached) " >&6
 
13047
else
 
13048
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
 
13049
 
 
13050
else
 
13051
  if test "$ac_cv_type_int" = yes; then
 
13052
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13053
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13054
{ as_fn_set_status 77
 
13055
as_fn_error "cannot compute sizeof (int)
 
13056
See \`config.log' for more details." "$LINENO" 5; }; }
 
13057
   else
 
13058
     ac_cv_sizeof_int=0
 
13059
   fi
 
13060
fi
 
13061
 
 
13062
fi
 
13063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
 
13064
$as_echo "$ac_cv_sizeof_int" >&6; }
 
13065
 
 
13066
 
 
13067
 
 
13068
cat >>confdefs.h <<_ACEOF
 
13069
#define SIZEOF_INT $ac_cv_sizeof_int
 
13070
_ACEOF
 
13071
 
 
13072
 
 
13073
  case $ac_cv_sizeof_void_p in
 
13074
    $ac_cv_sizeof_long)
 
13075
 
 
13076
$as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
 
13077
 
 
13078
      ;;
 
13079
    *)
 
13080
      $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
 
13081
 
 
13082
      ;;
 
13083
  esac
 
13084
 
 
13085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
13086
$as_echo_n "checking for inline... " >&6; }
 
13087
if test "${ac_cv_c_inline+set}" = set; then :
 
13088
  $as_echo_n "(cached) " >&6
 
13089
else
 
13090
  ac_cv_c_inline=no
 
13091
for ac_kw in inline __inline__ __inline; do
 
13092
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13093
/* end confdefs.h.  */
 
13094
#ifndef __cplusplus
 
13095
typedef int foo_t;
 
13096
static $ac_kw foo_t static_foo () {return 0; }
 
13097
$ac_kw foo_t foo () {return 0; }
 
13098
#endif
 
13099
 
 
13100
_ACEOF
 
13101
if ac_fn_c_try_compile "$LINENO"; then :
 
13102
  ac_cv_c_inline=$ac_kw
 
13103
fi
 
13104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13105
  test "$ac_cv_c_inline" != no && break
 
13106
done
 
13107
 
 
13108
fi
 
13109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
13110
$as_echo "$ac_cv_c_inline" >&6; }
 
13111
 
 
13112
case $ac_cv_c_inline in
 
13113
  inline | yes) ;;
 
13114
  *)
 
13115
    case $ac_cv_c_inline in
 
13116
      no) ac_val=;;
 
13117
      *) ac_val=$ac_cv_c_inline;;
 
13118
    esac
 
13119
    cat >>confdefs.h <<_ACEOF
 
13120
#ifndef __cplusplus
 
13121
#define inline $ac_val
 
13122
#endif
 
13123
_ACEOF
 
13124
    ;;
 
13125
esac
 
13126
 
 
13127
 
 
13128
  GNULIB_CHOWN=0;
 
13129
  GNULIB_CLOSE=0;
 
13130
  GNULIB_DUP2=0;
 
13131
  GNULIB_ENVIRON=0;
 
13132
  GNULIB_EUIDACCESS=0;
 
13133
  GNULIB_FCHDIR=0;
 
13134
  GNULIB_FSYNC=0;
 
13135
  GNULIB_FTRUNCATE=0;
 
13136
  GNULIB_GETCWD=0;
 
13137
  GNULIB_GETDOMAINNAME=0;
 
13138
  GNULIB_GETDTABLESIZE=0;
 
13139
  GNULIB_GETHOSTNAME=0;
 
13140
  GNULIB_GETLOGIN_R=0;
 
13141
  GNULIB_GETPAGESIZE=0;
 
13142
  GNULIB_GETUSERSHELL=0;
 
13143
  GNULIB_LCHOWN=0;
 
13144
  GNULIB_LINK=0;
 
13145
  GNULIB_LSEEK=0;
 
13146
  GNULIB_READLINK=0;
 
13147
  GNULIB_SLEEP=0;
 
13148
  GNULIB_UNISTD_H_SIGPIPE=0;
 
13149
  GNULIB_WRITE=0;
 
13150
    HAVE_DUP2=1;
 
13151
  HAVE_EUIDACCESS=1;
 
13152
  HAVE_FSYNC=1;
 
13153
  HAVE_FTRUNCATE=1;
 
13154
  HAVE_GETDOMAINNAME=1;
 
13155
  HAVE_GETDTABLESIZE=1;
 
13156
  HAVE_GETHOSTNAME=1;
 
13157
  HAVE_GETPAGESIZE=1;
 
13158
  HAVE_GETUSERSHELL=1;
 
13159
  HAVE_LINK=1;
 
13160
  HAVE_READLINK=1;
 
13161
  HAVE_SLEEP=1;
 
13162
  HAVE_DECL_ENVIRON=1;
 
13163
  HAVE_DECL_GETLOGIN_R=1;
 
13164
  HAVE_OS_H=0;
 
13165
  HAVE_SYS_PARAM_H=0;
 
13166
  REPLACE_CHOWN=0;
 
13167
  REPLACE_CLOSE=0;
 
13168
  REPLACE_FCHDIR=0;
 
13169
  REPLACE_GETCWD=0;
 
13170
  REPLACE_GETPAGESIZE=0;
 
13171
  REPLACE_LCHOWN=0;
 
13172
  REPLACE_LSEEK=0;
 
13173
  REPLACE_WRITE=0;
 
13174
  UNISTD_H_HAVE_WINSOCK2_H=0;
 
13175
 
 
13176
 
 
13177
 
 
13178
 
 
13179
  for ac_header in $ac_header_list
 
13180
do :
 
13181
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13182
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
13183
"
 
13184
eval as_val=\$$as_ac_Header
 
13185
   if test "x$as_val" = x""yes; then :
 
13186
  cat >>confdefs.h <<_ACEOF
 
13187
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13188
_ACEOF
 
13189
 
 
13190
fi
 
13191
 
 
13192
done
 
13193
 
 
13194
 
 
13195
 
 
13196
 
 
13197
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenSSL compatibility layer" >&5
 
13198
$as_echo_n "checking whether to disable OpenSSL compatibility layer... " >&6; }
 
13199
  # Check whether --enable-openssl-compatibility was given.
 
13200
if test "${enable_openssl_compatibility+set}" = set; then :
 
13201
  enableval=$enable_openssl_compatibility; enable_openssl=$withval
 
13202
else
 
13203
  enable_openssl=yes
 
13204
fi
 
13205
 
 
13206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
 
13207
$as_echo "$enable_openssl" >&6; }
 
13208
   if test "$enable_openssl" = "yes"; then
 
13209
  ENABLE_OPENSSL_TRUE=
 
13210
  ENABLE_OPENSSL_FALSE='#'
 
13211
else
 
13212
  ENABLE_OPENSSL_TRUE='#'
 
13213
  ENABLE_OPENSSL_FALSE=
 
13214
fi
 
13215
 
 
13216
 
 
13217
  # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
 
13218
 
 
13219
 
 
13220
 
 
13221
 
 
13222
 
 
13223
 
 
13224
 
 
13225
  if test $ac_cv_header_sys_socket_h != yes; then
 
13226
                    for ac_header in winsock2.h
 
13227
do :
 
13228
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
 
13229
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
 
13230
  cat >>confdefs.h <<_ACEOF
 
13231
#define HAVE_WINSOCK2_H 1
 
13232
_ACEOF
 
13233
 
 
13234
fi
 
13235
 
 
13236
done
 
13237
 
 
13238
  fi
 
13239
  if test "$ac_cv_header_winsock2_h" = yes; then
 
13240
    HAVE_WINSOCK2_H=1
 
13241
    UNISTD_H_HAVE_WINSOCK2_H=1
 
13242
    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
 
13243
  else
 
13244
    HAVE_WINSOCK2_H=0
 
13245
  fi
 
13246
 
 
13247
   LIBSOCKET=
 
13248
  if test $HAVE_WINSOCK2_H = 1; then
 
13249
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
 
13250
$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
 
13251
if test "${gl_cv_func_wsastartup+set}" = set; then :
 
13252
  $as_echo_n "(cached) " >&6
 
13253
else
 
13254
 
 
13255
      gl_save_LIBS="$LIBS"
 
13256
      LIBS="$LIBS -lws2_32"
 
13257
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13258
/* end confdefs.h.  */
 
13259
 
 
13260
#ifdef HAVE_WINSOCK2_H
 
13261
# include <winsock2.h>
 
13262
#endif
 
13263
int
 
13264
main ()
 
13265
{
 
13266
 
 
13267
        WORD wVersionRequested = MAKEWORD(1, 1);
 
13268
        WSADATA wsaData;
 
13269
        int err = WSAStartup(wVersionRequested, &wsaData);
 
13270
        WSACleanup ();
 
13271
  ;
 
13272
  return 0;
 
13273
}
 
13274
_ACEOF
 
13275
if ac_fn_c_try_link "$LINENO"; then :
 
13276
  gl_cv_func_wsastartup=yes
 
13277
else
 
13278
  gl_cv_func_wsastartup=no
 
13279
fi
 
13280
rm -f core conftest.err conftest.$ac_objext \
 
13281
    conftest$ac_exeext conftest.$ac_ext
 
13282
      LIBS="$gl_save_LIBS"
 
13283
 
 
13284
fi
 
13285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
 
13286
$as_echo "$gl_cv_func_wsastartup" >&6; }
 
13287
    if test "$gl_cv_func_wsastartup" = "yes"; then
 
13288
 
 
13289
$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
 
13290
 
 
13291
      LIBSOCKET='-lws2_32'
 
13292
    fi
 
13293
  else
 
13294
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
 
13295
$as_echo_n "checking for library containing setsockopt... " >&6; }
 
13296
if test "${gl_cv_lib_socket+set}" = set; then :
 
13297
  $as_echo_n "(cached) " >&6
 
13298
else
 
13299
 
 
13300
      gl_cv_lib_socket=
 
13301
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13302
/* end confdefs.h.  */
 
13303
extern
 
13304
#ifdef __cplusplus
 
13305
"C"
 
13306
#endif
 
13307
char setsockopt();
 
13308
int
 
13309
main ()
 
13310
{
 
13311
setsockopt();
 
13312
  ;
 
13313
  return 0;
 
13314
}
 
13315
_ACEOF
 
13316
if ac_fn_c_try_link "$LINENO"; then :
 
13317
 
 
13318
else
 
13319
  gl_save_LIBS="$LIBS"
 
13320
         LIBS="$gl_save_LIBS -lsocket"
 
13321
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13322
/* end confdefs.h.  */
 
13323
extern
 
13324
#ifdef __cplusplus
 
13325
"C"
 
13326
#endif
 
13327
char setsockopt();
 
13328
int
 
13329
main ()
 
13330
{
 
13331
setsockopt();
 
13332
  ;
 
13333
  return 0;
 
13334
}
 
13335
_ACEOF
 
13336
if ac_fn_c_try_link "$LINENO"; then :
 
13337
  gl_cv_lib_socket="-lsocket"
 
13338
fi
 
13339
rm -f core conftest.err conftest.$ac_objext \
 
13340
    conftest$ac_exeext conftest.$ac_ext
 
13341
         if test -z "$gl_cv_lib_socket"; then
 
13342
           LIBS="$gl_save_LIBS -lnetwork"
 
13343
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13344
/* end confdefs.h.  */
 
13345
extern
 
13346
#ifdef __cplusplus
 
13347
"C"
 
13348
#endif
 
13349
char setsockopt();
 
13350
int
 
13351
main ()
 
13352
{
 
13353
setsockopt();
 
13354
  ;
 
13355
  return 0;
 
13356
}
 
13357
_ACEOF
 
13358
if ac_fn_c_try_link "$LINENO"; then :
 
13359
  gl_cv_lib_socket="-lnetwork"
 
13360
fi
 
13361
rm -f core conftest.err conftest.$ac_objext \
 
13362
    conftest$ac_exeext conftest.$ac_ext
 
13363
           if test -z "$gl_cv_lib_socket"; then
 
13364
             LIBS="$gl_save_LIBS -lnet"
 
13365
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13366
/* end confdefs.h.  */
 
13367
extern
 
13368
#ifdef __cplusplus
 
13369
"C"
 
13370
#endif
 
13371
char setsockopt();
 
13372
int
 
13373
main ()
 
13374
{
 
13375
setsockopt();
 
13376
  ;
 
13377
  return 0;
 
13378
}
 
13379
_ACEOF
 
13380
if ac_fn_c_try_link "$LINENO"; then :
 
13381
  gl_cv_lib_socket="-lnet"
 
13382
fi
 
13383
rm -f core conftest.err conftest.$ac_objext \
 
13384
    conftest$ac_exeext conftest.$ac_ext
 
13385
           fi
 
13386
         fi
 
13387
         LIBS="$gl_save_LIBS"
 
13388
 
 
13389
fi
 
13390
rm -f core conftest.err conftest.$ac_objext \
 
13391
    conftest$ac_exeext conftest.$ac_ext
 
13392
      if test -z "$gl_cv_lib_socket"; then
 
13393
        gl_cv_lib_socket="none needed"
 
13394
      fi
 
13395
 
 
13396
fi
 
13397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
 
13398
$as_echo "$gl_cv_lib_socket" >&6; }
 
13399
    if test "$gl_cv_lib_socket" != "none needed"; then
 
13400
      LIBSOCKET="$gl_cv_lib_socket"
 
13401
    fi
 
13402
  fi
 
13403
 
 
13404
 
 
13405
  :
 
13406
 
 
13407
 
 
13408
 
 
13409
 
 
13410
 
 
13411
 
 
13412
 
 
13413
 
 
13414
 
 
13415
 
 
13416
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
13417
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
13418
if test "${ac_cv_c_bigendian+set}" = set; then :
 
13419
  $as_echo_n "(cached) " >&6
 
13420
else
 
13421
  ac_cv_c_bigendian=unknown
 
13422
    # See if we're dealing with a universal compiler.
 
13423
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13424
/* end confdefs.h.  */
 
13425
#ifndef __APPLE_CC__
 
13426
               not a universal capable compiler
 
13427
             #endif
 
13428
             typedef int dummy;
 
13429
 
 
13430
_ACEOF
 
13431
if ac_fn_c_try_compile "$LINENO"; then :
 
13432
 
 
13433
        # Check for potential -arch flags.  It is not universal unless
 
13434
        # there are at least two -arch flags with different values.
 
13435
        ac_arch=
 
13436
        ac_prev=
 
13437
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
13438
         if test -n "$ac_prev"; then
 
13439
           case $ac_word in
 
13440
             i?86 | x86_64 | ppc | ppc64)
 
13441
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
13442
                 ac_arch=$ac_word
 
13443
               else
 
13444
                 ac_cv_c_bigendian=universal
 
13445
                 break
 
13446
               fi
 
13447
               ;;
 
13448
           esac
 
13449
           ac_prev=
 
13450
         elif test "x$ac_word" = "x-arch"; then
 
13451
           ac_prev=arch
 
13452
         fi
 
13453
       done
 
13454
fi
 
13455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13456
    if test $ac_cv_c_bigendian = unknown; then
 
13457
      # See if sys/param.h defines the BYTE_ORDER macro.
 
13458
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13459
/* end confdefs.h.  */
 
13460
#include <sys/types.h>
 
13461
             #include <sys/param.h>
 
13462
 
 
13463
int
 
13464
main ()
 
13465
{
 
13466
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
13467
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
13468
                     && LITTLE_ENDIAN)
 
13469
              bogus endian macros
 
13470
             #endif
 
13471
 
 
13472
  ;
 
13473
  return 0;
 
13474
}
 
13475
_ACEOF
 
13476
if ac_fn_c_try_compile "$LINENO"; then :
 
13477
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
13478
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13479
/* end confdefs.h.  */
 
13480
#include <sys/types.h>
 
13481
                #include <sys/param.h>
 
13482
 
 
13483
int
 
13484
main ()
 
13485
{
 
13486
#if BYTE_ORDER != BIG_ENDIAN
 
13487
                 not big endian
 
13488
                #endif
 
13489
 
 
13490
  ;
 
13491
  return 0;
 
13492
}
 
13493
_ACEOF
 
13494
if ac_fn_c_try_compile "$LINENO"; then :
 
13495
  ac_cv_c_bigendian=yes
 
13496
else
 
13497
  ac_cv_c_bigendian=no
 
13498
fi
 
13499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13500
fi
 
13501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13502
    fi
 
13503
    if test $ac_cv_c_bigendian = unknown; then
 
13504
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
13505
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13506
/* end confdefs.h.  */
 
13507
#include <limits.h>
 
13508
 
 
13509
int
 
13510
main ()
 
13511
{
 
13512
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
13513
              bogus endian macros
 
13514
             #endif
 
13515
 
 
13516
  ;
 
13517
  return 0;
 
13518
}
 
13519
_ACEOF
 
13520
if ac_fn_c_try_compile "$LINENO"; then :
 
13521
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
13522
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13523
/* end confdefs.h.  */
 
13524
#include <limits.h>
 
13525
 
 
13526
int
 
13527
main ()
 
13528
{
 
13529
#ifndef _BIG_ENDIAN
 
13530
                 not big endian
 
13531
                #endif
 
13532
 
 
13533
  ;
 
13534
  return 0;
 
13535
}
 
13536
_ACEOF
 
13537
if ac_fn_c_try_compile "$LINENO"; then :
 
13538
  ac_cv_c_bigendian=yes
 
13539
else
 
13540
  ac_cv_c_bigendian=no
 
13541
fi
 
13542
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13543
fi
 
13544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13545
    fi
 
13546
    if test $ac_cv_c_bigendian = unknown; then
 
13547
      # Compile a test program.
 
13548
      if test "$cross_compiling" = yes; then :
 
13549
  # Try to guess by grepping values from an object file.
 
13550
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13551
/* end confdefs.h.  */
 
13552
short int ascii_mm[] =
 
13553
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
13554
                short int ascii_ii[] =
 
13555
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
13556
                int use_ascii (int i) {
 
13557
                  return ascii_mm[i] + ascii_ii[i];
 
13558
                }
 
13559
                short int ebcdic_ii[] =
 
13560
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
13561
                short int ebcdic_mm[] =
 
13562
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
13563
                int use_ebcdic (int i) {
 
13564
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
13565
                }
 
13566
                extern int foo;
 
13567
 
 
13568
int
 
13569
main ()
 
13570
{
 
13571
return use_ascii (foo) == use_ebcdic (foo);
 
13572
  ;
 
13573
  return 0;
 
13574
}
 
13575
_ACEOF
 
13576
if ac_fn_c_try_compile "$LINENO"; then :
 
13577
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
13578
              ac_cv_c_bigendian=yes
 
13579
            fi
 
13580
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
13581
              if test "$ac_cv_c_bigendian" = unknown; then
 
13582
                ac_cv_c_bigendian=no
 
13583
              else
 
13584
                # finding both strings is unlikely to happen, but who knows?
 
13585
                ac_cv_c_bigendian=unknown
 
13586
              fi
 
13587
            fi
 
13588
fi
 
13589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13590
else
 
13591
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13592
/* end confdefs.h.  */
 
13593
$ac_includes_default
 
13594
int
 
13595
main ()
 
13596
{
 
13597
 
 
13598
             /* Are we little or big endian?  From Harbison&Steele.  */
 
13599
             union
 
13600
             {
 
13601
               long int l;
 
13602
               char c[sizeof (long int)];
 
13603
             } u;
 
13604
             u.l = 1;
 
13605
             return u.c[sizeof (long int) - 1] == 1;
 
13606
 
 
13607
  ;
 
13608
  return 0;
 
13609
}
 
13610
_ACEOF
 
13611
if ac_fn_c_try_run "$LINENO"; then :
 
13612
  ac_cv_c_bigendian=no
 
13613
else
 
13614
  ac_cv_c_bigendian=yes
 
13615
fi
 
13616
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13617
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13618
fi
 
13619
 
 
13620
    fi
 
13621
fi
 
13622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
13623
$as_echo "$ac_cv_c_bigendian" >&6; }
 
13624
 case $ac_cv_c_bigendian in #(
 
13625
   yes)
 
13626
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 
13627
;; #(
 
13628
   no)
 
13629
      ;; #(
 
13630
   universal)
 
13631
 
 
13632
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
13633
 
 
13634
     ;; #(
 
13635
   *)
 
13636
     as_fn_error "unknown endianness
 
13637
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
13638
 esac
 
13639
 
 
13640
 
 
13641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
 
13642
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
 
13643
if test "${ac_cv_c_restrict+set}" = set; then :
 
13644
  $as_echo_n "(cached) " >&6
 
13645
else
 
13646
  ac_cv_c_restrict=no
 
13647
   # The order here caters to the fact that C++ does not require restrict.
 
13648
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
 
13649
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13650
/* end confdefs.h.  */
 
13651
typedef int * int_ptr;
 
13652
        int foo (int_ptr $ac_kw ip) {
 
13653
        return ip[0];
 
13654
       }
 
13655
int
 
13656
main ()
 
13657
{
 
13658
int s[1];
 
13659
        int * $ac_kw t = s;
 
13660
        t[0] = 0;
 
13661
        return foo(t)
 
13662
  ;
 
13663
  return 0;
 
13664
}
 
13665
_ACEOF
 
13666
if ac_fn_c_try_compile "$LINENO"; then :
 
13667
  ac_cv_c_restrict=$ac_kw
 
13668
fi
 
13669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13670
     test "$ac_cv_c_restrict" != no && break
 
13671
   done
 
13672
 
 
13673
fi
 
13674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
 
13675
$as_echo "$ac_cv_c_restrict" >&6; }
 
13676
 
 
13677
 case $ac_cv_c_restrict in
 
13678
   restrict) ;;
 
13679
   no) $as_echo "#define restrict /**/" >>confdefs.h
 
13680
 ;;
 
13681
   *)  cat >>confdefs.h <<_ACEOF
 
13682
#define restrict $ac_cv_c_restrict
 
13683
_ACEOF
 
13684
 ;;
 
13685
 esac
 
13686
 
 
13687
 
 
13688
   if true; then
 
13689
  GL_COND_LIBTOOL_TRUE=
 
13690
  GL_COND_LIBTOOL_FALSE='#'
 
13691
else
 
13692
  GL_COND_LIBTOOL_TRUE='#'
 
13693
  GL_COND_LIBTOOL_FALSE=
 
13694
fi
 
13695
 
 
13696
  gl_cond_libtool=true
 
13697
 
 
13698
 
 
13699
 
 
13700
 
 
13701
 
 
13702
 
 
13703
 
 
13704
 
 
13705
 
 
13706
  gl_source_base='gl'
 
13707
 
 
13708
 
 
13709
 
 
13710
 
 
13711
 
 
13712
 
 
13713
 
 
13714
 
 
13715
 
 
13716
  xgl_LIBOBJS="$xgl_LIBOBJS hmac-md5.$ac_objext"
 
13717
 
 
13718
 
 
13719
 
 
13720
 
 
13721
 
 
13722
 
 
13723
 
 
13724
 
 
13725
 
 
13726
 
 
13727
 
 
13728
  xgl_LIBOBJS="$xgl_LIBOBJS md5.$ac_objext"
 
13729
 
 
13730
 
 
13731
 
 
13732
 
 
13733
  :
 
13734
 
 
13735
 
 
13736
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
 
13737
$as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
 
13738
if test "${gl_cv_ld_output_def+set}" = set; then :
 
13739
  $as_echo_n "(cached) " >&6
 
13740
else
 
13741
  if test "$enable_shared" = no; then
 
13742
       gl_cv_ld_output_def="not needed, shared libraries are disabled"
 
13743
     else
 
13744
       gl_ldflags_save=$LDFLAGS
 
13745
       LDFLAGS="-Wl,--output-def,conftest.def"
 
13746
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13747
/* end confdefs.h.  */
 
13748
 
 
13749
int
 
13750
main ()
 
13751
{
 
13752
 
 
13753
  ;
 
13754
  return 0;
 
13755
}
 
13756
_ACEOF
 
13757
if ac_fn_c_try_link "$LINENO"; then :
 
13758
  gl_cv_ld_output_def=yes
 
13759
else
 
13760
  gl_cv_ld_output_def=no
 
13761
fi
 
13762
rm -f core conftest.err conftest.$ac_objext \
 
13763
    conftest$ac_exeext conftest.$ac_ext
 
13764
       rm -f conftest.def
 
13765
       LDFLAGS="$gl_ldflags_save"
 
13766
     fi
 
13767
fi
 
13768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
 
13769
$as_echo "$gl_cv_ld_output_def" >&6; }
 
13770
   if test "x$gl_cv_ld_output_def" = "xyes"; then
 
13771
  HAVE_LD_OUTPUT_DEF_TRUE=
 
13772
  HAVE_LD_OUTPUT_DEF_FALSE='#'
 
13773
else
 
13774
  HAVE_LD_OUTPUT_DEF_TRUE='#'
 
13775
  HAVE_LD_OUTPUT_DEF_FALSE=
 
13776
fi
 
13777
 
 
13778
 
 
13779
 
 
13780
  # Check whether --enable-ld-version-script was given.
 
13781
if test "${enable_ld_version_script+set}" = set; then :
 
13782
  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
 
13783
fi
 
13784
 
 
13785
  if test -z "$have_ld_version_script"; then
 
13786
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
 
13787
$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
 
13788
    save_LDFLAGS="$LDFLAGS"
 
13789
    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
 
13790
    cat > conftest.map <<EOF
 
13791
VERS_1 {
 
13792
        global: sym;
 
13793
};
 
13794
 
 
13795
VERS_2 {
 
13796
        global: sym;
 
13797
} VERS_1;
 
13798
EOF
 
13799
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13800
/* end confdefs.h.  */
 
13801
 
 
13802
int
 
13803
main ()
 
13804
{
 
13805
 
 
13806
  ;
 
13807
  return 0;
 
13808
}
 
13809
_ACEOF
 
13810
if ac_fn_c_try_link "$LINENO"; then :
 
13811
  have_ld_version_script=yes
 
13812
else
 
13813
  have_ld_version_script=no
 
13814
fi
 
13815
rm -f core conftest.err conftest.$ac_objext \
 
13816
    conftest$ac_exeext conftest.$ac_ext
 
13817
    rm -f conftest.map
 
13818
    LDFLAGS="$save_LDFLAGS"
 
13819
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
 
13820
$as_echo "$have_ld_version_script" >&6; }
 
13821
  fi
 
13822
   if test "$have_ld_version_script" = "yes"; then
 
13823
  HAVE_LD_VERSION_SCRIPT_TRUE=
 
13824
  HAVE_LD_VERSION_SCRIPT_FALSE='#'
 
13825
else
 
13826
  HAVE_LD_VERSION_SCRIPT_TRUE='#'
 
13827
  HAVE_LD_VERSION_SCRIPT_FALSE=
 
13828
fi
 
13829
 
 
13830
 
 
13831
 
 
13832
 
 
13833
 
 
13834
 
 
13835
 
 
13836
 
 
13837
 
 
13838
 
 
13839
 
 
13840
  xgl_LIBOBJS="$xgl_LIBOBJS memxor.$ac_objext"
 
13841
 
 
13842
 
 
13843
 
 
13844
 
 
13845
 
 
13846
 
 
13847
 
 
13848
 
 
13849
 
 
13850
 
 
13851
 
 
13852
 
 
13853
  gltests_libdeps=
 
13854
  gltests_ltlibdeps=
 
13855
 
 
13856
 
 
13857
 
 
13858
 
 
13859
 
 
13860
 
 
13861
 
 
13862
 
 
13863
 
 
13864
  gl_source_base='gl/tests'
 
13865
 
 
13866
 
 
13867
 
 
13868
 
 
13869
 
 
13870
 
 
13871
 
 
13872
 
 
13873
 
 
13874
LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS"
 
13875
LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}"
 
13876
 
 
13877
 
 
13878
 
 
13879
# Finish things from ../configure.ac.
 
13880
 
 
13881
 
 
13882
 
 
13883
ac_config_files="$ac_config_files Makefile gnutls-extra.pc gl/Makefile includes/Makefile"
 
13884
 
 
13885
cat >confcache <<\_ACEOF
 
13886
# This file is a shell script that caches the results of configure
 
13887
# tests run on this system so they can be shared between configure
 
13888
# scripts and configure runs, see configure's option --config-cache.
 
13889
# It is not useful on other systems.  If it contains results you don't
 
13890
# want to keep, you may remove or edit it.
 
13891
#
 
13892
# config.status only pays attention to the cache file if you give it
 
13893
# the --recheck option to rerun configure.
 
13894
#
 
13895
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13896
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13897
# following values.
 
13898
 
 
13899
_ACEOF
 
13900
 
 
13901
# The following way of writing the cache mishandles newlines in values,
 
13902
# but we know of no workaround that is simple, portable, and efficient.
 
13903
# So, we kill variables containing newlines.
 
13904
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13905
# and sets the high bit in the cache file unless we assign to the vars.
 
13906
(
 
13907
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13908
    eval ac_val=\$$ac_var
 
13909
    case $ac_val in #(
 
13910
    *${as_nl}*)
 
13911
      case $ac_var in #(
 
13912
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13913
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13914
      esac
 
13915
      case $ac_var in #(
 
13916
      _ | IFS | as_nl) ;; #(
 
13917
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13918
      *) { eval $ac_var=; unset $ac_var;} ;;
 
13919
      esac ;;
 
13920
    esac
 
13921
  done
 
13922
 
 
13923
  (set) 2>&1 |
 
13924
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13925
    *${as_nl}ac_space=\ *)
 
13926
      # `set' does not quote correctly, so add quotes: double-quote
 
13927
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
13928
      sed -n \
 
13929
        "s/'/'\\\\''/g;
 
13930
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13931
      ;; #(
 
13932
    *)
 
13933
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13934
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13935
      ;;
 
13936
    esac |
 
13937
    sort
 
13938
) |
 
13939
  sed '
 
13940
     /^ac_cv_env_/b end
 
13941
     t clear
 
13942
     :clear
 
13943
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13944
     t end
 
13945
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13946
     :end' >>confcache
 
13947
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13948
  if test -w "$cache_file"; then
 
13949
    test "x$cache_file" != "x/dev/null" &&
 
13950
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13951
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13952
    cat confcache >$cache_file
 
13953
  else
 
13954
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13955
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13956
  fi
 
13957
fi
 
13958
rm -f confcache
 
13959
 
 
13960
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13961
# Let make expand exec_prefix.
 
13962
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13963
 
 
13964
DEFS=-DHAVE_CONFIG_H
 
13965
 
 
13966
ac_libobjs=
 
13967
ac_ltlibobjs=
 
13968
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13969
  # 1. Remove the extension, and $U if already installed.
 
13970
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13971
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13972
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13973
  #    will be set to the directory where LIBOBJS objects are built.
 
13974
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13975
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13976
done
 
13977
LIBOBJS=$ac_libobjs
 
13978
 
 
13979
LTLIBOBJS=$ac_ltlibobjs
 
13980
 
 
13981
 
 
13982
 if test -n "$EXEEXT"; then
 
13983
  am__EXEEXT_TRUE=
 
13984
  am__EXEEXT_FALSE='#'
 
13985
else
 
13986
  am__EXEEXT_TRUE='#'
 
13987
  am__EXEEXT_FALSE=
 
13988
fi
 
13989
 
 
13990
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13991
  as_fn_error "conditional \"AMDEP\" was never defined.
 
13992
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13993
fi
 
13994
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13995
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
13996
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13997
fi
 
13998
if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
 
13999
  as_fn_error "conditional \"ENABLE_MINITASN1\" was never defined.
 
14000
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14001
fi
 
14002
if test -z "${USE_LZO_TRUE}" && test -z "${USE_LZO_FALSE}"; then
 
14003
  as_fn_error "conditional \"USE_LZO\" was never defined.
 
14004
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14005
fi
 
14006
if test -z "${ENABLE_OPRFI_TRUE}" && test -z "${ENABLE_OPRFI_FALSE}"; then
 
14007
  as_fn_error "conditional \"ENABLE_OPRFI\" was never defined.
 
14008
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14009
fi
 
14010
if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
 
14011
  as_fn_error "conditional \"ENABLE_SRP\" was never defined.
 
14012
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14013
fi
 
14014
if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
 
14015
  as_fn_error "conditional \"ENABLE_PSK\" was never defined.
 
14016
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14017
fi
 
14018
if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
 
14019
  as_fn_error "conditional \"ENABLE_ANON\" was never defined.
 
14020
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14021
fi
 
14022
if test -z "${ENABLE_PKI_TRUE}" && test -z "${ENABLE_PKI_FALSE}"; then
 
14023
  as_fn_error "conditional \"ENABLE_PKI\" was never defined.
 
14024
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14025
fi
 
14026
if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
 
14027
  as_fn_error "conditional \"ENABLE_OPENPGP\" was never defined.
 
14028
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14029
fi
 
14030
if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
 
14031
  as_fn_error "conditional \"ENABLE_OPENSSL\" was never defined.
 
14032
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14033
fi
 
14034
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
 
14035
  as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
 
14036
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14037
fi
 
14038
 
 
14039
if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
 
14040
  as_fn_error "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
 
14041
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14042
fi
 
14043
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
 
14044
  as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
 
14045
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14046
fi
 
14047
 
 
14048
    xgl_libobjs=
 
14049
    xgl_ltlibobjs=
 
14050
    if test -n "$xgl_LIBOBJS"; then
 
14051
      # Remove the extension.
 
14052
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
14053
      for i in `for i in $xgl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
14054
        xgl_libobjs="$xgl_libobjs $i.$ac_objext"
 
14055
        xgl_ltlibobjs="$xgl_ltlibobjs $i.lo"
 
14056
      done
 
14057
    fi
 
14058
    xgl_LIBOBJS=$xgl_libobjs
 
14059
 
 
14060
    xgl_LTLIBOBJS=$xgl_ltlibobjs
 
14061
 
 
14062
 
 
14063
 
 
14064
    xgltests_libobjs=
 
14065
    xgltests_ltlibobjs=
 
14066
    if test -n "$xgltests_LIBOBJS"; then
 
14067
      # Remove the extension.
 
14068
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
14069
      for i in `for i in $xgltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
14070
        xgltests_libobjs="$xgltests_libobjs $i.$ac_objext"
 
14071
        xgltests_ltlibobjs="$xgltests_ltlibobjs $i.lo"
 
14072
      done
 
14073
    fi
 
14074
    xgltests_LIBOBJS=$xgltests_libobjs
 
14075
 
 
14076
    xgltests_LTLIBOBJS=$xgltests_ltlibobjs
 
14077
 
 
14078
 
 
14079
 
 
14080
: ${CONFIG_STATUS=./config.status}
 
14081
ac_write_fail=0
 
14082
ac_clean_files_save=$ac_clean_files
 
14083
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
14084
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
14085
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
14086
as_write_fail=0
 
14087
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
14088
#! $SHELL
 
14089
# Generated by $as_me.
 
14090
# Run this file to recreate the current configuration.
 
14091
# Compiler output produced by configure, useful for debugging
 
14092
# configure, is in config.log if it exists.
 
14093
 
 
14094
debug=false
 
14095
ac_cs_recheck=false
 
14096
ac_cs_silent=false
 
14097
 
 
14098
SHELL=\${CONFIG_SHELL-$SHELL}
 
14099
export SHELL
 
14100
_ASEOF
 
14101
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
14102
## -------------------- ##
 
14103
## M4sh Initialization. ##
 
14104
## -------------------- ##
 
14105
 
 
14106
# Be more Bourne compatible
 
14107
DUALCASE=1; export DUALCASE # for MKS sh
 
14108
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
14109
  emulate sh
 
14110
  NULLCMD=:
 
14111
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
14112
  # is contrary to our usage.  Disable this feature.
 
14113
  alias -g '${1+"$@"}'='"$@"'
 
14114
  setopt NO_GLOB_SUBST
 
14115
else
 
14116
  case `(set -o) 2>/dev/null` in #(
 
14117
  *posix*) :
 
14118
    set -o posix ;; #(
 
14119
  *) :
 
14120
     ;;
 
14121
esac
 
14122
fi
 
14123
 
 
14124
 
 
14125
as_nl='
 
14126
'
 
14127
export as_nl
 
14128
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
14129
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
14130
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
14131
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
14132
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
14133
# but without wasting forks for bash or zsh.
 
14134
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
14135
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14136
  as_echo='print -r --'
 
14137
  as_echo_n='print -rn --'
 
14138
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14139
  as_echo='printf %s\n'
 
14140
  as_echo_n='printf %s'
 
14141
else
 
14142
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
14143
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
14144
    as_echo_n='/usr/ucb/echo -n'
 
14145
  else
 
14146
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
14147
    as_echo_n_body='eval
 
14148
      arg=$1;
 
14149
      case $arg in #(
 
14150
      *"$as_nl"*)
 
14151
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
14152
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
14153
      esac;
 
14154
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
14155
    '
 
14156
    export as_echo_n_body
 
14157
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
14158
  fi
 
14159
  export as_echo_body
 
14160
  as_echo='sh -c $as_echo_body as_echo'
 
14161
fi
 
14162
 
 
14163
# The user is always right.
 
14164
if test "${PATH_SEPARATOR+set}" != set; then
 
14165
  PATH_SEPARATOR=:
 
14166
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
14167
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
14168
      PATH_SEPARATOR=';'
 
14169
  }
 
14170
fi
 
14171
 
 
14172
 
 
14173
# IFS
 
14174
# We need space, tab and new line, in precisely that order.  Quoting is
 
14175
# there to prevent editors from complaining about space-tab.
 
14176
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
14177
# splitting by setting IFS to empty value.)
 
14178
IFS=" ""        $as_nl"
 
14179
 
 
14180
# Find who we are.  Look in the path if we contain no directory separator.
 
14181
case $0 in #((
 
14182
  *[\\/]* ) as_myself=$0 ;;
 
14183
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14184
for as_dir in $PATH
 
14185
do
 
14186
  IFS=$as_save_IFS
 
14187
  test -z "$as_dir" && as_dir=.
 
14188
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
14189
  done
 
14190
IFS=$as_save_IFS
 
14191
 
 
14192
     ;;
 
14193
esac
 
14194
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
14195
# in which case we are not to be found in the path.
 
14196
if test "x$as_myself" = x; then
 
14197
  as_myself=$0
 
14198
fi
 
14199
if test ! -f "$as_myself"; then
 
14200
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
14201
  exit 1
 
14202
fi
 
14203
 
 
14204
# Unset variables that we do not need and which cause bugs (e.g. in
 
14205
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
14206
# suppresses any "Segmentation fault" message there.  '((' could
 
14207
# trigger a bug in pdksh 5.2.14.
 
14208
for as_var in BASH_ENV ENV MAIL MAILPATH
 
14209
do eval test x\${$as_var+set} = xset \
 
14210
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
14211
done
 
14212
PS1='$ '
 
14213
PS2='> '
 
14214
PS4='+ '
 
14215
 
 
14216
# NLS nuisances.
 
14217
LC_ALL=C
 
14218
export LC_ALL
 
14219
LANGUAGE=C
 
14220
export LANGUAGE
 
14221
 
 
14222
# CDPATH.
 
14223
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14224
 
 
14225
 
 
14226
# as_fn_error ERROR [LINENO LOG_FD]
 
14227
# ---------------------------------
 
14228
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
14229
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
14230
# script with status $?, using 1 if that was 0.
 
14231
as_fn_error ()
 
14232
{
 
14233
  as_status=$?; test $as_status -eq 0 && as_status=1
 
14234
  if test "$3"; then
 
14235
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
14236
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
14237
  fi
 
14238
  $as_echo "$as_me: error: $1" >&2
 
14239
  as_fn_exit $as_status
 
14240
} # as_fn_error
 
14241
 
 
14242
 
 
14243
# as_fn_set_status STATUS
 
14244
# -----------------------
 
14245
# Set $? to STATUS, without forking.
 
14246
as_fn_set_status ()
 
14247
{
 
14248
  return $1
 
14249
} # as_fn_set_status
 
14250
 
 
14251
# as_fn_exit STATUS
 
14252
# -----------------
 
14253
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
14254
as_fn_exit ()
 
14255
{
 
14256
  set +e
 
14257
  as_fn_set_status $1
 
14258
  exit $1
 
14259
} # as_fn_exit
 
14260
 
 
14261
# as_fn_unset VAR
 
14262
# ---------------
 
14263
# Portably unset VAR.
 
14264
as_fn_unset ()
 
14265
{
 
14266
  { eval $1=; unset $1;}
 
14267
}
 
14268
as_unset=as_fn_unset
 
14269
# as_fn_append VAR VALUE
 
14270
# ----------------------
 
14271
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
14272
# advantage of any shell optimizations that allow amortized linear growth over
 
14273
# repeated appends, instead of the typical quadratic growth present in naive
 
14274
# implementations.
 
14275
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
14276
  eval 'as_fn_append ()
 
14277
  {
 
14278
    eval $1+=\$2
 
14279
  }'
 
14280
else
 
14281
  as_fn_append ()
 
14282
  {
 
14283
    eval $1=\$$1\$2
 
14284
  }
 
14285
fi # as_fn_append
 
14286
 
 
14287
# as_fn_arith ARG...
 
14288
# ------------------
 
14289
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
14290
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
14291
# must be portable across $(()) and expr.
 
14292
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
14293
  eval 'as_fn_arith ()
 
14294
  {
 
14295
    as_val=$(( $* ))
 
14296
  }'
 
14297
else
 
14298
  as_fn_arith ()
 
14299
  {
 
14300
    as_val=`expr "$@" || test $? -eq 1`
 
14301
  }
 
14302
fi # as_fn_arith
 
14303
 
 
14304
 
 
14305
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14306
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
14307
  as_expr=expr
 
14308
else
 
14309
  as_expr=false
 
14310
fi
 
14311
 
 
14312
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
14313
  as_basename=basename
 
14314
else
 
14315
  as_basename=false
 
14316
fi
 
14317
 
 
14318
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14319
  as_dirname=dirname
 
14320
else
 
14321
  as_dirname=false
 
14322
fi
 
14323
 
 
14324
as_me=`$as_basename -- "$0" ||
 
14325
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
14326
         X"$0" : 'X\(//\)$' \| \
 
14327
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
14328
$as_echo X/"$0" |
 
14329
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
14330
            s//\1/
 
14331
            q
 
14332
          }
 
14333
          /^X\/\(\/\/\)$/{
 
14334
            s//\1/
 
14335
            q
 
14336
          }
 
14337
          /^X\/\(\/\).*/{
 
14338
            s//\1/
 
14339
            q
 
14340
          }
 
14341
          s/.*/./; q'`
 
14342
 
 
14343
# Avoid depending upon Character Ranges.
 
14344
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14345
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14346
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14347
as_cr_digits='0123456789'
 
14348
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
14349
 
 
14350
ECHO_C= ECHO_N= ECHO_T=
 
14351
case `echo -n x` in #(((((
 
14352
-n*)
 
14353
  case `echo 'xy\c'` in
 
14354
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
14355
  xy)  ECHO_C='\c';;
 
14356
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
14357
       ECHO_T=' ';;
 
14358
  esac;;
 
14359
*)
 
14360
  ECHO_N='-n';;
 
14361
esac
 
14362
 
 
14363
rm -f conf$$ conf$$.exe conf$$.file
 
14364
if test -d conf$$.dir; then
 
14365
  rm -f conf$$.dir/conf$$.file
 
14366
else
 
14367
  rm -f conf$$.dir
 
14368
  mkdir conf$$.dir 2>/dev/null
 
14369
fi
 
14370
if (echo >conf$$.file) 2>/dev/null; then
 
14371
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
14372
    as_ln_s='ln -s'
 
14373
    # ... but there are two gotchas:
 
14374
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14375
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14376
    # In both cases, we have to default to `cp -p'.
 
14377
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14378
      as_ln_s='cp -p'
 
14379
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
14380
    as_ln_s=ln
 
14381
  else
 
14382
    as_ln_s='cp -p'
 
14383
  fi
 
14384
else
 
14385
  as_ln_s='cp -p'
 
14386
fi
 
14387
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
14388
rmdir conf$$.dir 2>/dev/null
 
14389
 
 
14390
 
 
14391
# as_fn_mkdir_p
 
14392
# -------------
 
14393
# Create "$as_dir" as a directory, including parents if necessary.
 
14394
as_fn_mkdir_p ()
 
14395
{
 
14396
 
 
14397
  case $as_dir in #(
 
14398
  -*) as_dir=./$as_dir;;
 
14399
  esac
 
14400
  test -d "$as_dir" || eval $as_mkdir_p || {
 
14401
    as_dirs=
 
14402
    while :; do
 
14403
      case $as_dir in #(
 
14404
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14405
      *) as_qdir=$as_dir;;
 
14406
      esac
 
14407
      as_dirs="'$as_qdir' $as_dirs"
 
14408
      as_dir=`$as_dirname -- "$as_dir" ||
 
14409
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14410
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14411
         X"$as_dir" : 'X\(//\)$' \| \
 
14412
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14413
$as_echo X"$as_dir" |
 
14414
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14415
            s//\1/
 
14416
            q
 
14417
          }
 
14418
          /^X\(\/\/\)[^/].*/{
 
14419
            s//\1/
 
14420
            q
 
14421
          }
 
14422
          /^X\(\/\/\)$/{
 
14423
            s//\1/
 
14424
            q
 
14425
          }
 
14426
          /^X\(\/\).*/{
 
14427
            s//\1/
 
14428
            q
 
14429
          }
 
14430
          s/.*/./; q'`
 
14431
      test -d "$as_dir" && break
 
14432
    done
 
14433
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14434
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
14435
 
 
14436
 
 
14437
} # as_fn_mkdir_p
 
14438
if mkdir -p . 2>/dev/null; then
 
14439
  as_mkdir_p='mkdir -p "$as_dir"'
 
14440
else
 
14441
  test -d ./-p && rmdir ./-p
 
14442
  as_mkdir_p=false
 
14443
fi
 
14444
 
 
14445
if test -x / >/dev/null 2>&1; then
 
14446
  as_test_x='test -x'
 
14447
else
 
14448
  if ls -dL / >/dev/null 2>&1; then
 
14449
    as_ls_L_option=L
 
14450
  else
 
14451
    as_ls_L_option=
 
14452
  fi
 
14453
  as_test_x='
 
14454
    eval sh -c '\''
 
14455
      if test -d "$1"; then
 
14456
        test -d "$1/.";
 
14457
      else
 
14458
        case $1 in #(
 
14459
        -*)set "./$1";;
 
14460
        esac;
 
14461
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
14462
        ???[sx]*):;;*)false;;esac;fi
 
14463
    '\'' sh
 
14464
  '
 
14465
fi
 
14466
as_executable_p=$as_test_x
 
14467
 
 
14468
# Sed expression to map a string onto a valid CPP name.
 
14469
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14470
 
 
14471
# Sed expression to map a string onto a valid variable name.
 
14472
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14473
 
 
14474
 
 
14475
exec 6>&1
 
14476
## ----------------------------------- ##
 
14477
## Main body of $CONFIG_STATUS script. ##
 
14478
## ----------------------------------- ##
 
14479
_ASEOF
 
14480
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
14481
 
 
14482
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14483
# Save the log message, to keep $0 and so on meaningful, and to
 
14484
# report actual input values of CONFIG_FILES etc. instead of their
 
14485
# values after options handling.
 
14486
ac_log="
 
14487
This file was extended by libgnutls-extra $as_me 2.8.6, which was
 
14488
generated by GNU Autoconf 2.65.  Invocation command line was
 
14489
 
 
14490
  CONFIG_FILES    = $CONFIG_FILES
 
14491
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14492
  CONFIG_LINKS    = $CONFIG_LINKS
 
14493
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14494
  $ $0 $@
 
14495
 
 
14496
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14497
"
 
14498
 
 
14499
_ACEOF
 
14500
 
 
14501
case $ac_config_files in *"
 
14502
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14503
esac
 
14504
 
 
14505
case $ac_config_headers in *"
 
14506
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14507
esac
 
14508
 
 
14509
 
 
14510
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14511
# Files that config.status was made for.
 
14512
config_files="$ac_config_files"
 
14513
config_headers="$ac_config_headers"
 
14514
config_commands="$ac_config_commands"
 
14515
 
 
14516
_ACEOF
 
14517
 
 
14518
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14519
ac_cs_usage="\
 
14520
\`$as_me' instantiates files and other configuration actions
 
14521
from templates according to the current configuration.  Unless the files
 
14522
and actions are specified as TAGs, all are instantiated by default.
 
14523
 
 
14524
Usage: $0 [OPTION]... [TAG]...
 
14525
 
 
14526
  -h, --help       print this help, then exit
 
14527
  -V, --version    print version number and configuration settings, then exit
 
14528
      --config     print configuration, then exit
 
14529
  -q, --quiet, --silent
 
14530
                   do not print progress messages
 
14531
  -d, --debug      don't remove temporary files
 
14532
      --recheck    update $as_me by reconfiguring in the same conditions
 
14533
      --file=FILE[:TEMPLATE]
 
14534
                   instantiate the configuration file FILE
 
14535
      --header=FILE[:TEMPLATE]
 
14536
                   instantiate the configuration header FILE
 
14537
 
 
14538
Configuration files:
 
14539
$config_files
 
14540
 
 
14541
Configuration headers:
 
14542
$config_headers
 
14543
 
 
14544
Configuration commands:
 
14545
$config_commands
 
14546
 
 
14547
Report bugs to <bug-gnutls@gnu.org>."
 
14548
 
 
14549
_ACEOF
 
14550
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14551
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
14552
ac_cs_version="\\
 
14553
libgnutls-extra config.status 2.8.6
 
14554
configured by $0, generated by GNU Autoconf 2.65,
 
14555
  with options \\"\$ac_cs_config\\"
 
14556
 
 
14557
Copyright (C) 2009 Free Software Foundation, Inc.
 
14558
This config.status script is free software; the Free Software Foundation
 
14559
gives unlimited permission to copy, distribute and modify it."
 
14560
 
 
14561
ac_pwd='$ac_pwd'
 
14562
srcdir='$srcdir'
 
14563
INSTALL='$INSTALL'
 
14564
MKDIR_P='$MKDIR_P'
 
14565
AWK='$AWK'
 
14566
test -n "\$AWK" || AWK=awk
 
14567
_ACEOF
 
14568
 
 
14569
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14570
# The default lists apply if the user does not specify any file.
 
14571
ac_need_defaults=:
 
14572
while test $# != 0
 
14573
do
 
14574
  case $1 in
 
14575
  --*=*)
 
14576
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14577
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
14578
    ac_shift=:
 
14579
    ;;
 
14580
  *)
 
14581
    ac_option=$1
 
14582
    ac_optarg=$2
 
14583
    ac_shift=shift
 
14584
    ;;
 
14585
  esac
 
14586
 
 
14587
  case $ac_option in
 
14588
  # Handling of the options.
 
14589
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14590
    ac_cs_recheck=: ;;
 
14591
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14592
    $as_echo "$ac_cs_version"; exit ;;
 
14593
  --config | --confi | --conf | --con | --co | --c )
 
14594
    $as_echo "$ac_cs_config"; exit ;;
 
14595
  --debug | --debu | --deb | --de | --d | -d )
 
14596
    debug=: ;;
 
14597
  --file | --fil | --fi | --f )
 
14598
    $ac_shift
 
14599
    case $ac_optarg in
 
14600
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14601
    esac
 
14602
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
14603
    ac_need_defaults=false;;
 
14604
  --header | --heade | --head | --hea )
 
14605
    $ac_shift
 
14606
    case $ac_optarg in
 
14607
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14608
    esac
 
14609
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
14610
    ac_need_defaults=false;;
 
14611
  --he | --h)
 
14612
    # Conflict between --help and --header
 
14613
    as_fn_error "ambiguous option: \`$1'
 
14614
Try \`$0 --help' for more information.";;
 
14615
  --help | --hel | -h )
 
14616
    $as_echo "$ac_cs_usage"; exit ;;
 
14617
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14618
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14619
    ac_cs_silent=: ;;
 
14620
 
 
14621
  # This is an error.
 
14622
  -*) as_fn_error "unrecognized option: \`$1'
 
14623
Try \`$0 --help' for more information." ;;
 
14624
 
 
14625
  *) as_fn_append ac_config_targets " $1"
 
14626
     ac_need_defaults=false ;;
 
14627
 
 
14628
  esac
 
14629
  shift
 
14630
done
 
14631
 
 
14632
ac_configure_extra_args=
 
14633
 
 
14634
if $ac_cs_silent; then
 
14635
  exec 6>/dev/null
 
14636
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14637
fi
 
14638
 
 
14639
_ACEOF
 
14640
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14641
if \$ac_cs_recheck; then
 
14642
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14643
  shift
 
14644
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14645
  CONFIG_SHELL='$SHELL'
 
14646
  export CONFIG_SHELL
 
14647
  exec "\$@"
 
14648
fi
 
14649
 
 
14650
_ACEOF
 
14651
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14652
exec 5>>config.log
 
14653
{
 
14654
  echo
 
14655
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14656
## Running $as_me. ##
 
14657
_ASBOX
 
14658
  $as_echo "$ac_log"
 
14659
} >&5
 
14660
 
 
14661
_ACEOF
 
14662
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14663
#
 
14664
# INIT-COMMANDS
 
14665
#
 
14666
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14667
 
 
14668
 
 
14669
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14670
# if CDPATH is set.
 
14671
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14672
 
 
14673
sed_quote_subst='$sed_quote_subst'
 
14674
double_quote_subst='$double_quote_subst'
 
14675
delay_variable_subst='$delay_variable_subst'
 
14676
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
14677
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
14678
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
14679
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14680
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
14681
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
14682
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14683
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
14684
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
14685
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14686
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
14687
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14688
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14689
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
14690
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14691
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
14692
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
14693
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14694
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14695
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14696
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
14697
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
14698
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
14699
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
14700
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
14701
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
14702
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
14703
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
14704
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
14705
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14706
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14707
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
14708
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
14709
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
14710
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14711
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
14712
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
14713
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14714
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14715
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14716
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
14717
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14718
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
14719
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
14720
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
14721
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
14722
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"`'
 
14723
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"`'
 
14724
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
14725
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
14726
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
14727
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
14728
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14729
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
14730
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
14731
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14732
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
14733
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
14734
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
14735
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
14736
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
14737
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
14738
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
14739
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
14740
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14741
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14742
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
14743
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
14744
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14745
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14746
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
14747
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14748
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14749
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14750
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14751
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14752
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14753
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14754
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14755
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14756
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14757
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14758
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
14759
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
14760
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
14761
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
14762
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14763
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
14764
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14765
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
14766
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
14767
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
14768
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14769
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14770
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14771
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14772
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14773
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
14774
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14775
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14776
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
14777
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14778
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14779
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14780
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14781
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14782
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14783
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14784
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14785
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14786
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
14787
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
14788
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14789
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14790
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
14791
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
14792
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
14793
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14794
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14795
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14796
 
 
14797
LTCC='$LTCC'
 
14798
LTCFLAGS='$LTCFLAGS'
 
14799
compiler='$compiler_DEFAULT'
 
14800
 
 
14801
# Quote evaled strings.
 
14802
for var in SED \
 
14803
GREP \
 
14804
EGREP \
 
14805
FGREP \
 
14806
LD \
 
14807
NM \
 
14808
LN_S \
 
14809
lt_SP2NL \
 
14810
lt_NL2SP \
 
14811
reload_flag \
 
14812
deplibs_check_method \
 
14813
file_magic_cmd \
 
14814
AR \
 
14815
AR_FLAGS \
 
14816
STRIP \
 
14817
RANLIB \
 
14818
CC \
 
14819
CFLAGS \
 
14820
compiler \
 
14821
lt_cv_sys_global_symbol_pipe \
 
14822
lt_cv_sys_global_symbol_to_cdecl \
 
14823
lt_cv_sys_global_symbol_to_c_name_address \
 
14824
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14825
SHELL \
 
14826
ECHO \
 
14827
lt_prog_compiler_no_builtin_flag \
 
14828
lt_prog_compiler_wl \
 
14829
lt_prog_compiler_pic \
 
14830
lt_prog_compiler_static \
 
14831
lt_cv_prog_compiler_c_o \
 
14832
need_locks \
 
14833
DSYMUTIL \
 
14834
NMEDIT \
 
14835
LIPO \
 
14836
OTOOL \
 
14837
OTOOL64 \
 
14838
shrext_cmds \
 
14839
export_dynamic_flag_spec \
 
14840
whole_archive_flag_spec \
 
14841
compiler_needs_object \
 
14842
with_gnu_ld \
 
14843
allow_undefined_flag \
 
14844
no_undefined_flag \
 
14845
hardcode_libdir_flag_spec \
 
14846
hardcode_libdir_flag_spec_ld \
 
14847
hardcode_libdir_separator \
 
14848
fix_srcfile_path \
 
14849
exclude_expsyms \
 
14850
include_expsyms \
 
14851
file_list_spec \
 
14852
variables_saved_for_relink \
 
14853
libname_spec \
 
14854
library_names_spec \
 
14855
soname_spec \
 
14856
finish_eval \
 
14857
old_striplib \
 
14858
striplib; do
 
14859
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14860
    *[\\\\\\\`\\"\\\$]*)
 
14861
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14862
      ;;
 
14863
    *)
 
14864
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14865
      ;;
 
14866
    esac
 
14867
done
 
14868
 
 
14869
# Double-quote double-evaled strings.
 
14870
for var in reload_cmds \
 
14871
old_postinstall_cmds \
 
14872
old_postuninstall_cmds \
 
14873
old_archive_cmds \
 
14874
extract_expsyms_cmds \
 
14875
old_archive_from_new_cmds \
 
14876
old_archive_from_expsyms_cmds \
 
14877
archive_cmds \
 
14878
archive_expsym_cmds \
 
14879
module_cmds \
 
14880
module_expsym_cmds \
 
14881
export_symbols_cmds \
 
14882
prelink_cmds \
 
14883
postinstall_cmds \
 
14884
postuninstall_cmds \
 
14885
finish_cmds \
 
14886
sys_lib_search_path_spec \
 
14887
sys_lib_dlsearch_path_spec; do
 
14888
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14889
    *[\\\\\\\`\\"\\\$]*)
 
14890
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14891
      ;;
 
14892
    *)
 
14893
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14894
      ;;
 
14895
    esac
 
14896
done
 
14897
 
 
14898
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
14899
case \$lt_ECHO in
 
14900
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
14901
  ;;
 
14902
esac
 
14903
 
 
14904
ac_aux_dir='$ac_aux_dir'
 
14905
xsi_shell='$xsi_shell'
 
14906
lt_shell_append='$lt_shell_append'
 
14907
 
 
14908
# See if we are running on zsh, and set the options which allow our
 
14909
# commands through without removal of \ escapes INIT.
 
14910
if test -n "\${ZSH_VERSION+set}" ; then
 
14911
   setopt NO_GLOB_SUBST
 
14912
fi
 
14913
 
 
14914
 
 
14915
    PACKAGE='$PACKAGE'
 
14916
    VERSION='$VERSION'
 
14917
    TIMESTAMP='$TIMESTAMP'
 
14918
    RM='$RM'
 
14919
    ofile='$ofile'
 
14920
 
 
14921
 
 
14922
 
 
14923
 
 
14924
_ACEOF
 
14925
 
 
14926
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14927
 
 
14928
# Handling of arguments.
 
14929
for ac_config_target in $ac_config_targets
 
14930
do
 
14931
  case $ac_config_target in
 
14932
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
14933
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14934
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
14935
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14936
    "gnutls-extra.pc") CONFIG_FILES="$CONFIG_FILES gnutls-extra.pc" ;;
 
14937
    "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
 
14938
    "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
 
14939
 
 
14940
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
14941
  esac
 
14942
done
 
14943
 
 
14944
 
 
14945
# If the user did not use the arguments to specify the items to instantiate,
 
14946
# then the envvar interface is used.  Set only those that are not.
 
14947
# We use the long form for the default assignment because of an extremely
 
14948
# bizarre bug on SunOS 4.1.3.
 
14949
if $ac_need_defaults; then
 
14950
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14951
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
14952
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14953
fi
 
14954
 
 
14955
# Have a temporary directory for convenience.  Make it in the build tree
 
14956
# simply because there is no reason against having it here, and in addition,
 
14957
# creating and moving files from /tmp can sometimes cause problems.
 
14958
# Hook for its removal unless debugging.
 
14959
# Note that there is a small window in which the directory will not be cleaned:
 
14960
# after its creation but before its name has been assigned to `$tmp'.
 
14961
$debug ||
 
14962
{
 
14963
  tmp=
 
14964
  trap 'exit_status=$?
 
14965
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
14966
' 0
 
14967
  trap 'as_fn_exit 1' 1 2 13 15
 
14968
}
 
14969
# Create a (secure) tmp directory for tmp files.
 
14970
 
 
14971
{
 
14972
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14973
  test -n "$tmp" && test -d "$tmp"
 
14974
}  ||
 
14975
{
 
14976
  tmp=./conf$$-$RANDOM
 
14977
  (umask 077 && mkdir "$tmp")
 
14978
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
14979
 
 
14980
# Set up the scripts for CONFIG_FILES section.
 
14981
# No need to generate them if there are no CONFIG_FILES.
 
14982
# This happens for instance with `./config.status config.h'.
 
14983
if test -n "$CONFIG_FILES"; then
 
14984
 
 
14985
 
 
14986
ac_cr=`echo X | tr X '\015'`
 
14987
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14988
# But we know of no other shell where ac_cr would be empty at this
 
14989
# point, so we can use a bashism as a fallback.
 
14990
if test "x$ac_cr" = x; then
 
14991
  eval ac_cr=\$\'\\r\'
 
14992
fi
 
14993
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14994
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14995
  ac_cs_awk_cr='\r'
 
14996
else
 
14997
  ac_cs_awk_cr=$ac_cr
 
14998
fi
 
14999
 
 
15000
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
15001
_ACEOF
 
15002
 
 
15003
 
 
15004
{
 
15005
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
15006
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
15007
  echo "_ACEOF"
 
15008
} >conf$$subs.sh ||
 
15009
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15010
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
15011
ac_delim='%!_!# '
 
15012
for ac_last_try in false false false false false :; do
 
15013
  . ./conf$$subs.sh ||
 
15014
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15015
 
 
15016
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
15017
  if test $ac_delim_n = $ac_delim_num; then
 
15018
    break
 
15019
  elif $ac_last_try; then
 
15020
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15021
  else
 
15022
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15023
  fi
 
15024
done
 
15025
rm -f conf$$subs.sh
 
15026
 
 
15027
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15028
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
15029
_ACEOF
 
15030
sed -n '
 
15031
h
 
15032
s/^/S["/; s/!.*/"]=/
 
15033
p
 
15034
g
 
15035
s/^[^!]*!//
 
15036
:repl
 
15037
t repl
 
15038
s/'"$ac_delim"'$//
 
15039
t delim
 
15040
:nl
 
15041
h
 
15042
s/\(.\{148\}\)..*/\1/
 
15043
t more1
 
15044
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
15045
p
 
15046
n
 
15047
b repl
 
15048
:more1
 
15049
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15050
p
 
15051
g
 
15052
s/.\{148\}//
 
15053
t nl
 
15054
:delim
 
15055
h
 
15056
s/\(.\{148\}\)..*/\1/
 
15057
t more2
 
15058
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
15059
p
 
15060
b
 
15061
:more2
 
15062
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15063
p
 
15064
g
 
15065
s/.\{148\}//
 
15066
t delim
 
15067
' <conf$$subs.awk | sed '
 
15068
/^[^""]/{
 
15069
  N
 
15070
  s/\n//
 
15071
}
 
15072
' >>$CONFIG_STATUS || ac_write_fail=1
 
15073
rm -f conf$$subs.awk
 
15074
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15075
_ACAWK
 
15076
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
15077
  for (key in S) S_is_set[key] = 1
 
15078
  FS = ""
 
15079
 
 
15080
}
 
15081
{
 
15082
  line = $ 0
 
15083
  nfields = split(line, field, "@")
 
15084
  substed = 0
 
15085
  len = length(field[1])
 
15086
  for (i = 2; i < nfields; i++) {
 
15087
    key = field[i]
 
15088
    keylen = length(key)
 
15089
    if (S_is_set[key]) {
 
15090
      value = S[key]
 
15091
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
15092
      len += length(value) + length(field[++i])
 
15093
      substed = 1
 
15094
    } else
 
15095
      len += 1 + keylen
 
15096
  }
 
15097
 
 
15098
  print line
 
15099
}
 
15100
 
 
15101
_ACAWK
 
15102
_ACEOF
 
15103
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15104
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
15105
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
15106
else
 
15107
  cat
 
15108
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
15109
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
15110
_ACEOF
 
15111
 
 
15112
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
15113
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
15114
# trailing colons and then remove the whole line if VPATH becomes empty
 
15115
# (actually we leave an empty line to preserve line numbers).
 
15116
if test "x$srcdir" = x.; then
 
15117
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
15118
s/:*\$(srcdir):*/:/
 
15119
s/:*\${srcdir}:*/:/
 
15120
s/:*@srcdir@:*/:/
 
15121
s/^\([^=]*=[     ]*\):*/\1/
 
15122
s/:*$//
 
15123
s/^[^=]*=[       ]*$//
 
15124
}'
 
15125
fi
 
15126
 
 
15127
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15128
fi # test -n "$CONFIG_FILES"
 
15129
 
 
15130
# Set up the scripts for CONFIG_HEADERS section.
 
15131
# No need to generate them if there are no CONFIG_HEADERS.
 
15132
# This happens for instance with `./config.status Makefile'.
 
15133
if test -n "$CONFIG_HEADERS"; then
 
15134
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
15135
BEGIN {
 
15136
_ACEOF
 
15137
 
 
15138
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
15139
# here-document in config.status, that substitutes the proper values into
 
15140
# config.h.in to produce config.h.
 
15141
 
 
15142
# Create a delimiter string that does not exist in confdefs.h, to ease
 
15143
# handling of long lines.
 
15144
ac_delim='%!_!# '
 
15145
for ac_last_try in false false :; do
 
15146
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
15147
  if test -z "$ac_t"; then
 
15148
    break
 
15149
  elif $ac_last_try; then
 
15150
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
15151
  else
 
15152
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15153
  fi
 
15154
done
 
15155
 
 
15156
# For the awk script, D is an array of macro values keyed by name,
 
15157
# likewise P contains macro parameters if any.  Preserve backslash
 
15158
# newline sequences.
 
15159
 
 
15160
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
15161
sed -n '
 
15162
s/.\{148\}/&'"$ac_delim"'/g
 
15163
t rset
 
15164
:rset
 
15165
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
15166
t def
 
15167
d
 
15168
:def
 
15169
s/\\$//
 
15170
t bsnl
 
15171
s/["\\]/\\&/g
 
15172
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15173
D["\1"]=" \3"/p
 
15174
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
15175
d
 
15176
:bsnl
 
15177
s/["\\]/\\&/g
 
15178
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15179
D["\1"]=" \3\\\\\\n"\\/p
 
15180
t cont
 
15181
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
15182
t cont
 
15183
d
 
15184
:cont
 
15185
n
 
15186
s/.\{148\}/&'"$ac_delim"'/g
 
15187
t clear
 
15188
:clear
 
15189
s/\\$//
 
15190
t bsnlc
 
15191
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
15192
d
 
15193
:bsnlc
 
15194
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
15195
b cont
 
15196
' <confdefs.h | sed '
 
15197
s/'"$ac_delim"'/"\\\
 
15198
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
15199
 
 
15200
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15201
  for (key in D) D_is_set[key] = 1
 
15202
  FS = ""
 
15203
}
 
15204
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
15205
  line = \$ 0
 
15206
  split(line, arg, " ")
 
15207
  if (arg[1] == "#") {
 
15208
    defundef = arg[2]
 
15209
    mac1 = arg[3]
 
15210
  } else {
 
15211
    defundef = substr(arg[1], 2)
 
15212
    mac1 = arg[2]
 
15213
  }
 
15214
  split(mac1, mac2, "(") #)
 
15215
  macro = mac2[1]
 
15216
  prefix = substr(line, 1, index(line, defundef) - 1)
 
15217
  if (D_is_set[macro]) {
 
15218
    # Preserve the white space surrounding the "#".
 
15219
    print prefix "define", macro P[macro] D[macro]
 
15220
    next
 
15221
  } else {
 
15222
    # Replace #undef with comments.  This is necessary, for example,
 
15223
    # in the case of _POSIX_SOURCE, which is predefined and required
 
15224
    # on some systems where configure will not decide to define it.
 
15225
    if (defundef == "undef") {
 
15226
      print "/*", prefix defundef, macro, "*/"
 
15227
      next
 
15228
    }
 
15229
  }
 
15230
}
 
15231
{ print }
 
15232
_ACAWK
 
15233
_ACEOF
 
15234
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15235
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
15236
fi # test -n "$CONFIG_HEADERS"
 
15237
 
 
15238
 
 
15239
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
15240
shift
 
15241
for ac_tag
 
15242
do
 
15243
  case $ac_tag in
 
15244
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
15245
  esac
 
15246
  case $ac_mode$ac_tag in
 
15247
  :[FHL]*:*);;
 
15248
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
15249
  :[FH]-) ac_tag=-:-;;
 
15250
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
15251
  esac
 
15252
  ac_save_IFS=$IFS
 
15253
  IFS=:
 
15254
  set x $ac_tag
 
15255
  IFS=$ac_save_IFS
 
15256
  shift
 
15257
  ac_file=$1
 
15258
  shift
 
15259
 
 
15260
  case $ac_mode in
 
15261
  :L) ac_source=$1;;
 
15262
  :[FH])
 
15263
    ac_file_inputs=
 
15264
    for ac_f
 
15265
    do
 
15266
      case $ac_f in
 
15267
      -) ac_f="$tmp/stdin";;
 
15268
      *) # Look for the file first in the build tree, then in the source tree
 
15269
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
15270
         # because $ac_f cannot contain `:'.
 
15271
         test -f "$ac_f" ||
 
15272
           case $ac_f in
 
15273
           [\\/$]*) false;;
 
15274
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
15275
           esac ||
 
15276
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
15277
      esac
 
15278
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
15279
      as_fn_append ac_file_inputs " '$ac_f'"
 
15280
    done
 
15281
 
 
15282
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
15283
    # use $as_me), people would be surprised to read:
 
15284
    #    /* config.h.  Generated by config.status.  */
 
15285
    configure_input='Generated from '`
 
15286
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
15287
        `' by configure.'
 
15288
    if test x"$ac_file" != x-; then
 
15289
      configure_input="$ac_file.  $configure_input"
 
15290
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
15291
$as_echo "$as_me: creating $ac_file" >&6;}
 
15292
    fi
 
15293
    # Neutralize special characters interpreted by sed in replacement strings.
 
15294
    case $configure_input in #(
 
15295
    *\&* | *\|* | *\\* )
 
15296
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
15297
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
15298
    *) ac_sed_conf_input=$configure_input;;
 
15299
    esac
 
15300
 
 
15301
    case $ac_tag in
 
15302
    *:-:* | *:-) cat >"$tmp/stdin" \
 
15303
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
15304
    esac
 
15305
    ;;
 
15306
  esac
 
15307
 
 
15308
  ac_dir=`$as_dirname -- "$ac_file" ||
 
15309
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15310
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
15311
         X"$ac_file" : 'X\(//\)$' \| \
 
15312
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
15313
$as_echo X"$ac_file" |
 
15314
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15315
            s//\1/
 
15316
            q
 
15317
          }
 
15318
          /^X\(\/\/\)[^/].*/{
 
15319
            s//\1/
 
15320
            q
 
15321
          }
 
15322
          /^X\(\/\/\)$/{
 
15323
            s//\1/
 
15324
            q
 
15325
          }
 
15326
          /^X\(\/\).*/{
 
15327
            s//\1/
 
15328
            q
 
15329
          }
 
15330
          s/.*/./; q'`
 
15331
  as_dir="$ac_dir"; as_fn_mkdir_p
 
15332
  ac_builddir=.
 
15333
 
 
15334
case "$ac_dir" in
 
15335
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15336
*)
 
15337
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
15338
  # A ".." for each directory in $ac_dir_suffix.
 
15339
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
15340
  case $ac_top_builddir_sub in
 
15341
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15342
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
15343
  esac ;;
 
15344
esac
 
15345
ac_abs_top_builddir=$ac_pwd
 
15346
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
15347
# for backward compatibility:
 
15348
ac_top_builddir=$ac_top_build_prefix
 
15349
 
 
15350
case $srcdir in
 
15351
  .)  # We are building in place.
 
15352
    ac_srcdir=.
 
15353
    ac_top_srcdir=$ac_top_builddir_sub
 
15354
    ac_abs_top_srcdir=$ac_pwd ;;
 
15355
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
15356
    ac_srcdir=$srcdir$ac_dir_suffix;
 
15357
    ac_top_srcdir=$srcdir
 
15358
    ac_abs_top_srcdir=$srcdir ;;
 
15359
  *) # Relative name.
 
15360
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
15361
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
15362
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
15363
esac
 
15364
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
15365
 
 
15366
 
 
15367
  case $ac_mode in
 
15368
  :F)
 
15369
  #
 
15370
  # CONFIG_FILE
 
15371
  #
 
15372
 
 
15373
  case $INSTALL in
 
15374
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
15375
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
15376
  esac
 
15377
  ac_MKDIR_P=$MKDIR_P
 
15378
  case $MKDIR_P in
 
15379
  [\\/$]* | ?:[\\/]* ) ;;
 
15380
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
15381
  esac
 
15382
_ACEOF
 
15383
 
 
15384
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15385
# If the template does not know about datarootdir, expand it.
 
15386
# FIXME: This hack should be removed a few years after 2.60.
 
15387
ac_datarootdir_hack=; ac_datarootdir_seen=
 
15388
ac_sed_dataroot='
 
15389
/datarootdir/ {
 
15390
  p
 
15391
  q
 
15392
}
 
15393
/@datadir@/p
 
15394
/@docdir@/p
 
15395
/@infodir@/p
 
15396
/@localedir@/p
 
15397
/@mandir@/p'
 
15398
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
15399
*datarootdir*) ac_datarootdir_seen=yes;;
 
15400
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
15401
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15402
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15403
_ACEOF
 
15404
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15405
  ac_datarootdir_hack='
 
15406
  s&@datadir@&$datadir&g
 
15407
  s&@docdir@&$docdir&g
 
15408
  s&@infodir@&$infodir&g
 
15409
  s&@localedir@&$localedir&g
 
15410
  s&@mandir@&$mandir&g
 
15411
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
15412
esac
 
15413
_ACEOF
 
15414
 
 
15415
# Neutralize VPATH when `$srcdir' = `.'.
 
15416
# Shell code in configure.ac might set extrasub.
 
15417
# FIXME: do we really want to maintain this feature?
 
15418
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15419
ac_sed_extra="$ac_vpsub
 
15420
$extrasub
 
15421
_ACEOF
 
15422
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15423
:t
 
15424
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
15425
s|@configure_input@|$ac_sed_conf_input|;t t
 
15426
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15427
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
15428
s&@srcdir@&$ac_srcdir&;t t
 
15429
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
15430
s&@top_srcdir@&$ac_top_srcdir&;t t
 
15431
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
15432
s&@builddir@&$ac_builddir&;t t
 
15433
s&@abs_builddir@&$ac_abs_builddir&;t t
 
15434
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
15435
s&@INSTALL@&$ac_INSTALL&;t t
 
15436
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
15437
$ac_datarootdir_hack
 
15438
"
 
15439
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
15440
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15441
 
 
15442
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
15443
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
15444
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
15445
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15446
which seems to be undefined.  Please make sure it is defined." >&5
 
15447
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15448
which seems to be undefined.  Please make sure it is defined." >&2;}
 
15449
 
 
15450
  rm -f "$tmp/stdin"
 
15451
  case $ac_file in
 
15452
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
15453
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
15454
  esac \
 
15455
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15456
 ;;
 
15457
  :H)
 
15458
  #
 
15459
  # CONFIG_HEADER
 
15460
  #
 
15461
  if test x"$ac_file" != x-; then
 
15462
    {
 
15463
      $as_echo "/* $configure_input  */" \
 
15464
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
15465
    } >"$tmp/config.h" \
 
15466
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15467
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
15468
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
15469
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
15470
    else
 
15471
      rm -f "$ac_file"
 
15472
      mv "$tmp/config.h" "$ac_file" \
 
15473
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15474
    fi
 
15475
  else
 
15476
    $as_echo "/* $configure_input  */" \
 
15477
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
15478
      || as_fn_error "could not create -" "$LINENO" 5
 
15479
  fi
 
15480
# Compute "$ac_file"'s index in $config_headers.
 
15481
_am_arg="$ac_file"
 
15482
_am_stamp_count=1
 
15483
for _am_header in $config_headers :; do
 
15484
  case $_am_header in
 
15485
    $_am_arg | $_am_arg:* )
 
15486
      break ;;
 
15487
    * )
 
15488
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
15489
  esac
 
15490
done
 
15491
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
15492
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15493
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
15494
         X"$_am_arg" : 'X\(//\)$' \| \
 
15495
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
15496
$as_echo X"$_am_arg" |
 
15497
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15498
            s//\1/
 
15499
            q
 
15500
          }
 
15501
          /^X\(\/\/\)[^/].*/{
 
15502
            s//\1/
 
15503
            q
 
15504
          }
 
15505
          /^X\(\/\/\)$/{
 
15506
            s//\1/
 
15507
            q
 
15508
          }
 
15509
          /^X\(\/\).*/{
 
15510
            s//\1/
 
15511
            q
 
15512
          }
 
15513
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
15514
 ;;
 
15515
 
 
15516
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15517
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
15518
 ;;
 
15519
  esac
 
15520
 
 
15521
 
 
15522
  case $ac_file$ac_mode in
 
15523
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15524
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
15525
  # are listed without --file.  Let's play safe and only enable the eval
 
15526
  # if we detect the quoting.
 
15527
  case $CONFIG_FILES in
 
15528
  *\'*) eval set x "$CONFIG_FILES" ;;
 
15529
  *)   set x $CONFIG_FILES ;;
 
15530
  esac
 
15531
  shift
 
15532
  for mf
 
15533
  do
 
15534
    # Strip MF so we end up with the name of the file.
 
15535
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15536
    # Check whether this is an Automake generated Makefile or not.
 
15537
    # We used to match only the files named `Makefile.in', but
 
15538
    # some people rename them; so instead we look at the file content.
 
15539
    # Grep'ing the first line is not enough: some people post-process
 
15540
    # each Makefile.in and add a new line on top of each file to say so.
 
15541
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15542
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15543
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15544
      dirpart=`$as_dirname -- "$mf" ||
 
15545
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15546
         X"$mf" : 'X\(//\)[^/]' \| \
 
15547
         X"$mf" : 'X\(//\)$' \| \
 
15548
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15549
$as_echo X"$mf" |
 
15550
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15551
            s//\1/
 
15552
            q
 
15553
          }
 
15554
          /^X\(\/\/\)[^/].*/{
 
15555
            s//\1/
 
15556
            q
 
15557
          }
 
15558
          /^X\(\/\/\)$/{
 
15559
            s//\1/
 
15560
            q
 
15561
          }
 
15562
          /^X\(\/\).*/{
 
15563
            s//\1/
 
15564
            q
 
15565
          }
 
15566
          s/.*/./; q'`
 
15567
    else
 
15568
      continue
 
15569
    fi
 
15570
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15571
    # from the Makefile without running `make'.
 
15572
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15573
    test -z "$DEPDIR" && continue
 
15574
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15575
    test -z "am__include" && continue
 
15576
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15577
    # When using ansi2knr, U may be empty or an underscore; expand it
 
15578
    U=`sed -n 's/^U = //p' < "$mf"`
 
15579
    # Find all dependency output files, they are included files with
 
15580
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15581
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15582
    # expansion.
 
15583
    for file in `sed -n "
 
15584
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15585
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
15586
      # Make sure the directory exists.
 
15587
      test -f "$dirpart/$file" && continue
 
15588
      fdir=`$as_dirname -- "$file" ||
 
15589
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15590
         X"$file" : 'X\(//\)[^/]' \| \
 
15591
         X"$file" : 'X\(//\)$' \| \
 
15592
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
15593
$as_echo X"$file" |
 
15594
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15595
            s//\1/
 
15596
            q
 
15597
          }
 
15598
          /^X\(\/\/\)[^/].*/{
 
15599
            s//\1/
 
15600
            q
 
15601
          }
 
15602
          /^X\(\/\/\)$/{
 
15603
            s//\1/
 
15604
            q
 
15605
          }
 
15606
          /^X\(\/\).*/{
 
15607
            s//\1/
 
15608
            q
 
15609
          }
 
15610
          s/.*/./; q'`
 
15611
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
15612
      # echo "creating $dirpart/$file"
 
15613
      echo '# dummy' > "$dirpart/$file"
 
15614
    done
 
15615
  done
 
15616
}
 
15617
 ;;
 
15618
    "libtool":C)
 
15619
 
 
15620
    # See if we are running on zsh, and set the options which allow our
 
15621
    # commands through without removal of \ escapes.
 
15622
    if test -n "${ZSH_VERSION+set}" ; then
 
15623
      setopt NO_GLOB_SUBST
 
15624
    fi
 
15625
 
 
15626
    cfgfile="${ofile}T"
 
15627
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15628
    $RM "$cfgfile"
 
15629
 
 
15630
    cat <<_LT_EOF >> "$cfgfile"
 
15631
#! $SHELL
 
15632
 
 
15633
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15634
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15635
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15636
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15637
#
 
15638
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15639
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
15640
#   Written by Gordon Matzigkeit, 1996
 
15641
#
 
15642
#   This file is part of GNU Libtool.
 
15643
#
 
15644
# GNU Libtool is free software; you can redistribute it and/or
 
15645
# modify it under the terms of the GNU General Public License as
 
15646
# published by the Free Software Foundation; either version 2 of
 
15647
# the License, or (at your option) any later version.
 
15648
#
 
15649
# As a special exception to the GNU General Public License,
 
15650
# if you distribute this file as part of a program or library that
 
15651
# is built using GNU Libtool, you may include this file under the
 
15652
# same distribution terms that you use for the rest of that program.
 
15653
#
 
15654
# GNU Libtool is distributed in the hope that it will be useful,
 
15655
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15657
# GNU General Public License for more details.
 
15658
#
 
15659
# You should have received a copy of the GNU General Public License
 
15660
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15661
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15662
# obtained by writing to the Free Software Foundation, Inc.,
 
15663
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15664
 
 
15665
 
 
15666
# The names of the tagged configurations supported by this script.
 
15667
available_tags=""
 
15668
 
 
15669
# ### BEGIN LIBTOOL CONFIG
 
15670
 
 
15671
# Assembler program.
 
15672
AS=$AS
 
15673
 
 
15674
# DLL creation program.
 
15675
DLLTOOL=$DLLTOOL
 
15676
 
 
15677
# Object dumper program.
 
15678
OBJDUMP=$OBJDUMP
 
15679
 
 
15680
# Which release of libtool.m4 was used?
 
15681
macro_version=$macro_version
 
15682
macro_revision=$macro_revision
 
15683
 
 
15684
# Whether or not to build shared libraries.
 
15685
build_libtool_libs=$enable_shared
 
15686
 
 
15687
# Whether or not to build static libraries.
 
15688
build_old_libs=$enable_static
 
15689
 
 
15690
# What type of objects to build.
 
15691
pic_mode=$pic_mode
 
15692
 
 
15693
# Whether or not to optimize for fast installation.
 
15694
fast_install=$enable_fast_install
 
15695
 
 
15696
# The host system.
 
15697
host_alias=$host_alias
 
15698
host=$host
 
15699
host_os=$host_os
 
15700
 
 
15701
# The build system.
 
15702
build_alias=$build_alias
 
15703
build=$build
 
15704
build_os=$build_os
 
15705
 
 
15706
# A sed program that does not truncate output.
 
15707
SED=$lt_SED
 
15708
 
 
15709
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15710
Xsed="\$SED -e 1s/^X//"
 
15711
 
 
15712
# A grep program that handles long lines.
 
15713
GREP=$lt_GREP
 
15714
 
 
15715
# An ERE matcher.
 
15716
EGREP=$lt_EGREP
 
15717
 
 
15718
# A literal string matcher.
 
15719
FGREP=$lt_FGREP
 
15720
 
 
15721
# A BSD- or MS-compatible name lister.
 
15722
NM=$lt_NM
 
15723
 
 
15724
# Whether we need soft or hard links.
 
15725
LN_S=$lt_LN_S
 
15726
 
 
15727
# What is the maximum length of a command?
 
15728
max_cmd_len=$max_cmd_len
 
15729
 
 
15730
# Object file suffix (normally "o").
 
15731
objext=$ac_objext
 
15732
 
 
15733
# Executable file suffix (normally "").
 
15734
exeext=$exeext
 
15735
 
 
15736
# whether the shell understands "unset".
 
15737
lt_unset=$lt_unset
 
15738
 
 
15739
# turn spaces into newlines.
 
15740
SP2NL=$lt_lt_SP2NL
 
15741
 
 
15742
# turn newlines into spaces.
 
15743
NL2SP=$lt_lt_NL2SP
 
15744
 
 
15745
# How to create reloadable object files.
 
15746
reload_flag=$lt_reload_flag
 
15747
reload_cmds=$lt_reload_cmds
 
15748
 
 
15749
# Method to check whether dependent libraries are shared objects.
 
15750
deplibs_check_method=$lt_deplibs_check_method
 
15751
 
 
15752
# Command to use when deplibs_check_method == "file_magic".
 
15753
file_magic_cmd=$lt_file_magic_cmd
 
15754
 
 
15755
# The archiver.
 
15756
AR=$lt_AR
 
15757
AR_FLAGS=$lt_AR_FLAGS
 
15758
 
 
15759
# A symbol stripping program.
 
15760
STRIP=$lt_STRIP
 
15761
 
 
15762
# Commands used to install an old-style archive.
 
15763
RANLIB=$lt_RANLIB
 
15764
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15765
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15766
 
 
15767
# A C compiler.
 
15768
LTCC=$lt_CC
 
15769
 
 
15770
# LTCC compiler flags.
 
15771
LTCFLAGS=$lt_CFLAGS
 
15772
 
 
15773
# Take the output of nm and produce a listing of raw symbols and C names.
 
15774
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15775
 
 
15776
# Transform the output of nm in a proper C declaration.
 
15777
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15778
 
 
15779
# Transform the output of nm in a C name address pair.
 
15780
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15781
 
 
15782
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15783
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15784
 
 
15785
# The name of the directory that contains temporary libtool files.
 
15786
objdir=$objdir
 
15787
 
 
15788
# Shell to use when invoking shell scripts.
 
15789
SHELL=$lt_SHELL
 
15790
 
 
15791
# An echo program that does not interpret backslashes.
 
15792
ECHO=$lt_ECHO
 
15793
 
 
15794
# Used to examine libraries when file_magic_cmd begins with "file".
 
15795
MAGIC_CMD=$MAGIC_CMD
 
15796
 
 
15797
# Must we lock files when doing compilation?
 
15798
need_locks=$lt_need_locks
 
15799
 
 
15800
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15801
DSYMUTIL=$lt_DSYMUTIL
 
15802
 
 
15803
# Tool to change global to local symbols on Mac OS X.
 
15804
NMEDIT=$lt_NMEDIT
 
15805
 
 
15806
# Tool to manipulate fat objects and archives on Mac OS X.
 
15807
LIPO=$lt_LIPO
 
15808
 
 
15809
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15810
OTOOL=$lt_OTOOL
 
15811
 
 
15812
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15813
OTOOL64=$lt_OTOOL64
 
15814
 
 
15815
# Old archive suffix (normally "a").
 
15816
libext=$libext
 
15817
 
 
15818
# Shared library suffix (normally ".so").
 
15819
shrext_cmds=$lt_shrext_cmds
 
15820
 
 
15821
# The commands to extract the exported symbol list from a shared archive.
 
15822
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15823
 
 
15824
# Variables whose values should be saved in libtool wrapper scripts and
 
15825
# restored at link time.
 
15826
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15827
 
 
15828
# Do we need the "lib" prefix for modules?
 
15829
need_lib_prefix=$need_lib_prefix
 
15830
 
 
15831
# Do we need a version for libraries?
 
15832
need_version=$need_version
 
15833
 
 
15834
# Library versioning type.
 
15835
version_type=$version_type
 
15836
 
 
15837
# Shared library runtime path variable.
 
15838
runpath_var=$runpath_var
 
15839
 
 
15840
# Shared library path variable.
 
15841
shlibpath_var=$shlibpath_var
 
15842
 
 
15843
# Is shlibpath searched before the hard-coded library search path?
 
15844
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15845
 
 
15846
# Format of library name prefix.
 
15847
libname_spec=$lt_libname_spec
 
15848
 
 
15849
# List of archive names.  First name is the real one, the rest are links.
 
15850
# The last name is the one that the linker finds with -lNAME
 
15851
library_names_spec=$lt_library_names_spec
 
15852
 
 
15853
# The coded name of the library, if different from the real name.
 
15854
soname_spec=$lt_soname_spec
 
15855
 
 
15856
# Command to use after installation of a shared archive.
 
15857
postinstall_cmds=$lt_postinstall_cmds
 
15858
 
 
15859
# Command to use after uninstallation of a shared archive.
 
15860
postuninstall_cmds=$lt_postuninstall_cmds
 
15861
 
 
15862
# Commands used to finish a libtool library installation in a directory.
 
15863
finish_cmds=$lt_finish_cmds
 
15864
 
 
15865
# As "finish_cmds", except a single script fragment to be evaled but
 
15866
# not shown.
 
15867
finish_eval=$lt_finish_eval
 
15868
 
 
15869
# Whether we should hardcode library paths into libraries.
 
15870
hardcode_into_libs=$hardcode_into_libs
 
15871
 
 
15872
# Compile-time system search path for libraries.
 
15873
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15874
 
 
15875
# Run-time system search path for libraries.
 
15876
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15877
 
 
15878
# Whether dlopen is supported.
 
15879
dlopen_support=$enable_dlopen
 
15880
 
 
15881
# Whether dlopen of programs is supported.
 
15882
dlopen_self=$enable_dlopen_self
 
15883
 
 
15884
# Whether dlopen of statically linked programs is supported.
 
15885
dlopen_self_static=$enable_dlopen_self_static
 
15886
 
 
15887
# Commands to strip libraries.
 
15888
old_striplib=$lt_old_striplib
 
15889
striplib=$lt_striplib
 
15890
 
 
15891
 
 
15892
# The linker used to build libraries.
 
15893
LD=$lt_LD
 
15894
 
 
15895
# Commands used to build an old-style archive.
 
15896
old_archive_cmds=$lt_old_archive_cmds
 
15897
 
 
15898
# A language specific compiler.
 
15899
CC=$lt_compiler
 
15900
 
 
15901
# Is the compiler the GNU compiler?
 
15902
with_gcc=$GCC
 
15903
 
 
15904
# Compiler flag to turn off builtin functions.
 
15905
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15906
 
 
15907
# How to pass a linker flag through the compiler.
 
15908
wl=$lt_lt_prog_compiler_wl
 
15909
 
 
15910
# Additional compiler flags for building library objects.
 
15911
pic_flag=$lt_lt_prog_compiler_pic
 
15912
 
 
15913
# Compiler flag to prevent dynamic linking.
 
15914
link_static_flag=$lt_lt_prog_compiler_static
 
15915
 
 
15916
# Does compiler simultaneously support -c and -o options?
 
15917
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15918
 
 
15919
# Whether or not to add -lc for building shared libraries.
 
15920
build_libtool_need_lc=$archive_cmds_need_lc
 
15921
 
 
15922
# Whether or not to disallow shared libs when runtime libs are static.
 
15923
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15924
 
 
15925
# Compiler flag to allow reflexive dlopens.
 
15926
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15927
 
 
15928
# Compiler flag to generate shared objects directly from archives.
 
15929
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15930
 
 
15931
# Whether the compiler copes with passing no objects directly.
 
15932
compiler_needs_object=$lt_compiler_needs_object
 
15933
 
 
15934
# Create an old-style archive from a shared archive.
 
15935
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15936
 
 
15937
# Create a temporary old-style archive to link instead of a shared archive.
 
15938
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15939
 
 
15940
# Commands used to build a shared archive.
 
15941
archive_cmds=$lt_archive_cmds
 
15942
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15943
 
 
15944
# Commands used to build a loadable module if different from building
 
15945
# a shared archive.
 
15946
module_cmds=$lt_module_cmds
 
15947
module_expsym_cmds=$lt_module_expsym_cmds
 
15948
 
 
15949
# Whether we are building with GNU ld or not.
 
15950
with_gnu_ld=$lt_with_gnu_ld
 
15951
 
 
15952
# Flag that allows shared libraries with undefined symbols to be built.
 
15953
allow_undefined_flag=$lt_allow_undefined_flag
 
15954
 
 
15955
# Flag that enforces no undefined symbols.
 
15956
no_undefined_flag=$lt_no_undefined_flag
 
15957
 
 
15958
# Flag to hardcode \$libdir into a binary during linking.
 
15959
# This must work even if \$libdir does not exist
 
15960
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15961
 
 
15962
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
15963
# during linking.  This must work even if \$libdir does not exist.
 
15964
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
15965
 
 
15966
# Whether we need a single "-rpath" flag with a separated argument.
 
15967
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15968
 
 
15969
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15970
# DIR into the resulting binary.
 
15971
hardcode_direct=$hardcode_direct
 
15972
 
 
15973
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15974
# DIR into the resulting binary and the resulting library dependency is
 
15975
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15976
# library is relocated.
 
15977
hardcode_direct_absolute=$hardcode_direct_absolute
 
15978
 
 
15979
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15980
# into the resulting binary.
 
15981
hardcode_minus_L=$hardcode_minus_L
 
15982
 
 
15983
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15984
# into the resulting binary.
 
15985
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15986
 
 
15987
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15988
# into the library and all subsequent libraries and executables linked
 
15989
# against it.
 
15990
hardcode_automatic=$hardcode_automatic
 
15991
 
 
15992
# Set to yes if linker adds runtime paths of dependent libraries
 
15993
# to runtime path list.
 
15994
inherit_rpath=$inherit_rpath
 
15995
 
 
15996
# Whether libtool must link a program against all its dependency libraries.
 
15997
link_all_deplibs=$link_all_deplibs
 
15998
 
 
15999
# Fix the shell variable \$srcfile for the compiler.
 
16000
fix_srcfile_path=$lt_fix_srcfile_path
 
16001
 
 
16002
# Set to "yes" if exported symbols are required.
 
16003
always_export_symbols=$always_export_symbols
 
16004
 
 
16005
# The commands to list exported symbols.
 
16006
export_symbols_cmds=$lt_export_symbols_cmds
 
16007
 
 
16008
# Symbols that should not be listed in the preloaded symbols.
 
16009
exclude_expsyms=$lt_exclude_expsyms
 
16010
 
 
16011
# Symbols that must always be exported.
 
16012
include_expsyms=$lt_include_expsyms
 
16013
 
 
16014
# Commands necessary for linking programs (against libraries) with templates.
 
16015
prelink_cmds=$lt_prelink_cmds
 
16016
 
 
16017
# Specify filename containing input files.
 
16018
file_list_spec=$lt_file_list_spec
 
16019
 
 
16020
# How to hardcode a shared library path into an executable.
 
16021
hardcode_action=$hardcode_action
 
16022
 
 
16023
# ### END LIBTOOL CONFIG
 
16024
 
 
16025
_LT_EOF
 
16026
 
 
16027
  case $host_os in
 
16028
  aix3*)
 
16029
    cat <<\_LT_EOF >> "$cfgfile"
 
16030
# AIX sometimes has problems with the GCC collect2 program.  For some
 
16031
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
16032
# vanish in a puff of smoke.
 
16033
if test "X${COLLECT_NAMES+set}" != Xset; then
 
16034
  COLLECT_NAMES=
 
16035
  export COLLECT_NAMES
 
16036
fi
 
16037
_LT_EOF
 
16038
    ;;
 
16039
  esac
 
16040
 
 
16041
 
 
16042
ltmain="$ac_aux_dir/ltmain.sh"
 
16043
 
 
16044
 
 
16045
  # We use sed instead of cat because bash on DJGPP gets confused if
 
16046
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
16047
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
16048
  # is reportedly fixed, but why not run on old versions too?
 
16049
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
16050
    || (rm -f "$cfgfile"; exit 1)
 
16051
 
 
16052
  case $xsi_shell in
 
16053
  yes)
 
16054
    cat << \_LT_EOF >> "$cfgfile"
 
16055
 
 
16056
# func_dirname file append nondir_replacement
 
16057
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
16058
# otherwise set result to NONDIR_REPLACEMENT.
 
16059
func_dirname ()
 
16060
{
 
16061
  case ${1} in
 
16062
    */*) func_dirname_result="${1%/*}${2}" ;;
 
16063
    *  ) func_dirname_result="${3}" ;;
 
16064
  esac
 
16065
}
 
16066
 
 
16067
# func_basename file
 
16068
func_basename ()
 
16069
{
 
16070
  func_basename_result="${1##*/}"
 
16071
}
 
16072
 
 
16073
# func_dirname_and_basename file append nondir_replacement
 
16074
# perform func_basename and func_dirname in a single function
 
16075
# call:
 
16076
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
16077
#             add APPEND to the result, otherwise set result
 
16078
#             to NONDIR_REPLACEMENT.
 
16079
#             value returned in "$func_dirname_result"
 
16080
#   basename: Compute filename of FILE.
 
16081
#             value retuned in "$func_basename_result"
 
16082
# Implementation must be kept synchronized with func_dirname
 
16083
# and func_basename. For efficiency, we do not delegate to
 
16084
# those functions but instead duplicate the functionality here.
 
16085
func_dirname_and_basename ()
 
16086
{
 
16087
  case ${1} in
 
16088
    */*) func_dirname_result="${1%/*}${2}" ;;
 
16089
    *  ) func_dirname_result="${3}" ;;
 
16090
  esac
 
16091
  func_basename_result="${1##*/}"
 
16092
}
 
16093
 
 
16094
# func_stripname prefix suffix name
 
16095
# strip PREFIX and SUFFIX off of NAME.
 
16096
# PREFIX and SUFFIX must not contain globbing or regex special
 
16097
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
16098
# dot (in which case that matches only a dot).
 
16099
func_stripname ()
 
16100
{
 
16101
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
16102
  # positional parameters, so assign one to ordinary parameter first.
 
16103
  func_stripname_result=${3}
 
16104
  func_stripname_result=${func_stripname_result#"${1}"}
 
16105
  func_stripname_result=${func_stripname_result%"${2}"}
 
16106
}
 
16107
 
 
16108
# func_opt_split
 
16109
func_opt_split ()
 
16110
{
 
16111
  func_opt_split_opt=${1%%=*}
 
16112
  func_opt_split_arg=${1#*=}
 
16113
}
 
16114
 
 
16115
# func_lo2o object
 
16116
func_lo2o ()
 
16117
{
 
16118
  case ${1} in
 
16119
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
16120
    *)    func_lo2o_result=${1} ;;
 
16121
  esac
 
16122
}
 
16123
 
 
16124
# func_xform libobj-or-source
 
16125
func_xform ()
 
16126
{
 
16127
  func_xform_result=${1%.*}.lo
 
16128
}
 
16129
 
 
16130
# func_arith arithmetic-term...
 
16131
func_arith ()
 
16132
{
 
16133
  func_arith_result=$(( $* ))
 
16134
}
 
16135
 
 
16136
# func_len string
 
16137
# STRING may not start with a hyphen.
 
16138
func_len ()
 
16139
{
 
16140
  func_len_result=${#1}
 
16141
}
 
16142
 
 
16143
_LT_EOF
 
16144
    ;;
 
16145
  *) # Bourne compatible functions.
 
16146
    cat << \_LT_EOF >> "$cfgfile"
 
16147
 
 
16148
# func_dirname file append nondir_replacement
 
16149
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
16150
# otherwise set result to NONDIR_REPLACEMENT.
 
16151
func_dirname ()
 
16152
{
 
16153
  # Extract subdirectory from the argument.
 
16154
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
16155
  if test "X$func_dirname_result" = "X${1}"; then
 
16156
    func_dirname_result="${3}"
 
16157
  else
 
16158
    func_dirname_result="$func_dirname_result${2}"
 
16159
  fi
 
16160
}
 
16161
 
 
16162
# func_basename file
 
16163
func_basename ()
 
16164
{
 
16165
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
16166
}
 
16167
 
 
16168
 
 
16169
# func_stripname prefix suffix name
 
16170
# strip PREFIX and SUFFIX off of NAME.
 
16171
# PREFIX and SUFFIX must not contain globbing or regex special
 
16172
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
16173
# dot (in which case that matches only a dot).
 
16174
# func_strip_suffix prefix name
 
16175
func_stripname ()
 
16176
{
 
16177
  case ${2} in
 
16178
    .*) func_stripname_result=`$ECHO "X${3}" \
 
16179
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
16180
    *)  func_stripname_result=`$ECHO "X${3}" \
 
16181
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
16182
  esac
 
16183
}
 
16184
 
 
16185
# sed scripts:
 
16186
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
16187
my_sed_long_arg='1s/^-[^=]*=//'
 
16188
 
 
16189
# func_opt_split
 
16190
func_opt_split ()
 
16191
{
 
16192
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
16193
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
16194
}
 
16195
 
 
16196
# func_lo2o object
 
16197
func_lo2o ()
 
16198
{
 
16199
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
16200
}
 
16201
 
 
16202
# func_xform libobj-or-source
 
16203
func_xform ()
 
16204
{
 
16205
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
16206
}
 
16207
 
 
16208
# func_arith arithmetic-term...
 
16209
func_arith ()
 
16210
{
 
16211
  func_arith_result=`expr "$@"`
 
16212
}
 
16213
 
 
16214
# func_len string
 
16215
# STRING may not start with a hyphen.
 
16216
func_len ()
 
16217
{
 
16218
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
16219
}
 
16220
 
 
16221
_LT_EOF
 
16222
esac
 
16223
 
 
16224
case $lt_shell_append in
 
16225
  yes)
 
16226
    cat << \_LT_EOF >> "$cfgfile"
 
16227
 
 
16228
# func_append var value
 
16229
# Append VALUE to the end of shell variable VAR.
 
16230
func_append ()
 
16231
{
 
16232
  eval "$1+=\$2"
 
16233
}
 
16234
_LT_EOF
 
16235
    ;;
 
16236
  *)
 
16237
    cat << \_LT_EOF >> "$cfgfile"
 
16238
 
 
16239
# func_append var value
 
16240
# Append VALUE to the end of shell variable VAR.
 
16241
func_append ()
 
16242
{
 
16243
  eval "$1=\$$1\$2"
 
16244
}
 
16245
 
 
16246
_LT_EOF
 
16247
    ;;
 
16248
  esac
 
16249
 
 
16250
 
 
16251
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
16252
    || (rm -f "$cfgfile"; exit 1)
 
16253
 
 
16254
  mv -f "$cfgfile" "$ofile" ||
 
16255
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
16256
  chmod +x "$ofile"
 
16257
 
 
16258
 ;;
 
16259
 
 
16260
  esac
 
16261
done # for ac_tag
 
16262
 
 
16263
 
 
16264
as_fn_exit 0
 
16265
_ACEOF
 
16266
ac_clean_files=$ac_clean_files_save
 
16267
 
 
16268
test $ac_write_fail = 0 ||
 
16269
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
16270
 
 
16271
 
 
16272
# configure is writing to config.log, and then calls config.status.
 
16273
# config.status does its own redirection, appending to config.log.
 
16274
# Unfortunately, on DOS this fails, as config.log is still kept open
 
16275
# by configure, so config.status won't be able to write to it; its
 
16276
# output is simply discarded.  So we exec the FD to /dev/null,
 
16277
# effectively closing config.log, so it can be properly (re)opened and
 
16278
# appended to by config.status.  When coming back to configure, we
 
16279
# need to make the FD available again.
 
16280
if test "$no_create" != yes; then
 
16281
  ac_cs_success=:
 
16282
  ac_config_status_args=
 
16283
  test "$silent" = yes &&
 
16284
    ac_config_status_args="$ac_config_status_args --quiet"
 
16285
  exec 5>/dev/null
 
16286
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
16287
  exec 5>>config.log
 
16288
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
16289
  # would make configure fail if this is the last instruction.
 
16290
  $ac_cs_success || as_fn_exit $?
 
16291
fi
 
16292
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
16293
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
16294
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
16295
fi
 
16296