~ubuntu-branches/ubuntu/vivid/libu2f-server/vivid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Alessio Di Mauro
  • Date: 2015-01-22 22:41:48 UTC
  • Revision ID: package-import@ubuntu.com-20150122224148-wbg8eu2ykxbat244
Tags: upstream-0.0.0
ImportĀ upstreamĀ versionĀ 0.0.0

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.69 for libu2f-server 0.0.0.
 
4
#
 
5
# Report bugs to <yubico-devel@googlegroups.com>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
 
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    PATH=/empty FPATH=/empty; export PATH FPATH
 
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
209
test \$(( 1 + 1 )) = 2 || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
278
$0: yubico-devel@googlegroups.com about your system,
 
279
$0: including any error possibly output before this
 
280
$0: message. Then install a modern shell, or manually run
 
281
$0: the script under such a shell if you do have one."
 
282
  fi
 
283
  exit 1
 
284
fi
 
285
fi
 
286
fi
 
287
SHELL=${CONFIG_SHELL-/bin/sh}
 
288
export SHELL
 
289
# Unset more variables known to interfere with behavior of common tools.
 
290
CLICOLOR_FORCE= GREP_OPTIONS=
 
291
unset CLICOLOR_FORCE GREP_OPTIONS
 
292
 
 
293
## --------------------- ##
 
294
## M4sh Shell Functions. ##
 
295
## --------------------- ##
 
296
# as_fn_unset VAR
 
297
# ---------------
 
298
# Portably unset VAR.
 
299
as_fn_unset ()
 
300
{
 
301
  { eval $1=; unset $1;}
 
302
}
 
303
as_unset=as_fn_unset
 
304
 
 
305
# as_fn_set_status STATUS
 
306
# -----------------------
 
307
# Set $? to STATUS, without forking.
 
308
as_fn_set_status ()
 
309
{
 
310
  return $1
 
311
} # as_fn_set_status
 
312
 
 
313
# as_fn_exit STATUS
 
314
# -----------------
 
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
316
as_fn_exit ()
 
317
{
 
318
  set +e
 
319
  as_fn_set_status $1
 
320
  exit $1
 
321
} # as_fn_exit
 
322
 
 
323
# as_fn_mkdir_p
 
324
# -------------
 
325
# Create "$as_dir" as a directory, including parents if necessary.
 
326
as_fn_mkdir_p ()
 
327
{
 
328
 
 
329
  case $as_dir in #(
 
330
  -*) as_dir=./$as_dir;;
 
331
  esac
 
332
  test -d "$as_dir" || eval $as_mkdir_p || {
 
333
    as_dirs=
 
334
    while :; do
 
335
      case $as_dir in #(
 
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
337
      *) as_qdir=$as_dir;;
 
338
      esac
 
339
      as_dirs="'$as_qdir' $as_dirs"
 
340
      as_dir=`$as_dirname -- "$as_dir" ||
 
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
342
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
343
         X"$as_dir" : 'X\(//\)$' \| \
 
344
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
345
$as_echo X"$as_dir" |
 
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
347
            s//\1/
 
348
            q
 
349
          }
 
350
          /^X\(\/\/\)[^/].*/{
 
351
            s//\1/
 
352
            q
 
353
          }
 
354
          /^X\(\/\/\)$/{
 
355
            s//\1/
 
356
            q
 
357
          }
 
358
          /^X\(\/\).*/{
 
359
            s//\1/
 
360
            q
 
361
          }
 
362
          s/.*/./; q'`
 
363
      test -d "$as_dir" && break
 
364
    done
 
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
367
 
 
368
 
 
369
} # as_fn_mkdir_p
 
370
 
 
371
# as_fn_executable_p FILE
 
372
# -----------------------
 
373
# Test if FILE is an executable regular file.
 
374
as_fn_executable_p ()
 
375
{
 
376
  test -f "$1" && test -x "$1"
 
377
} # as_fn_executable_p
 
378
# as_fn_append VAR VALUE
 
379
# ----------------------
 
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
381
# advantage of any shell optimizations that allow amortized linear growth over
 
382
# repeated appends, instead of the typical quadratic growth present in naive
 
383
# implementations.
 
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
385
  eval 'as_fn_append ()
 
386
  {
 
387
    eval $1+=\$2
 
388
  }'
 
389
else
 
390
  as_fn_append ()
 
391
  {
 
392
    eval $1=\$$1\$2
 
393
  }
 
394
fi # as_fn_append
 
395
 
 
396
# as_fn_arith ARG...
 
397
# ------------------
 
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
400
# must be portable across $(()) and expr.
 
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
402
  eval 'as_fn_arith ()
 
403
  {
 
404
    as_val=$(( $* ))
 
405
  }'
 
406
else
 
407
  as_fn_arith ()
 
408
  {
 
409
    as_val=`expr "$@" || test $? -eq 1`
 
410
  }
 
411
fi # as_fn_arith
 
412
 
 
413
 
 
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
415
# ----------------------------------------
 
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
418
# script with STATUS, using 1 if that was 0.
 
419
as_fn_error ()
 
420
{
 
421
  as_status=$1; test $as_status -eq 0 && as_status=1
 
422
  if test "$4"; then
 
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
425
  fi
 
426
  $as_echo "$as_me: error: $2" >&2
 
427
  as_fn_exit $as_status
 
428
} # as_fn_error
 
429
 
 
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
432
  as_expr=expr
 
433
else
 
434
  as_expr=false
 
435
fi
 
436
 
 
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
438
  as_basename=basename
 
439
else
 
440
  as_basename=false
 
441
fi
 
442
 
 
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
444
  as_dirname=dirname
 
445
else
 
446
  as_dirname=false
 
447
fi
 
448
 
 
449
as_me=`$as_basename -- "$0" ||
 
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
451
         X"$0" : 'X\(//\)$' \| \
 
452
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
453
$as_echo X/"$0" |
 
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
455
            s//\1/
 
456
            q
 
457
          }
 
458
          /^X\/\(\/\/\)$/{
 
459
            s//\1/
 
460
            q
 
461
          }
 
462
          /^X\/\(\/\).*/{
 
463
            s//\1/
 
464
            q
 
465
          }
 
466
          s/.*/./; q'`
 
467
 
 
468
# Avoid depending upon Character Ranges.
 
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
472
as_cr_digits='0123456789'
 
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
474
 
 
475
 
 
476
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
481
  sed -n '
 
482
    p
 
483
    /[$]LINENO/=
 
484
  ' <$as_myself |
 
485
    sed '
 
486
      s/[$]LINENO.*/&-/
 
487
      t lineno
 
488
      b
 
489
      :lineno
 
490
      N
 
491
      :loop
 
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
493
      t loop
 
494
      s/-\n.*//
 
495
    ' >$as_me.lineno &&
 
496
  chmod +x "$as_me.lineno" ||
 
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
498
 
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
500
  # already done that, so ensure we don't try to do so again and fall
 
501
  # in an infinite loop.  This has already happened in practice.
 
502
  _as_can_reexec=no; export _as_can_reexec
 
503
  # Don't try to exec as it changes $[0], causing all sort of problems
 
504
  # (the dirname of $[0] is not the place where we might find the
 
505
  # original and so on.  Autoconf is especially sensitive to this).
 
506
  . "./$as_me.lineno"
 
507
  # Exit status is that of the last command.
 
508
  exit
 
509
}
 
510
 
 
511
ECHO_C= ECHO_N= ECHO_T=
 
512
case `echo -n x` in #(((((
 
513
-n*)
 
514
  case `echo 'xy\c'` in
 
515
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
516
  xy)  ECHO_C='\c';;
 
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
518
       ECHO_T=' ';;
 
519
  esac;;
 
520
*)
 
521
  ECHO_N='-n';;
 
522
esac
 
523
 
 
524
rm -f conf$$ conf$$.exe conf$$.file
 
525
if test -d conf$$.dir; then
 
526
  rm -f conf$$.dir/conf$$.file
 
527
else
 
528
  rm -f conf$$.dir
 
529
  mkdir conf$$.dir 2>/dev/null
 
530
fi
 
531
if (echo >conf$$.file) 2>/dev/null; then
 
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
533
    as_ln_s='ln -s'
 
534
    # ... but there are two gotchas:
 
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
537
    # In both cases, we have to default to `cp -pR'.
 
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
539
      as_ln_s='cp -pR'
 
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
541
    as_ln_s=ln
 
542
  else
 
543
    as_ln_s='cp -pR'
 
544
  fi
 
545
else
 
546
  as_ln_s='cp -pR'
 
547
fi
 
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
549
rmdir conf$$.dir 2>/dev/null
 
550
 
 
551
if mkdir -p . 2>/dev/null; then
 
552
  as_mkdir_p='mkdir -p "$as_dir"'
 
553
else
 
554
  test -d ./-p && rmdir ./-p
 
555
  as_mkdir_p=false
 
556
fi
 
557
 
 
558
as_test_x='test -x'
 
559
as_executable_p=as_fn_executable_p
 
560
 
 
561
# Sed expression to map a string onto a valid CPP name.
 
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
563
 
 
564
# Sed expression to map a string onto a valid variable name.
 
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
566
 
 
567
SHELL=${CONFIG_SHELL-/bin/sh}
 
568
 
 
569
 
 
570
test -n "$DJDIR" || exec 7<&0 </dev/null
 
571
exec 6>&1
 
572
 
 
573
# Name of the host.
 
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
575
# so uname gets run too.
 
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
577
 
 
578
#
 
579
# Initializations.
 
580
#
 
581
ac_default_prefix=/usr/local
 
582
ac_clean_files=
 
583
ac_config_libobj_dir=.
 
584
LIBOBJS=
 
585
cross_compiling=no
 
586
subdirs=
 
587
MFLAGS=
 
588
MAKEFLAGS=
 
589
 
 
590
# Identity of this package.
 
591
PACKAGE_NAME='libu2f-server'
 
592
PACKAGE_TARNAME='libu2f-server'
 
593
PACKAGE_VERSION='0.0.0'
 
594
PACKAGE_STRING='libu2f-server 0.0.0'
 
595
PACKAGE_BUGREPORT='yubico-devel@googlegroups.com'
 
596
PACKAGE_URL=''
 
597
 
 
598
# Factoring default headers for most tests.
 
599
ac_includes_default="\
 
600
#include <stdio.h>
 
601
#ifdef HAVE_SYS_TYPES_H
 
602
# include <sys/types.h>
 
603
#endif
 
604
#ifdef HAVE_SYS_STAT_H
 
605
# include <sys/stat.h>
 
606
#endif
 
607
#ifdef STDC_HEADERS
 
608
# include <stdlib.h>
 
609
# include <stddef.h>
 
610
#else
 
611
# ifdef HAVE_STDLIB_H
 
612
#  include <stdlib.h>
 
613
# endif
 
614
#endif
 
615
#ifdef HAVE_STRING_H
 
616
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
617
#  include <memory.h>
 
618
# endif
 
619
# include <string.h>
 
620
#endif
 
621
#ifdef HAVE_STRINGS_H
 
622
# include <strings.h>
 
623
#endif
 
624
#ifdef HAVE_INTTYPES_H
 
625
# include <inttypes.h>
 
626
#endif
 
627
#ifdef HAVE_STDINT_H
 
628
# include <stdint.h>
 
629
#endif
 
630
#ifdef HAVE_UNISTD_H
 
631
# include <unistd.h>
 
632
#endif"
 
633
 
 
634
ac_subst_vars='am__EXEEXT_FALSE
 
635
am__EXEEXT_TRUE
 
636
LTLIBOBJS
 
637
LIBOBJS
 
638
U2FS_VERSION_NUMBER
 
639
U2FS_VERSION_PATCH
 
640
U2FS_VERSION_MINOR
 
641
U2FS_VERSION_MAJOR
 
642
WARN_CFLAGS
 
643
CHECK_LIBS
 
644
CHECK_CFLAGS
 
645
LIBSSL_LIBS
 
646
LIBSSL_CFLAGS
 
647
LIBJSON_LIBS
 
648
LIBJSON_CFLAGS
 
649
HAVE_LD_VERSION_SCRIPT_FALSE
 
650
HAVE_LD_VERSION_SCRIPT_TRUE
 
651
HELP2MAN
 
652
GTK_DOC_USE_REBASE_FALSE
 
653
GTK_DOC_USE_REBASE_TRUE
 
654
GTK_DOC_USE_LIBTOOL_FALSE
 
655
GTK_DOC_USE_LIBTOOL_TRUE
 
656
GTK_DOC_BUILD_PDF_FALSE
 
657
GTK_DOC_BUILD_PDF_TRUE
 
658
GTK_DOC_BUILD_HTML_FALSE
 
659
GTK_DOC_BUILD_HTML_TRUE
 
660
ENABLE_GTK_DOC_FALSE
 
661
ENABLE_GTK_DOC_TRUE
 
662
HTML_DIR
 
663
GTKDOC_MKPDF
 
664
GTKDOC_REBASE
 
665
GTKDOC_CHECK
 
666
PKG_CONFIG_LIBDIR
 
667
PKG_CONFIG_PATH
 
668
PKG_CONFIG
 
669
CPP
 
670
OTOOL64
 
671
OTOOL
 
672
LIPO
 
673
NMEDIT
 
674
DSYMUTIL
 
675
MANIFEST_TOOL
 
676
RANLIB
 
677
LN_S
 
678
NM
 
679
ac_ct_DUMPBIN
 
680
DUMPBIN
 
681
LD
 
682
FGREP
 
683
EGREP
 
684
GREP
 
685
SED
 
686
host_os
 
687
host_vendor
 
688
host_cpu
 
689
host
 
690
build_os
 
691
build_vendor
 
692
build_cpu
 
693
build
 
694
LIBTOOL
 
695
OBJDUMP
 
696
DLLTOOL
 
697
AS
 
698
ac_ct_AR
 
699
AR
 
700
am__fastdepCC_FALSE
 
701
am__fastdepCC_TRUE
 
702
CCDEPMODE
 
703
am__nodep
 
704
AMDEPBACKSLASH
 
705
AMDEP_FALSE
 
706
AMDEP_TRUE
 
707
am__quote
 
708
am__include
 
709
DEPDIR
 
710
OBJEXT
 
711
EXEEXT
 
712
ac_ct_CC
 
713
CPPFLAGS
 
714
LDFLAGS
 
715
CFLAGS
 
716
CC
 
717
AM_BACKSLASH
 
718
AM_DEFAULT_VERBOSITY
 
719
AM_DEFAULT_V
 
720
AM_V
 
721
am__untar
 
722
am__tar
 
723
AMTAR
 
724
am__leading_dot
 
725
SET_MAKE
 
726
AWK
 
727
mkdir_p
 
728
MKDIR_P
 
729
INSTALL_STRIP_PROGRAM
 
730
STRIP
 
731
install_sh
 
732
MAKEINFO
 
733
AUTOHEADER
 
734
AUTOMAKE
 
735
AUTOCONF
 
736
ACLOCAL
 
737
VERSION
 
738
PACKAGE
 
739
CYGPATH_W
 
740
am__isrc
 
741
INSTALL_DATA
 
742
INSTALL_SCRIPT
 
743
INSTALL_PROGRAM
 
744
LT_AGE
 
745
LT_REVISION
 
746
LT_CURRENT
 
747
target_alias
 
748
host_alias
 
749
build_alias
 
750
LIBS
 
751
ECHO_T
 
752
ECHO_N
 
753
ECHO_C
 
754
DEFS
 
755
mandir
 
756
localedir
 
757
libdir
 
758
psdir
 
759
pdfdir
 
760
dvidir
 
761
htmldir
 
762
infodir
 
763
docdir
 
764
oldincludedir
 
765
includedir
 
766
localstatedir
 
767
sharedstatedir
 
768
sysconfdir
 
769
datadir
 
770
datarootdir
 
771
libexecdir
 
772
sbindir
 
773
bindir
 
774
program_transform_name
 
775
prefix
 
776
exec_prefix
 
777
PACKAGE_URL
 
778
PACKAGE_BUGREPORT
 
779
PACKAGE_STRING
 
780
PACKAGE_VERSION
 
781
PACKAGE_TARNAME
 
782
PACKAGE_NAME
 
783
PATH_SEPARATOR
 
784
SHELL'
 
785
ac_subst_files=''
 
786
ac_user_opts='
 
787
enable_option_checking
 
788
enable_silent_rules
 
789
enable_dependency_tracking
 
790
enable_shared
 
791
enable_static
 
792
with_pic
 
793
enable_fast_install
 
794
with_gnu_ld
 
795
with_sysroot
 
796
enable_libtool_lock
 
797
with_html_dir
 
798
enable_gtk_doc
 
799
enable_gtk_doc_html
 
800
enable_gtk_doc_pdf
 
801
enable_ld_version_script
 
802
enable_gcc_warnings
 
803
'
 
804
      ac_precious_vars='build_alias
 
805
host_alias
 
806
target_alias
 
807
CC
 
808
CFLAGS
 
809
LDFLAGS
 
810
LIBS
 
811
CPPFLAGS
 
812
CPP
 
813
PKG_CONFIG
 
814
PKG_CONFIG_PATH
 
815
PKG_CONFIG_LIBDIR
 
816
LIBJSON_CFLAGS
 
817
LIBJSON_LIBS
 
818
LIBSSL_CFLAGS
 
819
LIBSSL_LIBS
 
820
CHECK_CFLAGS
 
821
CHECK_LIBS'
 
822
 
 
823
 
 
824
# Initialize some variables set by options.
 
825
ac_init_help=
 
826
ac_init_version=false
 
827
ac_unrecognized_opts=
 
828
ac_unrecognized_sep=
 
829
# The variables have the same names as the options, with
 
830
# dashes changed to underlines.
 
831
cache_file=/dev/null
 
832
exec_prefix=NONE
 
833
no_create=
 
834
no_recursion=
 
835
prefix=NONE
 
836
program_prefix=NONE
 
837
program_suffix=NONE
 
838
program_transform_name=s,x,x,
 
839
silent=
 
840
site=
 
841
srcdir=
 
842
verbose=
 
843
x_includes=NONE
 
844
x_libraries=NONE
 
845
 
 
846
# Installation directory options.
 
847
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
848
# and all the variables that are supposed to be based on exec_prefix
 
849
# by default will actually change.
 
850
# Use braces instead of parens because sh, perl, etc. also accept them.
 
851
# (The list follows the same order as the GNU Coding Standards.)
 
852
bindir='${exec_prefix}/bin'
 
853
sbindir='${exec_prefix}/sbin'
 
854
libexecdir='${exec_prefix}/libexec'
 
855
datarootdir='${prefix}/share'
 
856
datadir='${datarootdir}'
 
857
sysconfdir='${prefix}/etc'
 
858
sharedstatedir='${prefix}/com'
 
859
localstatedir='${prefix}/var'
 
860
includedir='${prefix}/include'
 
861
oldincludedir='/usr/include'
 
862
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
863
infodir='${datarootdir}/info'
 
864
htmldir='${docdir}'
 
865
dvidir='${docdir}'
 
866
pdfdir='${docdir}'
 
867
psdir='${docdir}'
 
868
libdir='${exec_prefix}/lib'
 
869
localedir='${datarootdir}/locale'
 
870
mandir='${datarootdir}/man'
 
871
 
 
872
ac_prev=
 
873
ac_dashdash=
 
874
for ac_option
 
875
do
 
876
  # If the previous option needs an argument, assign it.
 
877
  if test -n "$ac_prev"; then
 
878
    eval $ac_prev=\$ac_option
 
879
    ac_prev=
 
880
    continue
 
881
  fi
 
882
 
 
883
  case $ac_option in
 
884
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
885
  *=)   ac_optarg= ;;
 
886
  *)    ac_optarg=yes ;;
 
887
  esac
 
888
 
 
889
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
890
 
 
891
  case $ac_dashdash$ac_option in
 
892
  --)
 
893
    ac_dashdash=yes ;;
 
894
 
 
895
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
896
    ac_prev=bindir ;;
 
897
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
898
    bindir=$ac_optarg ;;
 
899
 
 
900
  -build | --build | --buil | --bui | --bu)
 
901
    ac_prev=build_alias ;;
 
902
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
903
    build_alias=$ac_optarg ;;
 
904
 
 
905
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
906
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
907
    ac_prev=cache_file ;;
 
908
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
909
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
910
    cache_file=$ac_optarg ;;
 
911
 
 
912
  --config-cache | -C)
 
913
    cache_file=config.cache ;;
 
914
 
 
915
  -datadir | --datadir | --datadi | --datad)
 
916
    ac_prev=datadir ;;
 
917
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
918
    datadir=$ac_optarg ;;
 
919
 
 
920
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
921
  | --dataroo | --dataro | --datar)
 
922
    ac_prev=datarootdir ;;
 
923
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
924
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
925
    datarootdir=$ac_optarg ;;
 
926
 
 
927
  -disable-* | --disable-*)
 
928
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
929
    # Reject names that are not valid shell variable names.
 
930
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
931
      as_fn_error $? "invalid feature name: $ac_useropt"
 
932
    ac_useropt_orig=$ac_useropt
 
933
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
934
    case $ac_user_opts in
 
935
      *"
 
936
"enable_$ac_useropt"
 
937
"*) ;;
 
938
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
939
         ac_unrecognized_sep=', ';;
 
940
    esac
 
941
    eval enable_$ac_useropt=no ;;
 
942
 
 
943
  -docdir | --docdir | --docdi | --doc | --do)
 
944
    ac_prev=docdir ;;
 
945
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
946
    docdir=$ac_optarg ;;
 
947
 
 
948
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
949
    ac_prev=dvidir ;;
 
950
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
951
    dvidir=$ac_optarg ;;
 
952
 
 
953
  -enable-* | --enable-*)
 
954
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
955
    # Reject names that are not valid shell variable names.
 
956
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
957
      as_fn_error $? "invalid feature name: $ac_useropt"
 
958
    ac_useropt_orig=$ac_useropt
 
959
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
960
    case $ac_user_opts in
 
961
      *"
 
962
"enable_$ac_useropt"
 
963
"*) ;;
 
964
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
965
         ac_unrecognized_sep=', ';;
 
966
    esac
 
967
    eval enable_$ac_useropt=\$ac_optarg ;;
 
968
 
 
969
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
970
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
971
  | --exec | --exe | --ex)
 
972
    ac_prev=exec_prefix ;;
 
973
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
974
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
975
  | --exec=* | --exe=* | --ex=*)
 
976
    exec_prefix=$ac_optarg ;;
 
977
 
 
978
  -gas | --gas | --ga | --g)
 
979
    # Obsolete; use --with-gas.
 
980
    with_gas=yes ;;
 
981
 
 
982
  -help | --help | --hel | --he | -h)
 
983
    ac_init_help=long ;;
 
984
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
985
    ac_init_help=recursive ;;
 
986
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
987
    ac_init_help=short ;;
 
988
 
 
989
  -host | --host | --hos | --ho)
 
990
    ac_prev=host_alias ;;
 
991
  -host=* | --host=* | --hos=* | --ho=*)
 
992
    host_alias=$ac_optarg ;;
 
993
 
 
994
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
995
    ac_prev=htmldir ;;
 
996
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
997
  | --ht=*)
 
998
    htmldir=$ac_optarg ;;
 
999
 
 
1000
  -includedir | --includedir | --includedi | --included | --include \
 
1001
  | --includ | --inclu | --incl | --inc)
 
1002
    ac_prev=includedir ;;
 
1003
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1004
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1005
    includedir=$ac_optarg ;;
 
1006
 
 
1007
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1008
    ac_prev=infodir ;;
 
1009
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1010
    infodir=$ac_optarg ;;
 
1011
 
 
1012
  -libdir | --libdir | --libdi | --libd)
 
1013
    ac_prev=libdir ;;
 
1014
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1015
    libdir=$ac_optarg ;;
 
1016
 
 
1017
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1018
  | --libexe | --libex | --libe)
 
1019
    ac_prev=libexecdir ;;
 
1020
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1021
  | --libexe=* | --libex=* | --libe=*)
 
1022
    libexecdir=$ac_optarg ;;
 
1023
 
 
1024
  -localedir | --localedir | --localedi | --localed | --locale)
 
1025
    ac_prev=localedir ;;
 
1026
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1027
    localedir=$ac_optarg ;;
 
1028
 
 
1029
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1030
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1031
    ac_prev=localstatedir ;;
 
1032
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1033
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1034
    localstatedir=$ac_optarg ;;
 
1035
 
 
1036
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1037
    ac_prev=mandir ;;
 
1038
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1039
    mandir=$ac_optarg ;;
 
1040
 
 
1041
  -nfp | --nfp | --nf)
 
1042
    # Obsolete; use --without-fp.
 
1043
    with_fp=no ;;
 
1044
 
 
1045
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1046
  | --no-cr | --no-c | -n)
 
1047
    no_create=yes ;;
 
1048
 
 
1049
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1050
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1051
    no_recursion=yes ;;
 
1052
 
 
1053
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1054
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1055
  | --oldin | --oldi | --old | --ol | --o)
 
1056
    ac_prev=oldincludedir ;;
 
1057
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1058
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1059
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1060
    oldincludedir=$ac_optarg ;;
 
1061
 
 
1062
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1063
    ac_prev=prefix ;;
 
1064
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1065
    prefix=$ac_optarg ;;
 
1066
 
 
1067
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1068
  | --program-pre | --program-pr | --program-p)
 
1069
    ac_prev=program_prefix ;;
 
1070
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1071
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1072
    program_prefix=$ac_optarg ;;
 
1073
 
 
1074
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1075
  | --program-suf | --program-su | --program-s)
 
1076
    ac_prev=program_suffix ;;
 
1077
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1078
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1079
    program_suffix=$ac_optarg ;;
 
1080
 
 
1081
  -program-transform-name | --program-transform-name \
 
1082
  | --program-transform-nam | --program-transform-na \
 
1083
  | --program-transform-n | --program-transform- \
 
1084
  | --program-transform | --program-transfor \
 
1085
  | --program-transfo | --program-transf \
 
1086
  | --program-trans | --program-tran \
 
1087
  | --progr-tra | --program-tr | --program-t)
 
1088
    ac_prev=program_transform_name ;;
 
1089
  -program-transform-name=* | --program-transform-name=* \
 
1090
  | --program-transform-nam=* | --program-transform-na=* \
 
1091
  | --program-transform-n=* | --program-transform-=* \
 
1092
  | --program-transform=* | --program-transfor=* \
 
1093
  | --program-transfo=* | --program-transf=* \
 
1094
  | --program-trans=* | --program-tran=* \
 
1095
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1096
    program_transform_name=$ac_optarg ;;
 
1097
 
 
1098
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1099
    ac_prev=pdfdir ;;
 
1100
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1101
    pdfdir=$ac_optarg ;;
 
1102
 
 
1103
  -psdir | --psdir | --psdi | --psd | --ps)
 
1104
    ac_prev=psdir ;;
 
1105
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1106
    psdir=$ac_optarg ;;
 
1107
 
 
1108
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1109
  | -silent | --silent | --silen | --sile | --sil)
 
1110
    silent=yes ;;
 
1111
 
 
1112
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1113
    ac_prev=sbindir ;;
 
1114
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1115
  | --sbi=* | --sb=*)
 
1116
    sbindir=$ac_optarg ;;
 
1117
 
 
1118
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1119
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1120
  | --sharedst | --shareds | --shared | --share | --shar \
 
1121
  | --sha | --sh)
 
1122
    ac_prev=sharedstatedir ;;
 
1123
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1124
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1125
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1126
  | --sha=* | --sh=*)
 
1127
    sharedstatedir=$ac_optarg ;;
 
1128
 
 
1129
  -site | --site | --sit)
 
1130
    ac_prev=site ;;
 
1131
  -site=* | --site=* | --sit=*)
 
1132
    site=$ac_optarg ;;
 
1133
 
 
1134
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1135
    ac_prev=srcdir ;;
 
1136
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1137
    srcdir=$ac_optarg ;;
 
1138
 
 
1139
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1140
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1141
    ac_prev=sysconfdir ;;
 
1142
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1143
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1144
    sysconfdir=$ac_optarg ;;
 
1145
 
 
1146
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1147
    ac_prev=target_alias ;;
 
1148
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1149
    target_alias=$ac_optarg ;;
 
1150
 
 
1151
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1152
    verbose=yes ;;
 
1153
 
 
1154
  -version | --version | --versio | --versi | --vers | -V)
 
1155
    ac_init_version=: ;;
 
1156
 
 
1157
  -with-* | --with-*)
 
1158
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1159
    # Reject names that are not valid shell variable names.
 
1160
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1161
      as_fn_error $? "invalid package name: $ac_useropt"
 
1162
    ac_useropt_orig=$ac_useropt
 
1163
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1164
    case $ac_user_opts in
 
1165
      *"
 
1166
"with_$ac_useropt"
 
1167
"*) ;;
 
1168
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1169
         ac_unrecognized_sep=', ';;
 
1170
    esac
 
1171
    eval with_$ac_useropt=\$ac_optarg ;;
 
1172
 
 
1173
  -without-* | --without-*)
 
1174
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1175
    # Reject names that are not valid shell variable names.
 
1176
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1177
      as_fn_error $? "invalid package name: $ac_useropt"
 
1178
    ac_useropt_orig=$ac_useropt
 
1179
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1180
    case $ac_user_opts in
 
1181
      *"
 
1182
"with_$ac_useropt"
 
1183
"*) ;;
 
1184
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1185
         ac_unrecognized_sep=', ';;
 
1186
    esac
 
1187
    eval with_$ac_useropt=no ;;
 
1188
 
 
1189
  --x)
 
1190
    # Obsolete; use --with-x.
 
1191
    with_x=yes ;;
 
1192
 
 
1193
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1194
  | --x-incl | --x-inc | --x-in | --x-i)
 
1195
    ac_prev=x_includes ;;
 
1196
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1197
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1198
    x_includes=$ac_optarg ;;
 
1199
 
 
1200
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1201
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1202
    ac_prev=x_libraries ;;
 
1203
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1204
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1205
    x_libraries=$ac_optarg ;;
 
1206
 
 
1207
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1208
Try \`$0 --help' for more information"
 
1209
    ;;
 
1210
 
 
1211
  *=*)
 
1212
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1213
    # Reject names that are not valid shell variable names.
 
1214
    case $ac_envvar in #(
 
1215
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1216
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1217
    esac
 
1218
    eval $ac_envvar=\$ac_optarg
 
1219
    export $ac_envvar ;;
 
1220
 
 
1221
  *)
 
1222
    # FIXME: should be removed in autoconf 3.0.
 
1223
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1224
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1225
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1226
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1227
    ;;
 
1228
 
 
1229
  esac
 
1230
done
 
1231
 
 
1232
if test -n "$ac_prev"; then
 
1233
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1234
  as_fn_error $? "missing argument to $ac_option"
 
1235
fi
 
1236
 
 
1237
if test -n "$ac_unrecognized_opts"; then
 
1238
  case $enable_option_checking in
 
1239
    no) ;;
 
1240
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1241
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1242
  esac
 
1243
fi
 
1244
 
 
1245
# Check all directory arguments for consistency.
 
1246
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1247
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1248
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1249
                libdir localedir mandir
 
1250
do
 
1251
  eval ac_val=\$$ac_var
 
1252
  # Remove trailing slashes.
 
1253
  case $ac_val in
 
1254
    */ )
 
1255
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1256
      eval $ac_var=\$ac_val;;
 
1257
  esac
 
1258
  # Be sure to have absolute directory names.
 
1259
  case $ac_val in
 
1260
    [\\/$]* | ?:[\\/]* )  continue;;
 
1261
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1262
  esac
 
1263
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1264
done
 
1265
 
 
1266
# There might be people who depend on the old broken behavior: `$host'
 
1267
# used to hold the argument of --host etc.
 
1268
# FIXME: To remove some day.
 
1269
build=$build_alias
 
1270
host=$host_alias
 
1271
target=$target_alias
 
1272
 
 
1273
# FIXME: To remove some day.
 
1274
if test "x$host_alias" != x; then
 
1275
  if test "x$build_alias" = x; then
 
1276
    cross_compiling=maybe
 
1277
  elif test "x$build_alias" != "x$host_alias"; then
 
1278
    cross_compiling=yes
 
1279
  fi
 
1280
fi
 
1281
 
 
1282
ac_tool_prefix=
 
1283
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1284
 
 
1285
test "$silent" = yes && exec 6>/dev/null
 
1286
 
 
1287
 
 
1288
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1289
ac_ls_di=`ls -di .` &&
 
1290
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1291
  as_fn_error $? "working directory cannot be determined"
 
1292
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1293
  as_fn_error $? "pwd does not report name of working directory"
 
1294
 
 
1295
 
 
1296
# Find the source files, if location was not specified.
 
1297
if test -z "$srcdir"; then
 
1298
  ac_srcdir_defaulted=yes
 
1299
  # Try the directory containing this script, then the parent directory.
 
1300
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1301
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1302
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1303
         X"$as_myself" : 'X\(//\)$' \| \
 
1304
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1305
$as_echo X"$as_myself" |
 
1306
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1307
            s//\1/
 
1308
            q
 
1309
          }
 
1310
          /^X\(\/\/\)[^/].*/{
 
1311
            s//\1/
 
1312
            q
 
1313
          }
 
1314
          /^X\(\/\/\)$/{
 
1315
            s//\1/
 
1316
            q
 
1317
          }
 
1318
          /^X\(\/\).*/{
 
1319
            s//\1/
 
1320
            q
 
1321
          }
 
1322
          s/.*/./; q'`
 
1323
  srcdir=$ac_confdir
 
1324
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1325
    srcdir=..
 
1326
  fi
 
1327
else
 
1328
  ac_srcdir_defaulted=no
 
1329
fi
 
1330
if test ! -r "$srcdir/$ac_unique_file"; then
 
1331
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1332
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1333
fi
 
1334
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1335
ac_abs_confdir=`(
 
1336
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1337
        pwd)`
 
1338
# When building in place, set srcdir=.
 
1339
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1340
  srcdir=.
 
1341
fi
 
1342
# Remove unnecessary trailing slashes from srcdir.
 
1343
# Double slashes in file names in object file debugging info
 
1344
# mess up M-x gdb in Emacs.
 
1345
case $srcdir in
 
1346
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1347
esac
 
1348
for ac_var in $ac_precious_vars; do
 
1349
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1350
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1351
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1352
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1353
done
 
1354
 
 
1355
#
 
1356
# Report the --help message.
 
1357
#
 
1358
if test "$ac_init_help" = "long"; then
 
1359
  # Omit some internal or obsolete options to make the list less imposing.
 
1360
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1361
  cat <<_ACEOF
 
1362
\`configure' configures libu2f-server 0.0.0 to adapt to many kinds of systems.
 
1363
 
 
1364
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1365
 
 
1366
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1367
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1368
 
 
1369
Defaults for the options are specified in brackets.
 
1370
 
 
1371
Configuration:
 
1372
  -h, --help              display this help and exit
 
1373
      --help=short        display options specific to this package
 
1374
      --help=recursive    display the short help of all the included packages
 
1375
  -V, --version           display version information and exit
 
1376
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1377
      --cache-file=FILE   cache test results in FILE [disabled]
 
1378
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1379
  -n, --no-create         do not create output files
 
1380
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1381
 
 
1382
Installation directories:
 
1383
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1384
                          [$ac_default_prefix]
 
1385
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1386
                          [PREFIX]
 
1387
 
 
1388
By default, \`make install' will install all the files in
 
1389
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1390
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1391
for instance \`--prefix=\$HOME'.
 
1392
 
 
1393
For better control, use the options below.
 
1394
 
 
1395
Fine tuning of the installation directories:
 
1396
  --bindir=DIR            user executables [EPREFIX/bin]
 
1397
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1398
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1399
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1400
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1401
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1402
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1403
  --includedir=DIR        C header files [PREFIX/include]
 
1404
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1405
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1406
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1407
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1408
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1409
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1410
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libu2f-server]
 
1411
  --htmldir=DIR           html documentation [DOCDIR]
 
1412
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1413
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1414
  --psdir=DIR             ps documentation [DOCDIR]
 
1415
_ACEOF
 
1416
 
 
1417
  cat <<\_ACEOF
 
1418
 
 
1419
Program names:
 
1420
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1421
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1422
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1423
 
 
1424
System types:
 
1425
  --build=BUILD     configure for building on BUILD [guessed]
 
1426
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1427
_ACEOF
 
1428
fi
 
1429
 
 
1430
if test -n "$ac_init_help"; then
 
1431
  case $ac_init_help in
 
1432
     short | recursive ) echo "Configuration of libu2f-server 0.0.0:";;
 
1433
   esac
 
1434
  cat <<\_ACEOF
 
1435
 
 
1436
Optional Features:
 
1437
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1438
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1439
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1440
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1441
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1442
  --enable-dependency-tracking
 
1443
                          do not reject slow dependency extractors
 
1444
  --disable-dependency-tracking
 
1445
                          speeds up one-time build
 
1446
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1447
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1448
  --enable-fast-install[=PKGS]
 
1449
                          optimize for fast installation [default=yes]
 
1450
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1451
  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
 
1452
  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
 
1453
  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
 
1454
  --enable-ld-version-script
 
1455
                          enable linker version script (default is enabled
 
1456
                          when possible)
 
1457
  --enable-gcc-warnings   turn on lots of GCC warnings (for developers)
 
1458
 
 
1459
Optional Packages:
 
1460
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1461
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1462
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1463
                          both]
 
1464
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1465
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1466
                        (or the compiler's sysroot if not specified).
 
1467
  --with-html-dir=PATH    path to installed docs
 
1468
 
 
1469
Some influential environment variables:
 
1470
  CC          C compiler command
 
1471
  CFLAGS      C compiler flags
 
1472
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1473
              nonstandard directory <lib dir>
 
1474
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1475
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1476
              you have headers in a nonstandard directory <include dir>
 
1477
  CPP         C preprocessor
 
1478
  PKG_CONFIG  path to pkg-config utility
 
1479
  PKG_CONFIG_PATH
 
1480
              directories to add to pkg-config's search path
 
1481
  PKG_CONFIG_LIBDIR
 
1482
              path overriding pkg-config's built-in search path
 
1483
  LIBJSON_CFLAGS
 
1484
              C compiler flags for LIBJSON, overriding pkg-config
 
1485
  LIBJSON_LIBS
 
1486
              linker flags for LIBJSON, overriding pkg-config
 
1487
  LIBSSL_CFLAGS
 
1488
              C compiler flags for LIBSSL, overriding pkg-config
 
1489
  LIBSSL_LIBS linker flags for LIBSSL, overriding pkg-config
 
1490
  CHECK_CFLAGS
 
1491
              C compiler flags for CHECK, overriding pkg-config
 
1492
  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
 
1493
 
 
1494
Use these variables to override the choices made by `configure' or to help
 
1495
it to find libraries and programs with nonstandard names/locations.
 
1496
 
 
1497
Report bugs to <yubico-devel@googlegroups.com>.
 
1498
_ACEOF
 
1499
ac_status=$?
 
1500
fi
 
1501
 
 
1502
if test "$ac_init_help" = "recursive"; then
 
1503
  # If there are subdirs, report their specific --help.
 
1504
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1505
    test -d "$ac_dir" ||
 
1506
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1507
      continue
 
1508
    ac_builddir=.
 
1509
 
 
1510
case "$ac_dir" in
 
1511
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1512
*)
 
1513
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1514
  # A ".." for each directory in $ac_dir_suffix.
 
1515
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1516
  case $ac_top_builddir_sub in
 
1517
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1518
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1519
  esac ;;
 
1520
esac
 
1521
ac_abs_top_builddir=$ac_pwd
 
1522
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1523
# for backward compatibility:
 
1524
ac_top_builddir=$ac_top_build_prefix
 
1525
 
 
1526
case $srcdir in
 
1527
  .)  # We are building in place.
 
1528
    ac_srcdir=.
 
1529
    ac_top_srcdir=$ac_top_builddir_sub
 
1530
    ac_abs_top_srcdir=$ac_pwd ;;
 
1531
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1532
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1533
    ac_top_srcdir=$srcdir
 
1534
    ac_abs_top_srcdir=$srcdir ;;
 
1535
  *) # Relative name.
 
1536
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1537
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1538
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1539
esac
 
1540
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1541
 
 
1542
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1543
    # Check for guested configure.
 
1544
    if test -f "$ac_srcdir/configure.gnu"; then
 
1545
      echo &&
 
1546
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1547
    elif test -f "$ac_srcdir/configure"; then
 
1548
      echo &&
 
1549
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1550
    else
 
1551
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1552
    fi || ac_status=$?
 
1553
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1554
  done
 
1555
fi
 
1556
 
 
1557
test -n "$ac_init_help" && exit $ac_status
 
1558
if $ac_init_version; then
 
1559
  cat <<\_ACEOF
 
1560
libu2f-server configure 0.0.0
 
1561
generated by GNU Autoconf 2.69
 
1562
 
 
1563
Copyright (C) 2012 Free Software Foundation, Inc.
 
1564
This configure script is free software; the Free Software Foundation
 
1565
gives unlimited permission to copy, distribute and modify it.
 
1566
_ACEOF
 
1567
  exit
 
1568
fi
 
1569
 
 
1570
## ------------------------ ##
 
1571
## Autoconf initialization. ##
 
1572
## ------------------------ ##
 
1573
 
 
1574
# ac_fn_c_try_compile LINENO
 
1575
# --------------------------
 
1576
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1577
ac_fn_c_try_compile ()
 
1578
{
 
1579
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1580
  rm -f conftest.$ac_objext
 
1581
  if { { ac_try="$ac_compile"
 
1582
case "(($ac_try" in
 
1583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1584
  *) ac_try_echo=$ac_try;;
 
1585
esac
 
1586
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1587
$as_echo "$ac_try_echo"; } >&5
 
1588
  (eval "$ac_compile") 2>conftest.err
 
1589
  ac_status=$?
 
1590
  if test -s conftest.err; then
 
1591
    grep -v '^ *+' conftest.err >conftest.er1
 
1592
    cat conftest.er1 >&5
 
1593
    mv -f conftest.er1 conftest.err
 
1594
  fi
 
1595
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1596
  test $ac_status = 0; } && {
 
1597
         test -z "$ac_c_werror_flag" ||
 
1598
         test ! -s conftest.err
 
1599
       } && test -s conftest.$ac_objext; then :
 
1600
  ac_retval=0
 
1601
else
 
1602
  $as_echo "$as_me: failed program was:" >&5
 
1603
sed 's/^/| /' conftest.$ac_ext >&5
 
1604
 
 
1605
        ac_retval=1
 
1606
fi
 
1607
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1608
  as_fn_set_status $ac_retval
 
1609
 
 
1610
} # ac_fn_c_try_compile
 
1611
 
 
1612
# ac_fn_c_try_link LINENO
 
1613
# -----------------------
 
1614
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1615
ac_fn_c_try_link ()
 
1616
{
 
1617
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1618
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1619
  if { { ac_try="$ac_link"
 
1620
case "(($ac_try" in
 
1621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1622
  *) ac_try_echo=$ac_try;;
 
1623
esac
 
1624
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1625
$as_echo "$ac_try_echo"; } >&5
 
1626
  (eval "$ac_link") 2>conftest.err
 
1627
  ac_status=$?
 
1628
  if test -s conftest.err; then
 
1629
    grep -v '^ *+' conftest.err >conftest.er1
 
1630
    cat conftest.er1 >&5
 
1631
    mv -f conftest.er1 conftest.err
 
1632
  fi
 
1633
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1634
  test $ac_status = 0; } && {
 
1635
         test -z "$ac_c_werror_flag" ||
 
1636
         test ! -s conftest.err
 
1637
       } && test -s conftest$ac_exeext && {
 
1638
         test "$cross_compiling" = yes ||
 
1639
         test -x conftest$ac_exeext
 
1640
       }; then :
 
1641
  ac_retval=0
 
1642
else
 
1643
  $as_echo "$as_me: failed program was:" >&5
 
1644
sed 's/^/| /' conftest.$ac_ext >&5
 
1645
 
 
1646
        ac_retval=1
 
1647
fi
 
1648
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1649
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1650
  # interfere with the next link command; also delete a directory that is
 
1651
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1652
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1653
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1654
  as_fn_set_status $ac_retval
 
1655
 
 
1656
} # ac_fn_c_try_link
 
1657
 
 
1658
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1659
# -------------------------------------------------------
 
1660
# Tests whether HEADER exists and can be compiled using the include files in
 
1661
# INCLUDES, setting the cache variable VAR accordingly.
 
1662
ac_fn_c_check_header_compile ()
 
1663
{
 
1664
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1665
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1666
$as_echo_n "checking for $2... " >&6; }
 
1667
if eval \${$3+:} false; then :
 
1668
  $as_echo_n "(cached) " >&6
 
1669
else
 
1670
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1671
/* end confdefs.h.  */
 
1672
$4
 
1673
#include <$2>
 
1674
_ACEOF
 
1675
if ac_fn_c_try_compile "$LINENO"; then :
 
1676
  eval "$3=yes"
 
1677
else
 
1678
  eval "$3=no"
 
1679
fi
 
1680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1681
fi
 
1682
eval ac_res=\$$3
 
1683
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1684
$as_echo "$ac_res" >&6; }
 
1685
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1686
 
 
1687
} # ac_fn_c_check_header_compile
 
1688
 
 
1689
# ac_fn_c_try_cpp LINENO
 
1690
# ----------------------
 
1691
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1692
ac_fn_c_try_cpp ()
 
1693
{
 
1694
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1695
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1696
case "(($ac_try" in
 
1697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1698
  *) ac_try_echo=$ac_try;;
 
1699
esac
 
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1701
$as_echo "$ac_try_echo"; } >&5
 
1702
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1703
  ac_status=$?
 
1704
  if test -s conftest.err; then
 
1705
    grep -v '^ *+' conftest.err >conftest.er1
 
1706
    cat conftest.er1 >&5
 
1707
    mv -f conftest.er1 conftest.err
 
1708
  fi
 
1709
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1710
  test $ac_status = 0; } > conftest.i && {
 
1711
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1712
         test ! -s conftest.err
 
1713
       }; then :
 
1714
  ac_retval=0
 
1715
else
 
1716
  $as_echo "$as_me: failed program was:" >&5
 
1717
sed 's/^/| /' conftest.$ac_ext >&5
 
1718
 
 
1719
    ac_retval=1
 
1720
fi
 
1721
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1722
  as_fn_set_status $ac_retval
 
1723
 
 
1724
} # ac_fn_c_try_cpp
 
1725
 
 
1726
# ac_fn_c_try_run LINENO
 
1727
# ----------------------
 
1728
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1729
# that executables *can* be run.
 
1730
ac_fn_c_try_run ()
 
1731
{
 
1732
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1733
  if { { ac_try="$ac_link"
 
1734
case "(($ac_try" in
 
1735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1736
  *) ac_try_echo=$ac_try;;
 
1737
esac
 
1738
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1739
$as_echo "$ac_try_echo"; } >&5
 
1740
  (eval "$ac_link") 2>&5
 
1741
  ac_status=$?
 
1742
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1743
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1744
  { { case "(($ac_try" in
 
1745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1746
  *) ac_try_echo=$ac_try;;
 
1747
esac
 
1748
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1749
$as_echo "$ac_try_echo"; } >&5
 
1750
  (eval "$ac_try") 2>&5
 
1751
  ac_status=$?
 
1752
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1753
  test $ac_status = 0; }; }; then :
 
1754
  ac_retval=0
 
1755
else
 
1756
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1757
       $as_echo "$as_me: failed program was:" >&5
 
1758
sed 's/^/| /' conftest.$ac_ext >&5
 
1759
 
 
1760
       ac_retval=$ac_status
 
1761
fi
 
1762
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1763
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1764
  as_fn_set_status $ac_retval
 
1765
 
 
1766
} # ac_fn_c_try_run
 
1767
 
 
1768
# ac_fn_c_check_func LINENO FUNC VAR
 
1769
# ----------------------------------
 
1770
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1771
ac_fn_c_check_func ()
 
1772
{
 
1773
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1774
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1775
$as_echo_n "checking for $2... " >&6; }
 
1776
if eval \${$3+:} false; then :
 
1777
  $as_echo_n "(cached) " >&6
 
1778
else
 
1779
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1780
/* end confdefs.h.  */
 
1781
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1782
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1783
#define $2 innocuous_$2
 
1784
 
 
1785
/* System header to define __stub macros and hopefully few prototypes,
 
1786
    which can conflict with char $2 (); below.
 
1787
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1788
    <limits.h> exists even on freestanding compilers.  */
 
1789
 
 
1790
#ifdef __STDC__
 
1791
# include <limits.h>
 
1792
#else
 
1793
# include <assert.h>
 
1794
#endif
 
1795
 
 
1796
#undef $2
 
1797
 
 
1798
/* Override any GCC internal prototype to avoid an error.
 
1799
   Use char because int might match the return type of a GCC
 
1800
   builtin and then its argument prototype would still apply.  */
 
1801
#ifdef __cplusplus
 
1802
extern "C"
 
1803
#endif
 
1804
char $2 ();
 
1805
/* The GNU C library defines this for functions which it implements
 
1806
    to always fail with ENOSYS.  Some functions are actually named
 
1807
    something starting with __ and the normal name is an alias.  */
 
1808
#if defined __stub_$2 || defined __stub___$2
 
1809
choke me
 
1810
#endif
 
1811
 
 
1812
int
 
1813
main ()
 
1814
{
 
1815
return $2 ();
 
1816
  ;
 
1817
  return 0;
 
1818
}
 
1819
_ACEOF
 
1820
if ac_fn_c_try_link "$LINENO"; then :
 
1821
  eval "$3=yes"
 
1822
else
 
1823
  eval "$3=no"
 
1824
fi
 
1825
rm -f core conftest.err conftest.$ac_objext \
 
1826
    conftest$ac_exeext conftest.$ac_ext
 
1827
fi
 
1828
eval ac_res=\$$3
 
1829
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1830
$as_echo "$ac_res" >&6; }
 
1831
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1832
 
 
1833
} # ac_fn_c_check_func
 
1834
cat >config.log <<_ACEOF
 
1835
This file contains any messages produced by compilers while
 
1836
running configure, to aid debugging if configure makes a mistake.
 
1837
 
 
1838
It was created by libu2f-server $as_me 0.0.0, which was
 
1839
generated by GNU Autoconf 2.69.  Invocation command line was
 
1840
 
 
1841
  $ $0 $@
 
1842
 
 
1843
_ACEOF
 
1844
exec 5>>config.log
 
1845
{
 
1846
cat <<_ASUNAME
 
1847
## --------- ##
 
1848
## Platform. ##
 
1849
## --------- ##
 
1850
 
 
1851
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1852
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1853
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1854
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1855
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1856
 
 
1857
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1858
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1859
 
 
1860
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1861
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1862
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1863
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1864
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1865
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1866
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1867
 
 
1868
_ASUNAME
 
1869
 
 
1870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1871
for as_dir in $PATH
 
1872
do
 
1873
  IFS=$as_save_IFS
 
1874
  test -z "$as_dir" && as_dir=.
 
1875
    $as_echo "PATH: $as_dir"
 
1876
  done
 
1877
IFS=$as_save_IFS
 
1878
 
 
1879
} >&5
 
1880
 
 
1881
cat >&5 <<_ACEOF
 
1882
 
 
1883
 
 
1884
## ----------- ##
 
1885
## Core tests. ##
 
1886
## ----------- ##
 
1887
 
 
1888
_ACEOF
 
1889
 
 
1890
 
 
1891
# Keep a trace of the command line.
 
1892
# Strip out --no-create and --no-recursion so they do not pile up.
 
1893
# Strip out --silent because we don't want to record it for future runs.
 
1894
# Also quote any args containing shell meta-characters.
 
1895
# Make two passes to allow for proper duplicate-argument suppression.
 
1896
ac_configure_args=
 
1897
ac_configure_args0=
 
1898
ac_configure_args1=
 
1899
ac_must_keep_next=false
 
1900
for ac_pass in 1 2
 
1901
do
 
1902
  for ac_arg
 
1903
  do
 
1904
    case $ac_arg in
 
1905
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1906
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1907
    | -silent | --silent | --silen | --sile | --sil)
 
1908
      continue ;;
 
1909
    *\'*)
 
1910
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1911
    esac
 
1912
    case $ac_pass in
 
1913
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1914
    2)
 
1915
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1916
      if test $ac_must_keep_next = true; then
 
1917
        ac_must_keep_next=false # Got value, back to normal.
 
1918
      else
 
1919
        case $ac_arg in
 
1920
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1921
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1922
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1923
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1924
            case "$ac_configure_args0 " in
 
1925
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1926
            esac
 
1927
            ;;
 
1928
          -* ) ac_must_keep_next=true ;;
 
1929
        esac
 
1930
      fi
 
1931
      as_fn_append ac_configure_args " '$ac_arg'"
 
1932
      ;;
 
1933
    esac
 
1934
  done
 
1935
done
 
1936
{ ac_configure_args0=; unset ac_configure_args0;}
 
1937
{ ac_configure_args1=; unset ac_configure_args1;}
 
1938
 
 
1939
# When interrupted or exit'd, cleanup temporary files, and complete
 
1940
# config.log.  We remove comments because anyway the quotes in there
 
1941
# would cause problems or look ugly.
 
1942
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1943
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1944
trap 'exit_status=$?
 
1945
  # Save into config.log some information that might help in debugging.
 
1946
  {
 
1947
    echo
 
1948
 
 
1949
    $as_echo "## ---------------- ##
 
1950
## Cache variables. ##
 
1951
## ---------------- ##"
 
1952
    echo
 
1953
    # The following way of writing the cache mishandles newlines in values,
 
1954
(
 
1955
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1956
    eval ac_val=\$$ac_var
 
1957
    case $ac_val in #(
 
1958
    *${as_nl}*)
 
1959
      case $ac_var in #(
 
1960
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1961
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1962
      esac
 
1963
      case $ac_var in #(
 
1964
      _ | IFS | as_nl) ;; #(
 
1965
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1966
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1967
      esac ;;
 
1968
    esac
 
1969
  done
 
1970
  (set) 2>&1 |
 
1971
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1972
    *${as_nl}ac_space=\ *)
 
1973
      sed -n \
 
1974
        "s/'\''/'\''\\\\'\'''\''/g;
 
1975
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1976
      ;; #(
 
1977
    *)
 
1978
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1979
      ;;
 
1980
    esac |
 
1981
    sort
 
1982
)
 
1983
    echo
 
1984
 
 
1985
    $as_echo "## ----------------- ##
 
1986
## Output variables. ##
 
1987
## ----------------- ##"
 
1988
    echo
 
1989
    for ac_var in $ac_subst_vars
 
1990
    do
 
1991
      eval ac_val=\$$ac_var
 
1992
      case $ac_val in
 
1993
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1994
      esac
 
1995
      $as_echo "$ac_var='\''$ac_val'\''"
 
1996
    done | sort
 
1997
    echo
 
1998
 
 
1999
    if test -n "$ac_subst_files"; then
 
2000
      $as_echo "## ------------------- ##
 
2001
## File substitutions. ##
 
2002
## ------------------- ##"
 
2003
      echo
 
2004
      for ac_var in $ac_subst_files
 
2005
      do
 
2006
        eval ac_val=\$$ac_var
 
2007
        case $ac_val in
 
2008
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2009
        esac
 
2010
        $as_echo "$ac_var='\''$ac_val'\''"
 
2011
      done | sort
 
2012
      echo
 
2013
    fi
 
2014
 
 
2015
    if test -s confdefs.h; then
 
2016
      $as_echo "## ----------- ##
 
2017
## confdefs.h. ##
 
2018
## ----------- ##"
 
2019
      echo
 
2020
      cat confdefs.h
 
2021
      echo
 
2022
    fi
 
2023
    test "$ac_signal" != 0 &&
 
2024
      $as_echo "$as_me: caught signal $ac_signal"
 
2025
    $as_echo "$as_me: exit $exit_status"
 
2026
  } >&5
 
2027
  rm -f core *.core core.conftest.* &&
 
2028
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2029
    exit $exit_status
 
2030
' 0
 
2031
for ac_signal in 1 2 13 15; do
 
2032
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2033
done
 
2034
ac_signal=0
 
2035
 
 
2036
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2037
rm -f -r conftest* confdefs.h
 
2038
 
 
2039
$as_echo "/* confdefs.h */" > confdefs.h
 
2040
 
 
2041
# Predefined preprocessor variables.
 
2042
 
 
2043
cat >>confdefs.h <<_ACEOF
 
2044
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2045
_ACEOF
 
2046
 
 
2047
cat >>confdefs.h <<_ACEOF
 
2048
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2049
_ACEOF
 
2050
 
 
2051
cat >>confdefs.h <<_ACEOF
 
2052
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2053
_ACEOF
 
2054
 
 
2055
cat >>confdefs.h <<_ACEOF
 
2056
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2057
_ACEOF
 
2058
 
 
2059
cat >>confdefs.h <<_ACEOF
 
2060
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2061
_ACEOF
 
2062
 
 
2063
cat >>confdefs.h <<_ACEOF
 
2064
#define PACKAGE_URL "$PACKAGE_URL"
 
2065
_ACEOF
 
2066
 
 
2067
 
 
2068
# Let the site file select an alternate cache file if it wants to.
 
2069
# Prefer an explicitly selected file to automatically selected ones.
 
2070
ac_site_file1=NONE
 
2071
ac_site_file2=NONE
 
2072
if test -n "$CONFIG_SITE"; then
 
2073
  # We do not want a PATH search for config.site.
 
2074
  case $CONFIG_SITE in #((
 
2075
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2076
    */*) ac_site_file1=$CONFIG_SITE;;
 
2077
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2078
  esac
 
2079
elif test "x$prefix" != xNONE; then
 
2080
  ac_site_file1=$prefix/share/config.site
 
2081
  ac_site_file2=$prefix/etc/config.site
 
2082
else
 
2083
  ac_site_file1=$ac_default_prefix/share/config.site
 
2084
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2085
fi
 
2086
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2087
do
 
2088
  test "x$ac_site_file" = xNONE && continue
 
2089
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2090
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2091
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2092
    sed 's/^/| /' "$ac_site_file" >&5
 
2093
    . "$ac_site_file" \
 
2094
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2095
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2096
as_fn_error $? "failed to load site script $ac_site_file
 
2097
See \`config.log' for more details" "$LINENO" 5; }
 
2098
  fi
 
2099
done
 
2100
 
 
2101
if test -r "$cache_file"; then
 
2102
  # Some versions of bash will fail to source /dev/null (special files
 
2103
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2104
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2105
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2106
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2107
    case $cache_file in
 
2108
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2109
      *)                      . "./$cache_file";;
 
2110
    esac
 
2111
  fi
 
2112
else
 
2113
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2114
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2115
  >$cache_file
 
2116
fi
 
2117
 
 
2118
# Check that the precious variables saved in the cache have kept the same
 
2119
# value.
 
2120
ac_cache_corrupted=false
 
2121
for ac_var in $ac_precious_vars; do
 
2122
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2123
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2124
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2125
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2126
  case $ac_old_set,$ac_new_set in
 
2127
    set,)
 
2128
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2129
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2130
      ac_cache_corrupted=: ;;
 
2131
    ,set)
 
2132
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2133
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2134
      ac_cache_corrupted=: ;;
 
2135
    ,);;
 
2136
    *)
 
2137
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2138
        # differences in whitespace do not lead to failure.
 
2139
        ac_old_val_w=`echo x $ac_old_val`
 
2140
        ac_new_val_w=`echo x $ac_new_val`
 
2141
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2142
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2143
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2144
          ac_cache_corrupted=:
 
2145
        else
 
2146
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2147
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2148
          eval $ac_var=\$ac_old_val
 
2149
        fi
 
2150
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2151
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2152
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2153
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2154
      fi;;
 
2155
  esac
 
2156
  # Pass precious variables to config.status.
 
2157
  if test "$ac_new_set" = set; then
 
2158
    case $ac_new_val in
 
2159
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2160
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2161
    esac
 
2162
    case " $ac_configure_args " in
 
2163
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2164
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2165
    esac
 
2166
  fi
 
2167
done
 
2168
if $ac_cache_corrupted; then
 
2169
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2171
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2172
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2173
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2174
fi
 
2175
## -------------------- ##
 
2176
## Main body of script. ##
 
2177
## -------------------- ##
 
2178
 
 
2179
ac_ext=c
 
2180
ac_cpp='$CPP $CPPFLAGS'
 
2181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2184
 
 
2185
 
 
2186
 
 
2187
ac_aux_dir=
 
2188
for ac_dir in build-aux "$srcdir"/build-aux; do
 
2189
  if test -f "$ac_dir/install-sh"; then
 
2190
    ac_aux_dir=$ac_dir
 
2191
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2192
    break
 
2193
  elif test -f "$ac_dir/install.sh"; then
 
2194
    ac_aux_dir=$ac_dir
 
2195
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2196
    break
 
2197
  elif test -f "$ac_dir/shtool"; then
 
2198
    ac_aux_dir=$ac_dir
 
2199
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2200
    break
 
2201
  fi
 
2202
done
 
2203
if test -z "$ac_aux_dir"; then
 
2204
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
2205
fi
 
2206
 
 
2207
# These three variables are undocumented and unsupported,
 
2208
# and are intended to be withdrawn in a future Autoconf release.
 
2209
# They can cause serious problems if a builder's source tree is in a directory
 
2210
# whose full name contains unusual characters.
 
2211
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2212
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2213
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2214
 
 
2215
 
 
2216
 
 
2217
# http://www.gnu.org/s/libtool/manual/html_node/Updating-version-info.html
 
2218
LT_CURRENT=0
 
2219
 
 
2220
LT_REVISION=0
 
2221
 
 
2222
LT_AGE=0
 
2223
 
 
2224
 
 
2225
am__api_version='1.14'
 
2226
 
 
2227
# Find a good install program.  We prefer a C program (faster),
 
2228
# so one script is as good as another.  But avoid the broken or
 
2229
# incompatible versions:
 
2230
# SysV /etc/install, /usr/sbin/install
 
2231
# SunOS /usr/etc/install
 
2232
# IRIX /sbin/install
 
2233
# AIX /bin/install
 
2234
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2235
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2236
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2237
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2238
# OS/2's system install, which has a completely different semantic
 
2239
# ./install, which can be erroneously created by make from ./install.sh.
 
2240
# Reject install programs that cannot install multiple files.
 
2241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2242
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2243
if test -z "$INSTALL"; then
 
2244
if ${ac_cv_path_install+:} false; then :
 
2245
  $as_echo_n "(cached) " >&6
 
2246
else
 
2247
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2248
for as_dir in $PATH
 
2249
do
 
2250
  IFS=$as_save_IFS
 
2251
  test -z "$as_dir" && as_dir=.
 
2252
    # Account for people who put trailing slashes in PATH elements.
 
2253
case $as_dir/ in #((
 
2254
  ./ | .// | /[cC]/* | \
 
2255
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2256
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2257
  /usr/ucb/* ) ;;
 
2258
  *)
 
2259
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2260
    # Don't use installbsd from OSF since it installs stuff as root
 
2261
    # by default.
 
2262
    for ac_prog in ginstall scoinst install; do
 
2263
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2264
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2265
          if test $ac_prog = install &&
 
2266
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2267
            # AIX install.  It has an incompatible calling convention.
 
2268
            :
 
2269
          elif test $ac_prog = install &&
 
2270
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2271
            # program-specific install script used by HP pwplus--don't use.
 
2272
            :
 
2273
          else
 
2274
            rm -rf conftest.one conftest.two conftest.dir
 
2275
            echo one > conftest.one
 
2276
            echo two > conftest.two
 
2277
            mkdir conftest.dir
 
2278
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2279
              test -s conftest.one && test -s conftest.two &&
 
2280
              test -s conftest.dir/conftest.one &&
 
2281
              test -s conftest.dir/conftest.two
 
2282
            then
 
2283
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2284
              break 3
 
2285
            fi
 
2286
          fi
 
2287
        fi
 
2288
      done
 
2289
    done
 
2290
    ;;
 
2291
esac
 
2292
 
 
2293
  done
 
2294
IFS=$as_save_IFS
 
2295
 
 
2296
rm -rf conftest.one conftest.two conftest.dir
 
2297
 
 
2298
fi
 
2299
  if test "${ac_cv_path_install+set}" = set; then
 
2300
    INSTALL=$ac_cv_path_install
 
2301
  else
 
2302
    # As a last resort, use the slow shell script.  Don't cache a
 
2303
    # value for INSTALL within a source directory, because that will
 
2304
    # break other packages using the cache if that directory is
 
2305
    # removed, or if the value is a relative name.
 
2306
    INSTALL=$ac_install_sh
 
2307
  fi
 
2308
fi
 
2309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2310
$as_echo "$INSTALL" >&6; }
 
2311
 
 
2312
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2313
# It thinks the first close brace ends the variable substitution.
 
2314
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2315
 
 
2316
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2317
 
 
2318
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2319
 
 
2320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2321
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2322
# Reject unsafe characters in $srcdir or the absolute working directory
 
2323
# name.  Accept space and tab only in the latter.
 
2324
am_lf='
 
2325
'
 
2326
case `pwd` in
 
2327
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2328
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2329
esac
 
2330
case $srcdir in
 
2331
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2332
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
2333
esac
 
2334
 
 
2335
# Do 'set' in a subshell so we don't clobber the current shell's
 
2336
# arguments.  Must try -L first in case configure is actually a
 
2337
# symlink; some systems play weird games with the mod time of symlinks
 
2338
# (eg FreeBSD returns the mod time of the symlink's containing
 
2339
# directory).
 
2340
if (
 
2341
   am_has_slept=no
 
2342
   for am_try in 1 2; do
 
2343
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2344
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2345
     if test "$*" = "X"; then
 
2346
        # -L didn't work.
 
2347
        set X `ls -t "$srcdir/configure" conftest.file`
 
2348
     fi
 
2349
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2350
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2351
 
 
2352
        # If neither matched, then we have a broken ls.  This can happen
 
2353
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2354
        # broken ls alias from the environment.  This has actually
 
2355
        # happened.  Such a system could not be considered "sane".
 
2356
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2357
  alias in your environment" "$LINENO" 5
 
2358
     fi
 
2359
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2360
       break
 
2361
     fi
 
2362
     # Just in case.
 
2363
     sleep 1
 
2364
     am_has_slept=yes
 
2365
   done
 
2366
   test "$2" = conftest.file
 
2367
   )
 
2368
then
 
2369
   # Ok.
 
2370
   :
 
2371
else
 
2372
   as_fn_error $? "newly created file is older than distributed files!
 
2373
Check your system clock" "$LINENO" 5
 
2374
fi
 
2375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2376
$as_echo "yes" >&6; }
 
2377
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2378
# generated files are strictly newer.
 
2379
am_sleep_pid=
 
2380
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2381
  ( sleep 1 ) &
 
2382
  am_sleep_pid=$!
 
2383
fi
 
2384
 
 
2385
rm -f conftest.file
 
2386
 
 
2387
test "$program_prefix" != NONE &&
 
2388
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2389
# Use a double $ so make ignores it.
 
2390
test "$program_suffix" != NONE &&
 
2391
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2392
# Double any \ or $.
 
2393
# By default was `s,x,x', remove it if useless.
 
2394
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2395
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2396
 
 
2397
# expand $ac_aux_dir to an absolute path
 
2398
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2399
 
 
2400
if test x"${MISSING+set}" != xset; then
 
2401
  case $am_aux_dir in
 
2402
  *\ * | *\     *)
 
2403
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2404
  *)
 
2405
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2406
  esac
 
2407
fi
 
2408
# Use eval to expand $SHELL
 
2409
if eval "$MISSING --is-lightweight"; then
 
2410
  am_missing_run="$MISSING "
 
2411
else
 
2412
  am_missing_run=
 
2413
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2414
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
2415
fi
 
2416
 
 
2417
if test x"${install_sh}" != xset; then
 
2418
  case $am_aux_dir in
 
2419
  *\ * | *\     *)
 
2420
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2421
  *)
 
2422
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2423
  esac
 
2424
fi
 
2425
 
 
2426
# Installed binaries are usually stripped using 'strip' when the user
 
2427
# run "make install-strip".  However 'strip' might not be the right
 
2428
# tool to use in cross-compilation environments, therefore Automake
 
2429
# will honor the 'STRIP' environment variable to overrule this program.
 
2430
if test "$cross_compiling" != no; then
 
2431
  if test -n "$ac_tool_prefix"; then
 
2432
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2433
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2435
$as_echo_n "checking for $ac_word... " >&6; }
 
2436
if ${ac_cv_prog_STRIP+:} false; then :
 
2437
  $as_echo_n "(cached) " >&6
 
2438
else
 
2439
  if test -n "$STRIP"; then
 
2440
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2441
else
 
2442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2443
for as_dir in $PATH
 
2444
do
 
2445
  IFS=$as_save_IFS
 
2446
  test -z "$as_dir" && as_dir=.
 
2447
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2448
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2449
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2450
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2451
    break 2
 
2452
  fi
 
2453
done
 
2454
  done
 
2455
IFS=$as_save_IFS
 
2456
 
 
2457
fi
 
2458
fi
 
2459
STRIP=$ac_cv_prog_STRIP
 
2460
if test -n "$STRIP"; then
 
2461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2462
$as_echo "$STRIP" >&6; }
 
2463
else
 
2464
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2465
$as_echo "no" >&6; }
 
2466
fi
 
2467
 
 
2468
 
 
2469
fi
 
2470
if test -z "$ac_cv_prog_STRIP"; then
 
2471
  ac_ct_STRIP=$STRIP
 
2472
  # Extract the first word of "strip", so it can be a program name with args.
 
2473
set dummy strip; ac_word=$2
 
2474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2475
$as_echo_n "checking for $ac_word... " >&6; }
 
2476
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2477
  $as_echo_n "(cached) " >&6
 
2478
else
 
2479
  if test -n "$ac_ct_STRIP"; then
 
2480
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2481
else
 
2482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2483
for as_dir in $PATH
 
2484
do
 
2485
  IFS=$as_save_IFS
 
2486
  test -z "$as_dir" && as_dir=.
 
2487
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2488
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2489
    ac_cv_prog_ac_ct_STRIP="strip"
 
2490
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2491
    break 2
 
2492
  fi
 
2493
done
 
2494
  done
 
2495
IFS=$as_save_IFS
 
2496
 
 
2497
fi
 
2498
fi
 
2499
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2500
if test -n "$ac_ct_STRIP"; then
 
2501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2502
$as_echo "$ac_ct_STRIP" >&6; }
 
2503
else
 
2504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2505
$as_echo "no" >&6; }
 
2506
fi
 
2507
 
 
2508
  if test "x$ac_ct_STRIP" = x; then
 
2509
    STRIP=":"
 
2510
  else
 
2511
    case $cross_compiling:$ac_tool_warned in
 
2512
yes:)
 
2513
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2515
ac_tool_warned=yes ;;
 
2516
esac
 
2517
    STRIP=$ac_ct_STRIP
 
2518
  fi
 
2519
else
 
2520
  STRIP="$ac_cv_prog_STRIP"
 
2521
fi
 
2522
 
 
2523
fi
 
2524
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2525
 
 
2526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2527
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2528
if test -z "$MKDIR_P"; then
 
2529
  if ${ac_cv_path_mkdir+:} false; then :
 
2530
  $as_echo_n "(cached) " >&6
 
2531
else
 
2532
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2533
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2534
do
 
2535
  IFS=$as_save_IFS
 
2536
  test -z "$as_dir" && as_dir=.
 
2537
    for ac_prog in mkdir gmkdir; do
 
2538
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2539
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2540
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2541
             'mkdir (GNU coreutils) '* | \
 
2542
             'mkdir (coreutils) '* | \
 
2543
             'mkdir (fileutils) '4.1*)
 
2544
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2545
               break 3;;
 
2546
           esac
 
2547
         done
 
2548
       done
 
2549
  done
 
2550
IFS=$as_save_IFS
 
2551
 
 
2552
fi
 
2553
 
 
2554
  test -d ./--version && rmdir ./--version
 
2555
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2556
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2557
  else
 
2558
    # As a last resort, use the slow shell script.  Don't cache a
 
2559
    # value for MKDIR_P within a source directory, because that will
 
2560
    # break other packages using the cache if that directory is
 
2561
    # removed, or if the value is a relative name.
 
2562
    MKDIR_P="$ac_install_sh -d"
 
2563
  fi
 
2564
fi
 
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2566
$as_echo "$MKDIR_P" >&6; }
 
2567
 
 
2568
for ac_prog in gawk mawk nawk awk
 
2569
do
 
2570
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2571
set dummy $ac_prog; ac_word=$2
 
2572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2573
$as_echo_n "checking for $ac_word... " >&6; }
 
2574
if ${ac_cv_prog_AWK+:} false; then :
 
2575
  $as_echo_n "(cached) " >&6
 
2576
else
 
2577
  if test -n "$AWK"; then
 
2578
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2579
else
 
2580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2581
for as_dir in $PATH
 
2582
do
 
2583
  IFS=$as_save_IFS
 
2584
  test -z "$as_dir" && as_dir=.
 
2585
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2586
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2587
    ac_cv_prog_AWK="$ac_prog"
 
2588
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2589
    break 2
 
2590
  fi
 
2591
done
 
2592
  done
 
2593
IFS=$as_save_IFS
 
2594
 
 
2595
fi
 
2596
fi
 
2597
AWK=$ac_cv_prog_AWK
 
2598
if test -n "$AWK"; then
 
2599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2600
$as_echo "$AWK" >&6; }
 
2601
else
 
2602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2603
$as_echo "no" >&6; }
 
2604
fi
 
2605
 
 
2606
 
 
2607
  test -n "$AWK" && break
 
2608
done
 
2609
 
 
2610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2611
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2612
set x ${MAKE-make}
 
2613
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2614
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2615
  $as_echo_n "(cached) " >&6
 
2616
else
 
2617
  cat >conftest.make <<\_ACEOF
 
2618
SHELL = /bin/sh
 
2619
all:
 
2620
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2621
_ACEOF
 
2622
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2623
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2624
  *@@@%%%=?*=@@@%%%*)
 
2625
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2626
  *)
 
2627
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2628
esac
 
2629
rm -f conftest.make
 
2630
fi
 
2631
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2633
$as_echo "yes" >&6; }
 
2634
  SET_MAKE=
 
2635
else
 
2636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2637
$as_echo "no" >&6; }
 
2638
  SET_MAKE="MAKE=${MAKE-make}"
 
2639
fi
 
2640
 
 
2641
rm -rf .tst 2>/dev/null
 
2642
mkdir .tst 2>/dev/null
 
2643
if test -d .tst; then
 
2644
  am__leading_dot=.
 
2645
else
 
2646
  am__leading_dot=_
 
2647
fi
 
2648
rmdir .tst 2>/dev/null
 
2649
 
 
2650
# Check whether --enable-silent-rules was given.
 
2651
if test "${enable_silent_rules+set}" = set; then :
 
2652
  enableval=$enable_silent_rules;
 
2653
fi
 
2654
 
 
2655
case $enable_silent_rules in # (((
 
2656
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2657
   no) AM_DEFAULT_VERBOSITY=1;;
 
2658
    *) AM_DEFAULT_VERBOSITY=1;;
 
2659
esac
 
2660
am_make=${MAKE-make}
 
2661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2662
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2663
if ${am_cv_make_support_nested_variables+:} false; then :
 
2664
  $as_echo_n "(cached) " >&6
 
2665
else
 
2666
  if $as_echo 'TRUE=$(BAR$(V))
 
2667
BAR0=false
 
2668
BAR1=true
 
2669
V=1
 
2670
am__doit:
 
2671
        @$(TRUE)
 
2672
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2673
  am_cv_make_support_nested_variables=yes
 
2674
else
 
2675
  am_cv_make_support_nested_variables=no
 
2676
fi
 
2677
fi
 
2678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2679
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2680
if test $am_cv_make_support_nested_variables = yes; then
 
2681
    AM_V='$(V)'
 
2682
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2683
else
 
2684
  AM_V=$AM_DEFAULT_VERBOSITY
 
2685
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2686
fi
 
2687
AM_BACKSLASH='\'
 
2688
 
 
2689
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2690
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2691
  # is not polluted with repeated "-I."
 
2692
  am__isrc=' -I$(srcdir)'
 
2693
  # test to see if srcdir already configured
 
2694
  if test -f $srcdir/config.status; then
 
2695
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2696
  fi
 
2697
fi
 
2698
 
 
2699
# test whether we have cygpath
 
2700
if test -z "$CYGPATH_W"; then
 
2701
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2702
    CYGPATH_W='cygpath -w'
 
2703
  else
 
2704
    CYGPATH_W=echo
 
2705
  fi
 
2706
fi
 
2707
 
 
2708
 
 
2709
# Define the identity of the package.
 
2710
 PACKAGE='libu2f-server'
 
2711
 VERSION='0.0.0'
 
2712
 
 
2713
 
 
2714
cat >>confdefs.h <<_ACEOF
 
2715
#define PACKAGE "$PACKAGE"
 
2716
_ACEOF
 
2717
 
 
2718
 
 
2719
cat >>confdefs.h <<_ACEOF
 
2720
#define VERSION "$VERSION"
 
2721
_ACEOF
 
2722
 
 
2723
# Some tools Automake needs.
 
2724
 
 
2725
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2726
 
 
2727
 
 
2728
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2729
 
 
2730
 
 
2731
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2732
 
 
2733
 
 
2734
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2735
 
 
2736
 
 
2737
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2738
 
 
2739
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2740
# dies out for good.  For more background, see:
 
2741
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2742
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2743
mkdir_p='$(MKDIR_P)'
 
2744
 
 
2745
# We need awk for the "check" target.  The system "awk" is bad on
 
2746
# some platforms.
 
2747
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2748
# in the wild :-(  We should find a proper way to deprecate it ...
 
2749
AMTAR='$${TAR-tar}'
 
2750
 
 
2751
 
 
2752
# We'll loop over all known methods to create a tar archive until one works.
 
2753
_am_tools='gnutar  pax cpio none'
 
2754
 
 
2755
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2756
 
 
2757
 
 
2758
 
 
2759
 
 
2760
 
 
2761
 
 
2762
# POSIX will say in a future version that running "rm -f" with no argument
 
2763
# is OK; and we want to be able to make that assumption in our Makefile
 
2764
# recipes.  So use an aggressive probe to check that the usage we want is
 
2765
# actually supported "in the wild" to an acceptable degree.
 
2766
# See automake bug#10828.
 
2767
# To make any issue more visible, cause the running configure to be aborted
 
2768
# by default if the 'rm' program in use doesn't match our expectations; the
 
2769
# user can still override this though.
 
2770
if rm -f && rm -fr && rm -rf; then : OK; else
 
2771
  cat >&2 <<'END'
 
2772
Oops!
 
2773
 
 
2774
Your 'rm' program seems unable to run without file operands specified
 
2775
on the command line, even when the '-f' option is present.  This is contrary
 
2776
to the behaviour of most rm programs out there, and not conforming with
 
2777
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
2778
 
 
2779
Please tell bug-automake@gnu.org about your system, including the value
 
2780
of your $PATH and any error possibly output before this message.  This
 
2781
can help us improve future automake versions.
 
2782
 
 
2783
END
 
2784
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
2785
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
2786
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
2787
    echo >&2
 
2788
  else
 
2789
    cat >&2 <<'END'
 
2790
Aborting the configuration process, to ensure you take notice of the issue.
 
2791
 
 
2792
You can download and install GNU coreutils to get an 'rm' implementation
 
2793
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
2794
 
 
2795
If you want to complete the configuration process using your problematic
 
2796
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
2797
to "yes", and re-run configure.
 
2798
 
 
2799
END
 
2800
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
2801
  fi
 
2802
fi
 
2803
# Check whether --enable-silent-rules was given.
 
2804
if test "${enable_silent_rules+set}" = set; then :
 
2805
  enableval=$enable_silent_rules;
 
2806
fi
 
2807
 
 
2808
case $enable_silent_rules in # (((
 
2809
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2810
   no) AM_DEFAULT_VERBOSITY=1;;
 
2811
    *) AM_DEFAULT_VERBOSITY=0;;
 
2812
esac
 
2813
am_make=${MAKE-make}
 
2814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2815
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2816
if ${am_cv_make_support_nested_variables+:} false; then :
 
2817
  $as_echo_n "(cached) " >&6
 
2818
else
 
2819
  if $as_echo 'TRUE=$(BAR$(V))
 
2820
BAR0=false
 
2821
BAR1=true
 
2822
V=1
 
2823
am__doit:
 
2824
        @$(TRUE)
 
2825
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2826
  am_cv_make_support_nested_variables=yes
 
2827
else
 
2828
  am_cv_make_support_nested_variables=no
 
2829
fi
 
2830
fi
 
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2832
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2833
if test $am_cv_make_support_nested_variables = yes; then
 
2834
    AM_V='$(V)'
 
2835
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2836
else
 
2837
  AM_V=$AM_DEFAULT_VERBOSITY
 
2838
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2839
fi
 
2840
AM_BACKSLASH='\'
 
2841
 
 
2842
ac_ext=c
 
2843
ac_cpp='$CPP $CPPFLAGS'
 
2844
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2845
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2846
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2847
if test -n "$ac_tool_prefix"; then
 
2848
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2849
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2851
$as_echo_n "checking for $ac_word... " >&6; }
 
2852
if ${ac_cv_prog_CC+:} false; then :
 
2853
  $as_echo_n "(cached) " >&6
 
2854
else
 
2855
  if test -n "$CC"; then
 
2856
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2857
else
 
2858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2859
for as_dir in $PATH
 
2860
do
 
2861
  IFS=$as_save_IFS
 
2862
  test -z "$as_dir" && as_dir=.
 
2863
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2864
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2865
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2866
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2867
    break 2
 
2868
  fi
 
2869
done
 
2870
  done
 
2871
IFS=$as_save_IFS
 
2872
 
 
2873
fi
 
2874
fi
 
2875
CC=$ac_cv_prog_CC
 
2876
if test -n "$CC"; then
 
2877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2878
$as_echo "$CC" >&6; }
 
2879
else
 
2880
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2881
$as_echo "no" >&6; }
 
2882
fi
 
2883
 
 
2884
 
 
2885
fi
 
2886
if test -z "$ac_cv_prog_CC"; then
 
2887
  ac_ct_CC=$CC
 
2888
  # Extract the first word of "gcc", so it can be a program name with args.
 
2889
set dummy gcc; ac_word=$2
 
2890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2891
$as_echo_n "checking for $ac_word... " >&6; }
 
2892
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2893
  $as_echo_n "(cached) " >&6
 
2894
else
 
2895
  if test -n "$ac_ct_CC"; then
 
2896
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2897
else
 
2898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2899
for as_dir in $PATH
 
2900
do
 
2901
  IFS=$as_save_IFS
 
2902
  test -z "$as_dir" && as_dir=.
 
2903
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2904
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2905
    ac_cv_prog_ac_ct_CC="gcc"
 
2906
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2907
    break 2
 
2908
  fi
 
2909
done
 
2910
  done
 
2911
IFS=$as_save_IFS
 
2912
 
 
2913
fi
 
2914
fi
 
2915
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2916
if test -n "$ac_ct_CC"; then
 
2917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2918
$as_echo "$ac_ct_CC" >&6; }
 
2919
else
 
2920
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2921
$as_echo "no" >&6; }
 
2922
fi
 
2923
 
 
2924
  if test "x$ac_ct_CC" = x; then
 
2925
    CC=""
 
2926
  else
 
2927
    case $cross_compiling:$ac_tool_warned in
 
2928
yes:)
 
2929
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2930
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2931
ac_tool_warned=yes ;;
 
2932
esac
 
2933
    CC=$ac_ct_CC
 
2934
  fi
 
2935
else
 
2936
  CC="$ac_cv_prog_CC"
 
2937
fi
 
2938
 
 
2939
if test -z "$CC"; then
 
2940
          if test -n "$ac_tool_prefix"; then
 
2941
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2942
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2944
$as_echo_n "checking for $ac_word... " >&6; }
 
2945
if ${ac_cv_prog_CC+:} false; then :
 
2946
  $as_echo_n "(cached) " >&6
 
2947
else
 
2948
  if test -n "$CC"; then
 
2949
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2950
else
 
2951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2952
for as_dir in $PATH
 
2953
do
 
2954
  IFS=$as_save_IFS
 
2955
  test -z "$as_dir" && as_dir=.
 
2956
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2957
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2958
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2959
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2960
    break 2
 
2961
  fi
 
2962
done
 
2963
  done
 
2964
IFS=$as_save_IFS
 
2965
 
 
2966
fi
 
2967
fi
 
2968
CC=$ac_cv_prog_CC
 
2969
if test -n "$CC"; then
 
2970
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2971
$as_echo "$CC" >&6; }
 
2972
else
 
2973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2974
$as_echo "no" >&6; }
 
2975
fi
 
2976
 
 
2977
 
 
2978
  fi
 
2979
fi
 
2980
if test -z "$CC"; then
 
2981
  # Extract the first word of "cc", so it can be a program name with args.
 
2982
set dummy cc; ac_word=$2
 
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2984
$as_echo_n "checking for $ac_word... " >&6; }
 
2985
if ${ac_cv_prog_CC+:} false; then :
 
2986
  $as_echo_n "(cached) " >&6
 
2987
else
 
2988
  if test -n "$CC"; then
 
2989
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2990
else
 
2991
  ac_prog_rejected=no
 
2992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2993
for as_dir in $PATH
 
2994
do
 
2995
  IFS=$as_save_IFS
 
2996
  test -z "$as_dir" && as_dir=.
 
2997
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2998
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2999
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3000
       ac_prog_rejected=yes
 
3001
       continue
 
3002
     fi
 
3003
    ac_cv_prog_CC="cc"
 
3004
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3005
    break 2
 
3006
  fi
 
3007
done
 
3008
  done
 
3009
IFS=$as_save_IFS
 
3010
 
 
3011
if test $ac_prog_rejected = yes; then
 
3012
  # We found a bogon in the path, so make sure we never use it.
 
3013
  set dummy $ac_cv_prog_CC
 
3014
  shift
 
3015
  if test $# != 0; then
 
3016
    # We chose a different compiler from the bogus one.
 
3017
    # However, it has the same basename, so the bogon will be chosen
 
3018
    # first if we set CC to just the basename; use the full file name.
 
3019
    shift
 
3020
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3021
  fi
 
3022
fi
 
3023
fi
 
3024
fi
 
3025
CC=$ac_cv_prog_CC
 
3026
if test -n "$CC"; then
 
3027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3028
$as_echo "$CC" >&6; }
 
3029
else
 
3030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3031
$as_echo "no" >&6; }
 
3032
fi
 
3033
 
 
3034
 
 
3035
fi
 
3036
if test -z "$CC"; then
 
3037
  if test -n "$ac_tool_prefix"; then
 
3038
  for ac_prog in cl.exe
 
3039
  do
 
3040
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3041
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3043
$as_echo_n "checking for $ac_word... " >&6; }
 
3044
if ${ac_cv_prog_CC+:} false; then :
 
3045
  $as_echo_n "(cached) " >&6
 
3046
else
 
3047
  if test -n "$CC"; then
 
3048
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3049
else
 
3050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3051
for as_dir in $PATH
 
3052
do
 
3053
  IFS=$as_save_IFS
 
3054
  test -z "$as_dir" && as_dir=.
 
3055
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3056
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3057
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3058
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3059
    break 2
 
3060
  fi
 
3061
done
 
3062
  done
 
3063
IFS=$as_save_IFS
 
3064
 
 
3065
fi
 
3066
fi
 
3067
CC=$ac_cv_prog_CC
 
3068
if test -n "$CC"; then
 
3069
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3070
$as_echo "$CC" >&6; }
 
3071
else
 
3072
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3073
$as_echo "no" >&6; }
 
3074
fi
 
3075
 
 
3076
 
 
3077
    test -n "$CC" && break
 
3078
  done
 
3079
fi
 
3080
if test -z "$CC"; then
 
3081
  ac_ct_CC=$CC
 
3082
  for ac_prog in cl.exe
 
3083
do
 
3084
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3085
set dummy $ac_prog; ac_word=$2
 
3086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3087
$as_echo_n "checking for $ac_word... " >&6; }
 
3088
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3089
  $as_echo_n "(cached) " >&6
 
3090
else
 
3091
  if test -n "$ac_ct_CC"; then
 
3092
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3093
else
 
3094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3095
for as_dir in $PATH
 
3096
do
 
3097
  IFS=$as_save_IFS
 
3098
  test -z "$as_dir" && as_dir=.
 
3099
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3100
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3101
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3102
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3103
    break 2
 
3104
  fi
 
3105
done
 
3106
  done
 
3107
IFS=$as_save_IFS
 
3108
 
 
3109
fi
 
3110
fi
 
3111
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3112
if test -n "$ac_ct_CC"; then
 
3113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3114
$as_echo "$ac_ct_CC" >&6; }
 
3115
else
 
3116
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3117
$as_echo "no" >&6; }
 
3118
fi
 
3119
 
 
3120
 
 
3121
  test -n "$ac_ct_CC" && break
 
3122
done
 
3123
 
 
3124
  if test "x$ac_ct_CC" = x; then
 
3125
    CC=""
 
3126
  else
 
3127
    case $cross_compiling:$ac_tool_warned in
 
3128
yes:)
 
3129
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3130
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3131
ac_tool_warned=yes ;;
 
3132
esac
 
3133
    CC=$ac_ct_CC
 
3134
  fi
 
3135
fi
 
3136
 
 
3137
fi
 
3138
 
 
3139
 
 
3140
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3141
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3142
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3143
See \`config.log' for more details" "$LINENO" 5; }
 
3144
 
 
3145
# Provide some information about the compiler.
 
3146
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3147
set X $ac_compile
 
3148
ac_compiler=$2
 
3149
for ac_option in --version -v -V -qversion; do
 
3150
  { { ac_try="$ac_compiler $ac_option >&5"
 
3151
case "(($ac_try" in
 
3152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3153
  *) ac_try_echo=$ac_try;;
 
3154
esac
 
3155
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3156
$as_echo "$ac_try_echo"; } >&5
 
3157
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3158
  ac_status=$?
 
3159
  if test -s conftest.err; then
 
3160
    sed '10a\
 
3161
... rest of stderr output deleted ...
 
3162
         10q' conftest.err >conftest.er1
 
3163
    cat conftest.er1 >&5
 
3164
  fi
 
3165
  rm -f conftest.er1 conftest.err
 
3166
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3167
  test $ac_status = 0; }
 
3168
done
 
3169
 
 
3170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3171
/* end confdefs.h.  */
 
3172
 
 
3173
int
 
3174
main ()
 
3175
{
 
3176
 
 
3177
  ;
 
3178
  return 0;
 
3179
}
 
3180
_ACEOF
 
3181
ac_clean_files_save=$ac_clean_files
 
3182
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3183
# Try to create an executable without -o first, disregard a.out.
 
3184
# It will help us diagnose broken compilers, and finding out an intuition
 
3185
# of exeext.
 
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3187
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3188
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3189
 
 
3190
# The possible output files:
 
3191
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3192
 
 
3193
ac_rmfiles=
 
3194
for ac_file in $ac_files
 
3195
do
 
3196
  case $ac_file in
 
3197
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3198
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3199
  esac
 
3200
done
 
3201
rm -f $ac_rmfiles
 
3202
 
 
3203
if { { ac_try="$ac_link_default"
 
3204
case "(($ac_try" in
 
3205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3206
  *) ac_try_echo=$ac_try;;
 
3207
esac
 
3208
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3209
$as_echo "$ac_try_echo"; } >&5
 
3210
  (eval "$ac_link_default") 2>&5
 
3211
  ac_status=$?
 
3212
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3213
  test $ac_status = 0; }; then :
 
3214
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3215
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3216
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3217
# so that the user can short-circuit this test for compilers unknown to
 
3218
# Autoconf.
 
3219
for ac_file in $ac_files ''
 
3220
do
 
3221
  test -f "$ac_file" || continue
 
3222
  case $ac_file in
 
3223
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3224
        ;;
 
3225
    [ab].out )
 
3226
        # We found the default executable, but exeext='' is most
 
3227
        # certainly right.
 
3228
        break;;
 
3229
    *.* )
 
3230
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3231
        then :; else
 
3232
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3233
        fi
 
3234
        # We set ac_cv_exeext here because the later test for it is not
 
3235
        # safe: cross compilers may not add the suffix if given an `-o'
 
3236
        # argument, so we may need to know it at that point already.
 
3237
        # Even if this section looks crufty: it has the advantage of
 
3238
        # actually working.
 
3239
        break;;
 
3240
    * )
 
3241
        break;;
 
3242
  esac
 
3243
done
 
3244
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3245
 
 
3246
else
 
3247
  ac_file=''
 
3248
fi
 
3249
if test -z "$ac_file"; then :
 
3250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3251
$as_echo "no" >&6; }
 
3252
$as_echo "$as_me: failed program was:" >&5
 
3253
sed 's/^/| /' conftest.$ac_ext >&5
 
3254
 
 
3255
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3256
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3257
as_fn_error 77 "C compiler cannot create executables
 
3258
See \`config.log' for more details" "$LINENO" 5; }
 
3259
else
 
3260
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3261
$as_echo "yes" >&6; }
 
3262
fi
 
3263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3264
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3266
$as_echo "$ac_file" >&6; }
 
3267
ac_exeext=$ac_cv_exeext
 
3268
 
 
3269
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3270
ac_clean_files=$ac_clean_files_save
 
3271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3272
$as_echo_n "checking for suffix of executables... " >&6; }
 
3273
if { { ac_try="$ac_link"
 
3274
case "(($ac_try" in
 
3275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3276
  *) ac_try_echo=$ac_try;;
 
3277
esac
 
3278
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3279
$as_echo "$ac_try_echo"; } >&5
 
3280
  (eval "$ac_link") 2>&5
 
3281
  ac_status=$?
 
3282
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3283
  test $ac_status = 0; }; then :
 
3284
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3285
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3286
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3287
# `rm'.
 
3288
for ac_file in conftest.exe conftest conftest.*; do
 
3289
  test -f "$ac_file" || continue
 
3290
  case $ac_file in
 
3291
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3292
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3293
          break;;
 
3294
    * ) break;;
 
3295
  esac
 
3296
done
 
3297
else
 
3298
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3299
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3300
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3301
See \`config.log' for more details" "$LINENO" 5; }
 
3302
fi
 
3303
rm -f conftest conftest$ac_cv_exeext
 
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3305
$as_echo "$ac_cv_exeext" >&6; }
 
3306
 
 
3307
rm -f conftest.$ac_ext
 
3308
EXEEXT=$ac_cv_exeext
 
3309
ac_exeext=$EXEEXT
 
3310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3311
/* end confdefs.h.  */
 
3312
#include <stdio.h>
 
3313
int
 
3314
main ()
 
3315
{
 
3316
FILE *f = fopen ("conftest.out", "w");
 
3317
 return ferror (f) || fclose (f) != 0;
 
3318
 
 
3319
  ;
 
3320
  return 0;
 
3321
}
 
3322
_ACEOF
 
3323
ac_clean_files="$ac_clean_files conftest.out"
 
3324
# Check that the compiler produces executables we can run.  If not, either
 
3325
# the compiler is broken, or we cross compile.
 
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3327
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3328
if test "$cross_compiling" != yes; then
 
3329
  { { ac_try="$ac_link"
 
3330
case "(($ac_try" in
 
3331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3332
  *) ac_try_echo=$ac_try;;
 
3333
esac
 
3334
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3335
$as_echo "$ac_try_echo"; } >&5
 
3336
  (eval "$ac_link") 2>&5
 
3337
  ac_status=$?
 
3338
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3339
  test $ac_status = 0; }
 
3340
  if { ac_try='./conftest$ac_cv_exeext'
 
3341
  { { case "(($ac_try" in
 
3342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3343
  *) ac_try_echo=$ac_try;;
 
3344
esac
 
3345
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3346
$as_echo "$ac_try_echo"; } >&5
 
3347
  (eval "$ac_try") 2>&5
 
3348
  ac_status=$?
 
3349
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3350
  test $ac_status = 0; }; }; then
 
3351
    cross_compiling=no
 
3352
  else
 
3353
    if test "$cross_compiling" = maybe; then
 
3354
        cross_compiling=yes
 
3355
    else
 
3356
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3357
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3358
as_fn_error $? "cannot run C compiled programs.
 
3359
If you meant to cross compile, use \`--host'.
 
3360
See \`config.log' for more details" "$LINENO" 5; }
 
3361
    fi
 
3362
  fi
 
3363
fi
 
3364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3365
$as_echo "$cross_compiling" >&6; }
 
3366
 
 
3367
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3368
ac_clean_files=$ac_clean_files_save
 
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3370
$as_echo_n "checking for suffix of object files... " >&6; }
 
3371
if ${ac_cv_objext+:} false; then :
 
3372
  $as_echo_n "(cached) " >&6
 
3373
else
 
3374
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3375
/* end confdefs.h.  */
 
3376
 
 
3377
int
 
3378
main ()
 
3379
{
 
3380
 
 
3381
  ;
 
3382
  return 0;
 
3383
}
 
3384
_ACEOF
 
3385
rm -f conftest.o conftest.obj
 
3386
if { { ac_try="$ac_compile"
 
3387
case "(($ac_try" in
 
3388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3389
  *) ac_try_echo=$ac_try;;
 
3390
esac
 
3391
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3392
$as_echo "$ac_try_echo"; } >&5
 
3393
  (eval "$ac_compile") 2>&5
 
3394
  ac_status=$?
 
3395
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3396
  test $ac_status = 0; }; then :
 
3397
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3398
  test -f "$ac_file" || continue;
 
3399
  case $ac_file in
 
3400
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3401
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3402
       break;;
 
3403
  esac
 
3404
done
 
3405
else
 
3406
  $as_echo "$as_me: failed program was:" >&5
 
3407
sed 's/^/| /' conftest.$ac_ext >&5
 
3408
 
 
3409
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3410
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3411
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3412
See \`config.log' for more details" "$LINENO" 5; }
 
3413
fi
 
3414
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3415
fi
 
3416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3417
$as_echo "$ac_cv_objext" >&6; }
 
3418
OBJEXT=$ac_cv_objext
 
3419
ac_objext=$OBJEXT
 
3420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3421
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3422
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3423
  $as_echo_n "(cached) " >&6
 
3424
else
 
3425
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3426
/* end confdefs.h.  */
 
3427
 
 
3428
int
 
3429
main ()
 
3430
{
 
3431
#ifndef __GNUC__
 
3432
       choke me
 
3433
#endif
 
3434
 
 
3435
  ;
 
3436
  return 0;
 
3437
}
 
3438
_ACEOF
 
3439
if ac_fn_c_try_compile "$LINENO"; then :
 
3440
  ac_compiler_gnu=yes
 
3441
else
 
3442
  ac_compiler_gnu=no
 
3443
fi
 
3444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3445
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3446
 
 
3447
fi
 
3448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3449
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3450
if test $ac_compiler_gnu = yes; then
 
3451
  GCC=yes
 
3452
else
 
3453
  GCC=
 
3454
fi
 
3455
ac_test_CFLAGS=${CFLAGS+set}
 
3456
ac_save_CFLAGS=$CFLAGS
 
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3458
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3459
if ${ac_cv_prog_cc_g+:} false; then :
 
3460
  $as_echo_n "(cached) " >&6
 
3461
else
 
3462
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3463
   ac_c_werror_flag=yes
 
3464
   ac_cv_prog_cc_g=no
 
3465
   CFLAGS="-g"
 
3466
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3467
/* end confdefs.h.  */
 
3468
 
 
3469
int
 
3470
main ()
 
3471
{
 
3472
 
 
3473
  ;
 
3474
  return 0;
 
3475
}
 
3476
_ACEOF
 
3477
if ac_fn_c_try_compile "$LINENO"; then :
 
3478
  ac_cv_prog_cc_g=yes
 
3479
else
 
3480
  CFLAGS=""
 
3481
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3482
/* end confdefs.h.  */
 
3483
 
 
3484
int
 
3485
main ()
 
3486
{
 
3487
 
 
3488
  ;
 
3489
  return 0;
 
3490
}
 
3491
_ACEOF
 
3492
if ac_fn_c_try_compile "$LINENO"; then :
 
3493
 
 
3494
else
 
3495
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3496
         CFLAGS="-g"
 
3497
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3498
/* end confdefs.h.  */
 
3499
 
 
3500
int
 
3501
main ()
 
3502
{
 
3503
 
 
3504
  ;
 
3505
  return 0;
 
3506
}
 
3507
_ACEOF
 
3508
if ac_fn_c_try_compile "$LINENO"; then :
 
3509
  ac_cv_prog_cc_g=yes
 
3510
fi
 
3511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3512
fi
 
3513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3514
fi
 
3515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3516
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3517
fi
 
3518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3519
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3520
if test "$ac_test_CFLAGS" = set; then
 
3521
  CFLAGS=$ac_save_CFLAGS
 
3522
elif test $ac_cv_prog_cc_g = yes; then
 
3523
  if test "$GCC" = yes; then
 
3524
    CFLAGS="-g -O2"
 
3525
  else
 
3526
    CFLAGS="-g"
 
3527
  fi
 
3528
else
 
3529
  if test "$GCC" = yes; then
 
3530
    CFLAGS="-O2"
 
3531
  else
 
3532
    CFLAGS=
 
3533
  fi
 
3534
fi
 
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3536
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3537
if ${ac_cv_prog_cc_c89+:} false; then :
 
3538
  $as_echo_n "(cached) " >&6
 
3539
else
 
3540
  ac_cv_prog_cc_c89=no
 
3541
ac_save_CC=$CC
 
3542
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3543
/* end confdefs.h.  */
 
3544
#include <stdarg.h>
 
3545
#include <stdio.h>
 
3546
struct stat;
 
3547
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3548
struct buf { int x; };
 
3549
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3550
static char *e (p, i)
 
3551
     char **p;
 
3552
     int i;
 
3553
{
 
3554
  return p[i];
 
3555
}
 
3556
static char *f (char * (*g) (char **, int), char **p, ...)
 
3557
{
 
3558
  char *s;
 
3559
  va_list v;
 
3560
  va_start (v,p);
 
3561
  s = g (p, va_arg (v,int));
 
3562
  va_end (v);
 
3563
  return s;
 
3564
}
 
3565
 
 
3566
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3567
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3568
   These don't provoke an error unfortunately, instead are silently treated
 
3569
   as 'x'.  The following induces an error, until -std is added to get
 
3570
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3571
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3572
   that's true only with -std.  */
 
3573
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3574
 
 
3575
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3576
   inside strings and character constants.  */
 
3577
#define FOO(x) 'x'
 
3578
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3579
 
 
3580
int test (int i, double x);
 
3581
struct s1 {int (*f) (int a);};
 
3582
struct s2 {int (*f) (double a);};
 
3583
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3584
int argc;
 
3585
char **argv;
 
3586
int
 
3587
main ()
 
3588
{
 
3589
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3590
  ;
 
3591
  return 0;
 
3592
}
 
3593
_ACEOF
 
3594
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3595
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3596
do
 
3597
  CC="$ac_save_CC $ac_arg"
 
3598
  if ac_fn_c_try_compile "$LINENO"; then :
 
3599
  ac_cv_prog_cc_c89=$ac_arg
 
3600
fi
 
3601
rm -f core conftest.err conftest.$ac_objext
 
3602
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3603
done
 
3604
rm -f conftest.$ac_ext
 
3605
CC=$ac_save_CC
 
3606
 
 
3607
fi
 
3608
# AC_CACHE_VAL
 
3609
case "x$ac_cv_prog_cc_c89" in
 
3610
  x)
 
3611
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3612
$as_echo "none needed" >&6; } ;;
 
3613
  xno)
 
3614
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3615
$as_echo "unsupported" >&6; } ;;
 
3616
  *)
 
3617
    CC="$CC $ac_cv_prog_cc_c89"
 
3618
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3619
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3620
esac
 
3621
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3622
 
 
3623
fi
 
3624
 
 
3625
ac_ext=c
 
3626
ac_cpp='$CPP $CPPFLAGS'
 
3627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3630
 
 
3631
ac_ext=c
 
3632
ac_cpp='$CPP $CPPFLAGS'
 
3633
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3634
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3635
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
3637
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
3638
if ${am_cv_prog_cc_c_o+:} false; then :
 
3639
  $as_echo_n "(cached) " >&6
 
3640
else
 
3641
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3642
/* end confdefs.h.  */
 
3643
 
 
3644
int
 
3645
main ()
 
3646
{
 
3647
 
 
3648
  ;
 
3649
  return 0;
 
3650
}
 
3651
_ACEOF
 
3652
  # Make sure it works both with $CC and with simple cc.
 
3653
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
3654
  # compilers refuse to overwrite an existing .o file with -o,
 
3655
  # though they will create one.
 
3656
  am_cv_prog_cc_c_o=yes
 
3657
  for am_i in 1 2; do
 
3658
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
3659
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
3660
   ac_status=$?
 
3661
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3662
   (exit $ac_status); } \
 
3663
         && test -f conftest2.$ac_objext; then
 
3664
      : OK
 
3665
    else
 
3666
      am_cv_prog_cc_c_o=no
 
3667
      break
 
3668
    fi
 
3669
  done
 
3670
  rm -f core conftest*
 
3671
  unset am_i
 
3672
fi
 
3673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
3674
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
3675
if test "$am_cv_prog_cc_c_o" != yes; then
 
3676
   # Losing compiler, so override with the script.
 
3677
   # FIXME: It is wrong to rewrite CC.
 
3678
   # But if we don't then we get into trouble of one sort or another.
 
3679
   # A longer-term fix would be to have automake use am__CC in this case,
 
3680
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3681
   CC="$am_aux_dir/compile $CC"
 
3682
fi
 
3683
ac_ext=c
 
3684
ac_cpp='$CPP $CPPFLAGS'
 
3685
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3686
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3687
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3688
 
 
3689
DEPDIR="${am__leading_dot}deps"
 
3690
 
 
3691
ac_config_commands="$ac_config_commands depfiles"
 
3692
 
 
3693
 
 
3694
am_make=${MAKE-make}
 
3695
cat > confinc << 'END'
 
3696
am__doit:
 
3697
        @echo this is the am__doit target
 
3698
.PHONY: am__doit
 
3699
END
 
3700
# If we don't find an include directive, just comment out the code.
 
3701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3702
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3703
am__include="#"
 
3704
am__quote=
 
3705
_am_result=none
 
3706
# First try GNU make style include.
 
3707
echo "include confinc" > confmf
 
3708
# Ignore all kinds of additional output from 'make'.
 
3709
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3710
*the\ am__doit\ target*)
 
3711
  am__include=include
 
3712
  am__quote=
 
3713
  _am_result=GNU
 
3714
  ;;
 
3715
esac
 
3716
# Now try BSD make style include.
 
3717
if test "$am__include" = "#"; then
 
3718
   echo '.include "confinc"' > confmf
 
3719
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3720
   *the\ am__doit\ target*)
 
3721
     am__include=.include
 
3722
     am__quote="\""
 
3723
     _am_result=BSD
 
3724
     ;;
 
3725
   esac
 
3726
fi
 
3727
 
 
3728
 
 
3729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3730
$as_echo "$_am_result" >&6; }
 
3731
rm -f confinc confmf
 
3732
 
 
3733
# Check whether --enable-dependency-tracking was given.
 
3734
if test "${enable_dependency_tracking+set}" = set; then :
 
3735
  enableval=$enable_dependency_tracking;
 
3736
fi
 
3737
 
 
3738
if test "x$enable_dependency_tracking" != xno; then
 
3739
  am_depcomp="$ac_aux_dir/depcomp"
 
3740
  AMDEPBACKSLASH='\'
 
3741
  am__nodep='_no'
 
3742
fi
 
3743
 if test "x$enable_dependency_tracking" != xno; then
 
3744
  AMDEP_TRUE=
 
3745
  AMDEP_FALSE='#'
 
3746
else
 
3747
  AMDEP_TRUE='#'
 
3748
  AMDEP_FALSE=
 
3749
fi
 
3750
 
 
3751
 
 
3752
 
 
3753
depcc="$CC"   am_compiler_list=
 
3754
 
 
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3756
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3757
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3758
  $as_echo_n "(cached) " >&6
 
3759
else
 
3760
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3761
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3762
  # making bogus files that we don't know about and never remove.  For
 
3763
  # instance it was reported that on HP-UX the gcc test will end up
 
3764
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3765
  # in D".
 
3766
  rm -rf conftest.dir
 
3767
  mkdir conftest.dir
 
3768
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3769
  # using a relative directory.
 
3770
  cp "$am_depcomp" conftest.dir
 
3771
  cd conftest.dir
 
3772
  # We will build objects and dependencies in a subdirectory because
 
3773
  # it helps to detect inapplicable dependency modes.  For instance
 
3774
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3775
  # side effect of compilation, but ICC will put the dependencies in
 
3776
  # the current directory while Tru64 will put them in the object
 
3777
  # directory.
 
3778
  mkdir sub
 
3779
 
 
3780
  am_cv_CC_dependencies_compiler_type=none
 
3781
  if test "$am_compiler_list" = ""; then
 
3782
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3783
  fi
 
3784
  am__universal=false
 
3785
  case " $depcc " in #(
 
3786
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3787
     esac
 
3788
 
 
3789
  for depmode in $am_compiler_list; do
 
3790
    # Setup a source with many dependencies, because some compilers
 
3791
    # like to wrap large dependency lists on column 80 (with \), and
 
3792
    # we should not choose a depcomp mode which is confused by this.
 
3793
    #
 
3794
    # We need to recreate these files for each test, as the compiler may
 
3795
    # overwrite some of them when testing with obscure command lines.
 
3796
    # This happens at least with the AIX C compiler.
 
3797
    : > sub/conftest.c
 
3798
    for i in 1 2 3 4 5 6; do
 
3799
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3800
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3801
      # Solaris 10 /bin/sh.
 
3802
      echo '/* dummy */' > sub/conftst$i.h
 
3803
    done
 
3804
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3805
 
 
3806
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
3807
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3808
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3809
    # versions had trouble with output in subdirs.
 
3810
    am__obj=sub/conftest.${OBJEXT-o}
 
3811
    am__minus_obj="-o $am__obj"
 
3812
    case $depmode in
 
3813
    gcc)
 
3814
      # This depmode causes a compiler race in universal mode.
 
3815
      test "$am__universal" = false || continue
 
3816
      ;;
 
3817
    nosideeffect)
 
3818
      # After this tag, mechanisms are not by side-effect, so they'll
 
3819
      # only be used when explicitly requested.
 
3820
      if test "x$enable_dependency_tracking" = xyes; then
 
3821
        continue
 
3822
      else
 
3823
        break
 
3824
      fi
 
3825
      ;;
 
3826
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3827
      # This compiler won't grok '-c -o', but also, the minuso test has
 
3828
      # not run yet.  These depmodes are late enough in the game, and
 
3829
      # so weak that their functioning should not be impacted.
 
3830
      am__obj=conftest.${OBJEXT-o}
 
3831
      am__minus_obj=
 
3832
      ;;
 
3833
    none) break ;;
 
3834
    esac
 
3835
    if depmode=$depmode \
 
3836
       source=sub/conftest.c object=$am__obj \
 
3837
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3838
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3839
         >/dev/null 2>conftest.err &&
 
3840
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3841
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3842
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3843
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3844
      # icc doesn't choke on unknown options, it will just issue warnings
 
3845
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3846
      # that says an option was ignored or not supported.
 
3847
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3848
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3849
      # The diagnosis changed in icc 8.0:
 
3850
      #   icc: Command line remark: option '-MP' not supported
 
3851
      if (grep 'ignoring option' conftest.err ||
 
3852
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3853
        am_cv_CC_dependencies_compiler_type=$depmode
 
3854
        break
 
3855
      fi
 
3856
    fi
 
3857
  done
 
3858
 
 
3859
  cd ..
 
3860
  rm -rf conftest.dir
 
3861
else
 
3862
  am_cv_CC_dependencies_compiler_type=none
 
3863
fi
 
3864
 
 
3865
fi
 
3866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3867
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3868
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3869
 
 
3870
 if
 
3871
  test "x$enable_dependency_tracking" != xno \
 
3872
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3873
  am__fastdepCC_TRUE=
 
3874
  am__fastdepCC_FALSE='#'
 
3875
else
 
3876
  am__fastdepCC_TRUE='#'
 
3877
  am__fastdepCC_FALSE=
 
3878
fi
 
3879
 
 
3880
 
 
3881
 
 
3882
 
 
3883
if test -n "$ac_tool_prefix"; then
 
3884
  for ac_prog in ar lib "link -lib"
 
3885
  do
 
3886
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3887
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3889
$as_echo_n "checking for $ac_word... " >&6; }
 
3890
if ${ac_cv_prog_AR+:} false; then :
 
3891
  $as_echo_n "(cached) " >&6
 
3892
else
 
3893
  if test -n "$AR"; then
 
3894
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
3895
else
 
3896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3897
for as_dir in $PATH
 
3898
do
 
3899
  IFS=$as_save_IFS
 
3900
  test -z "$as_dir" && as_dir=.
 
3901
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3902
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3903
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
3904
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3905
    break 2
 
3906
  fi
 
3907
done
 
3908
  done
 
3909
IFS=$as_save_IFS
 
3910
 
 
3911
fi
 
3912
fi
 
3913
AR=$ac_cv_prog_AR
 
3914
if test -n "$AR"; then
 
3915
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
3916
$as_echo "$AR" >&6; }
 
3917
else
 
3918
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3919
$as_echo "no" >&6; }
 
3920
fi
 
3921
 
 
3922
 
 
3923
    test -n "$AR" && break
 
3924
  done
 
3925
fi
 
3926
if test -z "$AR"; then
 
3927
  ac_ct_AR=$AR
 
3928
  for ac_prog in ar lib "link -lib"
 
3929
do
 
3930
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3931
set dummy $ac_prog; ac_word=$2
 
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3933
$as_echo_n "checking for $ac_word... " >&6; }
 
3934
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
3935
  $as_echo_n "(cached) " >&6
 
3936
else
 
3937
  if test -n "$ac_ct_AR"; then
 
3938
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
3939
else
 
3940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3941
for as_dir in $PATH
 
3942
do
 
3943
  IFS=$as_save_IFS
 
3944
  test -z "$as_dir" && as_dir=.
 
3945
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3946
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3947
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
3948
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3949
    break 2
 
3950
  fi
 
3951
done
 
3952
  done
 
3953
IFS=$as_save_IFS
 
3954
 
 
3955
fi
 
3956
fi
 
3957
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
3958
if test -n "$ac_ct_AR"; then
 
3959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
3960
$as_echo "$ac_ct_AR" >&6; }
 
3961
else
 
3962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3963
$as_echo "no" >&6; }
 
3964
fi
 
3965
 
 
3966
 
 
3967
  test -n "$ac_ct_AR" && break
 
3968
done
 
3969
 
 
3970
  if test "x$ac_ct_AR" = x; then
 
3971
    AR="false"
 
3972
  else
 
3973
    case $cross_compiling:$ac_tool_warned in
 
3974
yes:)
 
3975
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3976
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3977
ac_tool_warned=yes ;;
 
3978
esac
 
3979
    AR=$ac_ct_AR
 
3980
  fi
 
3981
fi
 
3982
 
 
3983
: ${AR=ar}
 
3984
 
 
3985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
 
3986
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
 
3987
if ${am_cv_ar_interface+:} false; then :
 
3988
  $as_echo_n "(cached) " >&6
 
3989
else
 
3990
  ac_ext=c
 
3991
ac_cpp='$CPP $CPPFLAGS'
 
3992
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3993
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3994
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3995
 
 
3996
   am_cv_ar_interface=ar
 
3997
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3998
/* end confdefs.h.  */
 
3999
int some_variable = 0;
 
4000
_ACEOF
 
4001
if ac_fn_c_try_compile "$LINENO"; then :
 
4002
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
 
4003
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 
4004
  (eval $am_ar_try) 2>&5
 
4005
  ac_status=$?
 
4006
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4007
  test $ac_status = 0; }
 
4008
      if test "$ac_status" -eq 0; then
 
4009
        am_cv_ar_interface=ar
 
4010
      else
 
4011
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
 
4012
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 
4013
  (eval $am_ar_try) 2>&5
 
4014
  ac_status=$?
 
4015
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4016
  test $ac_status = 0; }
 
4017
        if test "$ac_status" -eq 0; then
 
4018
          am_cv_ar_interface=lib
 
4019
        else
 
4020
          am_cv_ar_interface=unknown
 
4021
        fi
 
4022
      fi
 
4023
      rm -f conftest.lib libconftest.a
 
4024
 
 
4025
fi
 
4026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4027
   ac_ext=c
 
4028
ac_cpp='$CPP $CPPFLAGS'
 
4029
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4030
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4031
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4032
 
 
4033
fi
 
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
 
4035
$as_echo "$am_cv_ar_interface" >&6; }
 
4036
 
 
4037
case $am_cv_ar_interface in
 
4038
ar)
 
4039
  ;;
 
4040
lib)
 
4041
  # Microsoft lib, so override with the ar-lib wrapper script.
 
4042
  # FIXME: It is wrong to rewrite AR.
 
4043
  # But if we don't then we get into trouble of one sort or another.
 
4044
  # A longer-term fix would be to have automake use am__AR in this case,
 
4045
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
 
4046
  # similar.
 
4047
  AR="$am_aux_dir/ar-lib $AR"
 
4048
  ;;
 
4049
unknown)
 
4050
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
 
4051
  ;;
 
4052
esac
 
4053
 
 
4054
 
 
4055
case `pwd` in
 
4056
  *\ * | *\     *)
 
4057
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4058
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4059
esac
 
4060
 
 
4061
 
 
4062
 
 
4063
macro_version='2.4.2'
 
4064
macro_revision='1.3337'
 
4065
 
 
4066
 
 
4067
 
 
4068
 
 
4069
 
 
4070
 
 
4071
 
 
4072
 
 
4073
 
 
4074
 
 
4075
 
 
4076
 
 
4077
 
 
4078
ltmain="$ac_aux_dir/ltmain.sh"
 
4079
 
 
4080
# Make sure we can run config.sub.
 
4081
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4082
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4083
 
 
4084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4085
$as_echo_n "checking build system type... " >&6; }
 
4086
if ${ac_cv_build+:} false; then :
 
4087
  $as_echo_n "(cached) " >&6
 
4088
else
 
4089
  ac_build_alias=$build_alias
 
4090
test "x$ac_build_alias" = x &&
 
4091
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4092
test "x$ac_build_alias" = x &&
 
4093
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4094
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4095
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4096
 
 
4097
fi
 
4098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4099
$as_echo "$ac_cv_build" >&6; }
 
4100
case $ac_cv_build in
 
4101
*-*-*) ;;
 
4102
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4103
esac
 
4104
build=$ac_cv_build
 
4105
ac_save_IFS=$IFS; IFS='-'
 
4106
set x $ac_cv_build
 
4107
shift
 
4108
build_cpu=$1
 
4109
build_vendor=$2
 
4110
shift; shift
 
4111
# Remember, the first character of IFS is used to create $*,
 
4112
# except with old shells:
 
4113
build_os=$*
 
4114
IFS=$ac_save_IFS
 
4115
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4116
 
 
4117
 
 
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4119
$as_echo_n "checking host system type... " >&6; }
 
4120
if ${ac_cv_host+:} false; then :
 
4121
  $as_echo_n "(cached) " >&6
 
4122
else
 
4123
  if test "x$host_alias" = x; then
 
4124
  ac_cv_host=$ac_cv_build
 
4125
else
 
4126
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4127
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4128
fi
 
4129
 
 
4130
fi
 
4131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4132
$as_echo "$ac_cv_host" >&6; }
 
4133
case $ac_cv_host in
 
4134
*-*-*) ;;
 
4135
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4136
esac
 
4137
host=$ac_cv_host
 
4138
ac_save_IFS=$IFS; IFS='-'
 
4139
set x $ac_cv_host
 
4140
shift
 
4141
host_cpu=$1
 
4142
host_vendor=$2
 
4143
shift; shift
 
4144
# Remember, the first character of IFS is used to create $*,
 
4145
# except with old shells:
 
4146
host_os=$*
 
4147
IFS=$ac_save_IFS
 
4148
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4149
 
 
4150
 
 
4151
# Backslashify metacharacters that are still active within
 
4152
# double-quoted strings.
 
4153
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4154
 
 
4155
# Same as above, but do not quote variable references.
 
4156
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4157
 
 
4158
# Sed substitution to delay expansion of an escaped shell variable in a
 
4159
# double_quote_subst'ed string.
 
4160
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4161
 
 
4162
# Sed substitution to delay expansion of an escaped single quote.
 
4163
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4164
 
 
4165
# Sed substitution to avoid accidental globbing in evaled expressions
 
4166
no_glob_subst='s/\*/\\\*/g'
 
4167
 
 
4168
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4169
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4170
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4171
 
 
4172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4173
$as_echo_n "checking how to print strings... " >&6; }
 
4174
# Test print first, because it will be a builtin if present.
 
4175
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4176
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4177
  ECHO='print -r --'
 
4178
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4179
  ECHO='printf %s\n'
 
4180
else
 
4181
  # Use this function as a fallback that always works.
 
4182
  func_fallback_echo ()
 
4183
  {
 
4184
    eval 'cat <<_LTECHO_EOF
 
4185
$1
 
4186
_LTECHO_EOF'
 
4187
  }
 
4188
  ECHO='func_fallback_echo'
 
4189
fi
 
4190
 
 
4191
# func_echo_all arg...
 
4192
# Invoke $ECHO with all args, space-separated.
 
4193
func_echo_all ()
 
4194
{
 
4195
    $ECHO ""
 
4196
}
 
4197
 
 
4198
case "$ECHO" in
 
4199
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4200
$as_echo "printf" >&6; } ;;
 
4201
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4202
$as_echo "print -r" >&6; } ;;
 
4203
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4204
$as_echo "cat" >&6; } ;;
 
4205
esac
 
4206
 
 
4207
 
 
4208
 
 
4209
 
 
4210
 
 
4211
 
 
4212
 
 
4213
 
 
4214
 
 
4215
 
 
4216
 
 
4217
 
 
4218
 
 
4219
 
 
4220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4221
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4222
if ${ac_cv_path_SED+:} false; then :
 
4223
  $as_echo_n "(cached) " >&6
 
4224
else
 
4225
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4226
     for ac_i in 1 2 3 4 5 6 7; do
 
4227
       ac_script="$ac_script$as_nl$ac_script"
 
4228
     done
 
4229
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4230
     { ac_script=; unset ac_script;}
 
4231
     if test -z "$SED"; then
 
4232
  ac_path_SED_found=false
 
4233
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4234
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4235
for as_dir in $PATH
 
4236
do
 
4237
  IFS=$as_save_IFS
 
4238
  test -z "$as_dir" && as_dir=.
 
4239
    for ac_prog in sed gsed; do
 
4240
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4241
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4242
      as_fn_executable_p "$ac_path_SED" || continue
 
4243
# Check for GNU ac_path_SED and select it if it is found.
 
4244
  # Check for GNU $ac_path_SED
 
4245
case `"$ac_path_SED" --version 2>&1` in
 
4246
*GNU*)
 
4247
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4248
*)
 
4249
  ac_count=0
 
4250
  $as_echo_n 0123456789 >"conftest.in"
 
4251
  while :
 
4252
  do
 
4253
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4254
    mv "conftest.tmp" "conftest.in"
 
4255
    cp "conftest.in" "conftest.nl"
 
4256
    $as_echo '' >> "conftest.nl"
 
4257
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4258
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4259
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4260
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4261
      # Best one so far, save it but keep looking for a better one
 
4262
      ac_cv_path_SED="$ac_path_SED"
 
4263
      ac_path_SED_max=$ac_count
 
4264
    fi
 
4265
    # 10*(2^10) chars as input seems more than enough
 
4266
    test $ac_count -gt 10 && break
 
4267
  done
 
4268
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4269
esac
 
4270
 
 
4271
      $ac_path_SED_found && break 3
 
4272
    done
 
4273
  done
 
4274
  done
 
4275
IFS=$as_save_IFS
 
4276
  if test -z "$ac_cv_path_SED"; then
 
4277
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4278
  fi
 
4279
else
 
4280
  ac_cv_path_SED=$SED
 
4281
fi
 
4282
 
 
4283
fi
 
4284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4285
$as_echo "$ac_cv_path_SED" >&6; }
 
4286
 SED="$ac_cv_path_SED"
 
4287
  rm -f conftest.sed
 
4288
 
 
4289
test -z "$SED" && SED=sed
 
4290
Xsed="$SED -e 1s/^X//"
 
4291
 
 
4292
 
 
4293
 
 
4294
 
 
4295
 
 
4296
 
 
4297
 
 
4298
 
 
4299
 
 
4300
 
 
4301
 
 
4302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4303
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4304
if ${ac_cv_path_GREP+:} false; then :
 
4305
  $as_echo_n "(cached) " >&6
 
4306
else
 
4307
  if test -z "$GREP"; then
 
4308
  ac_path_GREP_found=false
 
4309
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4310
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4311
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4312
do
 
4313
  IFS=$as_save_IFS
 
4314
  test -z "$as_dir" && as_dir=.
 
4315
    for ac_prog in grep ggrep; do
 
4316
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4317
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4318
      as_fn_executable_p "$ac_path_GREP" || continue
 
4319
# Check for GNU ac_path_GREP and select it if it is found.
 
4320
  # Check for GNU $ac_path_GREP
 
4321
case `"$ac_path_GREP" --version 2>&1` in
 
4322
*GNU*)
 
4323
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4324
*)
 
4325
  ac_count=0
 
4326
  $as_echo_n 0123456789 >"conftest.in"
 
4327
  while :
 
4328
  do
 
4329
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4330
    mv "conftest.tmp" "conftest.in"
 
4331
    cp "conftest.in" "conftest.nl"
 
4332
    $as_echo 'GREP' >> "conftest.nl"
 
4333
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4334
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4335
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4336
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4337
      # Best one so far, save it but keep looking for a better one
 
4338
      ac_cv_path_GREP="$ac_path_GREP"
 
4339
      ac_path_GREP_max=$ac_count
 
4340
    fi
 
4341
    # 10*(2^10) chars as input seems more than enough
 
4342
    test $ac_count -gt 10 && break
 
4343
  done
 
4344
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4345
esac
 
4346
 
 
4347
      $ac_path_GREP_found && break 3
 
4348
    done
 
4349
  done
 
4350
  done
 
4351
IFS=$as_save_IFS
 
4352
  if test -z "$ac_cv_path_GREP"; then
 
4353
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4354
  fi
 
4355
else
 
4356
  ac_cv_path_GREP=$GREP
 
4357
fi
 
4358
 
 
4359
fi
 
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4361
$as_echo "$ac_cv_path_GREP" >&6; }
 
4362
 GREP="$ac_cv_path_GREP"
 
4363
 
 
4364
 
 
4365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4366
$as_echo_n "checking for egrep... " >&6; }
 
4367
if ${ac_cv_path_EGREP+:} false; then :
 
4368
  $as_echo_n "(cached) " >&6
 
4369
else
 
4370
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4371
   then ac_cv_path_EGREP="$GREP -E"
 
4372
   else
 
4373
     if test -z "$EGREP"; then
 
4374
  ac_path_EGREP_found=false
 
4375
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4376
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4377
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4378
do
 
4379
  IFS=$as_save_IFS
 
4380
  test -z "$as_dir" && as_dir=.
 
4381
    for ac_prog in egrep; do
 
4382
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4383
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4384
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4385
# Check for GNU ac_path_EGREP and select it if it is found.
 
4386
  # Check for GNU $ac_path_EGREP
 
4387
case `"$ac_path_EGREP" --version 2>&1` in
 
4388
*GNU*)
 
4389
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4390
*)
 
4391
  ac_count=0
 
4392
  $as_echo_n 0123456789 >"conftest.in"
 
4393
  while :
 
4394
  do
 
4395
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4396
    mv "conftest.tmp" "conftest.in"
 
4397
    cp "conftest.in" "conftest.nl"
 
4398
    $as_echo 'EGREP' >> "conftest.nl"
 
4399
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4400
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4401
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4402
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4403
      # Best one so far, save it but keep looking for a better one
 
4404
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4405
      ac_path_EGREP_max=$ac_count
 
4406
    fi
 
4407
    # 10*(2^10) chars as input seems more than enough
 
4408
    test $ac_count -gt 10 && break
 
4409
  done
 
4410
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4411
esac
 
4412
 
 
4413
      $ac_path_EGREP_found && break 3
 
4414
    done
 
4415
  done
 
4416
  done
 
4417
IFS=$as_save_IFS
 
4418
  if test -z "$ac_cv_path_EGREP"; then
 
4419
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4420
  fi
 
4421
else
 
4422
  ac_cv_path_EGREP=$EGREP
 
4423
fi
 
4424
 
 
4425
   fi
 
4426
fi
 
4427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4428
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4429
 EGREP="$ac_cv_path_EGREP"
 
4430
 
 
4431
 
 
4432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4433
$as_echo_n "checking for fgrep... " >&6; }
 
4434
if ${ac_cv_path_FGREP+:} false; then :
 
4435
  $as_echo_n "(cached) " >&6
 
4436
else
 
4437
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4438
   then ac_cv_path_FGREP="$GREP -F"
 
4439
   else
 
4440
     if test -z "$FGREP"; then
 
4441
  ac_path_FGREP_found=false
 
4442
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4443
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4444
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4445
do
 
4446
  IFS=$as_save_IFS
 
4447
  test -z "$as_dir" && as_dir=.
 
4448
    for ac_prog in fgrep; do
 
4449
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4450
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4451
      as_fn_executable_p "$ac_path_FGREP" || continue
 
4452
# Check for GNU ac_path_FGREP and select it if it is found.
 
4453
  # Check for GNU $ac_path_FGREP
 
4454
case `"$ac_path_FGREP" --version 2>&1` in
 
4455
*GNU*)
 
4456
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4457
*)
 
4458
  ac_count=0
 
4459
  $as_echo_n 0123456789 >"conftest.in"
 
4460
  while :
 
4461
  do
 
4462
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4463
    mv "conftest.tmp" "conftest.in"
 
4464
    cp "conftest.in" "conftest.nl"
 
4465
    $as_echo 'FGREP' >> "conftest.nl"
 
4466
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4467
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4468
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4469
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4470
      # Best one so far, save it but keep looking for a better one
 
4471
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4472
      ac_path_FGREP_max=$ac_count
 
4473
    fi
 
4474
    # 10*(2^10) chars as input seems more than enough
 
4475
    test $ac_count -gt 10 && break
 
4476
  done
 
4477
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4478
esac
 
4479
 
 
4480
      $ac_path_FGREP_found && break 3
 
4481
    done
 
4482
  done
 
4483
  done
 
4484
IFS=$as_save_IFS
 
4485
  if test -z "$ac_cv_path_FGREP"; then
 
4486
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4487
  fi
 
4488
else
 
4489
  ac_cv_path_FGREP=$FGREP
 
4490
fi
 
4491
 
 
4492
   fi
 
4493
fi
 
4494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4495
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4496
 FGREP="$ac_cv_path_FGREP"
 
4497
 
 
4498
 
 
4499
test -z "$GREP" && GREP=grep
 
4500
 
 
4501
 
 
4502
 
 
4503
 
 
4504
 
 
4505
 
 
4506
 
 
4507
 
 
4508
 
 
4509
 
 
4510
 
 
4511
 
 
4512
 
 
4513
 
 
4514
 
 
4515
 
 
4516
 
 
4517
 
 
4518
 
 
4519
# Check whether --with-gnu-ld was given.
 
4520
if test "${with_gnu_ld+set}" = set; then :
 
4521
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4522
else
 
4523
  with_gnu_ld=no
 
4524
fi
 
4525
 
 
4526
ac_prog=ld
 
4527
if test "$GCC" = yes; then
 
4528
  # Check if gcc -print-prog-name=ld gives a path.
 
4529
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4530
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4531
  case $host in
 
4532
  *-*-mingw*)
 
4533
    # gcc leaves a trailing carriage return which upsets mingw
 
4534
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4535
  *)
 
4536
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4537
  esac
 
4538
  case $ac_prog in
 
4539
    # Accept absolute paths.
 
4540
    [\\/]* | ?:[\\/]*)
 
4541
      re_direlt='/[^/][^/]*/\.\./'
 
4542
      # Canonicalize the pathname of ld
 
4543
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4544
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4545
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4546
      done
 
4547
      test -z "$LD" && LD="$ac_prog"
 
4548
      ;;
 
4549
  "")
 
4550
    # If it fails, then pretend we aren't using GCC.
 
4551
    ac_prog=ld
 
4552
    ;;
 
4553
  *)
 
4554
    # If it is relative, then search for the first ld in PATH.
 
4555
    with_gnu_ld=unknown
 
4556
    ;;
 
4557
  esac
 
4558
elif test "$with_gnu_ld" = yes; then
 
4559
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4560
$as_echo_n "checking for GNU ld... " >&6; }
 
4561
else
 
4562
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4563
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4564
fi
 
4565
if ${lt_cv_path_LD+:} false; then :
 
4566
  $as_echo_n "(cached) " >&6
 
4567
else
 
4568
  if test -z "$LD"; then
 
4569
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4570
  for ac_dir in $PATH; do
 
4571
    IFS="$lt_save_ifs"
 
4572
    test -z "$ac_dir" && ac_dir=.
 
4573
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4574
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4575
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4576
      # but apparently some variants of GNU ld only accept -v.
 
4577
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4578
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4579
      *GNU* | *'with BFD'*)
 
4580
        test "$with_gnu_ld" != no && break
 
4581
        ;;
 
4582
      *)
 
4583
        test "$with_gnu_ld" != yes && break
 
4584
        ;;
 
4585
      esac
 
4586
    fi
 
4587
  done
 
4588
  IFS="$lt_save_ifs"
 
4589
else
 
4590
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4591
fi
 
4592
fi
 
4593
 
 
4594
LD="$lt_cv_path_LD"
 
4595
if test -n "$LD"; then
 
4596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4597
$as_echo "$LD" >&6; }
 
4598
else
 
4599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4600
$as_echo "no" >&6; }
 
4601
fi
 
4602
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4604
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4605
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4606
  $as_echo_n "(cached) " >&6
 
4607
else
 
4608
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4609
case `$LD -v 2>&1 </dev/null` in
 
4610
*GNU* | *'with BFD'*)
 
4611
  lt_cv_prog_gnu_ld=yes
 
4612
  ;;
 
4613
*)
 
4614
  lt_cv_prog_gnu_ld=no
 
4615
  ;;
 
4616
esac
 
4617
fi
 
4618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4619
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4620
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4621
 
 
4622
 
 
4623
 
 
4624
 
 
4625
 
 
4626
 
 
4627
 
 
4628
 
 
4629
 
 
4630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4631
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4632
if ${lt_cv_path_NM+:} false; then :
 
4633
  $as_echo_n "(cached) " >&6
 
4634
else
 
4635
  if test -n "$NM"; then
 
4636
  # Let the user override the test.
 
4637
  lt_cv_path_NM="$NM"
 
4638
else
 
4639
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4640
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4641
    lt_nm_to_check="$lt_nm_to_check nm"
 
4642
  fi
 
4643
  for lt_tmp_nm in $lt_nm_to_check; do
 
4644
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4645
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4646
      IFS="$lt_save_ifs"
 
4647
      test -z "$ac_dir" && ac_dir=.
 
4648
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4649
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4650
        # Check to see if the nm accepts a BSD-compat flag.
 
4651
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4652
        #   nm: unknown option "B" ignored
 
4653
        # Tru64's nm complains that /dev/null is an invalid object file
 
4654
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4655
        */dev/null* | *'Invalid file or object type'*)
 
4656
          lt_cv_path_NM="$tmp_nm -B"
 
4657
          break
 
4658
          ;;
 
4659
        *)
 
4660
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4661
          */dev/null*)
 
4662
            lt_cv_path_NM="$tmp_nm -p"
 
4663
            break
 
4664
            ;;
 
4665
          *)
 
4666
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4667
            continue # so that we can try to find one that supports BSD flags
 
4668
            ;;
 
4669
          esac
 
4670
          ;;
 
4671
        esac
 
4672
      fi
 
4673
    done
 
4674
    IFS="$lt_save_ifs"
 
4675
  done
 
4676
  : ${lt_cv_path_NM=no}
 
4677
fi
 
4678
fi
 
4679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4680
$as_echo "$lt_cv_path_NM" >&6; }
 
4681
if test "$lt_cv_path_NM" != "no"; then
 
4682
  NM="$lt_cv_path_NM"
 
4683
else
 
4684
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4685
  if test -n "$DUMPBIN"; then :
 
4686
    # Let the user override the test.
 
4687
  else
 
4688
    if test -n "$ac_tool_prefix"; then
 
4689
  for ac_prog in dumpbin "link -dump"
 
4690
  do
 
4691
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4692
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4694
$as_echo_n "checking for $ac_word... " >&6; }
 
4695
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4696
  $as_echo_n "(cached) " >&6
 
4697
else
 
4698
  if test -n "$DUMPBIN"; then
 
4699
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4700
else
 
4701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4702
for as_dir in $PATH
 
4703
do
 
4704
  IFS=$as_save_IFS
 
4705
  test -z "$as_dir" && as_dir=.
 
4706
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4707
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4708
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4709
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4710
    break 2
 
4711
  fi
 
4712
done
 
4713
  done
 
4714
IFS=$as_save_IFS
 
4715
 
 
4716
fi
 
4717
fi
 
4718
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4719
if test -n "$DUMPBIN"; then
 
4720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4721
$as_echo "$DUMPBIN" >&6; }
 
4722
else
 
4723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4724
$as_echo "no" >&6; }
 
4725
fi
 
4726
 
 
4727
 
 
4728
    test -n "$DUMPBIN" && break
 
4729
  done
 
4730
fi
 
4731
if test -z "$DUMPBIN"; then
 
4732
  ac_ct_DUMPBIN=$DUMPBIN
 
4733
  for ac_prog in dumpbin "link -dump"
 
4734
do
 
4735
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4736
set dummy $ac_prog; ac_word=$2
 
4737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4738
$as_echo_n "checking for $ac_word... " >&6; }
 
4739
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4740
  $as_echo_n "(cached) " >&6
 
4741
else
 
4742
  if test -n "$ac_ct_DUMPBIN"; then
 
4743
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4744
else
 
4745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4746
for as_dir in $PATH
 
4747
do
 
4748
  IFS=$as_save_IFS
 
4749
  test -z "$as_dir" && as_dir=.
 
4750
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4751
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4752
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4753
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4754
    break 2
 
4755
  fi
 
4756
done
 
4757
  done
 
4758
IFS=$as_save_IFS
 
4759
 
 
4760
fi
 
4761
fi
 
4762
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4763
if test -n "$ac_ct_DUMPBIN"; then
 
4764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4765
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4766
else
 
4767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4768
$as_echo "no" >&6; }
 
4769
fi
 
4770
 
 
4771
 
 
4772
  test -n "$ac_ct_DUMPBIN" && break
 
4773
done
 
4774
 
 
4775
  if test "x$ac_ct_DUMPBIN" = x; then
 
4776
    DUMPBIN=":"
 
4777
  else
 
4778
    case $cross_compiling:$ac_tool_warned in
 
4779
yes:)
 
4780
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4781
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4782
ac_tool_warned=yes ;;
 
4783
esac
 
4784
    DUMPBIN=$ac_ct_DUMPBIN
 
4785
  fi
 
4786
fi
 
4787
 
 
4788
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4789
    *COFF*)
 
4790
      DUMPBIN="$DUMPBIN -symbols"
 
4791
      ;;
 
4792
    *)
 
4793
      DUMPBIN=:
 
4794
      ;;
 
4795
    esac
 
4796
  fi
 
4797
 
 
4798
  if test "$DUMPBIN" != ":"; then
 
4799
    NM="$DUMPBIN"
 
4800
  fi
 
4801
fi
 
4802
test -z "$NM" && NM=nm
 
4803
 
 
4804
 
 
4805
 
 
4806
 
 
4807
 
 
4808
 
 
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4810
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4811
if ${lt_cv_nm_interface+:} false; then :
 
4812
  $as_echo_n "(cached) " >&6
 
4813
else
 
4814
  lt_cv_nm_interface="BSD nm"
 
4815
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4816
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4817
  (eval "$ac_compile" 2>conftest.err)
 
4818
  cat conftest.err >&5
 
4819
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4820
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4821
  cat conftest.err >&5
 
4822
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4823
  cat conftest.out >&5
 
4824
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4825
    lt_cv_nm_interface="MS dumpbin"
 
4826
  fi
 
4827
  rm -f conftest*
 
4828
fi
 
4829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4830
$as_echo "$lt_cv_nm_interface" >&6; }
 
4831
 
 
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4833
$as_echo_n "checking whether ln -s works... " >&6; }
 
4834
LN_S=$as_ln_s
 
4835
if test "$LN_S" = "ln -s"; then
 
4836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4837
$as_echo "yes" >&6; }
 
4838
else
 
4839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4840
$as_echo "no, using $LN_S" >&6; }
 
4841
fi
 
4842
 
 
4843
# find the maximum length of command line arguments
 
4844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4845
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4846
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4847
  $as_echo_n "(cached) " >&6
 
4848
else
 
4849
    i=0
 
4850
  teststring="ABCD"
 
4851
 
 
4852
  case $build_os in
 
4853
  msdosdjgpp*)
 
4854
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4855
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4856
    # during glob expansion).  Even if it were fixed, the result of this
 
4857
    # check would be larger than it should be.
 
4858
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4859
    ;;
 
4860
 
 
4861
  gnu*)
 
4862
    # Under GNU Hurd, this test is not required because there is
 
4863
    # no limit to the length of command line arguments.
 
4864
    # Libtool will interpret -1 as no limit whatsoever
 
4865
    lt_cv_sys_max_cmd_len=-1;
 
4866
    ;;
 
4867
 
 
4868
  cygwin* | mingw* | cegcc*)
 
4869
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4870
    # about 5 minutes as the teststring grows exponentially.
 
4871
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4872
    # you end up with a "frozen" computer, even though with patience
 
4873
    # the test eventually succeeds (with a max line length of 256k).
 
4874
    # Instead, let's just punt: use the minimum linelength reported by
 
4875
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4876
    lt_cv_sys_max_cmd_len=8192;
 
4877
    ;;
 
4878
 
 
4879
  mint*)
 
4880
    # On MiNT this can take a long time and run out of memory.
 
4881
    lt_cv_sys_max_cmd_len=8192;
 
4882
    ;;
 
4883
 
 
4884
  amigaos*)
 
4885
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4886
    # So we just punt and use a minimum line length of 8192.
 
4887
    lt_cv_sys_max_cmd_len=8192;
 
4888
    ;;
 
4889
 
 
4890
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4891
    # This has been around since 386BSD, at least.  Likely further.
 
4892
    if test -x /sbin/sysctl; then
 
4893
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4894
    elif test -x /usr/sbin/sysctl; then
 
4895
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4896
    else
 
4897
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4898
    fi
 
4899
    # And add a safety zone
 
4900
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4901
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4902
    ;;
 
4903
 
 
4904
  interix*)
 
4905
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4906
    lt_cv_sys_max_cmd_len=196608
 
4907
    ;;
 
4908
 
 
4909
  os2*)
 
4910
    # The test takes a long time on OS/2.
 
4911
    lt_cv_sys_max_cmd_len=8192
 
4912
    ;;
 
4913
 
 
4914
  osf*)
 
4915
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4916
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4917
    # nice to cause kernel panics so lets avoid the loop below.
 
4918
    # First set a reasonable default.
 
4919
    lt_cv_sys_max_cmd_len=16384
 
4920
    #
 
4921
    if test -x /sbin/sysconfig; then
 
4922
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4923
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4924
      esac
 
4925
    fi
 
4926
    ;;
 
4927
  sco3.2v5*)
 
4928
    lt_cv_sys_max_cmd_len=102400
 
4929
    ;;
 
4930
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4931
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4932
    if test -n "$kargmax"; then
 
4933
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4934
    else
 
4935
      lt_cv_sys_max_cmd_len=32768
 
4936
    fi
 
4937
    ;;
 
4938
  *)
 
4939
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4940
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
4941
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
4942
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4943
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4944
    else
 
4945
      # Make teststring a little bigger before we do anything with it.
 
4946
      # a 1K string should be a reasonable start.
 
4947
      for i in 1 2 3 4 5 6 7 8 ; do
 
4948
        teststring=$teststring$teststring
 
4949
      done
 
4950
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4951
      # If test is not a shell built-in, we'll probably end up computing a
 
4952
      # maximum length that is only half of the actual maximum length, but
 
4953
      # we can't tell.
 
4954
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
4955
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
4956
              test $i != 17 # 1/2 MB should be enough
 
4957
      do
 
4958
        i=`expr $i + 1`
 
4959
        teststring=$teststring$teststring
 
4960
      done
 
4961
      # Only check the string length outside the loop.
 
4962
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4963
      teststring=
 
4964
      # Add a significant safety factor because C++ compilers can tack on
 
4965
      # massive amounts of additional arguments before passing them to the
 
4966
      # linker.  It appears as though 1/2 is a usable value.
 
4967
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4968
    fi
 
4969
    ;;
 
4970
  esac
 
4971
 
 
4972
fi
 
4973
 
 
4974
if test -n $lt_cv_sys_max_cmd_len ; then
 
4975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4976
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4977
else
 
4978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4979
$as_echo "none" >&6; }
 
4980
fi
 
4981
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4982
 
 
4983
 
 
4984
 
 
4985
 
 
4986
 
 
4987
 
 
4988
: ${CP="cp -f"}
 
4989
: ${MV="mv -f"}
 
4990
: ${RM="rm -f"}
 
4991
 
 
4992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4993
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4994
# Try some XSI features
 
4995
xsi_shell=no
 
4996
( _lt_dummy="a/b/c"
 
4997
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
4998
      = c,a/b,b/c, \
 
4999
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5000
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5001
  && xsi_shell=yes
 
5002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5003
$as_echo "$xsi_shell" >&6; }
 
5004
 
 
5005
 
 
5006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5007
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5008
lt_shell_append=no
 
5009
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5010
    >/dev/null 2>&1 \
 
5011
  && lt_shell_append=yes
 
5012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5013
$as_echo "$lt_shell_append" >&6; }
 
5014
 
 
5015
 
 
5016
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5017
  lt_unset=unset
 
5018
else
 
5019
  lt_unset=false
 
5020
fi
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
# test EBCDIC or ASCII
 
5027
case `echo X|tr X '\101'` in
 
5028
 A) # ASCII based system
 
5029
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5030
  lt_SP2NL='tr \040 \012'
 
5031
  lt_NL2SP='tr \015\012 \040\040'
 
5032
  ;;
 
5033
 *) # EBCDIC based system
 
5034
  lt_SP2NL='tr \100 \n'
 
5035
  lt_NL2SP='tr \r\n \100\100'
 
5036
  ;;
 
5037
esac
 
5038
 
 
5039
 
 
5040
 
 
5041
 
 
5042
 
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5048
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5049
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5050
  $as_echo_n "(cached) " >&6
 
5051
else
 
5052
  case $host in
 
5053
  *-*-mingw* )
 
5054
    case $build in
 
5055
      *-*-mingw* ) # actually msys
 
5056
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5057
        ;;
 
5058
      *-*-cygwin* )
 
5059
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5060
        ;;
 
5061
      * ) # otherwise, assume *nix
 
5062
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5063
        ;;
 
5064
    esac
 
5065
    ;;
 
5066
  *-*-cygwin* )
 
5067
    case $build in
 
5068
      *-*-mingw* ) # actually msys
 
5069
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5070
        ;;
 
5071
      *-*-cygwin* )
 
5072
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5073
        ;;
 
5074
      * ) # otherwise, assume *nix
 
5075
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5076
        ;;
 
5077
    esac
 
5078
    ;;
 
5079
  * ) # unhandled hosts (and "normal" native builds)
 
5080
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5081
    ;;
 
5082
esac
 
5083
 
 
5084
fi
 
5085
 
 
5086
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5088
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5089
 
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5095
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5096
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5097
  $as_echo_n "(cached) " >&6
 
5098
else
 
5099
  #assume ordinary cross tools, or native build.
 
5100
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5101
case $host in
 
5102
  *-*-mingw* )
 
5103
    case $build in
 
5104
      *-*-mingw* ) # actually msys
 
5105
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5106
        ;;
 
5107
    esac
 
5108
    ;;
 
5109
esac
 
5110
 
 
5111
fi
 
5112
 
 
5113
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5115
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5116
 
 
5117
 
 
5118
 
 
5119
 
 
5120
 
 
5121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5122
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5123
if ${lt_cv_ld_reload_flag+:} false; then :
 
5124
  $as_echo_n "(cached) " >&6
 
5125
else
 
5126
  lt_cv_ld_reload_flag='-r'
 
5127
fi
 
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5129
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5130
reload_flag=$lt_cv_ld_reload_flag
 
5131
case $reload_flag in
 
5132
"" | " "*) ;;
 
5133
*) reload_flag=" $reload_flag" ;;
 
5134
esac
 
5135
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5136
case $host_os in
 
5137
  cygwin* | mingw* | pw32* | cegcc*)
 
5138
    if test "$GCC" != yes; then
 
5139
      reload_cmds=false
 
5140
    fi
 
5141
    ;;
 
5142
  darwin*)
 
5143
    if test "$GCC" = yes; then
 
5144
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5145
    else
 
5146
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5147
    fi
 
5148
    ;;
 
5149
esac
 
5150
 
 
5151
 
 
5152
 
 
5153
 
 
5154
 
 
5155
 
 
5156
 
 
5157
 
 
5158
 
 
5159
if test -n "$ac_tool_prefix"; then
 
5160
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5161
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5163
$as_echo_n "checking for $ac_word... " >&6; }
 
5164
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5165
  $as_echo_n "(cached) " >&6
 
5166
else
 
5167
  if test -n "$OBJDUMP"; then
 
5168
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5169
else
 
5170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5171
for as_dir in $PATH
 
5172
do
 
5173
  IFS=$as_save_IFS
 
5174
  test -z "$as_dir" && as_dir=.
 
5175
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5176
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5177
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5178
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5179
    break 2
 
5180
  fi
 
5181
done
 
5182
  done
 
5183
IFS=$as_save_IFS
 
5184
 
 
5185
fi
 
5186
fi
 
5187
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5188
if test -n "$OBJDUMP"; then
 
5189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5190
$as_echo "$OBJDUMP" >&6; }
 
5191
else
 
5192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5193
$as_echo "no" >&6; }
 
5194
fi
 
5195
 
 
5196
 
 
5197
fi
 
5198
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5199
  ac_ct_OBJDUMP=$OBJDUMP
 
5200
  # Extract the first word of "objdump", so it can be a program name with args.
 
5201
set dummy objdump; ac_word=$2
 
5202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5203
$as_echo_n "checking for $ac_word... " >&6; }
 
5204
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5205
  $as_echo_n "(cached) " >&6
 
5206
else
 
5207
  if test -n "$ac_ct_OBJDUMP"; then
 
5208
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5209
else
 
5210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5211
for as_dir in $PATH
 
5212
do
 
5213
  IFS=$as_save_IFS
 
5214
  test -z "$as_dir" && as_dir=.
 
5215
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5216
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5217
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5218
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5219
    break 2
 
5220
  fi
 
5221
done
 
5222
  done
 
5223
IFS=$as_save_IFS
 
5224
 
 
5225
fi
 
5226
fi
 
5227
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5228
if test -n "$ac_ct_OBJDUMP"; then
 
5229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5230
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5231
else
 
5232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5233
$as_echo "no" >&6; }
 
5234
fi
 
5235
 
 
5236
  if test "x$ac_ct_OBJDUMP" = x; then
 
5237
    OBJDUMP="false"
 
5238
  else
 
5239
    case $cross_compiling:$ac_tool_warned in
 
5240
yes:)
 
5241
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5242
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5243
ac_tool_warned=yes ;;
 
5244
esac
 
5245
    OBJDUMP=$ac_ct_OBJDUMP
 
5246
  fi
 
5247
else
 
5248
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5249
fi
 
5250
 
 
5251
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5252
 
 
5253
 
 
5254
 
 
5255
 
 
5256
 
 
5257
 
 
5258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5259
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5260
if ${lt_cv_deplibs_check_method+:} false; then :
 
5261
  $as_echo_n "(cached) " >&6
 
5262
else
 
5263
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5264
lt_cv_file_magic_test_file=
 
5265
lt_cv_deplibs_check_method='unknown'
 
5266
# Need to set the preceding variable on all platforms that support
 
5267
# interlibrary dependencies.
 
5268
# 'none' -- dependencies not supported.
 
5269
# `unknown' -- same as none, but documents that we really don't know.
 
5270
# 'pass_all' -- all dependencies passed with no checks.
 
5271
# 'test_compile' -- check by making test program.
 
5272
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5273
# which responds to the $file_magic_cmd with a given extended regex.
 
5274
# If you have `file' or equivalent on your system and you're not sure
 
5275
# whether `pass_all' will *always* work, you probably want this one.
 
5276
 
 
5277
case $host_os in
 
5278
aix[4-9]*)
 
5279
  lt_cv_deplibs_check_method=pass_all
 
5280
  ;;
 
5281
 
 
5282
beos*)
 
5283
  lt_cv_deplibs_check_method=pass_all
 
5284
  ;;
 
5285
 
 
5286
bsdi[45]*)
 
5287
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5288
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5289
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5290
  ;;
 
5291
 
 
5292
cygwin*)
 
5293
  # func_win32_libid is a shell function defined in ltmain.sh
 
5294
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5295
  lt_cv_file_magic_cmd='func_win32_libid'
 
5296
  ;;
 
5297
 
 
5298
mingw* | pw32*)
 
5299
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5300
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5301
  # unless we find 'file', for example because we are cross-compiling.
 
5302
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5303
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5304
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5305
    lt_cv_file_magic_cmd='func_win32_libid'
 
5306
  else
 
5307
    # Keep this pattern in sync with the one in func_win32_libid.
 
5308
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5309
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5310
  fi
 
5311
  ;;
 
5312
 
 
5313
cegcc*)
 
5314
  # use the weaker test based on 'objdump'. See mingw*.
 
5315
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5316
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5317
  ;;
 
5318
 
 
5319
darwin* | rhapsody*)
 
5320
  lt_cv_deplibs_check_method=pass_all
 
5321
  ;;
 
5322
 
 
5323
freebsd* | dragonfly*)
 
5324
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5325
    case $host_cpu in
 
5326
    i*86 )
 
5327
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5328
      # Let's accept both of them until this is cleared up.
 
5329
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5330
      lt_cv_file_magic_cmd=/usr/bin/file
 
5331
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5332
      ;;
 
5333
    esac
 
5334
  else
 
5335
    lt_cv_deplibs_check_method=pass_all
 
5336
  fi
 
5337
  ;;
 
5338
 
 
5339
haiku*)
 
5340
  lt_cv_deplibs_check_method=pass_all
 
5341
  ;;
 
5342
 
 
5343
hpux10.20* | hpux11*)
 
5344
  lt_cv_file_magic_cmd=/usr/bin/file
 
5345
  case $host_cpu in
 
5346
  ia64*)
 
5347
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5348
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5349
    ;;
 
5350
  hppa*64*)
 
5351
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
5352
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5353
    ;;
 
5354
  *)
 
5355
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5356
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5357
    ;;
 
5358
  esac
 
5359
  ;;
 
5360
 
 
5361
interix[3-9]*)
 
5362
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5363
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5364
  ;;
 
5365
 
 
5366
irix5* | irix6* | nonstopux*)
 
5367
  case $LD in
 
5368
  *-32|*"-32 ") libmagic=32-bit;;
 
5369
  *-n32|*"-n32 ") libmagic=N32;;
 
5370
  *-64|*"-64 ") libmagic=64-bit;;
 
5371
  *) libmagic=never-match;;
 
5372
  esac
 
5373
  lt_cv_deplibs_check_method=pass_all
 
5374
  ;;
 
5375
 
 
5376
# This must be glibc/ELF.
 
5377
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
5378
  lt_cv_deplibs_check_method=pass_all
 
5379
  ;;
 
5380
 
 
5381
netbsd* | netbsdelf*-gnu)
 
5382
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5383
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5384
  else
 
5385
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5386
  fi
 
5387
  ;;
 
5388
 
 
5389
newos6*)
 
5390
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5391
  lt_cv_file_magic_cmd=/usr/bin/file
 
5392
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5393
  ;;
 
5394
 
 
5395
*nto* | *qnx*)
 
5396
  lt_cv_deplibs_check_method=pass_all
 
5397
  ;;
 
5398
 
 
5399
openbsd*)
 
5400
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5401
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5402
  else
 
5403
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5404
  fi
 
5405
  ;;
 
5406
 
 
5407
osf3* | osf4* | osf5*)
 
5408
  lt_cv_deplibs_check_method=pass_all
 
5409
  ;;
 
5410
 
 
5411
rdos*)
 
5412
  lt_cv_deplibs_check_method=pass_all
 
5413
  ;;
 
5414
 
 
5415
solaris*)
 
5416
  lt_cv_deplibs_check_method=pass_all
 
5417
  ;;
 
5418
 
 
5419
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5420
  lt_cv_deplibs_check_method=pass_all
 
5421
  ;;
 
5422
 
 
5423
sysv4 | sysv4.3*)
 
5424
  case $host_vendor in
 
5425
  motorola)
 
5426
    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]'
 
5427
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5428
    ;;
 
5429
  ncr)
 
5430
    lt_cv_deplibs_check_method=pass_all
 
5431
    ;;
 
5432
  sequent)
 
5433
    lt_cv_file_magic_cmd='/bin/file'
 
5434
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5435
    ;;
 
5436
  sni)
 
5437
    lt_cv_file_magic_cmd='/bin/file'
 
5438
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5439
    lt_cv_file_magic_test_file=/lib/libc.so
 
5440
    ;;
 
5441
  siemens)
 
5442
    lt_cv_deplibs_check_method=pass_all
 
5443
    ;;
 
5444
  pc)
 
5445
    lt_cv_deplibs_check_method=pass_all
 
5446
    ;;
 
5447
  esac
 
5448
  ;;
 
5449
 
 
5450
tpf*)
 
5451
  lt_cv_deplibs_check_method=pass_all
 
5452
  ;;
 
5453
esac
 
5454
 
 
5455
fi
 
5456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5457
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5458
 
 
5459
file_magic_glob=
 
5460
want_nocaseglob=no
 
5461
if test "$build" = "$host"; then
 
5462
  case $host_os in
 
5463
  mingw* | pw32*)
 
5464
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5465
      want_nocaseglob=yes
 
5466
    else
 
5467
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5468
    fi
 
5469
    ;;
 
5470
  esac
 
5471
fi
 
5472
 
 
5473
file_magic_cmd=$lt_cv_file_magic_cmd
 
5474
deplibs_check_method=$lt_cv_deplibs_check_method
 
5475
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5476
 
 
5477
 
 
5478
 
 
5479
 
 
5480
 
 
5481
 
 
5482
 
 
5483
 
 
5484
 
 
5485
 
 
5486
 
 
5487
 
 
5488
 
 
5489
 
 
5490
 
 
5491
 
 
5492
 
 
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
 
 
5498
if test -n "$ac_tool_prefix"; then
 
5499
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5500
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5502
$as_echo_n "checking for $ac_word... " >&6; }
 
5503
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5504
  $as_echo_n "(cached) " >&6
 
5505
else
 
5506
  if test -n "$DLLTOOL"; then
 
5507
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5508
else
 
5509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5510
for as_dir in $PATH
 
5511
do
 
5512
  IFS=$as_save_IFS
 
5513
  test -z "$as_dir" && as_dir=.
 
5514
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5515
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5516
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5517
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5518
    break 2
 
5519
  fi
 
5520
done
 
5521
  done
 
5522
IFS=$as_save_IFS
 
5523
 
 
5524
fi
 
5525
fi
 
5526
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5527
if test -n "$DLLTOOL"; then
 
5528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5529
$as_echo "$DLLTOOL" >&6; }
 
5530
else
 
5531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5532
$as_echo "no" >&6; }
 
5533
fi
 
5534
 
 
5535
 
 
5536
fi
 
5537
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5538
  ac_ct_DLLTOOL=$DLLTOOL
 
5539
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5540
set dummy dlltool; ac_word=$2
 
5541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5542
$as_echo_n "checking for $ac_word... " >&6; }
 
5543
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5544
  $as_echo_n "(cached) " >&6
 
5545
else
 
5546
  if test -n "$ac_ct_DLLTOOL"; then
 
5547
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5548
else
 
5549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5550
for as_dir in $PATH
 
5551
do
 
5552
  IFS=$as_save_IFS
 
5553
  test -z "$as_dir" && as_dir=.
 
5554
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5555
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5556
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5557
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5558
    break 2
 
5559
  fi
 
5560
done
 
5561
  done
 
5562
IFS=$as_save_IFS
 
5563
 
 
5564
fi
 
5565
fi
 
5566
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5567
if test -n "$ac_ct_DLLTOOL"; then
 
5568
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5569
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5570
else
 
5571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5572
$as_echo "no" >&6; }
 
5573
fi
 
5574
 
 
5575
  if test "x$ac_ct_DLLTOOL" = x; then
 
5576
    DLLTOOL="false"
 
5577
  else
 
5578
    case $cross_compiling:$ac_tool_warned in
 
5579
yes:)
 
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5582
ac_tool_warned=yes ;;
 
5583
esac
 
5584
    DLLTOOL=$ac_ct_DLLTOOL
 
5585
  fi
 
5586
else
 
5587
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5588
fi
 
5589
 
 
5590
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5591
 
 
5592
 
 
5593
 
 
5594
 
 
5595
 
 
5596
 
 
5597
 
 
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5599
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5600
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5601
  $as_echo_n "(cached) " >&6
 
5602
else
 
5603
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5604
 
 
5605
case $host_os in
 
5606
cygwin* | mingw* | pw32* | cegcc*)
 
5607
  # two different shell functions defined in ltmain.sh
 
5608
  # decide which to use based on capabilities of $DLLTOOL
 
5609
  case `$DLLTOOL --help 2>&1` in
 
5610
  *--identify-strict*)
 
5611
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5612
    ;;
 
5613
  *)
 
5614
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5615
    ;;
 
5616
  esac
 
5617
  ;;
 
5618
*)
 
5619
  # fallback: assume linklib IS sharedlib
 
5620
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5621
  ;;
 
5622
esac
 
5623
 
 
5624
fi
 
5625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5626
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5627
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5628
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
 
5635
 
 
5636
if test -n "$ac_tool_prefix"; then
 
5637
  for ac_prog in ar
 
5638
  do
 
5639
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5640
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5642
$as_echo_n "checking for $ac_word... " >&6; }
 
5643
if ${ac_cv_prog_AR+:} false; then :
 
5644
  $as_echo_n "(cached) " >&6
 
5645
else
 
5646
  if test -n "$AR"; then
 
5647
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5648
else
 
5649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5650
for as_dir in $PATH
 
5651
do
 
5652
  IFS=$as_save_IFS
 
5653
  test -z "$as_dir" && as_dir=.
 
5654
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5655
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5656
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5657
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5658
    break 2
 
5659
  fi
 
5660
done
 
5661
  done
 
5662
IFS=$as_save_IFS
 
5663
 
 
5664
fi
 
5665
fi
 
5666
AR=$ac_cv_prog_AR
 
5667
if test -n "$AR"; then
 
5668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5669
$as_echo "$AR" >&6; }
 
5670
else
 
5671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5672
$as_echo "no" >&6; }
 
5673
fi
 
5674
 
 
5675
 
 
5676
    test -n "$AR" && break
 
5677
  done
 
5678
fi
 
5679
if test -z "$AR"; then
 
5680
  ac_ct_AR=$AR
 
5681
  for ac_prog in ar
 
5682
do
 
5683
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5684
set dummy $ac_prog; ac_word=$2
 
5685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5686
$as_echo_n "checking for $ac_word... " >&6; }
 
5687
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5688
  $as_echo_n "(cached) " >&6
 
5689
else
 
5690
  if test -n "$ac_ct_AR"; then
 
5691
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5692
else
 
5693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5694
for as_dir in $PATH
 
5695
do
 
5696
  IFS=$as_save_IFS
 
5697
  test -z "$as_dir" && as_dir=.
 
5698
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5699
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5700
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5701
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5702
    break 2
 
5703
  fi
 
5704
done
 
5705
  done
 
5706
IFS=$as_save_IFS
 
5707
 
 
5708
fi
 
5709
fi
 
5710
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5711
if test -n "$ac_ct_AR"; then
 
5712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5713
$as_echo "$ac_ct_AR" >&6; }
 
5714
else
 
5715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5716
$as_echo "no" >&6; }
 
5717
fi
 
5718
 
 
5719
 
 
5720
  test -n "$ac_ct_AR" && break
 
5721
done
 
5722
 
 
5723
  if test "x$ac_ct_AR" = x; then
 
5724
    AR="false"
 
5725
  else
 
5726
    case $cross_compiling:$ac_tool_warned in
 
5727
yes:)
 
5728
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5729
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5730
ac_tool_warned=yes ;;
 
5731
esac
 
5732
    AR=$ac_ct_AR
 
5733
  fi
 
5734
fi
 
5735
 
 
5736
: ${AR=ar}
 
5737
: ${AR_FLAGS=cru}
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
 
 
5744
 
 
5745
 
 
5746
 
 
5747
 
 
5748
 
 
5749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5750
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5751
if ${lt_cv_ar_at_file+:} false; then :
 
5752
  $as_echo_n "(cached) " >&6
 
5753
else
 
5754
  lt_cv_ar_at_file=no
 
5755
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5756
/* end confdefs.h.  */
 
5757
 
 
5758
int
 
5759
main ()
 
5760
{
 
5761
 
 
5762
  ;
 
5763
  return 0;
 
5764
}
 
5765
_ACEOF
 
5766
if ac_fn_c_try_compile "$LINENO"; then :
 
5767
  echo conftest.$ac_objext > conftest.lst
 
5768
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5769
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5770
  (eval $lt_ar_try) 2>&5
 
5771
  ac_status=$?
 
5772
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5773
  test $ac_status = 0; }
 
5774
      if test "$ac_status" -eq 0; then
 
5775
        # Ensure the archiver fails upon bogus file names.
 
5776
        rm -f conftest.$ac_objext libconftest.a
 
5777
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5778
  (eval $lt_ar_try) 2>&5
 
5779
  ac_status=$?
 
5780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5781
  test $ac_status = 0; }
 
5782
        if test "$ac_status" -ne 0; then
 
5783
          lt_cv_ar_at_file=@
 
5784
        fi
 
5785
      fi
 
5786
      rm -f conftest.* libconftest.a
 
5787
 
 
5788
fi
 
5789
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5790
 
 
5791
fi
 
5792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5793
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5794
 
 
5795
if test "x$lt_cv_ar_at_file" = xno; then
 
5796
  archiver_list_spec=
 
5797
else
 
5798
  archiver_list_spec=$lt_cv_ar_at_file
 
5799
fi
 
5800
 
 
5801
 
 
5802
 
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
if test -n "$ac_tool_prefix"; then
 
5808
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5809
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5811
$as_echo_n "checking for $ac_word... " >&6; }
 
5812
if ${ac_cv_prog_STRIP+:} false; then :
 
5813
  $as_echo_n "(cached) " >&6
 
5814
else
 
5815
  if test -n "$STRIP"; then
 
5816
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5817
else
 
5818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5819
for as_dir in $PATH
 
5820
do
 
5821
  IFS=$as_save_IFS
 
5822
  test -z "$as_dir" && as_dir=.
 
5823
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5824
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5825
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5826
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5827
    break 2
 
5828
  fi
 
5829
done
 
5830
  done
 
5831
IFS=$as_save_IFS
 
5832
 
 
5833
fi
 
5834
fi
 
5835
STRIP=$ac_cv_prog_STRIP
 
5836
if test -n "$STRIP"; then
 
5837
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5838
$as_echo "$STRIP" >&6; }
 
5839
else
 
5840
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5841
$as_echo "no" >&6; }
 
5842
fi
 
5843
 
 
5844
 
 
5845
fi
 
5846
if test -z "$ac_cv_prog_STRIP"; then
 
5847
  ac_ct_STRIP=$STRIP
 
5848
  # Extract the first word of "strip", so it can be a program name with args.
 
5849
set dummy strip; ac_word=$2
 
5850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5851
$as_echo_n "checking for $ac_word... " >&6; }
 
5852
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5853
  $as_echo_n "(cached) " >&6
 
5854
else
 
5855
  if test -n "$ac_ct_STRIP"; then
 
5856
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5857
else
 
5858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5859
for as_dir in $PATH
 
5860
do
 
5861
  IFS=$as_save_IFS
 
5862
  test -z "$as_dir" && as_dir=.
 
5863
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5864
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5865
    ac_cv_prog_ac_ct_STRIP="strip"
 
5866
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5867
    break 2
 
5868
  fi
 
5869
done
 
5870
  done
 
5871
IFS=$as_save_IFS
 
5872
 
 
5873
fi
 
5874
fi
 
5875
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5876
if test -n "$ac_ct_STRIP"; then
 
5877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5878
$as_echo "$ac_ct_STRIP" >&6; }
 
5879
else
 
5880
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5881
$as_echo "no" >&6; }
 
5882
fi
 
5883
 
 
5884
  if test "x$ac_ct_STRIP" = x; then
 
5885
    STRIP=":"
 
5886
  else
 
5887
    case $cross_compiling:$ac_tool_warned in
 
5888
yes:)
 
5889
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5890
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5891
ac_tool_warned=yes ;;
 
5892
esac
 
5893
    STRIP=$ac_ct_STRIP
 
5894
  fi
 
5895
else
 
5896
  STRIP="$ac_cv_prog_STRIP"
 
5897
fi
 
5898
 
 
5899
test -z "$STRIP" && STRIP=:
 
5900
 
 
5901
 
 
5902
 
 
5903
 
 
5904
 
 
5905
 
 
5906
if test -n "$ac_tool_prefix"; then
 
5907
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5908
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5910
$as_echo_n "checking for $ac_word... " >&6; }
 
5911
if ${ac_cv_prog_RANLIB+:} false; then :
 
5912
  $as_echo_n "(cached) " >&6
 
5913
else
 
5914
  if test -n "$RANLIB"; then
 
5915
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5916
else
 
5917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5918
for as_dir in $PATH
 
5919
do
 
5920
  IFS=$as_save_IFS
 
5921
  test -z "$as_dir" && as_dir=.
 
5922
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5923
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5924
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5925
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5926
    break 2
 
5927
  fi
 
5928
done
 
5929
  done
 
5930
IFS=$as_save_IFS
 
5931
 
 
5932
fi
 
5933
fi
 
5934
RANLIB=$ac_cv_prog_RANLIB
 
5935
if test -n "$RANLIB"; then
 
5936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5937
$as_echo "$RANLIB" >&6; }
 
5938
else
 
5939
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5940
$as_echo "no" >&6; }
 
5941
fi
 
5942
 
 
5943
 
 
5944
fi
 
5945
if test -z "$ac_cv_prog_RANLIB"; then
 
5946
  ac_ct_RANLIB=$RANLIB
 
5947
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5948
set dummy ranlib; ac_word=$2
 
5949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5950
$as_echo_n "checking for $ac_word... " >&6; }
 
5951
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5952
  $as_echo_n "(cached) " >&6
 
5953
else
 
5954
  if test -n "$ac_ct_RANLIB"; then
 
5955
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5956
else
 
5957
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5958
for as_dir in $PATH
 
5959
do
 
5960
  IFS=$as_save_IFS
 
5961
  test -z "$as_dir" && as_dir=.
 
5962
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5963
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5964
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5965
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5966
    break 2
 
5967
  fi
 
5968
done
 
5969
  done
 
5970
IFS=$as_save_IFS
 
5971
 
 
5972
fi
 
5973
fi
 
5974
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5975
if test -n "$ac_ct_RANLIB"; then
 
5976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5977
$as_echo "$ac_ct_RANLIB" >&6; }
 
5978
else
 
5979
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5980
$as_echo "no" >&6; }
 
5981
fi
 
5982
 
 
5983
  if test "x$ac_ct_RANLIB" = x; then
 
5984
    RANLIB=":"
 
5985
  else
 
5986
    case $cross_compiling:$ac_tool_warned in
 
5987
yes:)
 
5988
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5989
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5990
ac_tool_warned=yes ;;
 
5991
esac
 
5992
    RANLIB=$ac_ct_RANLIB
 
5993
  fi
 
5994
else
 
5995
  RANLIB="$ac_cv_prog_RANLIB"
 
5996
fi
 
5997
 
 
5998
test -z "$RANLIB" && RANLIB=:
 
5999
 
 
6000
 
 
6001
 
 
6002
 
 
6003
 
 
6004
 
 
6005
# Determine commands to create old-style static archives.
 
6006
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6007
old_postinstall_cmds='chmod 644 $oldlib'
 
6008
old_postuninstall_cmds=
 
6009
 
 
6010
if test -n "$RANLIB"; then
 
6011
  case $host_os in
 
6012
  openbsd*)
 
6013
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6014
    ;;
 
6015
  *)
 
6016
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6017
    ;;
 
6018
  esac
 
6019
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6020
fi
 
6021
 
 
6022
case $host_os in
 
6023
  darwin*)
 
6024
    lock_old_archive_extraction=yes ;;
 
6025
  *)
 
6026
    lock_old_archive_extraction=no ;;
 
6027
esac
 
6028
 
 
6029
 
 
6030
 
 
6031
 
 
6032
 
 
6033
 
 
6034
 
 
6035
 
 
6036
 
 
6037
 
 
6038
 
 
6039
 
 
6040
 
 
6041
 
 
6042
 
 
6043
 
 
6044
 
 
6045
 
 
6046
 
 
6047
 
 
6048
 
 
6049
 
 
6050
 
 
6051
 
 
6052
 
 
6053
 
 
6054
 
 
6055
 
 
6056
 
 
6057
 
 
6058
 
 
6059
 
 
6060
 
 
6061
 
 
6062
 
 
6063
 
 
6064
 
 
6065
 
 
6066
 
 
6067
# If no C compiler was specified, use CC.
 
6068
LTCC=${LTCC-"$CC"}
 
6069
 
 
6070
# If no C compiler flags were specified, use CFLAGS.
 
6071
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6072
 
 
6073
# Allow CC to be a program name with arguments.
 
6074
compiler=$CC
 
6075
 
 
6076
 
 
6077
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6079
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6080
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6081
  $as_echo_n "(cached) " >&6
 
6082
else
 
6083
 
 
6084
# These are sane defaults that work on at least a few old systems.
 
6085
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6086
 
 
6087
# Character class describing NM global symbol codes.
 
6088
symcode='[BCDEGRST]'
 
6089
 
 
6090
# Regexp to match symbols that can be accessed directly from C.
 
6091
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6092
 
 
6093
# Define system-specific variables.
 
6094
case $host_os in
 
6095
aix*)
 
6096
  symcode='[BCDT]'
 
6097
  ;;
 
6098
cygwin* | mingw* | pw32* | cegcc*)
 
6099
  symcode='[ABCDGISTW]'
 
6100
  ;;
 
6101
hpux*)
 
6102
  if test "$host_cpu" = ia64; then
 
6103
    symcode='[ABCDEGRST]'
 
6104
  fi
 
6105
  ;;
 
6106
irix* | nonstopux*)
 
6107
  symcode='[BCDEGRST]'
 
6108
  ;;
 
6109
osf*)
 
6110
  symcode='[BCDEGQRST]'
 
6111
  ;;
 
6112
solaris*)
 
6113
  symcode='[BDRT]'
 
6114
  ;;
 
6115
sco3.2v5*)
 
6116
  symcode='[DT]'
 
6117
  ;;
 
6118
sysv4.2uw2*)
 
6119
  symcode='[DT]'
 
6120
  ;;
 
6121
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6122
  symcode='[ABDT]'
 
6123
  ;;
 
6124
sysv4)
 
6125
  symcode='[DFNSTU]'
 
6126
  ;;
 
6127
esac
 
6128
 
 
6129
# If we're using GNU nm, then use its standard symbol codes.
 
6130
case `$NM -V 2>&1` in
 
6131
*GNU* | *'with BFD'*)
 
6132
  symcode='[ABCDGIRSTW]' ;;
 
6133
esac
 
6134
 
 
6135
# Transform an extracted symbol line into a proper C declaration.
 
6136
# Some systems (esp. on ia64) link data and code symbols differently,
 
6137
# so use this general approach.
 
6138
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6139
 
 
6140
# Transform an extracted symbol line into symbol name and symbol address
 
6141
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6142
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'"
 
6143
 
 
6144
# Handle CRLF in mingw tool chain
 
6145
opt_cr=
 
6146
case $build_os in
 
6147
mingw*)
 
6148
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6149
  ;;
 
6150
esac
 
6151
 
 
6152
# Try without a prefix underscore, then with it.
 
6153
for ac_symprfx in "" "_"; do
 
6154
 
 
6155
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6156
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6157
 
 
6158
  # Write the raw and C identifiers.
 
6159
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6160
    # Fake it for dumpbin and say T for any non-static function
 
6161
    # and D for any global variable.
 
6162
    # Also find C++ and __fastcall symbols from MSVC++,
 
6163
    # which start with @ or ?.
 
6164
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6165
"     {last_section=section; section=\$ 3};"\
 
6166
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6167
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6168
"     \$ 0!~/External *\|/{next};"\
 
6169
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6170
"     {if(hide[section]) next};"\
 
6171
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6172
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6173
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6174
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6175
"     ' prfx=^$ac_symprfx"
 
6176
  else
 
6177
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6178
  fi
 
6179
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6180
 
 
6181
  # Check to see that the pipe works correctly.
 
6182
  pipe_works=no
 
6183
 
 
6184
  rm -f conftest*
 
6185
  cat > conftest.$ac_ext <<_LT_EOF
 
6186
#ifdef __cplusplus
 
6187
extern "C" {
 
6188
#endif
 
6189
char nm_test_var;
 
6190
void nm_test_func(void);
 
6191
void nm_test_func(void){}
 
6192
#ifdef __cplusplus
 
6193
}
 
6194
#endif
 
6195
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6196
_LT_EOF
 
6197
 
 
6198
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6199
  (eval $ac_compile) 2>&5
 
6200
  ac_status=$?
 
6201
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6202
  test $ac_status = 0; }; then
 
6203
    # Now try to grab the symbols.
 
6204
    nlist=conftest.nm
 
6205
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6206
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6207
  ac_status=$?
 
6208
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6209
  test $ac_status = 0; } && test -s "$nlist"; then
 
6210
      # Try sorting and uniquifying the output.
 
6211
      if sort "$nlist" | uniq > "$nlist"T; then
 
6212
        mv -f "$nlist"T "$nlist"
 
6213
      else
 
6214
        rm -f "$nlist"T
 
6215
      fi
 
6216
 
 
6217
      # Make sure that we snagged all the symbols we need.
 
6218
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6219
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6220
          cat <<_LT_EOF > conftest.$ac_ext
 
6221
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6222
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6223
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6224
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6225
# define LT_DLSYM_CONST
 
6226
#elif defined(__osf__)
 
6227
/* This system does not cope well with relocations in const data.  */
 
6228
# define LT_DLSYM_CONST
 
6229
#else
 
6230
# define LT_DLSYM_CONST const
 
6231
#endif
 
6232
 
 
6233
#ifdef __cplusplus
 
6234
extern "C" {
 
6235
#endif
 
6236
 
 
6237
_LT_EOF
 
6238
          # Now generate the symbol file.
 
6239
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6240
 
 
6241
          cat <<_LT_EOF >> conftest.$ac_ext
 
6242
 
 
6243
/* The mapping between symbol names and symbols.  */
 
6244
LT_DLSYM_CONST struct {
 
6245
  const char *name;
 
6246
  void       *address;
 
6247
}
 
6248
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6249
{
 
6250
  { "@PROGRAM@", (void *) 0 },
 
6251
_LT_EOF
 
6252
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6253
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6254
  {0, (void *) 0}
 
6255
};
 
6256
 
 
6257
/* This works around a problem in FreeBSD linker */
 
6258
#ifdef FREEBSD_WORKAROUND
 
6259
static const void *lt_preloaded_setup() {
 
6260
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6261
}
 
6262
#endif
 
6263
 
 
6264
#ifdef __cplusplus
 
6265
}
 
6266
#endif
 
6267
_LT_EOF
 
6268
          # Now try linking the two files.
 
6269
          mv conftest.$ac_objext conftstm.$ac_objext
 
6270
          lt_globsym_save_LIBS=$LIBS
 
6271
          lt_globsym_save_CFLAGS=$CFLAGS
 
6272
          LIBS="conftstm.$ac_objext"
 
6273
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6274
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6275
  (eval $ac_link) 2>&5
 
6276
  ac_status=$?
 
6277
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6278
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6279
            pipe_works=yes
 
6280
          fi
 
6281
          LIBS=$lt_globsym_save_LIBS
 
6282
          CFLAGS=$lt_globsym_save_CFLAGS
 
6283
        else
 
6284
          echo "cannot find nm_test_func in $nlist" >&5
 
6285
        fi
 
6286
      else
 
6287
        echo "cannot find nm_test_var in $nlist" >&5
 
6288
      fi
 
6289
    else
 
6290
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6291
    fi
 
6292
  else
 
6293
    echo "$progname: failed program was:" >&5
 
6294
    cat conftest.$ac_ext >&5
 
6295
  fi
 
6296
  rm -rf conftest* conftst*
 
6297
 
 
6298
  # Do not use the global_symbol_pipe unless it works.
 
6299
  if test "$pipe_works" = yes; then
 
6300
    break
 
6301
  else
 
6302
    lt_cv_sys_global_symbol_pipe=
 
6303
  fi
 
6304
done
 
6305
 
 
6306
fi
 
6307
 
 
6308
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6309
  lt_cv_sys_global_symbol_to_cdecl=
 
6310
fi
 
6311
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6313
$as_echo "failed" >&6; }
 
6314
else
 
6315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6316
$as_echo "ok" >&6; }
 
6317
fi
 
6318
 
 
6319
# Response file support.
 
6320
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6321
  nm_file_list_spec='@'
 
6322
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6323
  nm_file_list_spec='@'
 
6324
fi
 
6325
 
 
6326
 
 
6327
 
 
6328
 
 
6329
 
 
6330
 
 
6331
 
 
6332
 
 
6333
 
 
6334
 
 
6335
 
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
 
6345
 
 
6346
 
 
6347
 
 
6348
 
 
6349
 
 
6350
 
 
6351
 
 
6352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6353
$as_echo_n "checking for sysroot... " >&6; }
 
6354
 
 
6355
# Check whether --with-sysroot was given.
 
6356
if test "${with_sysroot+set}" = set; then :
 
6357
  withval=$with_sysroot;
 
6358
else
 
6359
  with_sysroot=no
 
6360
fi
 
6361
 
 
6362
 
 
6363
lt_sysroot=
 
6364
case ${with_sysroot} in #(
 
6365
 yes)
 
6366
   if test "$GCC" = yes; then
 
6367
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6368
   fi
 
6369
   ;; #(
 
6370
 /*)
 
6371
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6372
   ;; #(
 
6373
 no|'')
 
6374
   ;; #(
 
6375
 *)
 
6376
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6377
$as_echo "${with_sysroot}" >&6; }
 
6378
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6379
   ;;
 
6380
esac
 
6381
 
 
6382
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6383
$as_echo "${lt_sysroot:-no}" >&6; }
 
6384
 
 
6385
 
 
6386
 
 
6387
 
 
6388
 
 
6389
# Check whether --enable-libtool-lock was given.
 
6390
if test "${enable_libtool_lock+set}" = set; then :
 
6391
  enableval=$enable_libtool_lock;
 
6392
fi
 
6393
 
 
6394
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6395
 
 
6396
# Some flags need to be propagated to the compiler or linker for good
 
6397
# libtool support.
 
6398
case $host in
 
6399
ia64-*-hpux*)
 
6400
  # Find out which ABI we are using.
 
6401
  echo 'int i;' > conftest.$ac_ext
 
6402
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6403
  (eval $ac_compile) 2>&5
 
6404
  ac_status=$?
 
6405
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6406
  test $ac_status = 0; }; then
 
6407
    case `/usr/bin/file conftest.$ac_objext` in
 
6408
      *ELF-32*)
 
6409
        HPUX_IA64_MODE="32"
 
6410
        ;;
 
6411
      *ELF-64*)
 
6412
        HPUX_IA64_MODE="64"
 
6413
        ;;
 
6414
    esac
 
6415
  fi
 
6416
  rm -rf conftest*
 
6417
  ;;
 
6418
*-*-irix6*)
 
6419
  # Find out which ABI we are using.
 
6420
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6421
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6422
  (eval $ac_compile) 2>&5
 
6423
  ac_status=$?
 
6424
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6425
  test $ac_status = 0; }; then
 
6426
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6427
      case `/usr/bin/file conftest.$ac_objext` in
 
6428
        *32-bit*)
 
6429
          LD="${LD-ld} -melf32bsmip"
 
6430
          ;;
 
6431
        *N32*)
 
6432
          LD="${LD-ld} -melf32bmipn32"
 
6433
          ;;
 
6434
        *64-bit*)
 
6435
          LD="${LD-ld} -melf64bmip"
 
6436
        ;;
 
6437
      esac
 
6438
    else
 
6439
      case `/usr/bin/file conftest.$ac_objext` in
 
6440
        *32-bit*)
 
6441
          LD="${LD-ld} -32"
 
6442
          ;;
 
6443
        *N32*)
 
6444
          LD="${LD-ld} -n32"
 
6445
          ;;
 
6446
        *64-bit*)
 
6447
          LD="${LD-ld} -64"
 
6448
          ;;
 
6449
      esac
 
6450
    fi
 
6451
  fi
 
6452
  rm -rf conftest*
 
6453
  ;;
 
6454
 
 
6455
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 
6456
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6457
  # Find out which ABI we are using.
 
6458
  echo 'int i;' > conftest.$ac_ext
 
6459
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6460
  (eval $ac_compile) 2>&5
 
6461
  ac_status=$?
 
6462
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6463
  test $ac_status = 0; }; then
 
6464
    case `/usr/bin/file conftest.o` in
 
6465
      *32-bit*)
 
6466
        case $host in
 
6467
          x86_64-*kfreebsd*-gnu)
 
6468
            LD="${LD-ld} -m elf_i386_fbsd"
 
6469
            ;;
 
6470
          x86_64-*linux*)
 
6471
            case `/usr/bin/file conftest.o` in
 
6472
              *x86-64*)
 
6473
                LD="${LD-ld} -m elf32_x86_64"
 
6474
                ;;
 
6475
              *)
 
6476
                LD="${LD-ld} -m elf_i386"
 
6477
                ;;
 
6478
            esac
 
6479
            ;;
 
6480
          powerpc64le-*)
 
6481
            LD="${LD-ld} -m elf32lppclinux"
 
6482
            ;;
 
6483
          powerpc64-*)
 
6484
            LD="${LD-ld} -m elf32ppclinux"
 
6485
            ;;
 
6486
          s390x-*linux*)
 
6487
            LD="${LD-ld} -m elf_s390"
 
6488
            ;;
 
6489
          sparc64-*linux*)
 
6490
            LD="${LD-ld} -m elf32_sparc"
 
6491
            ;;
 
6492
        esac
 
6493
        ;;
 
6494
      *64-bit*)
 
6495
        case $host in
 
6496
          x86_64-*kfreebsd*-gnu)
 
6497
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6498
            ;;
 
6499
          x86_64-*linux*)
 
6500
            LD="${LD-ld} -m elf_x86_64"
 
6501
            ;;
 
6502
          powerpcle-*)
 
6503
            LD="${LD-ld} -m elf64lppc"
 
6504
            ;;
 
6505
          powerpc-*)
 
6506
            LD="${LD-ld} -m elf64ppc"
 
6507
            ;;
 
6508
          s390*-*linux*|s390*-*tpf*)
 
6509
            LD="${LD-ld} -m elf64_s390"
 
6510
            ;;
 
6511
          sparc*-*linux*)
 
6512
            LD="${LD-ld} -m elf64_sparc"
 
6513
            ;;
 
6514
        esac
 
6515
        ;;
 
6516
    esac
 
6517
  fi
 
6518
  rm -rf conftest*
 
6519
  ;;
 
6520
 
 
6521
*-*-sco3.2v5*)
 
6522
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6523
  SAVE_CFLAGS="$CFLAGS"
 
6524
  CFLAGS="$CFLAGS -belf"
 
6525
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6526
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6527
if ${lt_cv_cc_needs_belf+:} false; then :
 
6528
  $as_echo_n "(cached) " >&6
 
6529
else
 
6530
  ac_ext=c
 
6531
ac_cpp='$CPP $CPPFLAGS'
 
6532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6535
 
 
6536
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6537
/* end confdefs.h.  */
 
6538
 
 
6539
int
 
6540
main ()
 
6541
{
 
6542
 
 
6543
  ;
 
6544
  return 0;
 
6545
}
 
6546
_ACEOF
 
6547
if ac_fn_c_try_link "$LINENO"; then :
 
6548
  lt_cv_cc_needs_belf=yes
 
6549
else
 
6550
  lt_cv_cc_needs_belf=no
 
6551
fi
 
6552
rm -f core conftest.err conftest.$ac_objext \
 
6553
    conftest$ac_exeext conftest.$ac_ext
 
6554
     ac_ext=c
 
6555
ac_cpp='$CPP $CPPFLAGS'
 
6556
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6557
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6558
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6559
 
 
6560
fi
 
6561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6562
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6563
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6564
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6565
    CFLAGS="$SAVE_CFLAGS"
 
6566
  fi
 
6567
  ;;
 
6568
*-*solaris*)
 
6569
  # Find out which ABI we are using.
 
6570
  echo 'int i;' > conftest.$ac_ext
 
6571
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6572
  (eval $ac_compile) 2>&5
 
6573
  ac_status=$?
 
6574
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6575
  test $ac_status = 0; }; then
 
6576
    case `/usr/bin/file conftest.o` in
 
6577
    *64-bit*)
 
6578
      case $lt_cv_prog_gnu_ld in
 
6579
      yes*)
 
6580
        case $host in
 
6581
        i?86-*-solaris*)
 
6582
          LD="${LD-ld} -m elf_x86_64"
 
6583
          ;;
 
6584
        sparc*-*-solaris*)
 
6585
          LD="${LD-ld} -m elf64_sparc"
 
6586
          ;;
 
6587
        esac
 
6588
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6589
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6590
          LD="${LD-ld}_sol2"
 
6591
        fi
 
6592
        ;;
 
6593
      *)
 
6594
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6595
          LD="${LD-ld} -64"
 
6596
        fi
 
6597
        ;;
 
6598
      esac
 
6599
      ;;
 
6600
    esac
 
6601
  fi
 
6602
  rm -rf conftest*
 
6603
  ;;
 
6604
esac
 
6605
 
 
6606
need_locks="$enable_libtool_lock"
 
6607
 
 
6608
if test -n "$ac_tool_prefix"; then
 
6609
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6610
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6612
$as_echo_n "checking for $ac_word... " >&6; }
 
6613
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6614
  $as_echo_n "(cached) " >&6
 
6615
else
 
6616
  if test -n "$MANIFEST_TOOL"; then
 
6617
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6618
else
 
6619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6620
for as_dir in $PATH
 
6621
do
 
6622
  IFS=$as_save_IFS
 
6623
  test -z "$as_dir" && as_dir=.
 
6624
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6625
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6626
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6627
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6628
    break 2
 
6629
  fi
 
6630
done
 
6631
  done
 
6632
IFS=$as_save_IFS
 
6633
 
 
6634
fi
 
6635
fi
 
6636
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6637
if test -n "$MANIFEST_TOOL"; then
 
6638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6639
$as_echo "$MANIFEST_TOOL" >&6; }
 
6640
else
 
6641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6642
$as_echo "no" >&6; }
 
6643
fi
 
6644
 
 
6645
 
 
6646
fi
 
6647
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6648
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6649
  # Extract the first word of "mt", so it can be a program name with args.
 
6650
set dummy mt; ac_word=$2
 
6651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6652
$as_echo_n "checking for $ac_word... " >&6; }
 
6653
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6654
  $as_echo_n "(cached) " >&6
 
6655
else
 
6656
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6657
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6658
else
 
6659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6660
for as_dir in $PATH
 
6661
do
 
6662
  IFS=$as_save_IFS
 
6663
  test -z "$as_dir" && as_dir=.
 
6664
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6665
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6666
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6667
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6668
    break 2
 
6669
  fi
 
6670
done
 
6671
  done
 
6672
IFS=$as_save_IFS
 
6673
 
 
6674
fi
 
6675
fi
 
6676
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6677
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6679
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6680
else
 
6681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6682
$as_echo "no" >&6; }
 
6683
fi
 
6684
 
 
6685
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6686
    MANIFEST_TOOL=":"
 
6687
  else
 
6688
    case $cross_compiling:$ac_tool_warned in
 
6689
yes:)
 
6690
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6692
ac_tool_warned=yes ;;
 
6693
esac
 
6694
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6695
  fi
 
6696
else
 
6697
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6698
fi
 
6699
 
 
6700
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6702
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6703
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6704
  $as_echo_n "(cached) " >&6
 
6705
else
 
6706
  lt_cv_path_mainfest_tool=no
 
6707
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6708
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6709
  cat conftest.err >&5
 
6710
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6711
    lt_cv_path_mainfest_tool=yes
 
6712
  fi
 
6713
  rm -f conftest*
 
6714
fi
 
6715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6716
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6717
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6718
  MANIFEST_TOOL=:
 
6719
fi
 
6720
 
 
6721
 
 
6722
 
 
6723
 
 
6724
 
 
6725
 
 
6726
  case $host_os in
 
6727
    rhapsody* | darwin*)
 
6728
    if test -n "$ac_tool_prefix"; then
 
6729
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6730
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6732
$as_echo_n "checking for $ac_word... " >&6; }
 
6733
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6734
  $as_echo_n "(cached) " >&6
 
6735
else
 
6736
  if test -n "$DSYMUTIL"; then
 
6737
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6738
else
 
6739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6740
for as_dir in $PATH
 
6741
do
 
6742
  IFS=$as_save_IFS
 
6743
  test -z "$as_dir" && as_dir=.
 
6744
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6745
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6746
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6747
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6748
    break 2
 
6749
  fi
 
6750
done
 
6751
  done
 
6752
IFS=$as_save_IFS
 
6753
 
 
6754
fi
 
6755
fi
 
6756
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6757
if test -n "$DSYMUTIL"; then
 
6758
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6759
$as_echo "$DSYMUTIL" >&6; }
 
6760
else
 
6761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6762
$as_echo "no" >&6; }
 
6763
fi
 
6764
 
 
6765
 
 
6766
fi
 
6767
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6768
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6769
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6770
set dummy dsymutil; ac_word=$2
 
6771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6772
$as_echo_n "checking for $ac_word... " >&6; }
 
6773
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6774
  $as_echo_n "(cached) " >&6
 
6775
else
 
6776
  if test -n "$ac_ct_DSYMUTIL"; then
 
6777
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6778
else
 
6779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6780
for as_dir in $PATH
 
6781
do
 
6782
  IFS=$as_save_IFS
 
6783
  test -z "$as_dir" && as_dir=.
 
6784
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6785
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6786
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6787
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6788
    break 2
 
6789
  fi
 
6790
done
 
6791
  done
 
6792
IFS=$as_save_IFS
 
6793
 
 
6794
fi
 
6795
fi
 
6796
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6797
if test -n "$ac_ct_DSYMUTIL"; then
 
6798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6799
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6800
else
 
6801
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6802
$as_echo "no" >&6; }
 
6803
fi
 
6804
 
 
6805
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6806
    DSYMUTIL=":"
 
6807
  else
 
6808
    case $cross_compiling:$ac_tool_warned in
 
6809
yes:)
 
6810
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6811
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6812
ac_tool_warned=yes ;;
 
6813
esac
 
6814
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6815
  fi
 
6816
else
 
6817
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6818
fi
 
6819
 
 
6820
    if test -n "$ac_tool_prefix"; then
 
6821
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6822
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6824
$as_echo_n "checking for $ac_word... " >&6; }
 
6825
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6826
  $as_echo_n "(cached) " >&6
 
6827
else
 
6828
  if test -n "$NMEDIT"; then
 
6829
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6830
else
 
6831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6832
for as_dir in $PATH
 
6833
do
 
6834
  IFS=$as_save_IFS
 
6835
  test -z "$as_dir" && as_dir=.
 
6836
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6837
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6838
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6839
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6840
    break 2
 
6841
  fi
 
6842
done
 
6843
  done
 
6844
IFS=$as_save_IFS
 
6845
 
 
6846
fi
 
6847
fi
 
6848
NMEDIT=$ac_cv_prog_NMEDIT
 
6849
if test -n "$NMEDIT"; then
 
6850
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6851
$as_echo "$NMEDIT" >&6; }
 
6852
else
 
6853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6854
$as_echo "no" >&6; }
 
6855
fi
 
6856
 
 
6857
 
 
6858
fi
 
6859
if test -z "$ac_cv_prog_NMEDIT"; then
 
6860
  ac_ct_NMEDIT=$NMEDIT
 
6861
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6862
set dummy nmedit; ac_word=$2
 
6863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6864
$as_echo_n "checking for $ac_word... " >&6; }
 
6865
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6866
  $as_echo_n "(cached) " >&6
 
6867
else
 
6868
  if test -n "$ac_ct_NMEDIT"; then
 
6869
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6870
else
 
6871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6872
for as_dir in $PATH
 
6873
do
 
6874
  IFS=$as_save_IFS
 
6875
  test -z "$as_dir" && as_dir=.
 
6876
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6877
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6878
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6879
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6880
    break 2
 
6881
  fi
 
6882
done
 
6883
  done
 
6884
IFS=$as_save_IFS
 
6885
 
 
6886
fi
 
6887
fi
 
6888
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6889
if test -n "$ac_ct_NMEDIT"; then
 
6890
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6891
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6892
else
 
6893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6894
$as_echo "no" >&6; }
 
6895
fi
 
6896
 
 
6897
  if test "x$ac_ct_NMEDIT" = x; then
 
6898
    NMEDIT=":"
 
6899
  else
 
6900
    case $cross_compiling:$ac_tool_warned in
 
6901
yes:)
 
6902
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6903
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6904
ac_tool_warned=yes ;;
 
6905
esac
 
6906
    NMEDIT=$ac_ct_NMEDIT
 
6907
  fi
 
6908
else
 
6909
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6910
fi
 
6911
 
 
6912
    if test -n "$ac_tool_prefix"; then
 
6913
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6914
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6916
$as_echo_n "checking for $ac_word... " >&6; }
 
6917
if ${ac_cv_prog_LIPO+:} false; then :
 
6918
  $as_echo_n "(cached) " >&6
 
6919
else
 
6920
  if test -n "$LIPO"; then
 
6921
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6922
else
 
6923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6924
for as_dir in $PATH
 
6925
do
 
6926
  IFS=$as_save_IFS
 
6927
  test -z "$as_dir" && as_dir=.
 
6928
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6929
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6930
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6931
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6932
    break 2
 
6933
  fi
 
6934
done
 
6935
  done
 
6936
IFS=$as_save_IFS
 
6937
 
 
6938
fi
 
6939
fi
 
6940
LIPO=$ac_cv_prog_LIPO
 
6941
if test -n "$LIPO"; then
 
6942
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6943
$as_echo "$LIPO" >&6; }
 
6944
else
 
6945
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6946
$as_echo "no" >&6; }
 
6947
fi
 
6948
 
 
6949
 
 
6950
fi
 
6951
if test -z "$ac_cv_prog_LIPO"; then
 
6952
  ac_ct_LIPO=$LIPO
 
6953
  # Extract the first word of "lipo", so it can be a program name with args.
 
6954
set dummy lipo; ac_word=$2
 
6955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6956
$as_echo_n "checking for $ac_word... " >&6; }
 
6957
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
6958
  $as_echo_n "(cached) " >&6
 
6959
else
 
6960
  if test -n "$ac_ct_LIPO"; then
 
6961
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6962
else
 
6963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6964
for as_dir in $PATH
 
6965
do
 
6966
  IFS=$as_save_IFS
 
6967
  test -z "$as_dir" && as_dir=.
 
6968
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6969
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6970
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6972
    break 2
 
6973
  fi
 
6974
done
 
6975
  done
 
6976
IFS=$as_save_IFS
 
6977
 
 
6978
fi
 
6979
fi
 
6980
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6981
if test -n "$ac_ct_LIPO"; then
 
6982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6983
$as_echo "$ac_ct_LIPO" >&6; }
 
6984
else
 
6985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6986
$as_echo "no" >&6; }
 
6987
fi
 
6988
 
 
6989
  if test "x$ac_ct_LIPO" = x; then
 
6990
    LIPO=":"
 
6991
  else
 
6992
    case $cross_compiling:$ac_tool_warned in
 
6993
yes:)
 
6994
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6995
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6996
ac_tool_warned=yes ;;
 
6997
esac
 
6998
    LIPO=$ac_ct_LIPO
 
6999
  fi
 
7000
else
 
7001
  LIPO="$ac_cv_prog_LIPO"
 
7002
fi
 
7003
 
 
7004
    if test -n "$ac_tool_prefix"; then
 
7005
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7006
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7008
$as_echo_n "checking for $ac_word... " >&6; }
 
7009
if ${ac_cv_prog_OTOOL+:} false; then :
 
7010
  $as_echo_n "(cached) " >&6
 
7011
else
 
7012
  if test -n "$OTOOL"; then
 
7013
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7014
else
 
7015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7016
for as_dir in $PATH
 
7017
do
 
7018
  IFS=$as_save_IFS
 
7019
  test -z "$as_dir" && as_dir=.
 
7020
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7021
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7022
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7023
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7024
    break 2
 
7025
  fi
 
7026
done
 
7027
  done
 
7028
IFS=$as_save_IFS
 
7029
 
 
7030
fi
 
7031
fi
 
7032
OTOOL=$ac_cv_prog_OTOOL
 
7033
if test -n "$OTOOL"; then
 
7034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7035
$as_echo "$OTOOL" >&6; }
 
7036
else
 
7037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7038
$as_echo "no" >&6; }
 
7039
fi
 
7040
 
 
7041
 
 
7042
fi
 
7043
if test -z "$ac_cv_prog_OTOOL"; then
 
7044
  ac_ct_OTOOL=$OTOOL
 
7045
  # Extract the first word of "otool", so it can be a program name with args.
 
7046
set dummy otool; ac_word=$2
 
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7048
$as_echo_n "checking for $ac_word... " >&6; }
 
7049
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7050
  $as_echo_n "(cached) " >&6
 
7051
else
 
7052
  if test -n "$ac_ct_OTOOL"; then
 
7053
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7054
else
 
7055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7056
for as_dir in $PATH
 
7057
do
 
7058
  IFS=$as_save_IFS
 
7059
  test -z "$as_dir" && as_dir=.
 
7060
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7061
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7062
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7063
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7064
    break 2
 
7065
  fi
 
7066
done
 
7067
  done
 
7068
IFS=$as_save_IFS
 
7069
 
 
7070
fi
 
7071
fi
 
7072
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7073
if test -n "$ac_ct_OTOOL"; then
 
7074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7075
$as_echo "$ac_ct_OTOOL" >&6; }
 
7076
else
 
7077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7078
$as_echo "no" >&6; }
 
7079
fi
 
7080
 
 
7081
  if test "x$ac_ct_OTOOL" = x; then
 
7082
    OTOOL=":"
 
7083
  else
 
7084
    case $cross_compiling:$ac_tool_warned in
 
7085
yes:)
 
7086
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7087
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7088
ac_tool_warned=yes ;;
 
7089
esac
 
7090
    OTOOL=$ac_ct_OTOOL
 
7091
  fi
 
7092
else
 
7093
  OTOOL="$ac_cv_prog_OTOOL"
 
7094
fi
 
7095
 
 
7096
    if test -n "$ac_tool_prefix"; then
 
7097
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7098
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7100
$as_echo_n "checking for $ac_word... " >&6; }
 
7101
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7102
  $as_echo_n "(cached) " >&6
 
7103
else
 
7104
  if test -n "$OTOOL64"; then
 
7105
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7106
else
 
7107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7108
for as_dir in $PATH
 
7109
do
 
7110
  IFS=$as_save_IFS
 
7111
  test -z "$as_dir" && as_dir=.
 
7112
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7113
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7114
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7115
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7116
    break 2
 
7117
  fi
 
7118
done
 
7119
  done
 
7120
IFS=$as_save_IFS
 
7121
 
 
7122
fi
 
7123
fi
 
7124
OTOOL64=$ac_cv_prog_OTOOL64
 
7125
if test -n "$OTOOL64"; then
 
7126
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7127
$as_echo "$OTOOL64" >&6; }
 
7128
else
 
7129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7130
$as_echo "no" >&6; }
 
7131
fi
 
7132
 
 
7133
 
 
7134
fi
 
7135
if test -z "$ac_cv_prog_OTOOL64"; then
 
7136
  ac_ct_OTOOL64=$OTOOL64
 
7137
  # Extract the first word of "otool64", so it can be a program name with args.
 
7138
set dummy otool64; ac_word=$2
 
7139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7140
$as_echo_n "checking for $ac_word... " >&6; }
 
7141
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7142
  $as_echo_n "(cached) " >&6
 
7143
else
 
7144
  if test -n "$ac_ct_OTOOL64"; then
 
7145
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7146
else
 
7147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7148
for as_dir in $PATH
 
7149
do
 
7150
  IFS=$as_save_IFS
 
7151
  test -z "$as_dir" && as_dir=.
 
7152
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7153
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7154
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7155
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7156
    break 2
 
7157
  fi
 
7158
done
 
7159
  done
 
7160
IFS=$as_save_IFS
 
7161
 
 
7162
fi
 
7163
fi
 
7164
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7165
if test -n "$ac_ct_OTOOL64"; then
 
7166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7167
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7168
else
 
7169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7170
$as_echo "no" >&6; }
 
7171
fi
 
7172
 
 
7173
  if test "x$ac_ct_OTOOL64" = x; then
 
7174
    OTOOL64=":"
 
7175
  else
 
7176
    case $cross_compiling:$ac_tool_warned in
 
7177
yes:)
 
7178
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7179
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7180
ac_tool_warned=yes ;;
 
7181
esac
 
7182
    OTOOL64=$ac_ct_OTOOL64
 
7183
  fi
 
7184
else
 
7185
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7186
fi
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
 
 
7207
 
 
7208
 
 
7209
 
 
7210
 
 
7211
 
 
7212
 
 
7213
 
 
7214
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7215
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7216
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7217
  $as_echo_n "(cached) " >&6
 
7218
else
 
7219
  lt_cv_apple_cc_single_mod=no
 
7220
      if test -z "${LT_MULTI_MODULE}"; then
 
7221
        # By default we will add the -single_module flag. You can override
 
7222
        # by either setting the environment variable LT_MULTI_MODULE
 
7223
        # non-empty at configure time, or by adding -multi_module to the
 
7224
        # link flags.
 
7225
        rm -rf libconftest.dylib*
 
7226
        echo "int foo(void){return 1;}" > conftest.c
 
7227
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7228
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7229
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7230
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7231
        _lt_result=$?
 
7232
        # If there is a non-empty error log, and "single_module"
 
7233
        # appears in it, assume the flag caused a linker warning
 
7234
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7235
          cat conftest.err >&5
 
7236
        # Otherwise, if the output was created with a 0 exit code from
 
7237
        # the compiler, it worked.
 
7238
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7239
          lt_cv_apple_cc_single_mod=yes
 
7240
        else
 
7241
          cat conftest.err >&5
 
7242
        fi
 
7243
        rm -rf libconftest.dylib*
 
7244
        rm -f conftest.*
 
7245
      fi
 
7246
fi
 
7247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7248
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7249
 
 
7250
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7251
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7252
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7253
  $as_echo_n "(cached) " >&6
 
7254
else
 
7255
  lt_cv_ld_exported_symbols_list=no
 
7256
      save_LDFLAGS=$LDFLAGS
 
7257
      echo "_main" > conftest.sym
 
7258
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7259
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7260
/* end confdefs.h.  */
 
7261
 
 
7262
int
 
7263
main ()
 
7264
{
 
7265
 
 
7266
  ;
 
7267
  return 0;
 
7268
}
 
7269
_ACEOF
 
7270
if ac_fn_c_try_link "$LINENO"; then :
 
7271
  lt_cv_ld_exported_symbols_list=yes
 
7272
else
 
7273
  lt_cv_ld_exported_symbols_list=no
 
7274
fi
 
7275
rm -f core conftest.err conftest.$ac_objext \
 
7276
    conftest$ac_exeext conftest.$ac_ext
 
7277
        LDFLAGS="$save_LDFLAGS"
 
7278
 
 
7279
fi
 
7280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7281
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7282
 
 
7283
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7284
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7285
if ${lt_cv_ld_force_load+:} false; then :
 
7286
  $as_echo_n "(cached) " >&6
 
7287
else
 
7288
  lt_cv_ld_force_load=no
 
7289
      cat > conftest.c << _LT_EOF
 
7290
int forced_loaded() { return 2;}
 
7291
_LT_EOF
 
7292
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7293
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7294
      echo "$AR cru libconftest.a conftest.o" >&5
 
7295
      $AR cru libconftest.a conftest.o 2>&5
 
7296
      echo "$RANLIB libconftest.a" >&5
 
7297
      $RANLIB libconftest.a 2>&5
 
7298
      cat > conftest.c << _LT_EOF
 
7299
int main() { return 0;}
 
7300
_LT_EOF
 
7301
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7302
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7303
      _lt_result=$?
 
7304
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7305
        cat conftest.err >&5
 
7306
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7307
        lt_cv_ld_force_load=yes
 
7308
      else
 
7309
        cat conftest.err >&5
 
7310
      fi
 
7311
        rm -f conftest.err libconftest.a conftest conftest.c
 
7312
        rm -rf conftest.dSYM
 
7313
 
 
7314
fi
 
7315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7316
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7317
    case $host_os in
 
7318
    rhapsody* | darwin1.[012])
 
7319
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7320
    darwin1.*)
 
7321
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7322
    darwin*) # darwin 5.x on
 
7323
      # if running on 10.5 or later, the deployment target defaults
 
7324
      # to the OS version, if on x86, and 10.4, the deployment
 
7325
      # target defaults to 10.4. Don't you love it?
 
7326
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7327
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7328
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7329
        10.[012]*)
 
7330
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7331
        10.*)
 
7332
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7333
      esac
 
7334
    ;;
 
7335
  esac
 
7336
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7337
      _lt_dar_single_mod='$single_module'
 
7338
    fi
 
7339
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7340
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7341
    else
 
7342
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7343
    fi
 
7344
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7345
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7346
    else
 
7347
      _lt_dsymutil=
 
7348
    fi
 
7349
    ;;
 
7350
  esac
 
7351
 
 
7352
ac_ext=c
 
7353
ac_cpp='$CPP $CPPFLAGS'
 
7354
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7355
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7356
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7358
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7359
# On Suns, sometimes $CPP names a directory.
 
7360
if test -n "$CPP" && test -d "$CPP"; then
 
7361
  CPP=
 
7362
fi
 
7363
if test -z "$CPP"; then
 
7364
  if ${ac_cv_prog_CPP+:} false; then :
 
7365
  $as_echo_n "(cached) " >&6
 
7366
else
 
7367
      # Double quotes because CPP needs to be expanded
 
7368
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7369
    do
 
7370
      ac_preproc_ok=false
 
7371
for ac_c_preproc_warn_flag in '' yes
 
7372
do
 
7373
  # Use a header file that comes with gcc, so configuring glibc
 
7374
  # with a fresh cross-compiler works.
 
7375
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7376
  # <limits.h> exists even on freestanding compilers.
 
7377
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7378
  # not just through cpp. "Syntax error" is here to catch this case.
 
7379
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7380
/* end confdefs.h.  */
 
7381
#ifdef __STDC__
 
7382
# include <limits.h>
 
7383
#else
 
7384
# include <assert.h>
 
7385
#endif
 
7386
                     Syntax error
 
7387
_ACEOF
 
7388
if ac_fn_c_try_cpp "$LINENO"; then :
 
7389
 
 
7390
else
 
7391
  # Broken: fails on valid input.
 
7392
continue
 
7393
fi
 
7394
rm -f conftest.err conftest.i conftest.$ac_ext
 
7395
 
 
7396
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7397
  # can be detected and how.
 
7398
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7399
/* end confdefs.h.  */
 
7400
#include <ac_nonexistent.h>
 
7401
_ACEOF
 
7402
if ac_fn_c_try_cpp "$LINENO"; then :
 
7403
  # Broken: success on invalid input.
 
7404
continue
 
7405
else
 
7406
  # Passes both tests.
 
7407
ac_preproc_ok=:
 
7408
break
 
7409
fi
 
7410
rm -f conftest.err conftest.i conftest.$ac_ext
 
7411
 
 
7412
done
 
7413
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7414
rm -f conftest.i conftest.err conftest.$ac_ext
 
7415
if $ac_preproc_ok; then :
 
7416
  break
 
7417
fi
 
7418
 
 
7419
    done
 
7420
    ac_cv_prog_CPP=$CPP
 
7421
 
 
7422
fi
 
7423
  CPP=$ac_cv_prog_CPP
 
7424
else
 
7425
  ac_cv_prog_CPP=$CPP
 
7426
fi
 
7427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7428
$as_echo "$CPP" >&6; }
 
7429
ac_preproc_ok=false
 
7430
for ac_c_preproc_warn_flag in '' yes
 
7431
do
 
7432
  # Use a header file that comes with gcc, so configuring glibc
 
7433
  # with a fresh cross-compiler works.
 
7434
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7435
  # <limits.h> exists even on freestanding compilers.
 
7436
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7437
  # not just through cpp. "Syntax error" is here to catch this case.
 
7438
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7439
/* end confdefs.h.  */
 
7440
#ifdef __STDC__
 
7441
# include <limits.h>
 
7442
#else
 
7443
# include <assert.h>
 
7444
#endif
 
7445
                     Syntax error
 
7446
_ACEOF
 
7447
if ac_fn_c_try_cpp "$LINENO"; then :
 
7448
 
 
7449
else
 
7450
  # Broken: fails on valid input.
 
7451
continue
 
7452
fi
 
7453
rm -f conftest.err conftest.i conftest.$ac_ext
 
7454
 
 
7455
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7456
  # can be detected and how.
 
7457
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7458
/* end confdefs.h.  */
 
7459
#include <ac_nonexistent.h>
 
7460
_ACEOF
 
7461
if ac_fn_c_try_cpp "$LINENO"; then :
 
7462
  # Broken: success on invalid input.
 
7463
continue
 
7464
else
 
7465
  # Passes both tests.
 
7466
ac_preproc_ok=:
 
7467
break
 
7468
fi
 
7469
rm -f conftest.err conftest.i conftest.$ac_ext
 
7470
 
 
7471
done
 
7472
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7473
rm -f conftest.i conftest.err conftest.$ac_ext
 
7474
if $ac_preproc_ok; then :
 
7475
 
 
7476
else
 
7477
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7478
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7479
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7480
See \`config.log' for more details" "$LINENO" 5; }
 
7481
fi
 
7482
 
 
7483
ac_ext=c
 
7484
ac_cpp='$CPP $CPPFLAGS'
 
7485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7488
 
 
7489
 
 
7490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7491
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7492
if ${ac_cv_header_stdc+:} false; then :
 
7493
  $as_echo_n "(cached) " >&6
 
7494
else
 
7495
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7496
/* end confdefs.h.  */
 
7497
#include <stdlib.h>
 
7498
#include <stdarg.h>
 
7499
#include <string.h>
 
7500
#include <float.h>
 
7501
 
 
7502
int
 
7503
main ()
 
7504
{
 
7505
 
 
7506
  ;
 
7507
  return 0;
 
7508
}
 
7509
_ACEOF
 
7510
if ac_fn_c_try_compile "$LINENO"; then :
 
7511
  ac_cv_header_stdc=yes
 
7512
else
 
7513
  ac_cv_header_stdc=no
 
7514
fi
 
7515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7516
 
 
7517
if test $ac_cv_header_stdc = yes; then
 
7518
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7519
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7520
/* end confdefs.h.  */
 
7521
#include <string.h>
 
7522
 
 
7523
_ACEOF
 
7524
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7525
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7526
 
 
7527
else
 
7528
  ac_cv_header_stdc=no
 
7529
fi
 
7530
rm -f conftest*
 
7531
 
 
7532
fi
 
7533
 
 
7534
if test $ac_cv_header_stdc = yes; then
 
7535
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7537
/* end confdefs.h.  */
 
7538
#include <stdlib.h>
 
7539
 
 
7540
_ACEOF
 
7541
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7542
  $EGREP "free" >/dev/null 2>&1; then :
 
7543
 
 
7544
else
 
7545
  ac_cv_header_stdc=no
 
7546
fi
 
7547
rm -f conftest*
 
7548
 
 
7549
fi
 
7550
 
 
7551
if test $ac_cv_header_stdc = yes; then
 
7552
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7553
  if test "$cross_compiling" = yes; then :
 
7554
  :
 
7555
else
 
7556
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7557
/* end confdefs.h.  */
 
7558
#include <ctype.h>
 
7559
#include <stdlib.h>
 
7560
#if ((' ' & 0x0FF) == 0x020)
 
7561
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7562
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7563
#else
 
7564
# define ISLOWER(c) \
 
7565
                   (('a' <= (c) && (c) <= 'i') \
 
7566
                     || ('j' <= (c) && (c) <= 'r') \
 
7567
                     || ('s' <= (c) && (c) <= 'z'))
 
7568
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7569
#endif
 
7570
 
 
7571
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7572
int
 
7573
main ()
 
7574
{
 
7575
  int i;
 
7576
  for (i = 0; i < 256; i++)
 
7577
    if (XOR (islower (i), ISLOWER (i))
 
7578
        || toupper (i) != TOUPPER (i))
 
7579
      return 2;
 
7580
  return 0;
 
7581
}
 
7582
_ACEOF
 
7583
if ac_fn_c_try_run "$LINENO"; then :
 
7584
 
 
7585
else
 
7586
  ac_cv_header_stdc=no
 
7587
fi
 
7588
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7589
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7590
fi
 
7591
 
 
7592
fi
 
7593
fi
 
7594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7595
$as_echo "$ac_cv_header_stdc" >&6; }
 
7596
if test $ac_cv_header_stdc = yes; then
 
7597
 
 
7598
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7599
 
 
7600
fi
 
7601
 
 
7602
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7603
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7604
                  inttypes.h stdint.h unistd.h
 
7605
do :
 
7606
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7607
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7608
"
 
7609
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7610
  cat >>confdefs.h <<_ACEOF
 
7611
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7612
_ACEOF
 
7613
 
 
7614
fi
 
7615
 
 
7616
done
 
7617
 
 
7618
 
 
7619
for ac_header in dlfcn.h
 
7620
do :
 
7621
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7622
"
 
7623
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7624
  cat >>confdefs.h <<_ACEOF
 
7625
#define HAVE_DLFCN_H 1
 
7626
_ACEOF
 
7627
 
 
7628
fi
 
7629
 
 
7630
done
 
7631
 
 
7632
 
 
7633
 
 
7634
 
 
7635
 
 
7636
# Set options
 
7637
enable_win32_dll=yes
 
7638
 
 
7639
case $host in
 
7640
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
7641
  if test -n "$ac_tool_prefix"; then
 
7642
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
7643
set dummy ${ac_tool_prefix}as; ac_word=$2
 
7644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7645
$as_echo_n "checking for $ac_word... " >&6; }
 
7646
if ${ac_cv_prog_AS+:} false; then :
 
7647
  $as_echo_n "(cached) " >&6
 
7648
else
 
7649
  if test -n "$AS"; then
 
7650
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
7651
else
 
7652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7653
for as_dir in $PATH
 
7654
do
 
7655
  IFS=$as_save_IFS
 
7656
  test -z "$as_dir" && as_dir=.
 
7657
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7658
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7659
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
7660
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7661
    break 2
 
7662
  fi
 
7663
done
 
7664
  done
 
7665
IFS=$as_save_IFS
 
7666
 
 
7667
fi
 
7668
fi
 
7669
AS=$ac_cv_prog_AS
 
7670
if test -n "$AS"; then
 
7671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 
7672
$as_echo "$AS" >&6; }
 
7673
else
 
7674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7675
$as_echo "no" >&6; }
 
7676
fi
 
7677
 
 
7678
 
 
7679
fi
 
7680
if test -z "$ac_cv_prog_AS"; then
 
7681
  ac_ct_AS=$AS
 
7682
  # Extract the first word of "as", so it can be a program name with args.
 
7683
set dummy as; ac_word=$2
 
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7685
$as_echo_n "checking for $ac_word... " >&6; }
 
7686
if ${ac_cv_prog_ac_ct_AS+:} false; then :
 
7687
  $as_echo_n "(cached) " >&6
 
7688
else
 
7689
  if test -n "$ac_ct_AS"; then
 
7690
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
7691
else
 
7692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7693
for as_dir in $PATH
 
7694
do
 
7695
  IFS=$as_save_IFS
 
7696
  test -z "$as_dir" && as_dir=.
 
7697
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7698
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7699
    ac_cv_prog_ac_ct_AS="as"
 
7700
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7701
    break 2
 
7702
  fi
 
7703
done
 
7704
  done
 
7705
IFS=$as_save_IFS
 
7706
 
 
7707
fi
 
7708
fi
 
7709
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
7710
if test -n "$ac_ct_AS"; then
 
7711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 
7712
$as_echo "$ac_ct_AS" >&6; }
 
7713
else
 
7714
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7715
$as_echo "no" >&6; }
 
7716
fi
 
7717
 
 
7718
  if test "x$ac_ct_AS" = x; then
 
7719
    AS="false"
 
7720
  else
 
7721
    case $cross_compiling:$ac_tool_warned in
 
7722
yes:)
 
7723
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7724
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7725
ac_tool_warned=yes ;;
 
7726
esac
 
7727
    AS=$ac_ct_AS
 
7728
  fi
 
7729
else
 
7730
  AS="$ac_cv_prog_AS"
 
7731
fi
 
7732
 
 
7733
  if test -n "$ac_tool_prefix"; then
 
7734
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
7735
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
7736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7737
$as_echo_n "checking for $ac_word... " >&6; }
 
7738
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
7739
  $as_echo_n "(cached) " >&6
 
7740
else
 
7741
  if test -n "$DLLTOOL"; then
 
7742
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
7743
else
 
7744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7745
for as_dir in $PATH
 
7746
do
 
7747
  IFS=$as_save_IFS
 
7748
  test -z "$as_dir" && as_dir=.
 
7749
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7750
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7751
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
7752
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7753
    break 2
 
7754
  fi
 
7755
done
 
7756
  done
 
7757
IFS=$as_save_IFS
 
7758
 
 
7759
fi
 
7760
fi
 
7761
DLLTOOL=$ac_cv_prog_DLLTOOL
 
7762
if test -n "$DLLTOOL"; then
 
7763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
7764
$as_echo "$DLLTOOL" >&6; }
 
7765
else
 
7766
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7767
$as_echo "no" >&6; }
 
7768
fi
 
7769
 
 
7770
 
 
7771
fi
 
7772
if test -z "$ac_cv_prog_DLLTOOL"; then
 
7773
  ac_ct_DLLTOOL=$DLLTOOL
 
7774
  # Extract the first word of "dlltool", so it can be a program name with args.
 
7775
set dummy dlltool; ac_word=$2
 
7776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7777
$as_echo_n "checking for $ac_word... " >&6; }
 
7778
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
7779
  $as_echo_n "(cached) " >&6
 
7780
else
 
7781
  if test -n "$ac_ct_DLLTOOL"; then
 
7782
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
7783
else
 
7784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7785
for as_dir in $PATH
 
7786
do
 
7787
  IFS=$as_save_IFS
 
7788
  test -z "$as_dir" && as_dir=.
 
7789
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7790
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7791
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
7792
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7793
    break 2
 
7794
  fi
 
7795
done
 
7796
  done
 
7797
IFS=$as_save_IFS
 
7798
 
 
7799
fi
 
7800
fi
 
7801
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
7802
if test -n "$ac_ct_DLLTOOL"; then
 
7803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
7804
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
7805
else
 
7806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7807
$as_echo "no" >&6; }
 
7808
fi
 
7809
 
 
7810
  if test "x$ac_ct_DLLTOOL" = x; then
 
7811
    DLLTOOL="false"
 
7812
  else
 
7813
    case $cross_compiling:$ac_tool_warned in
 
7814
yes:)
 
7815
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7816
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7817
ac_tool_warned=yes ;;
 
7818
esac
 
7819
    DLLTOOL=$ac_ct_DLLTOOL
 
7820
  fi
 
7821
else
 
7822
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
7823
fi
 
7824
 
 
7825
  if test -n "$ac_tool_prefix"; then
 
7826
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
7827
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
7828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7829
$as_echo_n "checking for $ac_word... " >&6; }
 
7830
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
7831
  $as_echo_n "(cached) " >&6
 
7832
else
 
7833
  if test -n "$OBJDUMP"; then
 
7834
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
7835
else
 
7836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7837
for as_dir in $PATH
 
7838
do
 
7839
  IFS=$as_save_IFS
 
7840
  test -z "$as_dir" && as_dir=.
 
7841
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7842
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7843
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
7844
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7845
    break 2
 
7846
  fi
 
7847
done
 
7848
  done
 
7849
IFS=$as_save_IFS
 
7850
 
 
7851
fi
 
7852
fi
 
7853
OBJDUMP=$ac_cv_prog_OBJDUMP
 
7854
if test -n "$OBJDUMP"; then
 
7855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
7856
$as_echo "$OBJDUMP" >&6; }
 
7857
else
 
7858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7859
$as_echo "no" >&6; }
 
7860
fi
 
7861
 
 
7862
 
 
7863
fi
 
7864
if test -z "$ac_cv_prog_OBJDUMP"; then
 
7865
  ac_ct_OBJDUMP=$OBJDUMP
 
7866
  # Extract the first word of "objdump", so it can be a program name with args.
 
7867
set dummy objdump; ac_word=$2
 
7868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7869
$as_echo_n "checking for $ac_word... " >&6; }
 
7870
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
7871
  $as_echo_n "(cached) " >&6
 
7872
else
 
7873
  if test -n "$ac_ct_OBJDUMP"; then
 
7874
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
7875
else
 
7876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7877
for as_dir in $PATH
 
7878
do
 
7879
  IFS=$as_save_IFS
 
7880
  test -z "$as_dir" && as_dir=.
 
7881
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7882
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7883
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
7884
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7885
    break 2
 
7886
  fi
 
7887
done
 
7888
  done
 
7889
IFS=$as_save_IFS
 
7890
 
 
7891
fi
 
7892
fi
 
7893
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
7894
if test -n "$ac_ct_OBJDUMP"; then
 
7895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
7896
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
7897
else
 
7898
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7899
$as_echo "no" >&6; }
 
7900
fi
 
7901
 
 
7902
  if test "x$ac_ct_OBJDUMP" = x; then
 
7903
    OBJDUMP="false"
 
7904
  else
 
7905
    case $cross_compiling:$ac_tool_warned in
 
7906
yes:)
 
7907
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7908
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7909
ac_tool_warned=yes ;;
 
7910
esac
 
7911
    OBJDUMP=$ac_ct_OBJDUMP
 
7912
  fi
 
7913
else
 
7914
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
7915
fi
 
7916
 
 
7917
  ;;
 
7918
esac
 
7919
 
 
7920
test -z "$AS" && AS=as
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7933
 
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
        enable_dlopen=no
 
7941
 
 
7942
 
 
7943
 
 
7944
            # Check whether --enable-shared was given.
 
7945
if test "${enable_shared+set}" = set; then :
 
7946
  enableval=$enable_shared; p=${PACKAGE-default}
 
7947
    case $enableval in
 
7948
    yes) enable_shared=yes ;;
 
7949
    no) enable_shared=no ;;
 
7950
    *)
 
7951
      enable_shared=no
 
7952
      # Look at the argument we got.  We use all the common list separators.
 
7953
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7954
      for pkg in $enableval; do
 
7955
        IFS="$lt_save_ifs"
 
7956
        if test "X$pkg" = "X$p"; then
 
7957
          enable_shared=yes
 
7958
        fi
 
7959
      done
 
7960
      IFS="$lt_save_ifs"
 
7961
      ;;
 
7962
    esac
 
7963
else
 
7964
  enable_shared=yes
 
7965
fi
 
7966
 
 
7967
 
 
7968
 
 
7969
 
 
7970
 
 
7971
 
 
7972
 
 
7973
 
 
7974
 
 
7975
  # Check whether --enable-static was given.
 
7976
if test "${enable_static+set}" = set; then :
 
7977
  enableval=$enable_static; p=${PACKAGE-default}
 
7978
    case $enableval in
 
7979
    yes) enable_static=yes ;;
 
7980
    no) enable_static=no ;;
 
7981
    *)
 
7982
     enable_static=no
 
7983
      # Look at the argument we got.  We use all the common list separators.
 
7984
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7985
      for pkg in $enableval; do
 
7986
        IFS="$lt_save_ifs"
 
7987
        if test "X$pkg" = "X$p"; then
 
7988
          enable_static=yes
 
7989
        fi
 
7990
      done
 
7991
      IFS="$lt_save_ifs"
 
7992
      ;;
 
7993
    esac
 
7994
else
 
7995
  enable_static=yes
 
7996
fi
 
7997
 
 
7998
 
 
7999
 
 
8000
 
 
8001
 
 
8002
 
 
8003
 
 
8004
 
 
8005
 
 
8006
 
 
8007
# Check whether --with-pic was given.
 
8008
if test "${with_pic+set}" = set; then :
 
8009
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8010
    case $withval in
 
8011
    yes|no) pic_mode=$withval ;;
 
8012
    *)
 
8013
      pic_mode=default
 
8014
      # Look at the argument we got.  We use all the common list separators.
 
8015
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8016
      for lt_pkg in $withval; do
 
8017
        IFS="$lt_save_ifs"
 
8018
        if test "X$lt_pkg" = "X$lt_p"; then
 
8019
          pic_mode=yes
 
8020
        fi
 
8021
      done
 
8022
      IFS="$lt_save_ifs"
 
8023
      ;;
 
8024
    esac
 
8025
else
 
8026
  pic_mode=default
 
8027
fi
 
8028
 
 
8029
 
 
8030
test -z "$pic_mode" && pic_mode=default
 
8031
 
 
8032
 
 
8033
 
 
8034
 
 
8035
 
 
8036
 
 
8037
 
 
8038
  # Check whether --enable-fast-install was given.
 
8039
if test "${enable_fast_install+set}" = set; then :
 
8040
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8041
    case $enableval in
 
8042
    yes) enable_fast_install=yes ;;
 
8043
    no) enable_fast_install=no ;;
 
8044
    *)
 
8045
      enable_fast_install=no
 
8046
      # Look at the argument we got.  We use all the common list separators.
 
8047
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8048
      for pkg in $enableval; do
 
8049
        IFS="$lt_save_ifs"
 
8050
        if test "X$pkg" = "X$p"; then
 
8051
          enable_fast_install=yes
 
8052
        fi
 
8053
      done
 
8054
      IFS="$lt_save_ifs"
 
8055
      ;;
 
8056
    esac
 
8057
else
 
8058
  enable_fast_install=yes
 
8059
fi
 
8060
 
 
8061
 
 
8062
 
 
8063
 
 
8064
 
 
8065
 
 
8066
 
 
8067
 
 
8068
 
 
8069
 
 
8070
 
 
8071
# This can be used to rebuild libtool when needed
 
8072
LIBTOOL_DEPS="$ltmain"
 
8073
 
 
8074
# Always use our own libtool.
 
8075
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8076
 
 
8077
 
 
8078
 
 
8079
 
 
8080
 
 
8081
 
 
8082
 
 
8083
 
 
8084
 
 
8085
 
 
8086
 
 
8087
 
 
8088
 
 
8089
 
 
8090
 
 
8091
 
 
8092
 
 
8093
 
 
8094
 
 
8095
 
 
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
 
 
8101
 
 
8102
 
 
8103
 
 
8104
 
 
8105
 
 
8106
test -z "$LN_S" && LN_S="ln -s"
 
8107
 
 
8108
 
 
8109
 
 
8110
 
 
8111
 
 
8112
 
 
8113
 
 
8114
 
 
8115
 
 
8116
 
 
8117
 
 
8118
 
 
8119
 
 
8120
 
 
8121
if test -n "${ZSH_VERSION+set}" ; then
 
8122
   setopt NO_GLOB_SUBST
 
8123
fi
 
8124
 
 
8125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8126
$as_echo_n "checking for objdir... " >&6; }
 
8127
if ${lt_cv_objdir+:} false; then :
 
8128
  $as_echo_n "(cached) " >&6
 
8129
else
 
8130
  rm -f .libs 2>/dev/null
 
8131
mkdir .libs 2>/dev/null
 
8132
if test -d .libs; then
 
8133
  lt_cv_objdir=.libs
 
8134
else
 
8135
  # MS-DOS does not allow filenames that begin with a dot.
 
8136
  lt_cv_objdir=_libs
 
8137
fi
 
8138
rmdir .libs 2>/dev/null
 
8139
fi
 
8140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8141
$as_echo "$lt_cv_objdir" >&6; }
 
8142
objdir=$lt_cv_objdir
 
8143
 
 
8144
 
 
8145
 
 
8146
 
 
8147
 
 
8148
cat >>confdefs.h <<_ACEOF
 
8149
#define LT_OBJDIR "$lt_cv_objdir/"
 
8150
_ACEOF
 
8151
 
 
8152
 
 
8153
 
 
8154
 
 
8155
case $host_os in
 
8156
aix3*)
 
8157
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8158
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8159
  # vanish in a puff of smoke.
 
8160
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8161
    COLLECT_NAMES=
 
8162
    export COLLECT_NAMES
 
8163
  fi
 
8164
  ;;
 
8165
esac
 
8166
 
 
8167
# Global variables:
 
8168
ofile=libtool
 
8169
can_build_shared=yes
 
8170
 
 
8171
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8172
# which needs '.lib').
 
8173
libext=a
 
8174
 
 
8175
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8176
 
 
8177
old_CC="$CC"
 
8178
old_CFLAGS="$CFLAGS"
 
8179
 
 
8180
# Set sane defaults for various variables
 
8181
test -z "$CC" && CC=cc
 
8182
test -z "$LTCC" && LTCC=$CC
 
8183
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8184
test -z "$LD" && LD=ld
 
8185
test -z "$ac_objext" && ac_objext=o
 
8186
 
 
8187
for cc_temp in $compiler""; do
 
8188
  case $cc_temp in
 
8189
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8190
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8191
    \-*) ;;
 
8192
    *) break;;
 
8193
  esac
 
8194
done
 
8195
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8196
 
 
8197
 
 
8198
# Only perform the check for file, if the check method requires it
 
8199
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8200
case $deplibs_check_method in
 
8201
file_magic*)
 
8202
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8203
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8204
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8205
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8206
  $as_echo_n "(cached) " >&6
 
8207
else
 
8208
  case $MAGIC_CMD in
 
8209
[\\/*] |  ?:[\\/]*)
 
8210
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8211
  ;;
 
8212
*)
 
8213
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8214
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8215
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8216
  for ac_dir in $ac_dummy; do
 
8217
    IFS="$lt_save_ifs"
 
8218
    test -z "$ac_dir" && ac_dir=.
 
8219
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8220
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8221
      if test -n "$file_magic_test_file"; then
 
8222
        case $deplibs_check_method in
 
8223
        "file_magic "*)
 
8224
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8225
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8226
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8227
            $EGREP "$file_magic_regex" > /dev/null; then
 
8228
            :
 
8229
          else
 
8230
            cat <<_LT_EOF 1>&2
 
8231
 
 
8232
*** Warning: the command libtool uses to detect shared libraries,
 
8233
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8234
*** The result is that libtool may fail to recognize shared libraries
 
8235
*** as such.  This will affect the creation of libtool libraries that
 
8236
*** depend on shared libraries, but programs linked with such libtool
 
8237
*** libraries will work regardless of this problem.  Nevertheless, you
 
8238
*** may want to report the problem to your system manager and/or to
 
8239
*** bug-libtool@gnu.org
 
8240
 
 
8241
_LT_EOF
 
8242
          fi ;;
 
8243
        esac
 
8244
      fi
 
8245
      break
 
8246
    fi
 
8247
  done
 
8248
  IFS="$lt_save_ifs"
 
8249
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8250
  ;;
 
8251
esac
 
8252
fi
 
8253
 
 
8254
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8255
if test -n "$MAGIC_CMD"; then
 
8256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8257
$as_echo "$MAGIC_CMD" >&6; }
 
8258
else
 
8259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8260
$as_echo "no" >&6; }
 
8261
fi
 
8262
 
 
8263
 
 
8264
 
 
8265
 
 
8266
 
 
8267
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8268
  if test -n "$ac_tool_prefix"; then
 
8269
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8270
$as_echo_n "checking for file... " >&6; }
 
8271
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8272
  $as_echo_n "(cached) " >&6
 
8273
else
 
8274
  case $MAGIC_CMD in
 
8275
[\\/*] |  ?:[\\/]*)
 
8276
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8277
  ;;
 
8278
*)
 
8279
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8280
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8281
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8282
  for ac_dir in $ac_dummy; do
 
8283
    IFS="$lt_save_ifs"
 
8284
    test -z "$ac_dir" && ac_dir=.
 
8285
    if test -f $ac_dir/file; then
 
8286
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8287
      if test -n "$file_magic_test_file"; then
 
8288
        case $deplibs_check_method in
 
8289
        "file_magic "*)
 
8290
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8291
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8292
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8293
            $EGREP "$file_magic_regex" > /dev/null; then
 
8294
            :
 
8295
          else
 
8296
            cat <<_LT_EOF 1>&2
 
8297
 
 
8298
*** Warning: the command libtool uses to detect shared libraries,
 
8299
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8300
*** The result is that libtool may fail to recognize shared libraries
 
8301
*** as such.  This will affect the creation of libtool libraries that
 
8302
*** depend on shared libraries, but programs linked with such libtool
 
8303
*** libraries will work regardless of this problem.  Nevertheless, you
 
8304
*** may want to report the problem to your system manager and/or to
 
8305
*** bug-libtool@gnu.org
 
8306
 
 
8307
_LT_EOF
 
8308
          fi ;;
 
8309
        esac
 
8310
      fi
 
8311
      break
 
8312
    fi
 
8313
  done
 
8314
  IFS="$lt_save_ifs"
 
8315
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8316
  ;;
 
8317
esac
 
8318
fi
 
8319
 
 
8320
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8321
if test -n "$MAGIC_CMD"; then
 
8322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8323
$as_echo "$MAGIC_CMD" >&6; }
 
8324
else
 
8325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8326
$as_echo "no" >&6; }
 
8327
fi
 
8328
 
 
8329
 
 
8330
  else
 
8331
    MAGIC_CMD=:
 
8332
  fi
 
8333
fi
 
8334
 
 
8335
  fi
 
8336
  ;;
 
8337
esac
 
8338
 
 
8339
# Use C for the default configuration in the libtool script
 
8340
 
 
8341
lt_save_CC="$CC"
 
8342
ac_ext=c
 
8343
ac_cpp='$CPP $CPPFLAGS'
 
8344
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8345
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8346
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8347
 
 
8348
 
 
8349
# Source file extension for C test sources.
 
8350
ac_ext=c
 
8351
 
 
8352
# Object file extension for compiled C test sources.
 
8353
objext=o
 
8354
objext=$objext
 
8355
 
 
8356
# Code to be used in simple compile tests
 
8357
lt_simple_compile_test_code="int some_variable = 0;"
 
8358
 
 
8359
# Code to be used in simple link tests
 
8360
lt_simple_link_test_code='int main(){return(0);}'
 
8361
 
 
8362
 
 
8363
 
 
8364
 
 
8365
 
 
8366
 
 
8367
 
 
8368
# If no C compiler was specified, use CC.
 
8369
LTCC=${LTCC-"$CC"}
 
8370
 
 
8371
# If no C compiler flags were specified, use CFLAGS.
 
8372
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8373
 
 
8374
# Allow CC to be a program name with arguments.
 
8375
compiler=$CC
 
8376
 
 
8377
# Save the default compiler, since it gets overwritten when the other
 
8378
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8379
compiler_DEFAULT=$CC
 
8380
 
 
8381
# save warnings/boilerplate of simple test code
 
8382
ac_outfile=conftest.$ac_objext
 
8383
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8384
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8385
_lt_compiler_boilerplate=`cat conftest.err`
 
8386
$RM conftest*
 
8387
 
 
8388
ac_outfile=conftest.$ac_objext
 
8389
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8390
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8391
_lt_linker_boilerplate=`cat conftest.err`
 
8392
$RM -r conftest*
 
8393
 
 
8394
 
 
8395
## CAVEAT EMPTOR:
 
8396
## There is no encapsulation within the following macros, do not change
 
8397
## the running order or otherwise move them around unless you know exactly
 
8398
## what you are doing...
 
8399
if test -n "$compiler"; then
 
8400
 
 
8401
lt_prog_compiler_no_builtin_flag=
 
8402
 
 
8403
if test "$GCC" = yes; then
 
8404
  case $cc_basename in
 
8405
  nvcc*)
 
8406
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8407
  *)
 
8408
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8409
  esac
 
8410
 
 
8411
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8412
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8413
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8414
  $as_echo_n "(cached) " >&6
 
8415
else
 
8416
  lt_cv_prog_compiler_rtti_exceptions=no
 
8417
   ac_outfile=conftest.$ac_objext
 
8418
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8419
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8420
   # Insert the option either (1) after the last *FLAGS variable, or
 
8421
   # (2) before a word containing "conftest.", or (3) at the end.
 
8422
   # Note that $ac_compile itself does not contain backslashes and begins
 
8423
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8424
   # The option is referenced via a variable to avoid confusing sed.
 
8425
   lt_compile=`echo "$ac_compile" | $SED \
 
8426
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8427
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8428
   -e 's:$: $lt_compiler_flag:'`
 
8429
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8430
   (eval "$lt_compile" 2>conftest.err)
 
8431
   ac_status=$?
 
8432
   cat conftest.err >&5
 
8433
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8434
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8435
     # The compiler can only warn and ignore the option if not recognized
 
8436
     # So say no if there are warnings other than the usual output.
 
8437
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8438
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8439
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8440
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8441
     fi
 
8442
   fi
 
8443
   $RM conftest*
 
8444
 
 
8445
fi
 
8446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8447
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8448
 
 
8449
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8450
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8451
else
 
8452
    :
 
8453
fi
 
8454
 
 
8455
fi
 
8456
 
 
8457
 
 
8458
 
 
8459
 
 
8460
 
 
8461
 
 
8462
  lt_prog_compiler_wl=
 
8463
lt_prog_compiler_pic=
 
8464
lt_prog_compiler_static=
 
8465
 
 
8466
 
 
8467
  if test "$GCC" = yes; then
 
8468
    lt_prog_compiler_wl='-Wl,'
 
8469
    lt_prog_compiler_static='-static'
 
8470
 
 
8471
    case $host_os in
 
8472
      aix*)
 
8473
      # All AIX code is PIC.
 
8474
      if test "$host_cpu" = ia64; then
 
8475
        # AIX 5 now supports IA64 processor
 
8476
        lt_prog_compiler_static='-Bstatic'
 
8477
      fi
 
8478
      ;;
 
8479
 
 
8480
    amigaos*)
 
8481
      case $host_cpu in
 
8482
      powerpc)
 
8483
            # see comment about AmigaOS4 .so support
 
8484
            lt_prog_compiler_pic='-fPIC'
 
8485
        ;;
 
8486
      m68k)
 
8487
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8488
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8489
            # like `-m68040'.
 
8490
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8491
        ;;
 
8492
      esac
 
8493
      ;;
 
8494
 
 
8495
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8496
      # PIC is the default for these OSes.
 
8497
      ;;
 
8498
 
 
8499
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8500
      # This hack is so that the source file can tell whether it is being
 
8501
      # built for inclusion in a dll (and should export symbols for example).
 
8502
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8503
      # (--disable-auto-import) libraries
 
8504
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8505
      ;;
 
8506
 
 
8507
    darwin* | rhapsody*)
 
8508
      # PIC is the default on this platform
 
8509
      # Common symbols not allowed in MH_DYLIB files
 
8510
      lt_prog_compiler_pic='-fno-common'
 
8511
      ;;
 
8512
 
 
8513
    haiku*)
 
8514
      # PIC is the default for Haiku.
 
8515
      # The "-static" flag exists, but is broken.
 
8516
      lt_prog_compiler_static=
 
8517
      ;;
 
8518
 
 
8519
    hpux*)
 
8520
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8521
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8522
      # sets the default TLS model and affects inlining.
 
8523
      case $host_cpu in
 
8524
      hppa*64*)
 
8525
        # +Z the default
 
8526
        ;;
 
8527
      *)
 
8528
        lt_prog_compiler_pic='-fPIC'
 
8529
        ;;
 
8530
      esac
 
8531
      ;;
 
8532
 
 
8533
    interix[3-9]*)
 
8534
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8535
      # Instead, we relocate shared libraries at runtime.
 
8536
      ;;
 
8537
 
 
8538
    msdosdjgpp*)
 
8539
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8540
      # on systems that don't support them.
 
8541
      lt_prog_compiler_can_build_shared=no
 
8542
      enable_shared=no
 
8543
      ;;
 
8544
 
 
8545
    *nto* | *qnx*)
 
8546
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8547
      # it will coredump.
 
8548
      lt_prog_compiler_pic='-fPIC -shared'
 
8549
      ;;
 
8550
 
 
8551
    sysv4*MP*)
 
8552
      if test -d /usr/nec; then
 
8553
        lt_prog_compiler_pic=-Kconform_pic
 
8554
      fi
 
8555
      ;;
 
8556
 
 
8557
    *)
 
8558
      lt_prog_compiler_pic='-fPIC'
 
8559
      ;;
 
8560
    esac
 
8561
 
 
8562
    case $cc_basename in
 
8563
    nvcc*) # Cuda Compiler Driver 2.2
 
8564
      lt_prog_compiler_wl='-Xlinker '
 
8565
      if test -n "$lt_prog_compiler_pic"; then
 
8566
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8567
      fi
 
8568
      ;;
 
8569
    esac
 
8570
  else
 
8571
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8572
    case $host_os in
 
8573
    aix*)
 
8574
      lt_prog_compiler_wl='-Wl,'
 
8575
      if test "$host_cpu" = ia64; then
 
8576
        # AIX 5 now supports IA64 processor
 
8577
        lt_prog_compiler_static='-Bstatic'
 
8578
      else
 
8579
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8580
      fi
 
8581
      ;;
 
8582
 
 
8583
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8584
      # This hack is so that the source file can tell whether it is being
 
8585
      # built for inclusion in a dll (and should export symbols for example).
 
8586
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8587
      ;;
 
8588
 
 
8589
    hpux9* | hpux10* | hpux11*)
 
8590
      lt_prog_compiler_wl='-Wl,'
 
8591
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8592
      # not for PA HP-UX.
 
8593
      case $host_cpu in
 
8594
      hppa*64*|ia64*)
 
8595
        # +Z the default
 
8596
        ;;
 
8597
      *)
 
8598
        lt_prog_compiler_pic='+Z'
 
8599
        ;;
 
8600
      esac
 
8601
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8602
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8603
      ;;
 
8604
 
 
8605
    irix5* | irix6* | nonstopux*)
 
8606
      lt_prog_compiler_wl='-Wl,'
 
8607
      # PIC (with -KPIC) is the default.
 
8608
      lt_prog_compiler_static='-non_shared'
 
8609
      ;;
 
8610
 
 
8611
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
8612
      case $cc_basename in
 
8613
      # old Intel for x86_64 which still supported -KPIC.
 
8614
      ecc*)
 
8615
        lt_prog_compiler_wl='-Wl,'
 
8616
        lt_prog_compiler_pic='-KPIC'
 
8617
        lt_prog_compiler_static='-static'
 
8618
        ;;
 
8619
      # icc used to be incompatible with GCC.
 
8620
      # ICC 10 doesn't accept -KPIC any more.
 
8621
      icc* | ifort*)
 
8622
        lt_prog_compiler_wl='-Wl,'
 
8623
        lt_prog_compiler_pic='-fPIC'
 
8624
        lt_prog_compiler_static='-static'
 
8625
        ;;
 
8626
      # Lahey Fortran 8.1.
 
8627
      lf95*)
 
8628
        lt_prog_compiler_wl='-Wl,'
 
8629
        lt_prog_compiler_pic='--shared'
 
8630
        lt_prog_compiler_static='--static'
 
8631
        ;;
 
8632
      nagfor*)
 
8633
        # NAG Fortran compiler
 
8634
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8635
        lt_prog_compiler_pic='-PIC'
 
8636
        lt_prog_compiler_static='-Bstatic'
 
8637
        ;;
 
8638
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8639
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8640
        # which looks to be a dead project)
 
8641
        lt_prog_compiler_wl='-Wl,'
 
8642
        lt_prog_compiler_pic='-fpic'
 
8643
        lt_prog_compiler_static='-Bstatic'
 
8644
        ;;
 
8645
      ccc*)
 
8646
        lt_prog_compiler_wl='-Wl,'
 
8647
        # All Alpha code is PIC.
 
8648
        lt_prog_compiler_static='-non_shared'
 
8649
        ;;
 
8650
      xl* | bgxl* | bgf* | mpixl*)
 
8651
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8652
        lt_prog_compiler_wl='-Wl,'
 
8653
        lt_prog_compiler_pic='-qpic'
 
8654
        lt_prog_compiler_static='-qstaticlink'
 
8655
        ;;
 
8656
      *)
 
8657
        case `$CC -V 2>&1 | sed 5q` in
 
8658
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8659
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8660
          lt_prog_compiler_pic='-KPIC'
 
8661
          lt_prog_compiler_static='-Bstatic'
 
8662
          lt_prog_compiler_wl=''
 
8663
          ;;
 
8664
        *Sun\ F* | *Sun*Fortran*)
 
8665
          lt_prog_compiler_pic='-KPIC'
 
8666
          lt_prog_compiler_static='-Bstatic'
 
8667
          lt_prog_compiler_wl='-Qoption ld '
 
8668
          ;;
 
8669
        *Sun\ C*)
 
8670
          # Sun C 5.9
 
8671
          lt_prog_compiler_pic='-KPIC'
 
8672
          lt_prog_compiler_static='-Bstatic'
 
8673
          lt_prog_compiler_wl='-Wl,'
 
8674
          ;;
 
8675
        *Intel*\ [CF]*Compiler*)
 
8676
          lt_prog_compiler_wl='-Wl,'
 
8677
          lt_prog_compiler_pic='-fPIC'
 
8678
          lt_prog_compiler_static='-static'
 
8679
          ;;
 
8680
        *Portland\ Group*)
 
8681
          lt_prog_compiler_wl='-Wl,'
 
8682
          lt_prog_compiler_pic='-fpic'
 
8683
          lt_prog_compiler_static='-Bstatic'
 
8684
          ;;
 
8685
        esac
 
8686
        ;;
 
8687
      esac
 
8688
      ;;
 
8689
 
 
8690
    newsos6)
 
8691
      lt_prog_compiler_pic='-KPIC'
 
8692
      lt_prog_compiler_static='-Bstatic'
 
8693
      ;;
 
8694
 
 
8695
    *nto* | *qnx*)
 
8696
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8697
      # it will coredump.
 
8698
      lt_prog_compiler_pic='-fPIC -shared'
 
8699
      ;;
 
8700
 
 
8701
    osf3* | osf4* | osf5*)
 
8702
      lt_prog_compiler_wl='-Wl,'
 
8703
      # All OSF/1 code is PIC.
 
8704
      lt_prog_compiler_static='-non_shared'
 
8705
      ;;
 
8706
 
 
8707
    rdos*)
 
8708
      lt_prog_compiler_static='-non_shared'
 
8709
      ;;
 
8710
 
 
8711
    solaris*)
 
8712
      lt_prog_compiler_pic='-KPIC'
 
8713
      lt_prog_compiler_static='-Bstatic'
 
8714
      case $cc_basename in
 
8715
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8716
        lt_prog_compiler_wl='-Qoption ld ';;
 
8717
      *)
 
8718
        lt_prog_compiler_wl='-Wl,';;
 
8719
      esac
 
8720
      ;;
 
8721
 
 
8722
    sunos4*)
 
8723
      lt_prog_compiler_wl='-Qoption ld '
 
8724
      lt_prog_compiler_pic='-PIC'
 
8725
      lt_prog_compiler_static='-Bstatic'
 
8726
      ;;
 
8727
 
 
8728
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8729
      lt_prog_compiler_wl='-Wl,'
 
8730
      lt_prog_compiler_pic='-KPIC'
 
8731
      lt_prog_compiler_static='-Bstatic'
 
8732
      ;;
 
8733
 
 
8734
    sysv4*MP*)
 
8735
      if test -d /usr/nec ;then
 
8736
        lt_prog_compiler_pic='-Kconform_pic'
 
8737
        lt_prog_compiler_static='-Bstatic'
 
8738
      fi
 
8739
      ;;
 
8740
 
 
8741
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8742
      lt_prog_compiler_wl='-Wl,'
 
8743
      lt_prog_compiler_pic='-KPIC'
 
8744
      lt_prog_compiler_static='-Bstatic'
 
8745
      ;;
 
8746
 
 
8747
    unicos*)
 
8748
      lt_prog_compiler_wl='-Wl,'
 
8749
      lt_prog_compiler_can_build_shared=no
 
8750
      ;;
 
8751
 
 
8752
    uts4*)
 
8753
      lt_prog_compiler_pic='-pic'
 
8754
      lt_prog_compiler_static='-Bstatic'
 
8755
      ;;
 
8756
 
 
8757
    *)
 
8758
      lt_prog_compiler_can_build_shared=no
 
8759
      ;;
 
8760
    esac
 
8761
  fi
 
8762
 
 
8763
case $host_os in
 
8764
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8765
  *djgpp*)
 
8766
    lt_prog_compiler_pic=
 
8767
    ;;
 
8768
  *)
 
8769
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8770
    ;;
 
8771
esac
 
8772
 
 
8773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8774
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8775
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8776
  $as_echo_n "(cached) " >&6
 
8777
else
 
8778
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8779
fi
 
8780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8781
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8782
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8783
 
 
8784
#
 
8785
# Check to make sure the PIC flag actually works.
 
8786
#
 
8787
if test -n "$lt_prog_compiler_pic"; then
 
8788
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8789
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8790
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8791
  $as_echo_n "(cached) " >&6
 
8792
else
 
8793
  lt_cv_prog_compiler_pic_works=no
 
8794
   ac_outfile=conftest.$ac_objext
 
8795
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8796
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8797
   # Insert the option either (1) after the last *FLAGS variable, or
 
8798
   # (2) before a word containing "conftest.", or (3) at the end.
 
8799
   # Note that $ac_compile itself does not contain backslashes and begins
 
8800
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8801
   # The option is referenced via a variable to avoid confusing sed.
 
8802
   lt_compile=`echo "$ac_compile" | $SED \
 
8803
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8804
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8805
   -e 's:$: $lt_compiler_flag:'`
 
8806
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8807
   (eval "$lt_compile" 2>conftest.err)
 
8808
   ac_status=$?
 
8809
   cat conftest.err >&5
 
8810
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8811
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8812
     # The compiler can only warn and ignore the option if not recognized
 
8813
     # So say no if there are warnings other than the usual output.
 
8814
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8815
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8816
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8817
       lt_cv_prog_compiler_pic_works=yes
 
8818
     fi
 
8819
   fi
 
8820
   $RM conftest*
 
8821
 
 
8822
fi
 
8823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8824
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8825
 
 
8826
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8827
    case $lt_prog_compiler_pic in
 
8828
     "" | " "*) ;;
 
8829
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8830
     esac
 
8831
else
 
8832
    lt_prog_compiler_pic=
 
8833
     lt_prog_compiler_can_build_shared=no
 
8834
fi
 
8835
 
 
8836
fi
 
8837
 
 
8838
 
 
8839
 
 
8840
 
 
8841
 
 
8842
 
 
8843
 
 
8844
 
 
8845
 
 
8846
 
 
8847
 
 
8848
#
 
8849
# Check to make sure the static flag actually works.
 
8850
#
 
8851
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8853
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8854
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8855
  $as_echo_n "(cached) " >&6
 
8856
else
 
8857
  lt_cv_prog_compiler_static_works=no
 
8858
   save_LDFLAGS="$LDFLAGS"
 
8859
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8860
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8861
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8862
     # The linker can only warn and ignore the option if not recognized
 
8863
     # So say no if there are warnings
 
8864
     if test -s conftest.err; then
 
8865
       # Append any errors to the config.log.
 
8866
       cat conftest.err 1>&5
 
8867
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8868
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8869
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8870
         lt_cv_prog_compiler_static_works=yes
 
8871
       fi
 
8872
     else
 
8873
       lt_cv_prog_compiler_static_works=yes
 
8874
     fi
 
8875
   fi
 
8876
   $RM -r conftest*
 
8877
   LDFLAGS="$save_LDFLAGS"
 
8878
 
 
8879
fi
 
8880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8881
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8882
 
 
8883
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8884
    :
 
8885
else
 
8886
    lt_prog_compiler_static=
 
8887
fi
 
8888
 
 
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
 
8894
 
 
8895
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8896
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8897
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8898
  $as_echo_n "(cached) " >&6
 
8899
else
 
8900
  lt_cv_prog_compiler_c_o=no
 
8901
   $RM -r conftest 2>/dev/null
 
8902
   mkdir conftest
 
8903
   cd conftest
 
8904
   mkdir out
 
8905
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8906
 
 
8907
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8908
   # Insert the option either (1) after the last *FLAGS variable, or
 
8909
   # (2) before a word containing "conftest.", or (3) at the end.
 
8910
   # Note that $ac_compile itself does not contain backslashes and begins
 
8911
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8912
   lt_compile=`echo "$ac_compile" | $SED \
 
8913
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8914
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8915
   -e 's:$: $lt_compiler_flag:'`
 
8916
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8917
   (eval "$lt_compile" 2>out/conftest.err)
 
8918
   ac_status=$?
 
8919
   cat out/conftest.err >&5
 
8920
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8921
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8922
   then
 
8923
     # The compiler can only warn and ignore the option if not recognized
 
8924
     # So say no if there are warnings
 
8925
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8926
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8927
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8928
       lt_cv_prog_compiler_c_o=yes
 
8929
     fi
 
8930
   fi
 
8931
   chmod u+w . 2>&5
 
8932
   $RM conftest*
 
8933
   # SGI C++ compiler will create directory out/ii_files/ for
 
8934
   # template instantiation
 
8935
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8936
   $RM out/* && rmdir out
 
8937
   cd ..
 
8938
   $RM -r conftest
 
8939
   $RM conftest*
 
8940
 
 
8941
fi
 
8942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8943
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8944
 
 
8945
 
 
8946
 
 
8947
 
 
8948
 
 
8949
 
 
8950
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8951
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8952
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8953
  $as_echo_n "(cached) " >&6
 
8954
else
 
8955
  lt_cv_prog_compiler_c_o=no
 
8956
   $RM -r conftest 2>/dev/null
 
8957
   mkdir conftest
 
8958
   cd conftest
 
8959
   mkdir out
 
8960
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8961
 
 
8962
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8963
   # Insert the option either (1) after the last *FLAGS variable, or
 
8964
   # (2) before a word containing "conftest.", or (3) at the end.
 
8965
   # Note that $ac_compile itself does not contain backslashes and begins
 
8966
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8967
   lt_compile=`echo "$ac_compile" | $SED \
 
8968
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8969
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8970
   -e 's:$: $lt_compiler_flag:'`
 
8971
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8972
   (eval "$lt_compile" 2>out/conftest.err)
 
8973
   ac_status=$?
 
8974
   cat out/conftest.err >&5
 
8975
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8976
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8977
   then
 
8978
     # The compiler can only warn and ignore the option if not recognized
 
8979
     # So say no if there are warnings
 
8980
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8981
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8982
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8983
       lt_cv_prog_compiler_c_o=yes
 
8984
     fi
 
8985
   fi
 
8986
   chmod u+w . 2>&5
 
8987
   $RM conftest*
 
8988
   # SGI C++ compiler will create directory out/ii_files/ for
 
8989
   # template instantiation
 
8990
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8991
   $RM out/* && rmdir out
 
8992
   cd ..
 
8993
   $RM -r conftest
 
8994
   $RM conftest*
 
8995
 
 
8996
fi
 
8997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8998
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8999
 
 
9000
 
 
9001
 
 
9002
 
 
9003
hard_links="nottested"
 
9004
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9005
  # do not overwrite the value of need_locks provided by the user
 
9006
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9007
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9008
  hard_links=yes
 
9009
  $RM conftest*
 
9010
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9011
  touch conftest.a
 
9012
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9013
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9015
$as_echo "$hard_links" >&6; }
 
9016
  if test "$hard_links" = no; then
 
9017
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9018
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9019
    need_locks=warn
 
9020
  fi
 
9021
else
 
9022
  need_locks=no
 
9023
fi
 
9024
 
 
9025
 
 
9026
 
 
9027
 
 
9028
 
 
9029
 
 
9030
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9031
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9032
 
 
9033
  runpath_var=
 
9034
  allow_undefined_flag=
 
9035
  always_export_symbols=no
 
9036
  archive_cmds=
 
9037
  archive_expsym_cmds=
 
9038
  compiler_needs_object=no
 
9039
  enable_shared_with_static_runtimes=no
 
9040
  export_dynamic_flag_spec=
 
9041
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9042
  hardcode_automatic=no
 
9043
  hardcode_direct=no
 
9044
  hardcode_direct_absolute=no
 
9045
  hardcode_libdir_flag_spec=
 
9046
  hardcode_libdir_separator=
 
9047
  hardcode_minus_L=no
 
9048
  hardcode_shlibpath_var=unsupported
 
9049
  inherit_rpath=no
 
9050
  link_all_deplibs=unknown
 
9051
  module_cmds=
 
9052
  module_expsym_cmds=
 
9053
  old_archive_from_new_cmds=
 
9054
  old_archive_from_expsyms_cmds=
 
9055
  thread_safe_flag_spec=
 
9056
  whole_archive_flag_spec=
 
9057
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9058
  # included in the symbol list
 
9059
  include_expsyms=
 
9060
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9061
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9062
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9063
  # as well as any symbol that contains `d'.
 
9064
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9065
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9066
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9067
  # the symbol is explicitly referenced.  Since portable code cannot
 
9068
  # rely on this symbol name, it's probably fine to never include it in
 
9069
  # preloaded symbol tables.
 
9070
  # Exclude shared library initialization/finalization symbols.
 
9071
  extract_expsyms_cmds=
 
9072
 
 
9073
  case $host_os in
 
9074
  cygwin* | mingw* | pw32* | cegcc*)
 
9075
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9076
    # When not using gcc, we currently assume that we are using
 
9077
    # Microsoft Visual C++.
 
9078
    if test "$GCC" != yes; then
 
9079
      with_gnu_ld=no
 
9080
    fi
 
9081
    ;;
 
9082
  interix*)
 
9083
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9084
    with_gnu_ld=yes
 
9085
    ;;
 
9086
  openbsd*)
 
9087
    with_gnu_ld=no
 
9088
    ;;
 
9089
  linux* | k*bsd*-gnu | gnu*)
 
9090
    link_all_deplibs=no
 
9091
    ;;
 
9092
  esac
 
9093
 
 
9094
  ld_shlibs=yes
 
9095
 
 
9096
  # On some targets, GNU ld is compatible enough with the native linker
 
9097
  # that we're better off using the native interface for both.
 
9098
  lt_use_gnu_ld_interface=no
 
9099
  if test "$with_gnu_ld" = yes; then
 
9100
    case $host_os in
 
9101
      aix*)
 
9102
        # The AIX port of GNU ld has always aspired to compatibility
 
9103
        # with the native linker.  However, as the warning in the GNU ld
 
9104
        # block says, versions before 2.19.5* couldn't really create working
 
9105
        # shared libraries, regardless of the interface used.
 
9106
        case `$LD -v 2>&1` in
 
9107
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9108
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9109
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9110
          *)
 
9111
            lt_use_gnu_ld_interface=yes
 
9112
            ;;
 
9113
        esac
 
9114
        ;;
 
9115
      *)
 
9116
        lt_use_gnu_ld_interface=yes
 
9117
        ;;
 
9118
    esac
 
9119
  fi
 
9120
 
 
9121
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9122
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9123
    wlarc='${wl}'
 
9124
 
 
9125
    # Set some defaults for GNU ld with shared library support. These
 
9126
    # are reset later if shared libraries are not supported. Putting them
 
9127
    # here allows them to be overridden if necessary.
 
9128
    runpath_var=LD_RUN_PATH
 
9129
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9130
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9131
    # ancient GNU ld didn't support --whole-archive et. al.
 
9132
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9133
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9134
    else
 
9135
      whole_archive_flag_spec=
 
9136
    fi
 
9137
    supports_anon_versioning=no
 
9138
    case `$LD -v 2>&1` in
 
9139
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9140
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9141
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9142
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9143
      *\ 2.11.*) ;; # other 2.11 versions
 
9144
      *) supports_anon_versioning=yes ;;
 
9145
    esac
 
9146
 
 
9147
    # See if GNU ld supports shared libraries.
 
9148
    case $host_os in
 
9149
    aix[3-9]*)
 
9150
      # On AIX/PPC, the GNU linker is very broken
 
9151
      if test "$host_cpu" != ia64; then
 
9152
        ld_shlibs=no
 
9153
        cat <<_LT_EOF 1>&2
 
9154
 
 
9155
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9156
*** to be unable to reliably create shared libraries on AIX.
 
9157
*** Therefore, libtool is disabling shared libraries support.  If you
 
9158
*** really care for shared libraries, you may want to install binutils
 
9159
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9160
*** You will then need to restart the configuration process.
 
9161
 
 
9162
_LT_EOF
 
9163
      fi
 
9164
      ;;
 
9165
 
 
9166
    amigaos*)
 
9167
      case $host_cpu in
 
9168
      powerpc)
 
9169
            # see comment about AmigaOS4 .so support
 
9170
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9171
            archive_expsym_cmds=''
 
9172
        ;;
 
9173
      m68k)
 
9174
            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)'
 
9175
            hardcode_libdir_flag_spec='-L$libdir'
 
9176
            hardcode_minus_L=yes
 
9177
        ;;
 
9178
      esac
 
9179
      ;;
 
9180
 
 
9181
    beos*)
 
9182
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9183
        allow_undefined_flag=unsupported
 
9184
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9185
        # support --undefined.  This deserves some investigation.  FIXME
 
9186
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9187
      else
 
9188
        ld_shlibs=no
 
9189
      fi
 
9190
      ;;
 
9191
 
 
9192
    cygwin* | mingw* | pw32* | cegcc*)
 
9193
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9194
      # as there is no search path for DLLs.
 
9195
      hardcode_libdir_flag_spec='-L$libdir'
 
9196
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9197
      allow_undefined_flag=unsupported
 
9198
      always_export_symbols=no
 
9199
      enable_shared_with_static_runtimes=yes
 
9200
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9201
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9202
 
 
9203
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9204
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9205
        # If the export-symbols file already is a .def file (1st line
 
9206
        # is EXPORTS), use it as is; otherwise, prepend...
 
9207
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9208
          cp $export_symbols $output_objdir/$soname.def;
 
9209
        else
 
9210
          echo EXPORTS > $output_objdir/$soname.def;
 
9211
          cat $export_symbols >> $output_objdir/$soname.def;
 
9212
        fi~
 
9213
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9214
      else
 
9215
        ld_shlibs=no
 
9216
      fi
 
9217
      ;;
 
9218
 
 
9219
    haiku*)
 
9220
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9221
      link_all_deplibs=yes
 
9222
      ;;
 
9223
 
 
9224
    interix[3-9]*)
 
9225
      hardcode_direct=no
 
9226
      hardcode_shlibpath_var=no
 
9227
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9228
      export_dynamic_flag_spec='${wl}-E'
 
9229
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9230
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9231
      # default) and relocated if they conflict, which is a slow very memory
 
9232
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9233
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9234
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9235
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9236
      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'
 
9237
      ;;
 
9238
 
 
9239
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9240
      tmp_diet=no
 
9241
      if test "$host_os" = linux-dietlibc; then
 
9242
        case $cc_basename in
 
9243
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9244
        esac
 
9245
      fi
 
9246
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9247
         && test "$tmp_diet" = no
 
9248
      then
 
9249
        tmp_addflag=' $pic_flag'
 
9250
        tmp_sharedflag='-shared'
 
9251
        case $cc_basename,$host_cpu in
 
9252
        pgcc*)                          # Portland Group C compiler
 
9253
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9254
          tmp_addflag=' $pic_flag'
 
9255
          ;;
 
9256
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9257
                                        # Portland Group f77 and f90 compilers
 
9258
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9259
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9260
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9261
          tmp_addflag=' -i_dynamic' ;;
 
9262
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9263
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9264
        ifc* | ifort*)                  # Intel Fortran compiler
 
9265
          tmp_addflag=' -nofor_main' ;;
 
9266
        lf95*)                          # Lahey Fortran 8.1
 
9267
          whole_archive_flag_spec=
 
9268
          tmp_sharedflag='--shared' ;;
 
9269
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9270
          tmp_sharedflag='-qmkshrobj'
 
9271
          tmp_addflag= ;;
 
9272
        nvcc*)  # Cuda Compiler Driver 2.2
 
9273
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9274
          compiler_needs_object=yes
 
9275
          ;;
 
9276
        esac
 
9277
        case `$CC -V 2>&1 | sed 5q` in
 
9278
        *Sun\ C*)                       # Sun C 5.9
 
9279
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9280
          compiler_needs_object=yes
 
9281
          tmp_sharedflag='-G' ;;
 
9282
        *Sun\ F*)                       # Sun Fortran 8.3
 
9283
          tmp_sharedflag='-G' ;;
 
9284
        esac
 
9285
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9286
 
 
9287
        if test "x$supports_anon_versioning" = xyes; then
 
9288
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9289
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9290
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9291
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9292
        fi
 
9293
 
 
9294
        case $cc_basename in
 
9295
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9296
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9297
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9298
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9299
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9300
          if test "x$supports_anon_versioning" = xyes; then
 
9301
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9302
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9303
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9304
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9305
          fi
 
9306
          ;;
 
9307
        esac
 
9308
      else
 
9309
        ld_shlibs=no
 
9310
      fi
 
9311
      ;;
 
9312
 
 
9313
    netbsd* | netbsdelf*-gnu)
 
9314
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9315
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9316
        wlarc=
 
9317
      else
 
9318
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9319
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9320
      fi
 
9321
      ;;
 
9322
 
 
9323
    solaris*)
 
9324
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9325
        ld_shlibs=no
 
9326
        cat <<_LT_EOF 1>&2
 
9327
 
 
9328
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9329
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9330
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9331
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9332
*** your PATH or compiler configuration so that the native linker is
 
9333
*** used, and then restart.
 
9334
 
 
9335
_LT_EOF
 
9336
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9337
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9338
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9339
      else
 
9340
        ld_shlibs=no
 
9341
      fi
 
9342
      ;;
 
9343
 
 
9344
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9345
      case `$LD -v 2>&1` in
 
9346
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9347
        ld_shlibs=no
 
9348
        cat <<_LT_EOF 1>&2
 
9349
 
 
9350
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9351
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9352
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9353
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9354
*** your PATH or compiler configuration so that the native linker is
 
9355
*** used, and then restart.
 
9356
 
 
9357
_LT_EOF
 
9358
        ;;
 
9359
        *)
 
9360
          # For security reasons, it is highly recommended that you always
 
9361
          # use absolute paths for naming shared libraries, and exclude the
 
9362
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9363
          # requires that you compile everything twice, which is a pain.
 
9364
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9365
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9366
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9367
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9368
          else
 
9369
            ld_shlibs=no
 
9370
          fi
 
9371
        ;;
 
9372
      esac
 
9373
      ;;
 
9374
 
 
9375
    sunos4*)
 
9376
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9377
      wlarc=
 
9378
      hardcode_direct=yes
 
9379
      hardcode_shlibpath_var=no
 
9380
      ;;
 
9381
 
 
9382
    *)
 
9383
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9384
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9385
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9386
      else
 
9387
        ld_shlibs=no
 
9388
      fi
 
9389
      ;;
 
9390
    esac
 
9391
 
 
9392
    if test "$ld_shlibs" = no; then
 
9393
      runpath_var=
 
9394
      hardcode_libdir_flag_spec=
 
9395
      export_dynamic_flag_spec=
 
9396
      whole_archive_flag_spec=
 
9397
    fi
 
9398
  else
 
9399
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9400
    case $host_os in
 
9401
    aix3*)
 
9402
      allow_undefined_flag=unsupported
 
9403
      always_export_symbols=yes
 
9404
      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'
 
9405
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9406
      # are no directories specified by -L.
 
9407
      hardcode_minus_L=yes
 
9408
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9409
        # Neither direct hardcoding nor static linking is supported with a
 
9410
        # broken collect2.
 
9411
        hardcode_direct=unsupported
 
9412
      fi
 
9413
      ;;
 
9414
 
 
9415
    aix[4-9]*)
 
9416
      if test "$host_cpu" = ia64; then
 
9417
        # On IA64, the linker does run time linking by default, so we don't
 
9418
        # have to do anything special.
 
9419
        aix_use_runtimelinking=no
 
9420
        exp_sym_flag='-Bexport'
 
9421
        no_entry_flag=""
 
9422
      else
 
9423
        # If we're using GNU nm, then we don't want the "-C" option.
 
9424
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9425
        # Also, AIX nm treats weak defined symbols like other global
 
9426
        # defined symbols, whereas GNU nm marks them as "W".
 
9427
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9428
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9429
        else
 
9430
          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'
 
9431
        fi
 
9432
        aix_use_runtimelinking=no
 
9433
 
 
9434
        # Test if we are trying to use run time linking or normal
 
9435
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9436
        # need to do runtime linking.
 
9437
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9438
          for ld_flag in $LDFLAGS; do
 
9439
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9440
            aix_use_runtimelinking=yes
 
9441
            break
 
9442
          fi
 
9443
          done
 
9444
          ;;
 
9445
        esac
 
9446
 
 
9447
        exp_sym_flag='-bexport'
 
9448
        no_entry_flag='-bnoentry'
 
9449
      fi
 
9450
 
 
9451
      # When large executables or shared objects are built, AIX ld can
 
9452
      # have problems creating the table of contents.  If linking a library
 
9453
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9454
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9455
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9456
 
 
9457
      archive_cmds=''
 
9458
      hardcode_direct=yes
 
9459
      hardcode_direct_absolute=yes
 
9460
      hardcode_libdir_separator=':'
 
9461
      link_all_deplibs=yes
 
9462
      file_list_spec='${wl}-f,'
 
9463
 
 
9464
      if test "$GCC" = yes; then
 
9465
        case $host_os in aix4.[012]|aix4.[012].*)
 
9466
        # We only want to do this on AIX 4.2 and lower, the check
 
9467
        # below for broken collect2 doesn't work under 4.3+
 
9468
          collect2name=`${CC} -print-prog-name=collect2`
 
9469
          if test -f "$collect2name" &&
 
9470
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9471
          then
 
9472
          # We have reworked collect2
 
9473
          :
 
9474
          else
 
9475
          # We have old collect2
 
9476
          hardcode_direct=unsupported
 
9477
          # It fails to find uninstalled libraries when the uninstalled
 
9478
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9479
          # to unsupported forces relinking
 
9480
          hardcode_minus_L=yes
 
9481
          hardcode_libdir_flag_spec='-L$libdir'
 
9482
          hardcode_libdir_separator=
 
9483
          fi
 
9484
          ;;
 
9485
        esac
 
9486
        shared_flag='-shared'
 
9487
        if test "$aix_use_runtimelinking" = yes; then
 
9488
          shared_flag="$shared_flag "'${wl}-G'
 
9489
        fi
 
9490
        link_all_deplibs=no
 
9491
      else
 
9492
        # not using gcc
 
9493
        if test "$host_cpu" = ia64; then
 
9494
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9495
        # chokes on -Wl,-G. The following line is correct:
 
9496
          shared_flag='-G'
 
9497
        else
 
9498
          if test "$aix_use_runtimelinking" = yes; then
 
9499
            shared_flag='${wl}-G'
 
9500
          else
 
9501
            shared_flag='${wl}-bM:SRE'
 
9502
          fi
 
9503
        fi
 
9504
      fi
 
9505
 
 
9506
      export_dynamic_flag_spec='${wl}-bexpall'
 
9507
      # It seems that -bexpall does not export symbols beginning with
 
9508
      # underscore (_), so it is better to generate a list of symbols to export.
 
9509
      always_export_symbols=yes
 
9510
      if test "$aix_use_runtimelinking" = yes; then
 
9511
        # Warning - without using the other runtime loading flags (-brtl),
 
9512
        # -berok will link without error, but may produce a broken library.
 
9513
        allow_undefined_flag='-berok'
 
9514
        # Determine the default libpath from the value encoded in an
 
9515
        # empty executable.
 
9516
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9517
  aix_libpath=$lt_cv_aix_libpath
 
9518
else
 
9519
  if ${lt_cv_aix_libpath_+:} false; then :
 
9520
  $as_echo_n "(cached) " >&6
 
9521
else
 
9522
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9523
/* end confdefs.h.  */
 
9524
 
 
9525
int
 
9526
main ()
 
9527
{
 
9528
 
 
9529
  ;
 
9530
  return 0;
 
9531
}
 
9532
_ACEOF
 
9533
if ac_fn_c_try_link "$LINENO"; then :
 
9534
 
 
9535
  lt_aix_libpath_sed='
 
9536
      /Import File Strings/,/^$/ {
 
9537
          /^0/ {
 
9538
              s/^0  *\([^ ]*\) *$/\1/
 
9539
              p
 
9540
          }
 
9541
      }'
 
9542
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9543
  # Check for a 64-bit object if we didn't find anything.
 
9544
  if test -z "$lt_cv_aix_libpath_"; then
 
9545
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9546
  fi
 
9547
fi
 
9548
rm -f core conftest.err conftest.$ac_objext \
 
9549
    conftest$ac_exeext conftest.$ac_ext
 
9550
  if test -z "$lt_cv_aix_libpath_"; then
 
9551
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9552
  fi
 
9553
 
 
9554
fi
 
9555
 
 
9556
  aix_libpath=$lt_cv_aix_libpath_
 
9557
fi
 
9558
 
 
9559
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9560
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9561
      else
 
9562
        if test "$host_cpu" = ia64; then
 
9563
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9564
          allow_undefined_flag="-z nodefs"
 
9565
          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"
 
9566
        else
 
9567
         # Determine the default libpath from the value encoded in an
 
9568
         # empty executable.
 
9569
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9570
  aix_libpath=$lt_cv_aix_libpath
 
9571
else
 
9572
  if ${lt_cv_aix_libpath_+:} false; then :
 
9573
  $as_echo_n "(cached) " >&6
 
9574
else
 
9575
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9576
/* end confdefs.h.  */
 
9577
 
 
9578
int
 
9579
main ()
 
9580
{
 
9581
 
 
9582
  ;
 
9583
  return 0;
 
9584
}
 
9585
_ACEOF
 
9586
if ac_fn_c_try_link "$LINENO"; then :
 
9587
 
 
9588
  lt_aix_libpath_sed='
 
9589
      /Import File Strings/,/^$/ {
 
9590
          /^0/ {
 
9591
              s/^0  *\([^ ]*\) *$/\1/
 
9592
              p
 
9593
          }
 
9594
      }'
 
9595
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9596
  # Check for a 64-bit object if we didn't find anything.
 
9597
  if test -z "$lt_cv_aix_libpath_"; then
 
9598
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9599
  fi
 
9600
fi
 
9601
rm -f core conftest.err conftest.$ac_objext \
 
9602
    conftest$ac_exeext conftest.$ac_ext
 
9603
  if test -z "$lt_cv_aix_libpath_"; then
 
9604
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9605
  fi
 
9606
 
 
9607
fi
 
9608
 
 
9609
  aix_libpath=$lt_cv_aix_libpath_
 
9610
fi
 
9611
 
 
9612
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9613
          # Warning - without using the other run time loading flags,
 
9614
          # -berok will link without error, but may produce a broken library.
 
9615
          no_undefined_flag=' ${wl}-bernotok'
 
9616
          allow_undefined_flag=' ${wl}-berok'
 
9617
          if test "$with_gnu_ld" = yes; then
 
9618
            # We only use this code for GNU lds that support --whole-archive.
 
9619
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9620
          else
 
9621
            # Exported symbols can be pulled into shared objects from archives
 
9622
            whole_archive_flag_spec='$convenience'
 
9623
          fi
 
9624
          archive_cmds_need_lc=yes
 
9625
          # This is similar to how AIX traditionally builds its shared libraries.
 
9626
          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'
 
9627
        fi
 
9628
      fi
 
9629
      ;;
 
9630
 
 
9631
    amigaos*)
 
9632
      case $host_cpu in
 
9633
      powerpc)
 
9634
            # see comment about AmigaOS4 .so support
 
9635
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9636
            archive_expsym_cmds=''
 
9637
        ;;
 
9638
      m68k)
 
9639
            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)'
 
9640
            hardcode_libdir_flag_spec='-L$libdir'
 
9641
            hardcode_minus_L=yes
 
9642
        ;;
 
9643
      esac
 
9644
      ;;
 
9645
 
 
9646
    bsdi[45]*)
 
9647
      export_dynamic_flag_spec=-rdynamic
 
9648
      ;;
 
9649
 
 
9650
    cygwin* | mingw* | pw32* | cegcc*)
 
9651
      # When not using gcc, we currently assume that we are using
 
9652
      # Microsoft Visual C++.
 
9653
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9654
      # no search path for DLLs.
 
9655
      case $cc_basename in
 
9656
      cl*)
 
9657
        # Native MSVC
 
9658
        hardcode_libdir_flag_spec=' '
 
9659
        allow_undefined_flag=unsupported
 
9660
        always_export_symbols=yes
 
9661
        file_list_spec='@'
 
9662
        # Tell ltmain to make .lib files, not .a files.
 
9663
        libext=lib
 
9664
        # Tell ltmain to make .dll files, not .so files.
 
9665
        shrext_cmds=".dll"
 
9666
        # FIXME: Setting linknames here is a bad hack.
 
9667
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9668
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9669
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9670
          else
 
9671
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9672
          fi~
 
9673
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9674
          linknames='
 
9675
        # The linker will not automatically build a static lib if we build a DLL.
 
9676
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9677
        enable_shared_with_static_runtimes=yes
 
9678
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9679
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9680
        # Don't use ranlib
 
9681
        old_postinstall_cmds='chmod 644 $oldlib'
 
9682
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9683
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9684
          case $lt_outputfile in
 
9685
            *.exe|*.EXE) ;;
 
9686
            *)
 
9687
              lt_outputfile="$lt_outputfile.exe"
 
9688
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9689
              ;;
 
9690
          esac~
 
9691
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9692
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9693
            $RM "$lt_outputfile.manifest";
 
9694
          fi'
 
9695
        ;;
 
9696
      *)
 
9697
        # Assume MSVC wrapper
 
9698
        hardcode_libdir_flag_spec=' '
 
9699
        allow_undefined_flag=unsupported
 
9700
        # Tell ltmain to make .lib files, not .a files.
 
9701
        libext=lib
 
9702
        # Tell ltmain to make .dll files, not .so files.
 
9703
        shrext_cmds=".dll"
 
9704
        # FIXME: Setting linknames here is a bad hack.
 
9705
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9706
        # The linker will automatically build a .lib file if we build a DLL.
 
9707
        old_archive_from_new_cmds='true'
 
9708
        # FIXME: Should let the user specify the lib program.
 
9709
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9710
        enable_shared_with_static_runtimes=yes
 
9711
        ;;
 
9712
      esac
 
9713
      ;;
 
9714
 
 
9715
    darwin* | rhapsody*)
 
9716
 
 
9717
 
 
9718
  archive_cmds_need_lc=no
 
9719
  hardcode_direct=no
 
9720
  hardcode_automatic=yes
 
9721
  hardcode_shlibpath_var=unsupported
 
9722
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9723
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9724
 
 
9725
  else
 
9726
    whole_archive_flag_spec=''
 
9727
  fi
 
9728
  link_all_deplibs=yes
 
9729
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9730
  case $cc_basename in
 
9731
     ifort*) _lt_dar_can_shared=yes ;;
 
9732
     *) _lt_dar_can_shared=$GCC ;;
 
9733
  esac
 
9734
  if test "$_lt_dar_can_shared" = "yes"; then
 
9735
    output_verbose_link_cmd=func_echo_all
 
9736
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9737
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9738
    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}"
 
9739
    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}"
 
9740
 
 
9741
  else
 
9742
  ld_shlibs=no
 
9743
  fi
 
9744
 
 
9745
      ;;
 
9746
 
 
9747
    dgux*)
 
9748
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9749
      hardcode_libdir_flag_spec='-L$libdir'
 
9750
      hardcode_shlibpath_var=no
 
9751
      ;;
 
9752
 
 
9753
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9754
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9755
    # does not break anything, and helps significantly (at the cost of a little
 
9756
    # extra space).
 
9757
    freebsd2.2*)
 
9758
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9759
      hardcode_libdir_flag_spec='-R$libdir'
 
9760
      hardcode_direct=yes
 
9761
      hardcode_shlibpath_var=no
 
9762
      ;;
 
9763
 
 
9764
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9765
    freebsd2.*)
 
9766
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9767
      hardcode_direct=yes
 
9768
      hardcode_minus_L=yes
 
9769
      hardcode_shlibpath_var=no
 
9770
      ;;
 
9771
 
 
9772
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9773
    freebsd* | dragonfly*)
 
9774
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9775
      hardcode_libdir_flag_spec='-R$libdir'
 
9776
      hardcode_direct=yes
 
9777
      hardcode_shlibpath_var=no
 
9778
      ;;
 
9779
 
 
9780
    hpux9*)
 
9781
      if test "$GCC" = yes; then
 
9782
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9783
      else
 
9784
        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'
 
9785
      fi
 
9786
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9787
      hardcode_libdir_separator=:
 
9788
      hardcode_direct=yes
 
9789
 
 
9790
      # hardcode_minus_L: Not really in the search PATH,
 
9791
      # but as the default location of the library.
 
9792
      hardcode_minus_L=yes
 
9793
      export_dynamic_flag_spec='${wl}-E'
 
9794
      ;;
 
9795
 
 
9796
    hpux10*)
 
9797
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9798
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9799
      else
 
9800
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9801
      fi
 
9802
      if test "$with_gnu_ld" = no; then
 
9803
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9804
        hardcode_libdir_separator=:
 
9805
        hardcode_direct=yes
 
9806
        hardcode_direct_absolute=yes
 
9807
        export_dynamic_flag_spec='${wl}-E'
 
9808
        # hardcode_minus_L: Not really in the search PATH,
 
9809
        # but as the default location of the library.
 
9810
        hardcode_minus_L=yes
 
9811
      fi
 
9812
      ;;
 
9813
 
 
9814
    hpux11*)
 
9815
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9816
        case $host_cpu in
 
9817
        hppa*64*)
 
9818
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9819
          ;;
 
9820
        ia64*)
 
9821
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9822
          ;;
 
9823
        *)
 
9824
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9825
          ;;
 
9826
        esac
 
9827
      else
 
9828
        case $host_cpu in
 
9829
        hppa*64*)
 
9830
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9831
          ;;
 
9832
        ia64*)
 
9833
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9834
          ;;
 
9835
        *)
 
9836
 
 
9837
          # Older versions of the 11.00 compiler do not understand -b yet
 
9838
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9839
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9840
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9841
if ${lt_cv_prog_compiler__b+:} false; then :
 
9842
  $as_echo_n "(cached) " >&6
 
9843
else
 
9844
  lt_cv_prog_compiler__b=no
 
9845
   save_LDFLAGS="$LDFLAGS"
 
9846
   LDFLAGS="$LDFLAGS -b"
 
9847
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9848
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9849
     # The linker can only warn and ignore the option if not recognized
 
9850
     # So say no if there are warnings
 
9851
     if test -s conftest.err; then
 
9852
       # Append any errors to the config.log.
 
9853
       cat conftest.err 1>&5
 
9854
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9855
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9856
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9857
         lt_cv_prog_compiler__b=yes
 
9858
       fi
 
9859
     else
 
9860
       lt_cv_prog_compiler__b=yes
 
9861
     fi
 
9862
   fi
 
9863
   $RM -r conftest*
 
9864
   LDFLAGS="$save_LDFLAGS"
 
9865
 
 
9866
fi
 
9867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9868
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9869
 
 
9870
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9871
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9872
else
 
9873
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9874
fi
 
9875
 
 
9876
          ;;
 
9877
        esac
 
9878
      fi
 
9879
      if test "$with_gnu_ld" = no; then
 
9880
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9881
        hardcode_libdir_separator=:
 
9882
 
 
9883
        case $host_cpu in
 
9884
        hppa*64*|ia64*)
 
9885
          hardcode_direct=no
 
9886
          hardcode_shlibpath_var=no
 
9887
          ;;
 
9888
        *)
 
9889
          hardcode_direct=yes
 
9890
          hardcode_direct_absolute=yes
 
9891
          export_dynamic_flag_spec='${wl}-E'
 
9892
 
 
9893
          # hardcode_minus_L: Not really in the search PATH,
 
9894
          # but as the default location of the library.
 
9895
          hardcode_minus_L=yes
 
9896
          ;;
 
9897
        esac
 
9898
      fi
 
9899
      ;;
 
9900
 
 
9901
    irix5* | irix6* | nonstopux*)
 
9902
      if test "$GCC" = yes; then
 
9903
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9904
        # Try to use the -exported_symbol ld option, if it does not
 
9905
        # work, assume that -exports_file does not work either and
 
9906
        # implicitly export all symbols.
 
9907
        # This should be the same for all languages, so no per-tag cache variable.
 
9908
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9909
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9910
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9911
  $as_echo_n "(cached) " >&6
 
9912
else
 
9913
  save_LDFLAGS="$LDFLAGS"
 
9914
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9915
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9916
/* end confdefs.h.  */
 
9917
int foo (void) { return 0; }
 
9918
_ACEOF
 
9919
if ac_fn_c_try_link "$LINENO"; then :
 
9920
  lt_cv_irix_exported_symbol=yes
 
9921
else
 
9922
  lt_cv_irix_exported_symbol=no
 
9923
fi
 
9924
rm -f core conftest.err conftest.$ac_objext \
 
9925
    conftest$ac_exeext conftest.$ac_ext
 
9926
           LDFLAGS="$save_LDFLAGS"
 
9927
fi
 
9928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9929
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9930
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9931
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9932
        fi
 
9933
      else
 
9934
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9935
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9936
      fi
 
9937
      archive_cmds_need_lc='no'
 
9938
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9939
      hardcode_libdir_separator=:
 
9940
      inherit_rpath=yes
 
9941
      link_all_deplibs=yes
 
9942
      ;;
 
9943
 
 
9944
    netbsd* | netbsdelf*-gnu)
 
9945
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9946
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9947
      else
 
9948
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9949
      fi
 
9950
      hardcode_libdir_flag_spec='-R$libdir'
 
9951
      hardcode_direct=yes
 
9952
      hardcode_shlibpath_var=no
 
9953
      ;;
 
9954
 
 
9955
    newsos6)
 
9956
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9957
      hardcode_direct=yes
 
9958
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9959
      hardcode_libdir_separator=:
 
9960
      hardcode_shlibpath_var=no
 
9961
      ;;
 
9962
 
 
9963
    *nto* | *qnx*)
 
9964
      ;;
 
9965
 
 
9966
    openbsd*)
 
9967
      if test -f /usr/libexec/ld.so; then
 
9968
        hardcode_direct=yes
 
9969
        hardcode_shlibpath_var=no
 
9970
        hardcode_direct_absolute=yes
 
9971
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9972
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9973
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9974
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9975
          export_dynamic_flag_spec='${wl}-E'
 
9976
        else
 
9977
          case $host_os in
 
9978
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9979
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9980
             hardcode_libdir_flag_spec='-R$libdir'
 
9981
             ;;
 
9982
           *)
 
9983
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9984
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9985
             ;;
 
9986
          esac
 
9987
        fi
 
9988
      else
 
9989
        ld_shlibs=no
 
9990
      fi
 
9991
      ;;
 
9992
 
 
9993
    os2*)
 
9994
      hardcode_libdir_flag_spec='-L$libdir'
 
9995
      hardcode_minus_L=yes
 
9996
      allow_undefined_flag=unsupported
 
9997
      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'
 
9998
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9999
      ;;
 
10000
 
 
10001
    osf3*)
 
10002
      if test "$GCC" = yes; then
 
10003
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10004
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10005
      else
 
10006
        allow_undefined_flag=' -expect_unresolved \*'
 
10007
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10008
      fi
 
10009
      archive_cmds_need_lc='no'
 
10010
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10011
      hardcode_libdir_separator=:
 
10012
      ;;
 
10013
 
 
10014
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10015
      if test "$GCC" = yes; then
 
10016
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10017
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10018
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10019
      else
 
10020
        allow_undefined_flag=' -expect_unresolved \*'
 
10021
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10022
        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~
 
10023
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10024
 
 
10025
        # Both c and cxx compiler support -rpath directly
 
10026
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10027
      fi
 
10028
      archive_cmds_need_lc='no'
 
10029
      hardcode_libdir_separator=:
 
10030
      ;;
 
10031
 
 
10032
    solaris*)
 
10033
      no_undefined_flag=' -z defs'
 
10034
      if test "$GCC" = yes; then
 
10035
        wlarc='${wl}'
 
10036
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10037
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10038
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10039
      else
 
10040
        case `$CC -V 2>&1` in
 
10041
        *"Compilers 5.0"*)
 
10042
          wlarc=''
 
10043
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10044
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10045
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10046
          ;;
 
10047
        *)
 
10048
          wlarc='${wl}'
 
10049
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10050
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10051
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10052
          ;;
 
10053
        esac
 
10054
      fi
 
10055
      hardcode_libdir_flag_spec='-R$libdir'
 
10056
      hardcode_shlibpath_var=no
 
10057
      case $host_os in
 
10058
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10059
      *)
 
10060
        # The compiler driver will combine and reorder linker options,
 
10061
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10062
        # but is careful enough not to reorder.
 
10063
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10064
        if test "$GCC" = yes; then
 
10065
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10066
        else
 
10067
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10068
        fi
 
10069
        ;;
 
10070
      esac
 
10071
      link_all_deplibs=yes
 
10072
      ;;
 
10073
 
 
10074
    sunos4*)
 
10075
      if test "x$host_vendor" = xsequent; then
 
10076
        # Use $CC to link under sequent, because it throws in some extra .o
 
10077
        # files that make .init and .fini sections work.
 
10078
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10079
      else
 
10080
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10081
      fi
 
10082
      hardcode_libdir_flag_spec='-L$libdir'
 
10083
      hardcode_direct=yes
 
10084
      hardcode_minus_L=yes
 
10085
      hardcode_shlibpath_var=no
 
10086
      ;;
 
10087
 
 
10088
    sysv4)
 
10089
      case $host_vendor in
 
10090
        sni)
 
10091
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10092
          hardcode_direct=yes # is this really true???
 
10093
        ;;
 
10094
        siemens)
 
10095
          ## LD is ld it makes a PLAMLIB
 
10096
          ## CC just makes a GrossModule.
 
10097
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10098
          reload_cmds='$CC -r -o $output$reload_objs'
 
10099
          hardcode_direct=no
 
10100
        ;;
 
10101
        motorola)
 
10102
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10103
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10104
        ;;
 
10105
      esac
 
10106
      runpath_var='LD_RUN_PATH'
 
10107
      hardcode_shlibpath_var=no
 
10108
      ;;
 
10109
 
 
10110
    sysv4.3*)
 
10111
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10112
      hardcode_shlibpath_var=no
 
10113
      export_dynamic_flag_spec='-Bexport'
 
10114
      ;;
 
10115
 
 
10116
    sysv4*MP*)
 
10117
      if test -d /usr/nec; then
 
10118
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10119
        hardcode_shlibpath_var=no
 
10120
        runpath_var=LD_RUN_PATH
 
10121
        hardcode_runpath_var=yes
 
10122
        ld_shlibs=yes
 
10123
      fi
 
10124
      ;;
 
10125
 
 
10126
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10127
      no_undefined_flag='${wl}-z,text'
 
10128
      archive_cmds_need_lc=no
 
10129
      hardcode_shlibpath_var=no
 
10130
      runpath_var='LD_RUN_PATH'
 
10131
 
 
10132
      if test "$GCC" = yes; then
 
10133
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10134
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10135
      else
 
10136
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10137
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10138
      fi
 
10139
      ;;
 
10140
 
 
10141
    sysv5* | sco3.2v5* | sco5v6*)
 
10142
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10143
      # link with -lc, and that would cause any symbols used from libc to
 
10144
      # always be unresolved, which means just about no library would
 
10145
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10146
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10147
      # as -z defs.
 
10148
      no_undefined_flag='${wl}-z,text'
 
10149
      allow_undefined_flag='${wl}-z,nodefs'
 
10150
      archive_cmds_need_lc=no
 
10151
      hardcode_shlibpath_var=no
 
10152
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10153
      hardcode_libdir_separator=':'
 
10154
      link_all_deplibs=yes
 
10155
      export_dynamic_flag_spec='${wl}-Bexport'
 
10156
      runpath_var='LD_RUN_PATH'
 
10157
 
 
10158
      if test "$GCC" = yes; then
 
10159
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10160
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10161
      else
 
10162
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10163
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10164
      fi
 
10165
      ;;
 
10166
 
 
10167
    uts4*)
 
10168
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10169
      hardcode_libdir_flag_spec='-L$libdir'
 
10170
      hardcode_shlibpath_var=no
 
10171
      ;;
 
10172
 
 
10173
    *)
 
10174
      ld_shlibs=no
 
10175
      ;;
 
10176
    esac
 
10177
 
 
10178
    if test x$host_vendor = xsni; then
 
10179
      case $host in
 
10180
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10181
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10182
        ;;
 
10183
      esac
 
10184
    fi
 
10185
  fi
 
10186
 
 
10187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10188
$as_echo "$ld_shlibs" >&6; }
 
10189
test "$ld_shlibs" = no && can_build_shared=no
 
10190
 
 
10191
with_gnu_ld=$with_gnu_ld
 
10192
 
 
10193
 
 
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
 
10207
#
 
10208
# Do we need to explicitly link libc?
 
10209
#
 
10210
case "x$archive_cmds_need_lc" in
 
10211
x|xyes)
 
10212
  # Assume -lc should be added
 
10213
  archive_cmds_need_lc=yes
 
10214
 
 
10215
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10216
    case $archive_cmds in
 
10217
    *'~'*)
 
10218
      # FIXME: we may have to deal with multi-command sequences.
 
10219
      ;;
 
10220
    '$CC '*)
 
10221
      # Test whether the compiler implicitly links with -lc since on some
 
10222
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10223
      # to ld, don't add -lc before -lgcc.
 
10224
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10225
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10226
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10227
  $as_echo_n "(cached) " >&6
 
10228
else
 
10229
  $RM conftest*
 
10230
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10231
 
 
10232
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10233
  (eval $ac_compile) 2>&5
 
10234
  ac_status=$?
 
10235
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10236
  test $ac_status = 0; } 2>conftest.err; then
 
10237
          soname=conftest
 
10238
          lib=conftest
 
10239
          libobjs=conftest.$ac_objext
 
10240
          deplibs=
 
10241
          wl=$lt_prog_compiler_wl
 
10242
          pic_flag=$lt_prog_compiler_pic
 
10243
          compiler_flags=-v
 
10244
          linker_flags=-v
 
10245
          verstring=
 
10246
          output_objdir=.
 
10247
          libname=conftest
 
10248
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10249
          allow_undefined_flag=
 
10250
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10251
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10252
  ac_status=$?
 
10253
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10254
  test $ac_status = 0; }
 
10255
          then
 
10256
            lt_cv_archive_cmds_need_lc=no
 
10257
          else
 
10258
            lt_cv_archive_cmds_need_lc=yes
 
10259
          fi
 
10260
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10261
        else
 
10262
          cat conftest.err 1>&5
 
10263
        fi
 
10264
        $RM conftest*
 
10265
 
 
10266
fi
 
10267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10268
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10269
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10270
      ;;
 
10271
    esac
 
10272
  fi
 
10273
  ;;
 
10274
esac
 
10275
 
 
10276
 
 
10277
 
 
10278
 
 
10279
 
 
10280
 
 
10281
 
 
10282
 
 
10283
 
 
10284
 
 
10285
 
 
10286
 
 
10287
 
 
10288
 
 
10289
 
 
10290
 
 
10291
 
 
10292
 
 
10293
 
 
10294
 
 
10295
 
 
10296
 
 
10297
 
 
10298
 
 
10299
 
 
10300
 
 
10301
 
 
10302
 
 
10303
 
 
10304
 
 
10305
 
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
 
10330
 
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
 
 
10420
 
 
10421
 
 
10422
 
 
10423
 
 
10424
 
 
10425
 
 
10426
 
 
10427
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10428
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10429
 
 
10430
if test "$GCC" = yes; then
 
10431
  case $host_os in
 
10432
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10433
    *) lt_awk_arg="/^libraries:/" ;;
 
10434
  esac
 
10435
  case $host_os in
 
10436
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10437
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10438
  esac
 
10439
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10440
  case $lt_search_path_spec in
 
10441
  *\;*)
 
10442
    # if the path contains ";" then we assume it to be the separator
 
10443
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10444
    # assumed that no part of a normal pathname contains ";" but that should
 
10445
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10446
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10447
    ;;
 
10448
  *)
 
10449
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10450
    ;;
 
10451
  esac
 
10452
  # Ok, now we have the path, separated by spaces, we can step through it
 
10453
  # and add multilib dir if necessary.
 
10454
  lt_tmp_lt_search_path_spec=
 
10455
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10456
  for lt_sys_path in $lt_search_path_spec; do
 
10457
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10458
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10459
    else
 
10460
      test -d "$lt_sys_path" && \
 
10461
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10462
    fi
 
10463
  done
 
10464
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10465
BEGIN {RS=" "; FS="/|\n";} {
 
10466
  lt_foo="";
 
10467
  lt_count=0;
 
10468
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10469
    if ($lt_i != "" && $lt_i != ".") {
 
10470
      if ($lt_i == "..") {
 
10471
        lt_count++;
 
10472
      } else {
 
10473
        if (lt_count == 0) {
 
10474
          lt_foo="/" $lt_i lt_foo;
 
10475
        } else {
 
10476
          lt_count--;
 
10477
        }
 
10478
      }
 
10479
    }
 
10480
  }
 
10481
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10482
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10483
}'`
 
10484
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10485
  # for these hosts.
 
10486
  case $host_os in
 
10487
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10488
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10489
  esac
 
10490
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10491
else
 
10492
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10493
fi
 
10494
library_names_spec=
 
10495
libname_spec='lib$name'
 
10496
soname_spec=
 
10497
shrext_cmds=".so"
 
10498
postinstall_cmds=
 
10499
postuninstall_cmds=
 
10500
finish_cmds=
 
10501
finish_eval=
 
10502
shlibpath_var=
 
10503
shlibpath_overrides_runpath=unknown
 
10504
version_type=none
 
10505
dynamic_linker="$host_os ld.so"
 
10506
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10507
need_lib_prefix=unknown
 
10508
hardcode_into_libs=no
 
10509
 
 
10510
# when you set need_version to no, make sure it does not cause -set_version
 
10511
# flags to be left without arguments
 
10512
need_version=unknown
 
10513
 
 
10514
case $host_os in
 
10515
aix3*)
 
10516
  version_type=linux # correct to gnu/linux during the next big refactor
 
10517
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10518
  shlibpath_var=LIBPATH
 
10519
 
 
10520
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10521
  soname_spec='${libname}${release}${shared_ext}$major'
 
10522
  ;;
 
10523
 
 
10524
aix[4-9]*)
 
10525
  version_type=linux # correct to gnu/linux during the next big refactor
 
10526
  need_lib_prefix=no
 
10527
  need_version=no
 
10528
  hardcode_into_libs=yes
 
10529
  if test "$host_cpu" = ia64; then
 
10530
    # AIX 5 supports IA64
 
10531
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10532
    shlibpath_var=LD_LIBRARY_PATH
 
10533
  else
 
10534
    # With GCC up to 2.95.x, collect2 would create an import file
 
10535
    # for dependence libraries.  The import file would start with
 
10536
    # the line `#! .'.  This would cause the generated library to
 
10537
    # depend on `.', always an invalid library.  This was fixed in
 
10538
    # development snapshots of GCC prior to 3.0.
 
10539
    case $host_os in
 
10540
      aix4 | aix4.[01] | aix4.[01].*)
 
10541
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10542
           echo ' yes '
 
10543
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10544
        :
 
10545
      else
 
10546
        can_build_shared=no
 
10547
      fi
 
10548
      ;;
 
10549
    esac
 
10550
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10551
    # soname into executable. Probably we can add versioning support to
 
10552
    # collect2, so additional links can be useful in future.
 
10553
    if test "$aix_use_runtimelinking" = yes; then
 
10554
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10555
      # instead of lib<name>.a to let people know that these are not
 
10556
      # typical AIX shared libraries.
 
10557
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10558
    else
 
10559
      # We preserve .a as extension for shared libraries through AIX4.2
 
10560
      # and later when we are not doing run time linking.
 
10561
      library_names_spec='${libname}${release}.a $libname.a'
 
10562
      soname_spec='${libname}${release}${shared_ext}$major'
 
10563
    fi
 
10564
    shlibpath_var=LIBPATH
 
10565
  fi
 
10566
  ;;
 
10567
 
 
10568
amigaos*)
 
10569
  case $host_cpu in
 
10570
  powerpc)
 
10571
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10572
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10573
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10574
    ;;
 
10575
  m68k)
 
10576
    library_names_spec='$libname.ixlibrary $libname.a'
 
10577
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10578
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
 
10579
    ;;
 
10580
  esac
 
10581
  ;;
 
10582
 
 
10583
beos*)
 
10584
  library_names_spec='${libname}${shared_ext}'
 
10585
  dynamic_linker="$host_os ld.so"
 
10586
  shlibpath_var=LIBRARY_PATH
 
10587
  ;;
 
10588
 
 
10589
bsdi[45]*)
 
10590
  version_type=linux # correct to gnu/linux during the next big refactor
 
10591
  need_version=no
 
10592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10593
  soname_spec='${libname}${release}${shared_ext}$major'
 
10594
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10595
  shlibpath_var=LD_LIBRARY_PATH
 
10596
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10597
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10598
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10599
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10600
  # libtool to hard-code these into programs
 
10601
  ;;
 
10602
 
 
10603
cygwin* | mingw* | pw32* | cegcc*)
 
10604
  version_type=windows
 
10605
  shrext_cmds=".dll"
 
10606
  need_version=no
 
10607
  need_lib_prefix=no
 
10608
 
 
10609
  case $GCC,$cc_basename in
 
10610
  yes,*)
 
10611
    # gcc
 
10612
    library_names_spec='$libname.dll.a'
 
10613
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10614
    postinstall_cmds='base_file=`basename \${file}`~
 
10615
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10616
      dldir=$destdir/`dirname \$dlpath`~
 
10617
      test -d \$dldir || mkdir -p \$dldir~
 
10618
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10619
      chmod a+x \$dldir/$dlname~
 
10620
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10621
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10622
      fi'
 
10623
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10624
      dlpath=$dir/\$dldll~
 
10625
       $RM \$dlpath'
 
10626
    shlibpath_overrides_runpath=yes
 
10627
 
 
10628
    case $host_os in
 
10629
    cygwin*)
 
10630
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10631
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10632
 
 
10633
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10634
      ;;
 
10635
    mingw* | cegcc*)
 
10636
      # MinGW DLLs use traditional 'lib' prefix
 
10637
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10638
      ;;
 
10639
    pw32*)
 
10640
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10641
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10642
      ;;
 
10643
    esac
 
10644
    dynamic_linker='Win32 ld.exe'
 
10645
    ;;
 
10646
 
 
10647
  *,cl*)
 
10648
    # Native MSVC
 
10649
    libname_spec='$name'
 
10650
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10651
    library_names_spec='${libname}.dll.lib'
 
10652
 
 
10653
    case $build_os in
 
10654
    mingw*)
 
10655
      sys_lib_search_path_spec=
 
10656
      lt_save_ifs=$IFS
 
10657
      IFS=';'
 
10658
      for lt_path in $LIB
 
10659
      do
 
10660
        IFS=$lt_save_ifs
 
10661
        # Let DOS variable expansion print the short 8.3 style file name.
 
10662
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10663
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10664
      done
 
10665
      IFS=$lt_save_ifs
 
10666
      # Convert to MSYS style.
 
10667
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10668
      ;;
 
10669
    cygwin*)
 
10670
      # Convert to unix form, then to dos form, then back to unix form
 
10671
      # but this time dos style (no spaces!) so that the unix form looks
 
10672
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10673
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10674
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10675
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10676
      ;;
 
10677
    *)
 
10678
      sys_lib_search_path_spec="$LIB"
 
10679
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10680
        # It is most probably a Windows format PATH.
 
10681
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10682
      else
 
10683
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10684
      fi
 
10685
      # FIXME: find the short name or the path components, as spaces are
 
10686
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10687
      ;;
 
10688
    esac
 
10689
 
 
10690
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10691
    postinstall_cmds='base_file=`basename \${file}`~
 
10692
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10693
      dldir=$destdir/`dirname \$dlpath`~
 
10694
      test -d \$dldir || mkdir -p \$dldir~
 
10695
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10696
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10697
      dlpath=$dir/\$dldll~
 
10698
       $RM \$dlpath'
 
10699
    shlibpath_overrides_runpath=yes
 
10700
    dynamic_linker='Win32 link.exe'
 
10701
    ;;
 
10702
 
 
10703
  *)
 
10704
    # Assume MSVC wrapper
 
10705
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10706
    dynamic_linker='Win32 ld.exe'
 
10707
    ;;
 
10708
  esac
 
10709
  # FIXME: first we should search . and the directory the executable is in
 
10710
  shlibpath_var=PATH
 
10711
  ;;
 
10712
 
 
10713
darwin* | rhapsody*)
 
10714
  dynamic_linker="$host_os dyld"
 
10715
  version_type=darwin
 
10716
  need_lib_prefix=no
 
10717
  need_version=no
 
10718
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10719
  soname_spec='${libname}${release}${major}$shared_ext'
 
10720
  shlibpath_overrides_runpath=yes
 
10721
  shlibpath_var=DYLD_LIBRARY_PATH
 
10722
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10723
 
 
10724
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10725
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10726
  ;;
 
10727
 
 
10728
dgux*)
 
10729
  version_type=linux # correct to gnu/linux during the next big refactor
 
10730
  need_lib_prefix=no
 
10731
  need_version=no
 
10732
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10733
  soname_spec='${libname}${release}${shared_ext}$major'
 
10734
  shlibpath_var=LD_LIBRARY_PATH
 
10735
  ;;
 
10736
 
 
10737
freebsd* | dragonfly*)
 
10738
  # DragonFly does not have aout.  When/if they implement a new
 
10739
  # versioning mechanism, adjust this.
 
10740
  if test -x /usr/bin/objformat; then
 
10741
    objformat=`/usr/bin/objformat`
 
10742
  else
 
10743
    case $host_os in
 
10744
    freebsd[23].*) objformat=aout ;;
 
10745
    *) objformat=elf ;;
 
10746
    esac
 
10747
  fi
 
10748
  version_type=freebsd-$objformat
 
10749
  case $version_type in
 
10750
    freebsd-elf*)
 
10751
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10752
      need_version=no
 
10753
      need_lib_prefix=no
 
10754
      ;;
 
10755
    freebsd-*)
 
10756
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10757
      need_version=yes
 
10758
      ;;
 
10759
  esac
 
10760
  shlibpath_var=LD_LIBRARY_PATH
 
10761
  case $host_os in
 
10762
  freebsd2.*)
 
10763
    shlibpath_overrides_runpath=yes
 
10764
    ;;
 
10765
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10766
    shlibpath_overrides_runpath=yes
 
10767
    hardcode_into_libs=yes
 
10768
    ;;
 
10769
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10770
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10771
    shlibpath_overrides_runpath=no
 
10772
    hardcode_into_libs=yes
 
10773
    ;;
 
10774
  *) # from 4.6 on, and DragonFly
 
10775
    shlibpath_overrides_runpath=yes
 
10776
    hardcode_into_libs=yes
 
10777
    ;;
 
10778
  esac
 
10779
  ;;
 
10780
 
 
10781
haiku*)
 
10782
  version_type=linux # correct to gnu/linux during the next big refactor
 
10783
  need_lib_prefix=no
 
10784
  need_version=no
 
10785
  dynamic_linker="$host_os runtime_loader"
 
10786
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10787
  soname_spec='${libname}${release}${shared_ext}$major'
 
10788
  shlibpath_var=LIBRARY_PATH
 
10789
  shlibpath_overrides_runpath=yes
 
10790
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10791
  hardcode_into_libs=yes
 
10792
  ;;
 
10793
 
 
10794
hpux9* | hpux10* | hpux11*)
 
10795
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10796
  # link against other versions.
 
10797
  version_type=sunos
 
10798
  need_lib_prefix=no
 
10799
  need_version=no
 
10800
  case $host_cpu in
 
10801
  ia64*)
 
10802
    shrext_cmds='.so'
 
10803
    hardcode_into_libs=yes
 
10804
    dynamic_linker="$host_os dld.so"
 
10805
    shlibpath_var=LD_LIBRARY_PATH
 
10806
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10807
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10808
    soname_spec='${libname}${release}${shared_ext}$major'
 
10809
    if test "X$HPUX_IA64_MODE" = X32; then
 
10810
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10811
    else
 
10812
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10813
    fi
 
10814
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10815
    ;;
 
10816
  hppa*64*)
 
10817
    shrext_cmds='.sl'
 
10818
    hardcode_into_libs=yes
 
10819
    dynamic_linker="$host_os dld.sl"
 
10820
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10821
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10822
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10823
    soname_spec='${libname}${release}${shared_ext}$major'
 
10824
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10825
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10826
    ;;
 
10827
  *)
 
10828
    shrext_cmds='.sl'
 
10829
    dynamic_linker="$host_os dld.sl"
 
10830
    shlibpath_var=SHLIB_PATH
 
10831
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10832
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10833
    soname_spec='${libname}${release}${shared_ext}$major'
 
10834
    ;;
 
10835
  esac
 
10836
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10837
  postinstall_cmds='chmod 555 $lib'
 
10838
  # or fails outright, so override atomically:
 
10839
  install_override_mode=555
 
10840
  ;;
 
10841
 
 
10842
interix[3-9]*)
 
10843
  version_type=linux # correct to gnu/linux during the next big refactor
 
10844
  need_lib_prefix=no
 
10845
  need_version=no
 
10846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10847
  soname_spec='${libname}${release}${shared_ext}$major'
 
10848
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10849
  shlibpath_var=LD_LIBRARY_PATH
 
10850
  shlibpath_overrides_runpath=no
 
10851
  hardcode_into_libs=yes
 
10852
  ;;
 
10853
 
 
10854
irix5* | irix6* | nonstopux*)
 
10855
  case $host_os in
 
10856
    nonstopux*) version_type=nonstopux ;;
 
10857
    *)
 
10858
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10859
                version_type=linux # correct to gnu/linux during the next big refactor
 
10860
        else
 
10861
                version_type=irix
 
10862
        fi ;;
 
10863
  esac
 
10864
  need_lib_prefix=no
 
10865
  need_version=no
 
10866
  soname_spec='${libname}${release}${shared_ext}$major'
 
10867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10868
  case $host_os in
 
10869
  irix5* | nonstopux*)
 
10870
    libsuff= shlibsuff=
 
10871
    ;;
 
10872
  *)
 
10873
    case $LD in # libtool.m4 will add one of these switches to LD
 
10874
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10875
      libsuff= shlibsuff= libmagic=32-bit;;
 
10876
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10877
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10878
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10879
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10880
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10881
    esac
 
10882
    ;;
 
10883
  esac
 
10884
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10885
  shlibpath_overrides_runpath=no
 
10886
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10887
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10888
  hardcode_into_libs=yes
 
10889
  ;;
 
10890
 
 
10891
# No shared lib support for Linux oldld, aout, or coff.
 
10892
linux*oldld* | linux*aout* | linux*coff*)
 
10893
  dynamic_linker=no
 
10894
  ;;
 
10895
 
 
10896
# This must be glibc/ELF.
 
10897
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
10898
  version_type=linux # correct to gnu/linux during the next big refactor
 
10899
  need_lib_prefix=no
 
10900
  need_version=no
 
10901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10902
  soname_spec='${libname}${release}${shared_ext}$major'
 
10903
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10904
  shlibpath_var=LD_LIBRARY_PATH
 
10905
  shlibpath_overrides_runpath=no
 
10906
 
 
10907
  # Some binutils ld are patched to set DT_RUNPATH
 
10908
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10909
  $as_echo_n "(cached) " >&6
 
10910
else
 
10911
  lt_cv_shlibpath_overrides_runpath=no
 
10912
    save_LDFLAGS=$LDFLAGS
 
10913
    save_libdir=$libdir
 
10914
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10915
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10916
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10917
/* end confdefs.h.  */
 
10918
 
 
10919
int
 
10920
main ()
 
10921
{
 
10922
 
 
10923
  ;
 
10924
  return 0;
 
10925
}
 
10926
_ACEOF
 
10927
if ac_fn_c_try_link "$LINENO"; then :
 
10928
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10929
  lt_cv_shlibpath_overrides_runpath=yes
 
10930
fi
 
10931
fi
 
10932
rm -f core conftest.err conftest.$ac_objext \
 
10933
    conftest$ac_exeext conftest.$ac_ext
 
10934
    LDFLAGS=$save_LDFLAGS
 
10935
    libdir=$save_libdir
 
10936
 
 
10937
fi
 
10938
 
 
10939
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10940
 
 
10941
  # This implies no fast_install, which is unacceptable.
 
10942
  # Some rework will be needed to allow for fast_install
 
10943
  # before this can be enabled.
 
10944
  hardcode_into_libs=yes
 
10945
 
 
10946
  # Append ld.so.conf contents to the search path
 
10947
  if test -f /etc/ld.so.conf; then
 
10948
    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;s/"//g;/^$/d' | tr '\n' ' '`
 
10949
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10950
  fi
 
10951
 
 
10952
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10953
  # powerpc, because MkLinux only supported shared libraries with the
 
10954
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10955
  # most powerpc-linux boxes support dynamic linking these days and
 
10956
  # people can always --disable-shared, the test was removed, and we
 
10957
  # assume the GNU/Linux dynamic linker is in use.
 
10958
  dynamic_linker='GNU/Linux ld.so'
 
10959
  ;;
 
10960
 
 
10961
netbsdelf*-gnu)
 
10962
  version_type=linux
 
10963
  need_lib_prefix=no
 
10964
  need_version=no
 
10965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10966
  soname_spec='${libname}${release}${shared_ext}$major'
 
10967
  shlibpath_var=LD_LIBRARY_PATH
 
10968
  shlibpath_overrides_runpath=no
 
10969
  hardcode_into_libs=yes
 
10970
  dynamic_linker='NetBSD ld.elf_so'
 
10971
  ;;
 
10972
 
 
10973
netbsd*)
 
10974
  version_type=sunos
 
10975
  need_lib_prefix=no
 
10976
  need_version=no
 
10977
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10978
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10979
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10980
    dynamic_linker='NetBSD (a.out) ld.so'
 
10981
  else
 
10982
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10983
    soname_spec='${libname}${release}${shared_ext}$major'
 
10984
    dynamic_linker='NetBSD ld.elf_so'
 
10985
  fi
 
10986
  shlibpath_var=LD_LIBRARY_PATH
 
10987
  shlibpath_overrides_runpath=yes
 
10988
  hardcode_into_libs=yes
 
10989
  ;;
 
10990
 
 
10991
newsos6)
 
10992
  version_type=linux # correct to gnu/linux during the next big refactor
 
10993
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10994
  shlibpath_var=LD_LIBRARY_PATH
 
10995
  shlibpath_overrides_runpath=yes
 
10996
  ;;
 
10997
 
 
10998
*nto* | *qnx*)
 
10999
  version_type=qnx
 
11000
  need_lib_prefix=no
 
11001
  need_version=no
 
11002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11003
  soname_spec='${libname}${release}${shared_ext}$major'
 
11004
  shlibpath_var=LD_LIBRARY_PATH
 
11005
  shlibpath_overrides_runpath=no
 
11006
  hardcode_into_libs=yes
 
11007
  dynamic_linker='ldqnx.so'
 
11008
  ;;
 
11009
 
 
11010
openbsd*)
 
11011
  version_type=sunos
 
11012
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11013
  need_lib_prefix=no
 
11014
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11015
  case $host_os in
 
11016
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11017
    *)                          need_version=no  ;;
 
11018
  esac
 
11019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11020
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11021
  shlibpath_var=LD_LIBRARY_PATH
 
11022
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11023
    case $host_os in
 
11024
      openbsd2.[89] | openbsd2.[89].*)
 
11025
        shlibpath_overrides_runpath=no
 
11026
        ;;
 
11027
      *)
 
11028
        shlibpath_overrides_runpath=yes
 
11029
        ;;
 
11030
      esac
 
11031
  else
 
11032
    shlibpath_overrides_runpath=yes
 
11033
  fi
 
11034
  ;;
 
11035
 
 
11036
os2*)
 
11037
  libname_spec='$name'
 
11038
  shrext_cmds=".dll"
 
11039
  need_lib_prefix=no
 
11040
  library_names_spec='$libname${shared_ext} $libname.a'
 
11041
  dynamic_linker='OS/2 ld.exe'
 
11042
  shlibpath_var=LIBPATH
 
11043
  ;;
 
11044
 
 
11045
osf3* | osf4* | osf5*)
 
11046
  version_type=osf
 
11047
  need_lib_prefix=no
 
11048
  need_version=no
 
11049
  soname_spec='${libname}${release}${shared_ext}$major'
 
11050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11051
  shlibpath_var=LD_LIBRARY_PATH
 
11052
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11053
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11054
  ;;
 
11055
 
 
11056
rdos*)
 
11057
  dynamic_linker=no
 
11058
  ;;
 
11059
 
 
11060
solaris*)
 
11061
  version_type=linux # correct to gnu/linux during the next big refactor
 
11062
  need_lib_prefix=no
 
11063
  need_version=no
 
11064
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11065
  soname_spec='${libname}${release}${shared_ext}$major'
 
11066
  shlibpath_var=LD_LIBRARY_PATH
 
11067
  shlibpath_overrides_runpath=yes
 
11068
  hardcode_into_libs=yes
 
11069
  # ldd complains unless libraries are executable
 
11070
  postinstall_cmds='chmod +x $lib'
 
11071
  ;;
 
11072
 
 
11073
sunos4*)
 
11074
  version_type=sunos
 
11075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11076
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11077
  shlibpath_var=LD_LIBRARY_PATH
 
11078
  shlibpath_overrides_runpath=yes
 
11079
  if test "$with_gnu_ld" = yes; then
 
11080
    need_lib_prefix=no
 
11081
  fi
 
11082
  need_version=yes
 
11083
  ;;
 
11084
 
 
11085
sysv4 | sysv4.3*)
 
11086
  version_type=linux # correct to gnu/linux during the next big refactor
 
11087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11088
  soname_spec='${libname}${release}${shared_ext}$major'
 
11089
  shlibpath_var=LD_LIBRARY_PATH
 
11090
  case $host_vendor in
 
11091
    sni)
 
11092
      shlibpath_overrides_runpath=no
 
11093
      need_lib_prefix=no
 
11094
      runpath_var=LD_RUN_PATH
 
11095
      ;;
 
11096
    siemens)
 
11097
      need_lib_prefix=no
 
11098
      ;;
 
11099
    motorola)
 
11100
      need_lib_prefix=no
 
11101
      need_version=no
 
11102
      shlibpath_overrides_runpath=no
 
11103
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11104
      ;;
 
11105
  esac
 
11106
  ;;
 
11107
 
 
11108
sysv4*MP*)
 
11109
  if test -d /usr/nec ;then
 
11110
    version_type=linux # correct to gnu/linux during the next big refactor
 
11111
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11112
    soname_spec='$libname${shared_ext}.$major'
 
11113
    shlibpath_var=LD_LIBRARY_PATH
 
11114
  fi
 
11115
  ;;
 
11116
 
 
11117
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11118
  version_type=freebsd-elf
 
11119
  need_lib_prefix=no
 
11120
  need_version=no
 
11121
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11122
  soname_spec='${libname}${release}${shared_ext}$major'
 
11123
  shlibpath_var=LD_LIBRARY_PATH
 
11124
  shlibpath_overrides_runpath=yes
 
11125
  hardcode_into_libs=yes
 
11126
  if test "$with_gnu_ld" = yes; then
 
11127
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11128
  else
 
11129
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11130
    case $host_os in
 
11131
      sco3.2v5*)
 
11132
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11133
        ;;
 
11134
    esac
 
11135
  fi
 
11136
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11137
  ;;
 
11138
 
 
11139
tpf*)
 
11140
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11141
  version_type=linux # correct to gnu/linux during the next big refactor
 
11142
  need_lib_prefix=no
 
11143
  need_version=no
 
11144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11145
  shlibpath_var=LD_LIBRARY_PATH
 
11146
  shlibpath_overrides_runpath=no
 
11147
  hardcode_into_libs=yes
 
11148
  ;;
 
11149
 
 
11150
uts4*)
 
11151
  version_type=linux # correct to gnu/linux during the next big refactor
 
11152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11153
  soname_spec='${libname}${release}${shared_ext}$major'
 
11154
  shlibpath_var=LD_LIBRARY_PATH
 
11155
  ;;
 
11156
 
 
11157
*)
 
11158
  dynamic_linker=no
 
11159
  ;;
 
11160
esac
 
11161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11162
$as_echo "$dynamic_linker" >&6; }
 
11163
test "$dynamic_linker" = no && can_build_shared=no
 
11164
 
 
11165
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11166
if test "$GCC" = yes; then
 
11167
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11168
fi
 
11169
 
 
11170
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11171
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11172
fi
 
11173
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11174
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11175
fi
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
 
 
11216
 
 
11217
 
 
11218
 
 
11219
 
 
11220
 
 
11221
 
 
11222
 
 
11223
 
 
11224
 
 
11225
 
 
11226
 
 
11227
 
 
11228
 
 
11229
 
 
11230
 
 
11231
 
 
11232
 
 
11233
 
 
11234
 
 
11235
 
 
11236
 
 
11237
 
 
11238
 
 
11239
 
 
11240
 
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
 
11250
 
 
11251
 
 
11252
 
 
11253
 
 
11254
 
 
11255
 
 
11256
 
 
11257
 
 
11258
 
 
11259
 
 
11260
 
 
11261
 
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
 
 
11267
 
 
11268
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11269
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11270
hardcode_action=
 
11271
if test -n "$hardcode_libdir_flag_spec" ||
 
11272
   test -n "$runpath_var" ||
 
11273
   test "X$hardcode_automatic" = "Xyes" ; then
 
11274
 
 
11275
  # We can hardcode non-existent directories.
 
11276
  if test "$hardcode_direct" != no &&
 
11277
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11278
     # have to relink, otherwise we might link with an installed library
 
11279
     # when we should be linking with a yet-to-be-installed one
 
11280
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11281
     test "$hardcode_minus_L" != no; then
 
11282
    # Linking always hardcodes the temporary library directory.
 
11283
    hardcode_action=relink
 
11284
  else
 
11285
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11286
    hardcode_action=immediate
 
11287
  fi
 
11288
else
 
11289
  # We cannot hardcode anything, or else we can only hardcode existing
 
11290
  # directories.
 
11291
  hardcode_action=unsupported
 
11292
fi
 
11293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11294
$as_echo "$hardcode_action" >&6; }
 
11295
 
 
11296
if test "$hardcode_action" = relink ||
 
11297
   test "$inherit_rpath" = yes; then
 
11298
  # Fast installation is not supported
 
11299
  enable_fast_install=no
 
11300
elif test "$shlibpath_overrides_runpath" = yes ||
 
11301
     test "$enable_shared" = no; then
 
11302
  # Fast installation is not necessary
 
11303
  enable_fast_install=needless
 
11304
fi
 
11305
 
 
11306
 
 
11307
 
 
11308
 
 
11309
 
 
11310
 
 
11311
  if test "x$enable_dlopen" != xyes; then
 
11312
  enable_dlopen=unknown
 
11313
  enable_dlopen_self=unknown
 
11314
  enable_dlopen_self_static=unknown
 
11315
else
 
11316
  lt_cv_dlopen=no
 
11317
  lt_cv_dlopen_libs=
 
11318
 
 
11319
  case $host_os in
 
11320
  beos*)
 
11321
    lt_cv_dlopen="load_add_on"
 
11322
    lt_cv_dlopen_libs=
 
11323
    lt_cv_dlopen_self=yes
 
11324
    ;;
 
11325
 
 
11326
  mingw* | pw32* | cegcc*)
 
11327
    lt_cv_dlopen="LoadLibrary"
 
11328
    lt_cv_dlopen_libs=
 
11329
    ;;
 
11330
 
 
11331
  cygwin*)
 
11332
    lt_cv_dlopen="dlopen"
 
11333
    lt_cv_dlopen_libs=
 
11334
    ;;
 
11335
 
 
11336
  darwin*)
 
11337
  # if libdl is installed we need to link against it
 
11338
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11339
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11340
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11341
  $as_echo_n "(cached) " >&6
 
11342
else
 
11343
  ac_check_lib_save_LIBS=$LIBS
 
11344
LIBS="-ldl  $LIBS"
 
11345
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11346
/* end confdefs.h.  */
 
11347
 
 
11348
/* Override any GCC internal prototype to avoid an error.
 
11349
   Use char because int might match the return type of a GCC
 
11350
   builtin and then its argument prototype would still apply.  */
 
11351
#ifdef __cplusplus
 
11352
extern "C"
 
11353
#endif
 
11354
char dlopen ();
 
11355
int
 
11356
main ()
 
11357
{
 
11358
return dlopen ();
 
11359
  ;
 
11360
  return 0;
 
11361
}
 
11362
_ACEOF
 
11363
if ac_fn_c_try_link "$LINENO"; then :
 
11364
  ac_cv_lib_dl_dlopen=yes
 
11365
else
 
11366
  ac_cv_lib_dl_dlopen=no
 
11367
fi
 
11368
rm -f core conftest.err conftest.$ac_objext \
 
11369
    conftest$ac_exeext conftest.$ac_ext
 
11370
LIBS=$ac_check_lib_save_LIBS
 
11371
fi
 
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11373
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11374
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11375
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11376
else
 
11377
 
 
11378
    lt_cv_dlopen="dyld"
 
11379
    lt_cv_dlopen_libs=
 
11380
    lt_cv_dlopen_self=yes
 
11381
 
 
11382
fi
 
11383
 
 
11384
    ;;
 
11385
 
 
11386
  *)
 
11387
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11388
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11389
  lt_cv_dlopen="shl_load"
 
11390
else
 
11391
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11392
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11393
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11394
  $as_echo_n "(cached) " >&6
 
11395
else
 
11396
  ac_check_lib_save_LIBS=$LIBS
 
11397
LIBS="-ldld  $LIBS"
 
11398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11399
/* end confdefs.h.  */
 
11400
 
 
11401
/* Override any GCC internal prototype to avoid an error.
 
11402
   Use char because int might match the return type of a GCC
 
11403
   builtin and then its argument prototype would still apply.  */
 
11404
#ifdef __cplusplus
 
11405
extern "C"
 
11406
#endif
 
11407
char shl_load ();
 
11408
int
 
11409
main ()
 
11410
{
 
11411
return shl_load ();
 
11412
  ;
 
11413
  return 0;
 
11414
}
 
11415
_ACEOF
 
11416
if ac_fn_c_try_link "$LINENO"; then :
 
11417
  ac_cv_lib_dld_shl_load=yes
 
11418
else
 
11419
  ac_cv_lib_dld_shl_load=no
 
11420
fi
 
11421
rm -f core conftest.err conftest.$ac_objext \
 
11422
    conftest$ac_exeext conftest.$ac_ext
 
11423
LIBS=$ac_check_lib_save_LIBS
 
11424
fi
 
11425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11426
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11427
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11428
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11429
else
 
11430
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11431
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11432
  lt_cv_dlopen="dlopen"
 
11433
else
 
11434
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11435
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11436
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11437
  $as_echo_n "(cached) " >&6
 
11438
else
 
11439
  ac_check_lib_save_LIBS=$LIBS
 
11440
LIBS="-ldl  $LIBS"
 
11441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11442
/* end confdefs.h.  */
 
11443
 
 
11444
/* Override any GCC internal prototype to avoid an error.
 
11445
   Use char because int might match the return type of a GCC
 
11446
   builtin and then its argument prototype would still apply.  */
 
11447
#ifdef __cplusplus
 
11448
extern "C"
 
11449
#endif
 
11450
char dlopen ();
 
11451
int
 
11452
main ()
 
11453
{
 
11454
return dlopen ();
 
11455
  ;
 
11456
  return 0;
 
11457
}
 
11458
_ACEOF
 
11459
if ac_fn_c_try_link "$LINENO"; then :
 
11460
  ac_cv_lib_dl_dlopen=yes
 
11461
else
 
11462
  ac_cv_lib_dl_dlopen=no
 
11463
fi
 
11464
rm -f core conftest.err conftest.$ac_objext \
 
11465
    conftest$ac_exeext conftest.$ac_ext
 
11466
LIBS=$ac_check_lib_save_LIBS
 
11467
fi
 
11468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11469
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11470
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11471
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11472
else
 
11473
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11474
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11475
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11476
  $as_echo_n "(cached) " >&6
 
11477
else
 
11478
  ac_check_lib_save_LIBS=$LIBS
 
11479
LIBS="-lsvld  $LIBS"
 
11480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11481
/* end confdefs.h.  */
 
11482
 
 
11483
/* Override any GCC internal prototype to avoid an error.
 
11484
   Use char because int might match the return type of a GCC
 
11485
   builtin and then its argument prototype would still apply.  */
 
11486
#ifdef __cplusplus
 
11487
extern "C"
 
11488
#endif
 
11489
char dlopen ();
 
11490
int
 
11491
main ()
 
11492
{
 
11493
return dlopen ();
 
11494
  ;
 
11495
  return 0;
 
11496
}
 
11497
_ACEOF
 
11498
if ac_fn_c_try_link "$LINENO"; then :
 
11499
  ac_cv_lib_svld_dlopen=yes
 
11500
else
 
11501
  ac_cv_lib_svld_dlopen=no
 
11502
fi
 
11503
rm -f core conftest.err conftest.$ac_objext \
 
11504
    conftest$ac_exeext conftest.$ac_ext
 
11505
LIBS=$ac_check_lib_save_LIBS
 
11506
fi
 
11507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11508
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11509
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11510
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11511
else
 
11512
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11513
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11514
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11515
  $as_echo_n "(cached) " >&6
 
11516
else
 
11517
  ac_check_lib_save_LIBS=$LIBS
 
11518
LIBS="-ldld  $LIBS"
 
11519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11520
/* end confdefs.h.  */
 
11521
 
 
11522
/* Override any GCC internal prototype to avoid an error.
 
11523
   Use char because int might match the return type of a GCC
 
11524
   builtin and then its argument prototype would still apply.  */
 
11525
#ifdef __cplusplus
 
11526
extern "C"
 
11527
#endif
 
11528
char dld_link ();
 
11529
int
 
11530
main ()
 
11531
{
 
11532
return dld_link ();
 
11533
  ;
 
11534
  return 0;
 
11535
}
 
11536
_ACEOF
 
11537
if ac_fn_c_try_link "$LINENO"; then :
 
11538
  ac_cv_lib_dld_dld_link=yes
 
11539
else
 
11540
  ac_cv_lib_dld_dld_link=no
 
11541
fi
 
11542
rm -f core conftest.err conftest.$ac_objext \
 
11543
    conftest$ac_exeext conftest.$ac_ext
 
11544
LIBS=$ac_check_lib_save_LIBS
 
11545
fi
 
11546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11547
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11548
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11549
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11550
fi
 
11551
 
 
11552
 
 
11553
fi
 
11554
 
 
11555
 
 
11556
fi
 
11557
 
 
11558
 
 
11559
fi
 
11560
 
 
11561
 
 
11562
fi
 
11563
 
 
11564
 
 
11565
fi
 
11566
 
 
11567
    ;;
 
11568
  esac
 
11569
 
 
11570
  if test "x$lt_cv_dlopen" != xno; then
 
11571
    enable_dlopen=yes
 
11572
  else
 
11573
    enable_dlopen=no
 
11574
  fi
 
11575
 
 
11576
  case $lt_cv_dlopen in
 
11577
  dlopen)
 
11578
    save_CPPFLAGS="$CPPFLAGS"
 
11579
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11580
 
 
11581
    save_LDFLAGS="$LDFLAGS"
 
11582
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11583
 
 
11584
    save_LIBS="$LIBS"
 
11585
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11586
 
 
11587
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11588
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11589
if ${lt_cv_dlopen_self+:} false; then :
 
11590
  $as_echo_n "(cached) " >&6
 
11591
else
 
11592
          if test "$cross_compiling" = yes; then :
 
11593
  lt_cv_dlopen_self=cross
 
11594
else
 
11595
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11596
  lt_status=$lt_dlunknown
 
11597
  cat > conftest.$ac_ext <<_LT_EOF
 
11598
#line $LINENO "configure"
 
11599
#include "confdefs.h"
 
11600
 
 
11601
#if HAVE_DLFCN_H
 
11602
#include <dlfcn.h>
 
11603
#endif
 
11604
 
 
11605
#include <stdio.h>
 
11606
 
 
11607
#ifdef RTLD_GLOBAL
 
11608
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11609
#else
 
11610
#  ifdef DL_GLOBAL
 
11611
#    define LT_DLGLOBAL         DL_GLOBAL
 
11612
#  else
 
11613
#    define LT_DLGLOBAL         0
 
11614
#  endif
 
11615
#endif
 
11616
 
 
11617
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11618
   find out it does not work in some platform. */
 
11619
#ifndef LT_DLLAZY_OR_NOW
 
11620
#  ifdef RTLD_LAZY
 
11621
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11622
#  else
 
11623
#    ifdef DL_LAZY
 
11624
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11625
#    else
 
11626
#      ifdef RTLD_NOW
 
11627
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11628
#      else
 
11629
#        ifdef DL_NOW
 
11630
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11631
#        else
 
11632
#          define LT_DLLAZY_OR_NOW      0
 
11633
#        endif
 
11634
#      endif
 
11635
#    endif
 
11636
#  endif
 
11637
#endif
 
11638
 
 
11639
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11640
   correspondingly for the symbols needed.  */
 
11641
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11642
int fnord () __attribute__((visibility("default")));
 
11643
#endif
 
11644
 
 
11645
int fnord () { return 42; }
 
11646
int main ()
 
11647
{
 
11648
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11649
  int status = $lt_dlunknown;
 
11650
 
 
11651
  if (self)
 
11652
    {
 
11653
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11654
      else
 
11655
        {
 
11656
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11657
          else puts (dlerror ());
 
11658
        }
 
11659
      /* dlclose (self); */
 
11660
    }
 
11661
  else
 
11662
    puts (dlerror ());
 
11663
 
 
11664
  return status;
 
11665
}
 
11666
_LT_EOF
 
11667
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11668
  (eval $ac_link) 2>&5
 
11669
  ac_status=$?
 
11670
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11671
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11672
    (./conftest; exit; ) >&5 2>/dev/null
 
11673
    lt_status=$?
 
11674
    case x$lt_status in
 
11675
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11676
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11677
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11678
    esac
 
11679
  else :
 
11680
    # compilation failed
 
11681
    lt_cv_dlopen_self=no
 
11682
  fi
 
11683
fi
 
11684
rm -fr conftest*
 
11685
 
 
11686
 
 
11687
fi
 
11688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11689
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11690
 
 
11691
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11692
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11693
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11694
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11695
if ${lt_cv_dlopen_self_static+:} false; then :
 
11696
  $as_echo_n "(cached) " >&6
 
11697
else
 
11698
          if test "$cross_compiling" = yes; then :
 
11699
  lt_cv_dlopen_self_static=cross
 
11700
else
 
11701
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11702
  lt_status=$lt_dlunknown
 
11703
  cat > conftest.$ac_ext <<_LT_EOF
 
11704
#line $LINENO "configure"
 
11705
#include "confdefs.h"
 
11706
 
 
11707
#if HAVE_DLFCN_H
 
11708
#include <dlfcn.h>
 
11709
#endif
 
11710
 
 
11711
#include <stdio.h>
 
11712
 
 
11713
#ifdef RTLD_GLOBAL
 
11714
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11715
#else
 
11716
#  ifdef DL_GLOBAL
 
11717
#    define LT_DLGLOBAL         DL_GLOBAL
 
11718
#  else
 
11719
#    define LT_DLGLOBAL         0
 
11720
#  endif
 
11721
#endif
 
11722
 
 
11723
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11724
   find out it does not work in some platform. */
 
11725
#ifndef LT_DLLAZY_OR_NOW
 
11726
#  ifdef RTLD_LAZY
 
11727
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11728
#  else
 
11729
#    ifdef DL_LAZY
 
11730
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11731
#    else
 
11732
#      ifdef RTLD_NOW
 
11733
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11734
#      else
 
11735
#        ifdef DL_NOW
 
11736
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11737
#        else
 
11738
#          define LT_DLLAZY_OR_NOW      0
 
11739
#        endif
 
11740
#      endif
 
11741
#    endif
 
11742
#  endif
 
11743
#endif
 
11744
 
 
11745
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11746
   correspondingly for the symbols needed.  */
 
11747
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11748
int fnord () __attribute__((visibility("default")));
 
11749
#endif
 
11750
 
 
11751
int fnord () { return 42; }
 
11752
int main ()
 
11753
{
 
11754
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11755
  int status = $lt_dlunknown;
 
11756
 
 
11757
  if (self)
 
11758
    {
 
11759
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11760
      else
 
11761
        {
 
11762
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11763
          else puts (dlerror ());
 
11764
        }
 
11765
      /* dlclose (self); */
 
11766
    }
 
11767
  else
 
11768
    puts (dlerror ());
 
11769
 
 
11770
  return status;
 
11771
}
 
11772
_LT_EOF
 
11773
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11774
  (eval $ac_link) 2>&5
 
11775
  ac_status=$?
 
11776
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11777
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11778
    (./conftest; exit; ) >&5 2>/dev/null
 
11779
    lt_status=$?
 
11780
    case x$lt_status in
 
11781
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11782
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11783
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11784
    esac
 
11785
  else :
 
11786
    # compilation failed
 
11787
    lt_cv_dlopen_self_static=no
 
11788
  fi
 
11789
fi
 
11790
rm -fr conftest*
 
11791
 
 
11792
 
 
11793
fi
 
11794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11795
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11796
    fi
 
11797
 
 
11798
    CPPFLAGS="$save_CPPFLAGS"
 
11799
    LDFLAGS="$save_LDFLAGS"
 
11800
    LIBS="$save_LIBS"
 
11801
    ;;
 
11802
  esac
 
11803
 
 
11804
  case $lt_cv_dlopen_self in
 
11805
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11806
  *) enable_dlopen_self=unknown ;;
 
11807
  esac
 
11808
 
 
11809
  case $lt_cv_dlopen_self_static in
 
11810
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11811
  *) enable_dlopen_self_static=unknown ;;
 
11812
  esac
 
11813
fi
 
11814
 
 
11815
 
 
11816
 
 
11817
 
 
11818
 
 
11819
 
 
11820
 
 
11821
 
 
11822
 
 
11823
 
 
11824
 
 
11825
 
 
11826
 
 
11827
 
 
11828
 
 
11829
 
 
11830
 
 
11831
striplib=
 
11832
old_striplib=
 
11833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11834
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11835
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11836
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11837
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11839
$as_echo "yes" >&6; }
 
11840
else
 
11841
# FIXME - insert some real tests, host_os isn't really good enough
 
11842
  case $host_os in
 
11843
  darwin*)
 
11844
    if test -n "$STRIP" ; then
 
11845
      striplib="$STRIP -x"
 
11846
      old_striplib="$STRIP -S"
 
11847
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11848
$as_echo "yes" >&6; }
 
11849
    else
 
11850
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11851
$as_echo "no" >&6; }
 
11852
    fi
 
11853
    ;;
 
11854
  *)
 
11855
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11856
$as_echo "no" >&6; }
 
11857
    ;;
 
11858
  esac
 
11859
fi
 
11860
 
 
11861
 
 
11862
 
 
11863
 
 
11864
 
 
11865
 
 
11866
 
 
11867
 
 
11868
 
 
11869
 
 
11870
 
 
11871
 
 
11872
  # Report which library types will actually be built
 
11873
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11874
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11875
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11876
$as_echo "$can_build_shared" >&6; }
 
11877
 
 
11878
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11879
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11880
  test "$can_build_shared" = "no" && enable_shared=no
 
11881
 
 
11882
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11883
  # are all built from PIC.
 
11884
  case $host_os in
 
11885
  aix3*)
 
11886
    test "$enable_shared" = yes && enable_static=no
 
11887
    if test -n "$RANLIB"; then
 
11888
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11889
      postinstall_cmds='$RANLIB $lib'
 
11890
    fi
 
11891
    ;;
 
11892
 
 
11893
  aix[4-9]*)
 
11894
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11895
      test "$enable_shared" = yes && enable_static=no
 
11896
    fi
 
11897
    ;;
 
11898
  esac
 
11899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11900
$as_echo "$enable_shared" >&6; }
 
11901
 
 
11902
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11903
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11904
  # Make sure either enable_shared or enable_static is yes.
 
11905
  test "$enable_shared" = yes || enable_static=yes
 
11906
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11907
$as_echo "$enable_static" >&6; }
 
11908
 
 
11909
 
 
11910
 
 
11911
 
 
11912
fi
 
11913
ac_ext=c
 
11914
ac_cpp='$CPP $CPPFLAGS'
 
11915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11918
 
 
11919
CC="$lt_save_CC"
 
11920
 
 
11921
 
 
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
 
 
11928
 
 
11929
 
 
11930
 
 
11931
 
 
11932
 
 
11933
 
 
11934
 
 
11935
        ac_config_commands="$ac_config_commands libtool"
 
11936
 
 
11937
 
 
11938
 
 
11939
 
 
11940
# Only expand once:
 
11941
 
 
11942
 
 
11943
 
 
11944
 
 
11945
 
 
11946
 
 
11947
 
 
11948
 
 
11949
 
 
11950
 
 
11951
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
11952
        if test -n "$ac_tool_prefix"; then
 
11953
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
11954
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
11955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11956
$as_echo_n "checking for $ac_word... " >&6; }
 
11957
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
11958
  $as_echo_n "(cached) " >&6
 
11959
else
 
11960
  case $PKG_CONFIG in
 
11961
  [\\/]* | ?:[\\/]*)
 
11962
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
11963
  ;;
 
11964
  *)
 
11965
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11966
for as_dir in $PATH
 
11967
do
 
11968
  IFS=$as_save_IFS
 
11969
  test -z "$as_dir" && as_dir=.
 
11970
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11971
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11972
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
11973
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11974
    break 2
 
11975
  fi
 
11976
done
 
11977
  done
 
11978
IFS=$as_save_IFS
 
11979
 
 
11980
  ;;
 
11981
esac
 
11982
fi
 
11983
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
11984
if test -n "$PKG_CONFIG"; then
 
11985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
11986
$as_echo "$PKG_CONFIG" >&6; }
 
11987
else
 
11988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11989
$as_echo "no" >&6; }
 
11990
fi
 
11991
 
 
11992
 
 
11993
fi
 
11994
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
11995
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
11996
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
11997
set dummy pkg-config; ac_word=$2
 
11998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11999
$as_echo_n "checking for $ac_word... " >&6; }
 
12000
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
12001
  $as_echo_n "(cached) " >&6
 
12002
else
 
12003
  case $ac_pt_PKG_CONFIG in
 
12004
  [\\/]* | ?:[\\/]*)
 
12005
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
12006
  ;;
 
12007
  *)
 
12008
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12009
for as_dir in $PATH
 
12010
do
 
12011
  IFS=$as_save_IFS
 
12012
  test -z "$as_dir" && as_dir=.
 
12013
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12014
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12015
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12016
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12017
    break 2
 
12018
  fi
 
12019
done
 
12020
  done
 
12021
IFS=$as_save_IFS
 
12022
 
 
12023
  ;;
 
12024
esac
 
12025
fi
 
12026
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
12027
if test -n "$ac_pt_PKG_CONFIG"; then
 
12028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
12029
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
12030
else
 
12031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12032
$as_echo "no" >&6; }
 
12033
fi
 
12034
 
 
12035
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
12036
    PKG_CONFIG=""
 
12037
  else
 
12038
    case $cross_compiling:$ac_tool_warned in
 
12039
yes:)
 
12040
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12041
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12042
ac_tool_warned=yes ;;
 
12043
esac
 
12044
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
12045
  fi
 
12046
else
 
12047
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
12048
fi
 
12049
 
 
12050
fi
 
12051
if test -n "$PKG_CONFIG"; then
 
12052
        _pkg_min_version=0.9.0
 
12053
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
12054
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
12055
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
12056
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12057
$as_echo "yes" >&6; }
 
12058
        else
 
12059
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12060
$as_echo "no" >&6; }
 
12061
                PKG_CONFIG=""
 
12062
        fi
 
12063
fi
 
12064
 
 
12065
 
 
12066
 
 
12067
    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
 
12068
set dummy gtkdoc-check; ac_word=$2
 
12069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12070
$as_echo_n "checking for $ac_word... " >&6; }
 
12071
if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
 
12072
  $as_echo_n "(cached) " >&6
 
12073
else
 
12074
  case $GTKDOC_CHECK in
 
12075
  [\\/]* | ?:[\\/]*)
 
12076
  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
 
12077
  ;;
 
12078
  *)
 
12079
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12080
for as_dir in $PATH
 
12081
do
 
12082
  IFS=$as_save_IFS
 
12083
  test -z "$as_dir" && as_dir=.
 
12084
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12085
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12086
    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
 
12087
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12088
    break 2
 
12089
  fi
 
12090
done
 
12091
  done
 
12092
IFS=$as_save_IFS
 
12093
 
 
12094
  ;;
 
12095
esac
 
12096
fi
 
12097
GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
 
12098
if test -n "$GTKDOC_CHECK"; then
 
12099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
 
12100
$as_echo "$GTKDOC_CHECK" >&6; }
 
12101
else
 
12102
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12103
$as_echo "no" >&6; }
 
12104
fi
 
12105
 
 
12106
 
 
12107
  for ac_prog in gtkdoc-rebase
 
12108
do
 
12109
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12110
set dummy $ac_prog; ac_word=$2
 
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12112
$as_echo_n "checking for $ac_word... " >&6; }
 
12113
if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
 
12114
  $as_echo_n "(cached) " >&6
 
12115
else
 
12116
  case $GTKDOC_REBASE in
 
12117
  [\\/]* | ?:[\\/]*)
 
12118
  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
 
12119
  ;;
 
12120
  *)
 
12121
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12122
for as_dir in $PATH
 
12123
do
 
12124
  IFS=$as_save_IFS
 
12125
  test -z "$as_dir" && as_dir=.
 
12126
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12127
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12128
    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
 
12129
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12130
    break 2
 
12131
  fi
 
12132
done
 
12133
  done
 
12134
IFS=$as_save_IFS
 
12135
 
 
12136
  ;;
 
12137
esac
 
12138
fi
 
12139
GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
 
12140
if test -n "$GTKDOC_REBASE"; then
 
12141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
 
12142
$as_echo "$GTKDOC_REBASE" >&6; }
 
12143
else
 
12144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12145
$as_echo "no" >&6; }
 
12146
fi
 
12147
 
 
12148
 
 
12149
  test -n "$GTKDOC_REBASE" && break
 
12150
done
 
12151
test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
 
12152
 
 
12153
  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
 
12154
set dummy gtkdoc-mkpdf; ac_word=$2
 
12155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12156
$as_echo_n "checking for $ac_word... " >&6; }
 
12157
if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
 
12158
  $as_echo_n "(cached) " >&6
 
12159
else
 
12160
  case $GTKDOC_MKPDF in
 
12161
  [\\/]* | ?:[\\/]*)
 
12162
  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
 
12163
  ;;
 
12164
  *)
 
12165
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12166
for as_dir in $PATH
 
12167
do
 
12168
  IFS=$as_save_IFS
 
12169
  test -z "$as_dir" && as_dir=.
 
12170
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12171
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12172
    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
 
12173
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12174
    break 2
 
12175
  fi
 
12176
done
 
12177
  done
 
12178
IFS=$as_save_IFS
 
12179
 
 
12180
  ;;
 
12181
esac
 
12182
fi
 
12183
GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
 
12184
if test -n "$GTKDOC_MKPDF"; then
 
12185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
 
12186
$as_echo "$GTKDOC_MKPDF" >&6; }
 
12187
else
 
12188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12189
$as_echo "no" >&6; }
 
12190
fi
 
12191
 
 
12192
 
 
12193
 
 
12194
 
 
12195
# Check whether --with-html-dir was given.
 
12196
if test "${with_html_dir+set}" = set; then :
 
12197
  withval=$with_html_dir;
 
12198
else
 
12199
  with_html_dir='${datadir}/gtk-doc/html'
 
12200
fi
 
12201
 
 
12202
  HTML_DIR="$with_html_dir"
 
12203
 
 
12204
 
 
12205
    # Check whether --enable-gtk-doc was given.
 
12206
if test "${enable_gtk_doc+set}" = set; then :
 
12207
  enableval=$enable_gtk_doc;
 
12208
else
 
12209
  enable_gtk_doc=no
 
12210
fi
 
12211
 
 
12212
 
 
12213
  if test x$enable_gtk_doc = xyes; then
 
12214
    if test -n "$PKG_CONFIG" && \
 
12215
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
 
12216
  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
 
12217
  ac_status=$?
 
12218
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12219
  test $ac_status = 0; }; then
 
12220
  :
 
12221
else
 
12222
  as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
 
12223
fi
 
12224
  fi
 
12225
 
 
12226
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
 
12227
$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
 
12228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
 
12229
$as_echo "$enable_gtk_doc" >&6; }
 
12230
 
 
12231
    # Check whether --enable-gtk-doc-html was given.
 
12232
if test "${enable_gtk_doc_html+set}" = set; then :
 
12233
  enableval=$enable_gtk_doc_html;
 
12234
else
 
12235
  enable_gtk_doc_html=yes
 
12236
fi
 
12237
 
 
12238
    # Check whether --enable-gtk-doc-pdf was given.
 
12239
if test "${enable_gtk_doc_pdf+set}" = set; then :
 
12240
  enableval=$enable_gtk_doc_pdf;
 
12241
else
 
12242
  enable_gtk_doc_pdf=no
 
12243
fi
 
12244
 
 
12245
 
 
12246
  if test -z "$GTKDOC_MKPDF"; then
 
12247
    enable_gtk_doc_pdf=no
 
12248
  fi
 
12249
 
 
12250
 
 
12251
   if test x$enable_gtk_doc = xyes; then
 
12252
  ENABLE_GTK_DOC_TRUE=
 
12253
  ENABLE_GTK_DOC_FALSE='#'
 
12254
else
 
12255
  ENABLE_GTK_DOC_TRUE='#'
 
12256
  ENABLE_GTK_DOC_FALSE=
 
12257
fi
 
12258
 
 
12259
   if test x$enable_gtk_doc_html = xyes; then
 
12260
  GTK_DOC_BUILD_HTML_TRUE=
 
12261
  GTK_DOC_BUILD_HTML_FALSE='#'
 
12262
else
 
12263
  GTK_DOC_BUILD_HTML_TRUE='#'
 
12264
  GTK_DOC_BUILD_HTML_FALSE=
 
12265
fi
 
12266
 
 
12267
   if test x$enable_gtk_doc_pdf = xyes; then
 
12268
  GTK_DOC_BUILD_PDF_TRUE=
 
12269
  GTK_DOC_BUILD_PDF_FALSE='#'
 
12270
else
 
12271
  GTK_DOC_BUILD_PDF_TRUE='#'
 
12272
  GTK_DOC_BUILD_PDF_FALSE=
 
12273
fi
 
12274
 
 
12275
   if test -n "$LIBTOOL"; then
 
12276
  GTK_DOC_USE_LIBTOOL_TRUE=
 
12277
  GTK_DOC_USE_LIBTOOL_FALSE='#'
 
12278
else
 
12279
  GTK_DOC_USE_LIBTOOL_TRUE='#'
 
12280
  GTK_DOC_USE_LIBTOOL_FALSE=
 
12281
fi
 
12282
 
 
12283
   if test -n "$GTKDOC_REBASE"; then
 
12284
  GTK_DOC_USE_REBASE_TRUE=
 
12285
  GTK_DOC_USE_REBASE_FALSE='#'
 
12286
else
 
12287
  GTK_DOC_USE_REBASE_TRUE='#'
 
12288
  GTK_DOC_USE_REBASE_FALSE=
 
12289
fi
 
12290
 
 
12291
 
 
12292
 
 
12293
HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
 
12294
 
 
12295
 
 
12296
  # Check whether --enable-ld-version-script was given.
 
12297
if test "${enable_ld_version_script+set}" = set; then :
 
12298
  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
 
12299
fi
 
12300
 
 
12301
  if test -z "$have_ld_version_script"; then
 
12302
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
 
12303
$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
 
12304
    save_LDFLAGS="$LDFLAGS"
 
12305
    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
 
12306
    cat > conftest.map <<EOF
 
12307
foo
 
12308
EOF
 
12309
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12310
/* end confdefs.h.  */
 
12311
 
 
12312
int
 
12313
main ()
 
12314
{
 
12315
 
 
12316
  ;
 
12317
  return 0;
 
12318
}
 
12319
_ACEOF
 
12320
if ac_fn_c_try_link "$LINENO"; then :
 
12321
  accepts_syntax_errors=yes
 
12322
else
 
12323
  accepts_syntax_errors=no
 
12324
fi
 
12325
rm -f core conftest.err conftest.$ac_objext \
 
12326
    conftest$ac_exeext conftest.$ac_ext
 
12327
    if test "$accepts_syntax_errors" = no; then
 
12328
      cat > conftest.map <<EOF
 
12329
VERS_1 {
 
12330
        global: sym;
 
12331
};
 
12332
 
 
12333
VERS_2 {
 
12334
        global: sym;
 
12335
} VERS_1;
 
12336
EOF
 
12337
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12338
/* end confdefs.h.  */
 
12339
 
 
12340
int
 
12341
main ()
 
12342
{
 
12343
 
 
12344
  ;
 
12345
  return 0;
 
12346
}
 
12347
_ACEOF
 
12348
if ac_fn_c_try_link "$LINENO"; then :
 
12349
  have_ld_version_script=yes
 
12350
else
 
12351
  have_ld_version_script=no
 
12352
fi
 
12353
rm -f core conftest.err conftest.$ac_objext \
 
12354
    conftest$ac_exeext conftest.$ac_ext
 
12355
    else
 
12356
      have_ld_version_script=no
 
12357
    fi
 
12358
    rm -f conftest.map
 
12359
    LDFLAGS="$save_LDFLAGS"
 
12360
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
 
12361
$as_echo "$have_ld_version_script" >&6; }
 
12362
  fi
 
12363
   if test "$have_ld_version_script" = "yes"; then
 
12364
  HAVE_LD_VERSION_SCRIPT_TRUE=
 
12365
  HAVE_LD_VERSION_SCRIPT_FALSE='#'
 
12366
else
 
12367
  HAVE_LD_VERSION_SCRIPT_TRUE='#'
 
12368
  HAVE_LD_VERSION_SCRIPT_FALSE=
 
12369
fi
 
12370
 
 
12371
 
 
12372
 
 
12373
 
 
12374
pkg_failed=no
 
12375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJSON" >&5
 
12376
$as_echo_n "checking for LIBJSON... " >&6; }
 
12377
 
 
12378
if test -n "$LIBJSON_CFLAGS"; then
 
12379
    pkg_cv_LIBJSON_CFLAGS="$LIBJSON_CFLAGS"
 
12380
 elif test -n "$PKG_CONFIG"; then
 
12381
    if test -n "$PKG_CONFIG" && \
 
12382
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
 
12383
  ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
 
12384
  ac_status=$?
 
12385
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12386
  test $ac_status = 0; }; then
 
12387
  pkg_cv_LIBJSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
 
12388
                      test "x$?" != "x0" && pkg_failed=yes
 
12389
else
 
12390
  pkg_failed=yes
 
12391
fi
 
12392
 else
 
12393
    pkg_failed=untried
 
12394
fi
 
12395
if test -n "$LIBJSON_LIBS"; then
 
12396
    pkg_cv_LIBJSON_LIBS="$LIBJSON_LIBS"
 
12397
 elif test -n "$PKG_CONFIG"; then
 
12398
    if test -n "$PKG_CONFIG" && \
 
12399
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
 
12400
  ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
 
12401
  ac_status=$?
 
12402
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12403
  test $ac_status = 0; }; then
 
12404
  pkg_cv_LIBJSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
 
12405
                      test "x$?" != "x0" && pkg_failed=yes
 
12406
else
 
12407
  pkg_failed=yes
 
12408
fi
 
12409
 else
 
12410
    pkg_failed=untried
 
12411
fi
 
12412
 
 
12413
 
 
12414
 
 
12415
if test $pkg_failed = yes; then
 
12416
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12417
$as_echo "no" >&6; }
 
12418
 
 
12419
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12420
        _pkg_short_errors_supported=yes
 
12421
else
 
12422
        _pkg_short_errors_supported=no
 
12423
fi
 
12424
        if test $_pkg_short_errors_supported = yes; then
 
12425
                LIBJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
 
12426
        else
 
12427
                LIBJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
 
12428
        fi
 
12429
        # Put the nasty error message in config.log where it belongs
 
12430
        echo "$LIBJSON_PKG_ERRORS" >&5
 
12431
 
 
12432
 
 
12433
 
 
12434
pkg_failed=no
 
12435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJSON" >&5
 
12436
$as_echo_n "checking for LIBJSON... " >&6; }
 
12437
 
 
12438
if test -n "$LIBJSON_CFLAGS"; then
 
12439
    pkg_cv_LIBJSON_CFLAGS="$LIBJSON_CFLAGS"
 
12440
 elif test -n "$PKG_CONFIG"; then
 
12441
    if test -n "$PKG_CONFIG" && \
 
12442
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
 
12443
  ($PKG_CONFIG --exists --print-errors "json") 2>&5
 
12444
  ac_status=$?
 
12445
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12446
  test $ac_status = 0; }; then
 
12447
  pkg_cv_LIBJSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
 
12448
                      test "x$?" != "x0" && pkg_failed=yes
 
12449
else
 
12450
  pkg_failed=yes
 
12451
fi
 
12452
 else
 
12453
    pkg_failed=untried
 
12454
fi
 
12455
if test -n "$LIBJSON_LIBS"; then
 
12456
    pkg_cv_LIBJSON_LIBS="$LIBJSON_LIBS"
 
12457
 elif test -n "$PKG_CONFIG"; then
 
12458
    if test -n "$PKG_CONFIG" && \
 
12459
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
 
12460
  ($PKG_CONFIG --exists --print-errors "json") 2>&5
 
12461
  ac_status=$?
 
12462
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12463
  test $ac_status = 0; }; then
 
12464
  pkg_cv_LIBJSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
 
12465
                      test "x$?" != "x0" && pkg_failed=yes
 
12466
else
 
12467
  pkg_failed=yes
 
12468
fi
 
12469
 else
 
12470
    pkg_failed=untried
 
12471
fi
 
12472
 
 
12473
 
 
12474
 
 
12475
if test $pkg_failed = yes; then
 
12476
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12477
$as_echo "no" >&6; }
 
12478
 
 
12479
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12480
        _pkg_short_errors_supported=yes
 
12481
else
 
12482
        _pkg_short_errors_supported=no
 
12483
fi
 
12484
        if test $_pkg_short_errors_supported = yes; then
 
12485
                LIBJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
 
12486
        else
 
12487
                LIBJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
 
12488
        fi
 
12489
        # Put the nasty error message in config.log where it belongs
 
12490
        echo "$LIBJSON_PKG_ERRORS" >&5
 
12491
 
 
12492
        as_fn_error $? "Package requirements (json) were not met:
 
12493
 
 
12494
$LIBJSON_PKG_ERRORS
 
12495
 
 
12496
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12497
installed software in a non-standard prefix.
 
12498
 
 
12499
Alternatively, you may set the environment variables LIBJSON_CFLAGS
 
12500
and LIBJSON_LIBS to avoid the need to call pkg-config.
 
12501
See the pkg-config man page for more details." "$LINENO" 5
 
12502
elif test $pkg_failed = untried; then
 
12503
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12504
$as_echo "no" >&6; }
 
12505
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12506
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12507
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
12508
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12509
path to pkg-config.
 
12510
 
 
12511
Alternatively, you may set the environment variables LIBJSON_CFLAGS
 
12512
and LIBJSON_LIBS to avoid the need to call pkg-config.
 
12513
See the pkg-config man page for more details.
 
12514
 
 
12515
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12516
See \`config.log' for more details" "$LINENO" 5; }
 
12517
else
 
12518
        LIBJSON_CFLAGS=$pkg_cv_LIBJSON_CFLAGS
 
12519
        LIBJSON_LIBS=$pkg_cv_LIBJSON_LIBS
 
12520
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12521
$as_echo "yes" >&6; }
 
12522
 
 
12523
fi
 
12524
elif test $pkg_failed = untried; then
 
12525
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12526
$as_echo "no" >&6; }
 
12527
 
 
12528
 
 
12529
pkg_failed=no
 
12530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJSON" >&5
 
12531
$as_echo_n "checking for LIBJSON... " >&6; }
 
12532
 
 
12533
if test -n "$LIBJSON_CFLAGS"; then
 
12534
    pkg_cv_LIBJSON_CFLAGS="$LIBJSON_CFLAGS"
 
12535
 elif test -n "$PKG_CONFIG"; then
 
12536
    if test -n "$PKG_CONFIG" && \
 
12537
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
 
12538
  ($PKG_CONFIG --exists --print-errors "json") 2>&5
 
12539
  ac_status=$?
 
12540
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12541
  test $ac_status = 0; }; then
 
12542
  pkg_cv_LIBJSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
 
12543
                      test "x$?" != "x0" && pkg_failed=yes
 
12544
else
 
12545
  pkg_failed=yes
 
12546
fi
 
12547
 else
 
12548
    pkg_failed=untried
 
12549
fi
 
12550
if test -n "$LIBJSON_LIBS"; then
 
12551
    pkg_cv_LIBJSON_LIBS="$LIBJSON_LIBS"
 
12552
 elif test -n "$PKG_CONFIG"; then
 
12553
    if test -n "$PKG_CONFIG" && \
 
12554
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
 
12555
  ($PKG_CONFIG --exists --print-errors "json") 2>&5
 
12556
  ac_status=$?
 
12557
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12558
  test $ac_status = 0; }; then
 
12559
  pkg_cv_LIBJSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
 
12560
                      test "x$?" != "x0" && pkg_failed=yes
 
12561
else
 
12562
  pkg_failed=yes
 
12563
fi
 
12564
 else
 
12565
    pkg_failed=untried
 
12566
fi
 
12567
 
 
12568
 
 
12569
 
 
12570
if test $pkg_failed = yes; then
 
12571
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12572
$as_echo "no" >&6; }
 
12573
 
 
12574
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12575
        _pkg_short_errors_supported=yes
 
12576
else
 
12577
        _pkg_short_errors_supported=no
 
12578
fi
 
12579
        if test $_pkg_short_errors_supported = yes; then
 
12580
                LIBJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
 
12581
        else
 
12582
                LIBJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
 
12583
        fi
 
12584
        # Put the nasty error message in config.log where it belongs
 
12585
        echo "$LIBJSON_PKG_ERRORS" >&5
 
12586
 
 
12587
        as_fn_error $? "Package requirements (json) were not met:
 
12588
 
 
12589
$LIBJSON_PKG_ERRORS
 
12590
 
 
12591
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12592
installed software in a non-standard prefix.
 
12593
 
 
12594
Alternatively, you may set the environment variables LIBJSON_CFLAGS
 
12595
and LIBJSON_LIBS to avoid the need to call pkg-config.
 
12596
See the pkg-config man page for more details." "$LINENO" 5
 
12597
elif test $pkg_failed = untried; then
 
12598
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12599
$as_echo "no" >&6; }
 
12600
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12601
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12602
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
12603
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12604
path to pkg-config.
 
12605
 
 
12606
Alternatively, you may set the environment variables LIBJSON_CFLAGS
 
12607
and LIBJSON_LIBS to avoid the need to call pkg-config.
 
12608
See the pkg-config man page for more details.
 
12609
 
 
12610
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12611
See \`config.log' for more details" "$LINENO" 5; }
 
12612
else
 
12613
        LIBJSON_CFLAGS=$pkg_cv_LIBJSON_CFLAGS
 
12614
        LIBJSON_LIBS=$pkg_cv_LIBJSON_LIBS
 
12615
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12616
$as_echo "yes" >&6; }
 
12617
 
 
12618
fi
 
12619
else
 
12620
        LIBJSON_CFLAGS=$pkg_cv_LIBJSON_CFLAGS
 
12621
        LIBJSON_LIBS=$pkg_cv_LIBJSON_LIBS
 
12622
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12623
$as_echo "yes" >&6; }
 
12624
 
 
12625
fi
 
12626
 
 
12627
# Check for json_object_object_get_ext
 
12628
am_save_CFLAGS="$CFLAGS"
 
12629
am_save_LIBS="$LIBS"
 
12630
CFLAGS="$CFLAGS $LIBJSON_CFLAGS"
 
12631
LIBS="$LIBS $LIBJSON_LIBS"
 
12632
for ac_func in json_object_object_get_ex
 
12633
do :
 
12634
  ac_fn_c_check_func "$LINENO" "json_object_object_get_ex" "ac_cv_func_json_object_object_get_ex"
 
12635
if test "x$ac_cv_func_json_object_object_get_ex" = xyes; then :
 
12636
  cat >>confdefs.h <<_ACEOF
 
12637
#define HAVE_JSON_OBJECT_OBJECT_GET_EX 1
 
12638
_ACEOF
 
12639
 
 
12640
fi
 
12641
done
 
12642
 
 
12643
CFLAGS=$am_save_CFLAGS
 
12644
LIBS=$am_save_LIBS
 
12645
 
 
12646
 
 
12647
pkg_failed=no
 
12648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSSL" >&5
 
12649
$as_echo_n "checking for LIBSSL... " >&6; }
 
12650
 
 
12651
if test -n "$LIBSSL_CFLAGS"; then
 
12652
    pkg_cv_LIBSSL_CFLAGS="$LIBSSL_CFLAGS"
 
12653
 elif test -n "$PKG_CONFIG"; then
 
12654
    if test -n "$PKG_CONFIG" && \
 
12655
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
 
12656
  ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
 
12657
  ac_status=$?
 
12658
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12659
  test $ac_status = 0; }; then
 
12660
  pkg_cv_LIBSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null`
 
12661
                      test "x$?" != "x0" && pkg_failed=yes
 
12662
else
 
12663
  pkg_failed=yes
 
12664
fi
 
12665
 else
 
12666
    pkg_failed=untried
 
12667
fi
 
12668
if test -n "$LIBSSL_LIBS"; then
 
12669
    pkg_cv_LIBSSL_LIBS="$LIBSSL_LIBS"
 
12670
 elif test -n "$PKG_CONFIG"; then
 
12671
    if test -n "$PKG_CONFIG" && \
 
12672
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
 
12673
  ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
 
12674
  ac_status=$?
 
12675
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12676
  test $ac_status = 0; }; then
 
12677
  pkg_cv_LIBSSL_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null`
 
12678
                      test "x$?" != "x0" && pkg_failed=yes
 
12679
else
 
12680
  pkg_failed=yes
 
12681
fi
 
12682
 else
 
12683
    pkg_failed=untried
 
12684
fi
 
12685
 
 
12686
 
 
12687
 
 
12688
if test $pkg_failed = yes; then
 
12689
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12690
$as_echo "no" >&6; }
 
12691
 
 
12692
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12693
        _pkg_short_errors_supported=yes
 
12694
else
 
12695
        _pkg_short_errors_supported=no
 
12696
fi
 
12697
        if test $_pkg_short_errors_supported = yes; then
 
12698
                LIBSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl" 2>&1`
 
12699
        else
 
12700
                LIBSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl" 2>&1`
 
12701
        fi
 
12702
        # Put the nasty error message in config.log where it belongs
 
12703
        echo "$LIBSSL_PKG_ERRORS" >&5
 
12704
 
 
12705
        as_fn_error $? "Package requirements (libssl) were not met:
 
12706
 
 
12707
$LIBSSL_PKG_ERRORS
 
12708
 
 
12709
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12710
installed software in a non-standard prefix.
 
12711
 
 
12712
Alternatively, you may set the environment variables LIBSSL_CFLAGS
 
12713
and LIBSSL_LIBS to avoid the need to call pkg-config.
 
12714
See the pkg-config man page for more details." "$LINENO" 5
 
12715
elif test $pkg_failed = untried; then
 
12716
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12717
$as_echo "no" >&6; }
 
12718
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12719
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12720
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
12721
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12722
path to pkg-config.
 
12723
 
 
12724
Alternatively, you may set the environment variables LIBSSL_CFLAGS
 
12725
and LIBSSL_LIBS to avoid the need to call pkg-config.
 
12726
See the pkg-config man page for more details.
 
12727
 
 
12728
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12729
See \`config.log' for more details" "$LINENO" 5; }
 
12730
else
 
12731
        LIBSSL_CFLAGS=$pkg_cv_LIBSSL_CFLAGS
 
12732
        LIBSSL_LIBS=$pkg_cv_LIBSSL_LIBS
 
12733
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12734
$as_echo "yes" >&6; }
 
12735
 
 
12736
fi
 
12737
 
 
12738
 
 
12739
pkg_failed=no
 
12740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
 
12741
$as_echo_n "checking for CHECK... " >&6; }
 
12742
 
 
12743
if test -n "$CHECK_CFLAGS"; then
 
12744
    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
 
12745
 elif test -n "$PKG_CONFIG"; then
 
12746
    if test -n "$PKG_CONFIG" && \
 
12747
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5
 
12748
  ($PKG_CONFIG --exists --print-errors "check") 2>&5
 
12749
  ac_status=$?
 
12750
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12751
  test $ac_status = 0; }; then
 
12752
  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check" 2>/dev/null`
 
12753
                      test "x$?" != "x0" && pkg_failed=yes
 
12754
else
 
12755
  pkg_failed=yes
 
12756
fi
 
12757
 else
 
12758
    pkg_failed=untried
 
12759
fi
 
12760
if test -n "$CHECK_LIBS"; then
 
12761
    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
 
12762
 elif test -n "$PKG_CONFIG"; then
 
12763
    if test -n "$PKG_CONFIG" && \
 
12764
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5
 
12765
  ($PKG_CONFIG --exists --print-errors "check") 2>&5
 
12766
  ac_status=$?
 
12767
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12768
  test $ac_status = 0; }; then
 
12769
  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check" 2>/dev/null`
 
12770
                      test "x$?" != "x0" && pkg_failed=yes
 
12771
else
 
12772
  pkg_failed=yes
 
12773
fi
 
12774
 else
 
12775
    pkg_failed=untried
 
12776
fi
 
12777
 
 
12778
 
 
12779
 
 
12780
if test $pkg_failed = yes; then
 
12781
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12782
$as_echo "no" >&6; }
 
12783
 
 
12784
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12785
        _pkg_short_errors_supported=yes
 
12786
else
 
12787
        _pkg_short_errors_supported=no
 
12788
fi
 
12789
        if test $_pkg_short_errors_supported = yes; then
 
12790
                CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check" 2>&1`
 
12791
        else
 
12792
                CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check" 2>&1`
 
12793
        fi
 
12794
        # Put the nasty error message in config.log where it belongs
 
12795
        echo "$CHECK_PKG_ERRORS" >&5
 
12796
 
 
12797
        as_fn_error $? "Package requirements (check) were not met:
 
12798
 
 
12799
$CHECK_PKG_ERRORS
 
12800
 
 
12801
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12802
installed software in a non-standard prefix.
 
12803
 
 
12804
Alternatively, you may set the environment variables CHECK_CFLAGS
 
12805
and CHECK_LIBS to avoid the need to call pkg-config.
 
12806
See the pkg-config man page for more details." "$LINENO" 5
 
12807
elif test $pkg_failed = untried; then
 
12808
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12809
$as_echo "no" >&6; }
 
12810
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12811
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12812
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
12813
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12814
path to pkg-config.
 
12815
 
 
12816
Alternatively, you may set the environment variables CHECK_CFLAGS
 
12817
and CHECK_LIBS to avoid the need to call pkg-config.
 
12818
See the pkg-config man page for more details.
 
12819
 
 
12820
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12821
See \`config.log' for more details" "$LINENO" 5; }
 
12822
else
 
12823
        CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
 
12824
        CHECK_LIBS=$pkg_cv_CHECK_LIBS
 
12825
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12826
$as_echo "yes" >&6; }
 
12827
 
 
12828
fi
 
12829
 
 
12830
# Check whether --enable-gcc-warnings was given.
 
12831
if test "${enable_gcc_warnings+set}" = set; then :
 
12832
  enableval=$enable_gcc_warnings; case $enableval in
 
12833
     yes|no) ;;
 
12834
     *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
 
12835
   esac
 
12836
   gl_gcc_warnings=$enableval
 
12837
else
 
12838
  gl_gcc_warnings=no
 
12839
 
 
12840
fi
 
12841
 
 
12842
 
 
12843
if test "$gl_gcc_warnings" = yes; then
 
12844
  nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
 
12845
  nw="$nw -Wpadded"                 # Struct's arenot padded
 
12846
  nw="$nw -Wc++-compat"             # We don't care strongly about C++ compilers
 
12847
  nw="$nw -Wtraditional"            # Warns on #elif which we use often
 
12848
  nw="$nw -Wtraditional-conversion" # Too many warnings for now
 
12849
  nw="$nw -Wconversion"             # Too many warnings for now
 
12850
  nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
 
12851
  nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
 
12852
 
 
12853
 
 
12854
 
 
12855
  if test -n "$GCC"; then
 
12856
 
 
12857
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
 
12858
$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
 
12859
    if ${gl_cv_cc_nomfi_supported+:} false; then :
 
12860
  $as_echo_n "(cached) " >&6
 
12861
else
 
12862
 
 
12863
      gl_save_CFLAGS="$CFLAGS"
 
12864
      CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
 
12865
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12866
/* end confdefs.h.  */
 
12867
 
 
12868
int
 
12869
main ()
 
12870
{
 
12871
 
 
12872
  ;
 
12873
  return 0;
 
12874
}
 
12875
_ACEOF
 
12876
if ac_fn_c_try_compile "$LINENO"; then :
 
12877
  gl_cv_cc_nomfi_supported=yes
 
12878
else
 
12879
  gl_cv_cc_nomfi_supported=no
 
12880
fi
 
12881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12882
      CFLAGS="$gl_save_CFLAGS"
 
12883
fi
 
12884
 
 
12885
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
 
12886
$as_echo "$gl_cv_cc_nomfi_supported" >&6; }
 
12887
 
 
12888
    if test "$gl_cv_cc_nomfi_supported" = yes; then
 
12889
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
 
12890
$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
 
12891
      if ${gl_cv_cc_nomfi_needed+:} false; then :
 
12892
  $as_echo_n "(cached) " >&6
 
12893
else
 
12894
 
 
12895
        gl_save_CFLAGS="$CFLAGS"
 
12896
        CFLAGS="$CFLAGS -W -Werror"
 
12897
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12898
/* end confdefs.h.  */
 
12899
void f (void)
 
12900
               {
 
12901
                 typedef struct { int a; int b; } s_t;
 
12902
                 s_t s1 = { 0, };
 
12903
               }
 
12904
 
 
12905
int
 
12906
main ()
 
12907
{
 
12908
 
 
12909
  ;
 
12910
  return 0;
 
12911
}
 
12912
_ACEOF
 
12913
if ac_fn_c_try_compile "$LINENO"; then :
 
12914
  gl_cv_cc_nomfi_needed=no
 
12915
else
 
12916
  gl_cv_cc_nomfi_needed=yes
 
12917
fi
 
12918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12919
        CFLAGS="$gl_save_CFLAGS"
 
12920
 
 
12921
fi
 
12922
 
 
12923
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
 
12924
$as_echo "$gl_cv_cc_nomfi_needed" >&6; }
 
12925
    fi
 
12926
 
 
12927
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
 
12928
$as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
 
12929
    if ${gl_cv_cc_uninitialized_supported+:} false; then :
 
12930
  $as_echo_n "(cached) " >&6
 
12931
else
 
12932
 
 
12933
      gl_save_CFLAGS="$CFLAGS"
 
12934
      CFLAGS="$CFLAGS -Werror -Wuninitialized"
 
12935
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12936
/* end confdefs.h.  */
 
12937
 
 
12938
int
 
12939
main ()
 
12940
{
 
12941
 
 
12942
  ;
 
12943
  return 0;
 
12944
}
 
12945
_ACEOF
 
12946
if ac_fn_c_try_compile "$LINENO"; then :
 
12947
  gl_cv_cc_uninitialized_supported=yes
 
12948
else
 
12949
  gl_cv_cc_uninitialized_supported=no
 
12950
fi
 
12951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12952
      CFLAGS="$gl_save_CFLAGS"
 
12953
fi
 
12954
 
 
12955
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
 
12956
$as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
 
12957
 
 
12958
  fi
 
12959
 
 
12960
  # List all gcc warning categories.
 
12961
  # To compare this list to your installed GCC's, run this Bash command:
 
12962
  #
 
12963
  # comm -3 \
 
12964
  #  <(sed -n 's/^  *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \
 
12965
  #  <(gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort |
 
12966
  #      grep -v -x -f <(
 
12967
  #         awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec))
 
12968
 
 
12969
  gl_manywarn_set=
 
12970
  for gl_manywarn_item in \
 
12971
    -W \
 
12972
    -Wabi \
 
12973
    -Waddress \
 
12974
    -Waggressive-loop-optimizations \
 
12975
    -Wall \
 
12976
    -Warray-bounds \
 
12977
    -Wattributes \
 
12978
    -Wbad-function-cast \
 
12979
    -Wbuiltin-macro-redefined \
 
12980
    -Wcast-align \
 
12981
    -Wchar-subscripts \
 
12982
    -Wclobbered \
 
12983
    -Wcomment \
 
12984
    -Wcomments \
 
12985
    -Wcoverage-mismatch \
 
12986
    -Wcpp \
 
12987
    -Wdate-time \
 
12988
    -Wdeprecated \
 
12989
    -Wdeprecated-declarations \
 
12990
    -Wdisabled-optimization \
 
12991
    -Wdiv-by-zero \
 
12992
    -Wdouble-promotion \
 
12993
    -Wempty-body \
 
12994
    -Wendif-labels \
 
12995
    -Wenum-compare \
 
12996
    -Wextra \
 
12997
    -Wformat-contains-nul \
 
12998
    -Wformat-extra-args \
 
12999
    -Wformat-nonliteral \
 
13000
    -Wformat-security \
 
13001
    -Wformat-y2k \
 
13002
    -Wformat-zero-length \
 
13003
    -Wfree-nonheap-object \
 
13004
    -Wignored-qualifiers \
 
13005
    -Wimplicit \
 
13006
    -Wimplicit-function-declaration \
 
13007
    -Wimplicit-int \
 
13008
    -Winit-self \
 
13009
    -Winline \
 
13010
    -Wint-to-pointer-cast \
 
13011
    -Winvalid-memory-model \
 
13012
    -Winvalid-pch \
 
13013
    -Wjump-misses-init \
 
13014
    -Wlogical-op \
 
13015
    -Wmain \
 
13016
    -Wmaybe-uninitialized \
 
13017
    -Wmissing-braces \
 
13018
    -Wmissing-declarations \
 
13019
    -Wmissing-field-initializers \
 
13020
    -Wmissing-include-dirs \
 
13021
    -Wmissing-parameter-type \
 
13022
    -Wmissing-prototypes \
 
13023
    -Wmultichar \
 
13024
    -Wnarrowing \
 
13025
    -Wnested-externs \
 
13026
    -Wnonnull \
 
13027
    -Wold-style-declaration \
 
13028
    -Wold-style-definition \
 
13029
    -Wopenmp-simd \
 
13030
    -Woverflow \
 
13031
    -Woverlength-strings \
 
13032
    -Woverride-init \
 
13033
    -Wpacked \
 
13034
    -Wpacked-bitfield-compat \
 
13035
    -Wparentheses \
 
13036
    -Wpointer-arith \
 
13037
    -Wpointer-sign \
 
13038
    -Wpointer-to-int-cast \
 
13039
    -Wpragmas \
 
13040
    -Wreturn-local-addr \
 
13041
    -Wreturn-type \
 
13042
    -Wsequence-point \
 
13043
    -Wshadow \
 
13044
    -Wsizeof-pointer-memaccess \
 
13045
    -Wstack-protector \
 
13046
    -Wstrict-aliasing \
 
13047
    -Wstrict-overflow \
 
13048
    -Wstrict-prototypes \
 
13049
    -Wsuggest-attribute=const \
 
13050
    -Wsuggest-attribute=format \
 
13051
    -Wsuggest-attribute=noreturn \
 
13052
    -Wsuggest-attribute=pure \
 
13053
    -Wswitch \
 
13054
    -Wswitch-default \
 
13055
    -Wsync-nand \
 
13056
    -Wsystem-headers \
 
13057
    -Wtrampolines \
 
13058
    -Wtrigraphs \
 
13059
    -Wtype-limits \
 
13060
    -Wuninitialized \
 
13061
    -Wunknown-pragmas \
 
13062
    -Wunsafe-loop-optimizations \
 
13063
    -Wunused \
 
13064
    -Wunused-but-set-parameter \
 
13065
    -Wunused-but-set-variable \
 
13066
    -Wunused-function \
 
13067
    -Wunused-label \
 
13068
    -Wunused-local-typedefs \
 
13069
    -Wunused-macros \
 
13070
    -Wunused-parameter \
 
13071
    -Wunused-result \
 
13072
    -Wunused-value \
 
13073
    -Wunused-variable \
 
13074
    -Wvarargs \
 
13075
    -Wvariadic-macros \
 
13076
    -Wvector-operation-performance \
 
13077
    -Wvla \
 
13078
    -Wvolatile-register-var \
 
13079
    -Wwrite-strings \
 
13080
    \
 
13081
    ; do
 
13082
    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
 
13083
  done
 
13084
 
 
13085
  # gcc --help=warnings outputs an unusual form for this option; list
 
13086
  # it here so that the above 'comm' command doesn't report a false match.
 
13087
  gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
 
13088
 
 
13089
  # These are needed for older GCC versions.
 
13090
  if test -n "$GCC"; then
 
13091
    case `($CC --version) 2>/dev/null` in
 
13092
      'gcc (GCC) '[0-3].* | \
 
13093
      'gcc (GCC) '4.[0-7].*)
 
13094
        gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
 
13095
        gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
 
13096
          ;;
 
13097
    esac
 
13098
  fi
 
13099
 
 
13100
  # Disable specific options as needed.
 
13101
  if test "$gl_cv_cc_nomfi_needed" = yes; then
 
13102
    gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
 
13103
  fi
 
13104
 
 
13105
  if test "$gl_cv_cc_uninitialized_supported" = no; then
 
13106
    gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
 
13107
  fi
 
13108
 
 
13109
  ws=$gl_manywarn_set
 
13110
 
 
13111
 
 
13112
  gl_warn_set=
 
13113
  set x $ws; shift
 
13114
  for gl_warn_item
 
13115
  do
 
13116
    case " $nw " in
 
13117
      *" $gl_warn_item "*)
 
13118
        ;;
 
13119
      *)
 
13120
        gl_warn_set="$gl_warn_set $gl_warn_item"
 
13121
        ;;
 
13122
    esac
 
13123
  done
 
13124
  ws=$gl_warn_set
 
13125
 
 
13126
  for w in $ws; do
 
13127
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
 
13128
$as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
 
13129
if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
 
13130
  $as_echo_n "(cached) " >&6
 
13131
else
 
13132
 
 
13133
  gl_save_compiler_FLAGS="$CFLAGS"
 
13134
  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
 
13135
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13136
/* end confdefs.h.  */
 
13137
 
 
13138
int
 
13139
main ()
 
13140
{
 
13141
 
 
13142
  ;
 
13143
  return 0;
 
13144
}
 
13145
_ACEOF
 
13146
if ac_fn_c_try_compile "$LINENO"; then :
 
13147
  gl_cv_warn_c__Werror__Wunknown_warning_option=yes
 
13148
else
 
13149
  gl_cv_warn_c__Werror__Wunknown_warning_option=no
 
13150
fi
 
13151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13152
  CFLAGS="$gl_save_compiler_FLAGS"
 
13153
 
 
13154
fi
 
13155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
 
13156
$as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
 
13157
if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
 
13158
  gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
 
13159
else
 
13160
  gl_unknown_warnings_are_errors=
 
13161
fi
 
13162
 
 
13163
 
 
13164
as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
 
13165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
 
13166
$as_echo_n "checking whether C compiler handles $w... " >&6; }
 
13167
if eval \${$as_gl_Warn+:} false; then :
 
13168
  $as_echo_n "(cached) " >&6
 
13169
else
 
13170
 
 
13171
  gl_save_compiler_FLAGS="$CFLAGS"
 
13172
  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $w"
 
13173
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13174
/* end confdefs.h.  */
 
13175
 
 
13176
int
 
13177
main ()
 
13178
{
 
13179
 
 
13180
  ;
 
13181
  return 0;
 
13182
}
 
13183
_ACEOF
 
13184
if ac_fn_c_try_compile "$LINENO"; then :
 
13185
  eval "$as_gl_Warn=yes"
 
13186
else
 
13187
  eval "$as_gl_Warn=no"
 
13188
fi
 
13189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13190
  CFLAGS="$gl_save_compiler_FLAGS"
 
13191
 
 
13192
fi
 
13193
eval ac_res=\$$as_gl_Warn
 
13194
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13195
$as_echo "$ac_res" >&6; }
 
13196
if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
 
13197
  as_fn_append WARN_CFLAGS " $w"
 
13198
fi
 
13199
 
 
13200
 
 
13201
  done
 
13202
 
 
13203
 
 
13204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
 
13205
$as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
 
13206
if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
 
13207
  $as_echo_n "(cached) " >&6
 
13208
else
 
13209
 
 
13210
  gl_save_compiler_FLAGS="$CFLAGS"
 
13211
  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
 
13212
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13213
/* end confdefs.h.  */
 
13214
 
 
13215
int
 
13216
main ()
 
13217
{
 
13218
 
 
13219
  ;
 
13220
  return 0;
 
13221
}
 
13222
_ACEOF
 
13223
if ac_fn_c_try_compile "$LINENO"; then :
 
13224
  gl_cv_warn_c__fdiagnostics_show_option=yes
 
13225
else
 
13226
  gl_cv_warn_c__fdiagnostics_show_option=no
 
13227
fi
 
13228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13229
  CFLAGS="$gl_save_compiler_FLAGS"
 
13230
 
 
13231
fi
 
13232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
 
13233
$as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
 
13234
if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
 
13235
  as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
 
13236
fi
 
13237
 
 
13238
 
 
13239
fi
 
13240
 
 
13241
U2FS_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
 
13242
 
 
13243
U2FS_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
 
13244
 
 
13245
U2FS_VERSION_PATCH=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`
 
13246
 
 
13247
U2FS_VERSION_NUMBER=`printf "0x%02x%02x%02x" $U2FS_VERSION_MAJOR \
 
13248
                 $U2FS_VERSION_MINOR $U2FS_VERSION_PATCH`
 
13249
 
 
13250
 
 
13251
ac_config_files="$ac_config_files Makefile gtk-doc/Makefile src/Makefile tests/Makefile u2f-server/Makefile u2f-server/u2f-server-version.h u2f-server/u2f-server.pc"
 
13252
 
 
13253
cat >confcache <<\_ACEOF
 
13254
# This file is a shell script that caches the results of configure
 
13255
# tests run on this system so they can be shared between configure
 
13256
# scripts and configure runs, see configure's option --config-cache.
 
13257
# It is not useful on other systems.  If it contains results you don't
 
13258
# want to keep, you may remove or edit it.
 
13259
#
 
13260
# config.status only pays attention to the cache file if you give it
 
13261
# the --recheck option to rerun configure.
 
13262
#
 
13263
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13264
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13265
# following values.
 
13266
 
 
13267
_ACEOF
 
13268
 
 
13269
# The following way of writing the cache mishandles newlines in values,
 
13270
# but we know of no workaround that is simple, portable, and efficient.
 
13271
# So, we kill variables containing newlines.
 
13272
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13273
# and sets the high bit in the cache file unless we assign to the vars.
 
13274
(
 
13275
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13276
    eval ac_val=\$$ac_var
 
13277
    case $ac_val in #(
 
13278
    *${as_nl}*)
 
13279
      case $ac_var in #(
 
13280
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13281
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13282
      esac
 
13283
      case $ac_var in #(
 
13284
      _ | IFS | as_nl) ;; #(
 
13285
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13286
      *) { eval $ac_var=; unset $ac_var;} ;;
 
13287
      esac ;;
 
13288
    esac
 
13289
  done
 
13290
 
 
13291
  (set) 2>&1 |
 
13292
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13293
    *${as_nl}ac_space=\ *)
 
13294
      # `set' does not quote correctly, so add quotes: double-quote
 
13295
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
13296
      sed -n \
 
13297
        "s/'/'\\\\''/g;
 
13298
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13299
      ;; #(
 
13300
    *)
 
13301
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13302
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13303
      ;;
 
13304
    esac |
 
13305
    sort
 
13306
) |
 
13307
  sed '
 
13308
     /^ac_cv_env_/b end
 
13309
     t clear
 
13310
     :clear
 
13311
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13312
     t end
 
13313
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13314
     :end' >>confcache
 
13315
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13316
  if test -w "$cache_file"; then
 
13317
    if test "x$cache_file" != "x/dev/null"; then
 
13318
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13319
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13320
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
13321
        cat confcache >"$cache_file"
 
13322
      else
 
13323
        case $cache_file in #(
 
13324
        */* | ?:*)
 
13325
          mv -f confcache "$cache_file"$$ &&
 
13326
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
13327
        *)
 
13328
          mv -f confcache "$cache_file" ;;
 
13329
        esac
 
13330
      fi
 
13331
    fi
 
13332
  else
 
13333
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13334
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13335
  fi
 
13336
fi
 
13337
rm -f confcache
 
13338
 
 
13339
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13340
# Let make expand exec_prefix.
 
13341
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13342
 
 
13343
# Transform confdefs.h into DEFS.
 
13344
# Protect against shell expansion while executing Makefile rules.
 
13345
# Protect against Makefile macro expansion.
 
13346
#
 
13347
# If the first sed substitution is executed (which looks for macros that
 
13348
# take arguments), then branch to the quote section.  Otherwise,
 
13349
# look for a macro that doesn't take arguments.
 
13350
ac_script='
 
13351
:mline
 
13352
/\\$/{
 
13353
 N
 
13354
 s,\\\n,,
 
13355
 b mline
 
13356
}
 
13357
t clear
 
13358
:clear
 
13359
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
13360
t quote
 
13361
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
13362
t quote
 
13363
b any
 
13364
:quote
 
13365
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
13366
s/\[/\\&/g
 
13367
s/\]/\\&/g
 
13368
s/\$/$$/g
 
13369
H
 
13370
:any
 
13371
${
 
13372
        g
 
13373
        s/^\n//
 
13374
        s/\n/ /g
 
13375
        p
 
13376
}
 
13377
'
 
13378
DEFS=`sed -n "$ac_script" confdefs.h`
 
13379
 
 
13380
 
 
13381
ac_libobjs=
 
13382
ac_ltlibobjs=
 
13383
U=
 
13384
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13385
  # 1. Remove the extension, and $U if already installed.
 
13386
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13387
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13388
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13389
  #    will be set to the directory where LIBOBJS objects are built.
 
13390
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13391
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13392
done
 
13393
LIBOBJS=$ac_libobjs
 
13394
 
 
13395
LTLIBOBJS=$ac_ltlibobjs
 
13396
 
 
13397
 
 
13398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
13399
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
13400
   if test -n "$am_sleep_pid"; then
 
13401
     # Hide warnings about reused PIDs.
 
13402
     wait $am_sleep_pid 2>/dev/null
 
13403
   fi
 
13404
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
13405
$as_echo "done" >&6; }
 
13406
 if test -n "$EXEEXT"; then
 
13407
  am__EXEEXT_TRUE=
 
13408
  am__EXEEXT_FALSE='#'
 
13409
else
 
13410
  am__EXEEXT_TRUE='#'
 
13411
  am__EXEEXT_FALSE=
 
13412
fi
 
13413
 
 
13414
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13415
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
13416
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13417
fi
 
13418
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13419
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13420
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13421
fi
 
13422
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
 
13423
  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
 
13424
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13425
fi
 
13426
if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
 
13427
  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
 
13428
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13429
fi
 
13430
if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
 
13431
  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
 
13432
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13433
fi
 
13434
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
 
13435
  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
13436
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13437
fi
 
13438
if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
 
13439
  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
 
13440
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13441
fi
 
13442
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
 
13443
  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
 
13444
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13445
fi
 
13446
 
 
13447
: "${CONFIG_STATUS=./config.status}"
 
13448
ac_write_fail=0
 
13449
ac_clean_files_save=$ac_clean_files
 
13450
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13451
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13452
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13453
as_write_fail=0
 
13454
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13455
#! $SHELL
 
13456
# Generated by $as_me.
 
13457
# Run this file to recreate the current configuration.
 
13458
# Compiler output produced by configure, useful for debugging
 
13459
# configure, is in config.log if it exists.
 
13460
 
 
13461
debug=false
 
13462
ac_cs_recheck=false
 
13463
ac_cs_silent=false
 
13464
 
 
13465
SHELL=\${CONFIG_SHELL-$SHELL}
 
13466
export SHELL
 
13467
_ASEOF
 
13468
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13469
## -------------------- ##
 
13470
## M4sh Initialization. ##
 
13471
## -------------------- ##
 
13472
 
 
13473
# Be more Bourne compatible
 
13474
DUALCASE=1; export DUALCASE # for MKS sh
 
13475
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13476
  emulate sh
 
13477
  NULLCMD=:
 
13478
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13479
  # is contrary to our usage.  Disable this feature.
 
13480
  alias -g '${1+"$@"}'='"$@"'
 
13481
  setopt NO_GLOB_SUBST
 
13482
else
 
13483
  case `(set -o) 2>/dev/null` in #(
 
13484
  *posix*) :
 
13485
    set -o posix ;; #(
 
13486
  *) :
 
13487
     ;;
 
13488
esac
 
13489
fi
 
13490
 
 
13491
 
 
13492
as_nl='
 
13493
'
 
13494
export as_nl
 
13495
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13496
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13497
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13498
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13499
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13500
# but without wasting forks for bash or zsh.
 
13501
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13502
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13503
  as_echo='print -r --'
 
13504
  as_echo_n='print -rn --'
 
13505
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13506
  as_echo='printf %s\n'
 
13507
  as_echo_n='printf %s'
 
13508
else
 
13509
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13510
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13511
    as_echo_n='/usr/ucb/echo -n'
 
13512
  else
 
13513
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13514
    as_echo_n_body='eval
 
13515
      arg=$1;
 
13516
      case $arg in #(
 
13517
      *"$as_nl"*)
 
13518
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13519
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13520
      esac;
 
13521
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13522
    '
 
13523
    export as_echo_n_body
 
13524
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13525
  fi
 
13526
  export as_echo_body
 
13527
  as_echo='sh -c $as_echo_body as_echo'
 
13528
fi
 
13529
 
 
13530
# The user is always right.
 
13531
if test "${PATH_SEPARATOR+set}" != set; then
 
13532
  PATH_SEPARATOR=:
 
13533
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13534
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13535
      PATH_SEPARATOR=';'
 
13536
  }
 
13537
fi
 
13538
 
 
13539
 
 
13540
# IFS
 
13541
# We need space, tab and new line, in precisely that order.  Quoting is
 
13542
# there to prevent editors from complaining about space-tab.
 
13543
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13544
# splitting by setting IFS to empty value.)
 
13545
IFS=" ""        $as_nl"
 
13546
 
 
13547
# Find who we are.  Look in the path if we contain no directory separator.
 
13548
as_myself=
 
13549
case $0 in #((
 
13550
  *[\\/]* ) as_myself=$0 ;;
 
13551
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13552
for as_dir in $PATH
 
13553
do
 
13554
  IFS=$as_save_IFS
 
13555
  test -z "$as_dir" && as_dir=.
 
13556
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13557
  done
 
13558
IFS=$as_save_IFS
 
13559
 
 
13560
     ;;
 
13561
esac
 
13562
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13563
# in which case we are not to be found in the path.
 
13564
if test "x$as_myself" = x; then
 
13565
  as_myself=$0
 
13566
fi
 
13567
if test ! -f "$as_myself"; then
 
13568
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13569
  exit 1
 
13570
fi
 
13571
 
 
13572
# Unset variables that we do not need and which cause bugs (e.g. in
 
13573
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13574
# suppresses any "Segmentation fault" message there.  '((' could
 
13575
# trigger a bug in pdksh 5.2.14.
 
13576
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13577
do eval test x\${$as_var+set} = xset \
 
13578
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13579
done
 
13580
PS1='$ '
 
13581
PS2='> '
 
13582
PS4='+ '
 
13583
 
 
13584
# NLS nuisances.
 
13585
LC_ALL=C
 
13586
export LC_ALL
 
13587
LANGUAGE=C
 
13588
export LANGUAGE
 
13589
 
 
13590
# CDPATH.
 
13591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13592
 
 
13593
 
 
13594
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13595
# ----------------------------------------
 
13596
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13597
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13598
# script with STATUS, using 1 if that was 0.
 
13599
as_fn_error ()
 
13600
{
 
13601
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13602
  if test "$4"; then
 
13603
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13604
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
13605
  fi
 
13606
  $as_echo "$as_me: error: $2" >&2
 
13607
  as_fn_exit $as_status
 
13608
} # as_fn_error
 
13609
 
 
13610
 
 
13611
# as_fn_set_status STATUS
 
13612
# -----------------------
 
13613
# Set $? to STATUS, without forking.
 
13614
as_fn_set_status ()
 
13615
{
 
13616
  return $1
 
13617
} # as_fn_set_status
 
13618
 
 
13619
# as_fn_exit STATUS
 
13620
# -----------------
 
13621
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13622
as_fn_exit ()
 
13623
{
 
13624
  set +e
 
13625
  as_fn_set_status $1
 
13626
  exit $1
 
13627
} # as_fn_exit
 
13628
 
 
13629
# as_fn_unset VAR
 
13630
# ---------------
 
13631
# Portably unset VAR.
 
13632
as_fn_unset ()
 
13633
{
 
13634
  { eval $1=; unset $1;}
 
13635
}
 
13636
as_unset=as_fn_unset
 
13637
# as_fn_append VAR VALUE
 
13638
# ----------------------
 
13639
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13640
# advantage of any shell optimizations that allow amortized linear growth over
 
13641
# repeated appends, instead of the typical quadratic growth present in naive
 
13642
# implementations.
 
13643
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13644
  eval 'as_fn_append ()
 
13645
  {
 
13646
    eval $1+=\$2
 
13647
  }'
 
13648
else
 
13649
  as_fn_append ()
 
13650
  {
 
13651
    eval $1=\$$1\$2
 
13652
  }
 
13653
fi # as_fn_append
 
13654
 
 
13655
# as_fn_arith ARG...
 
13656
# ------------------
 
13657
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
13658
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
13659
# must be portable across $(()) and expr.
 
13660
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13661
  eval 'as_fn_arith ()
 
13662
  {
 
13663
    as_val=$(( $* ))
 
13664
  }'
 
13665
else
 
13666
  as_fn_arith ()
 
13667
  {
 
13668
    as_val=`expr "$@" || test $? -eq 1`
 
13669
  }
 
13670
fi # as_fn_arith
 
13671
 
 
13672
 
 
13673
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13674
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13675
  as_expr=expr
 
13676
else
 
13677
  as_expr=false
 
13678
fi
 
13679
 
 
13680
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13681
  as_basename=basename
 
13682
else
 
13683
  as_basename=false
 
13684
fi
 
13685
 
 
13686
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13687
  as_dirname=dirname
 
13688
else
 
13689
  as_dirname=false
 
13690
fi
 
13691
 
 
13692
as_me=`$as_basename -- "$0" ||
 
13693
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13694
         X"$0" : 'X\(//\)$' \| \
 
13695
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13696
$as_echo X/"$0" |
 
13697
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13698
            s//\1/
 
13699
            q
 
13700
          }
 
13701
          /^X\/\(\/\/\)$/{
 
13702
            s//\1/
 
13703
            q
 
13704
          }
 
13705
          /^X\/\(\/\).*/{
 
13706
            s//\1/
 
13707
            q
 
13708
          }
 
13709
          s/.*/./; q'`
 
13710
 
 
13711
# Avoid depending upon Character Ranges.
 
13712
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13713
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13714
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13715
as_cr_digits='0123456789'
 
13716
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13717
 
 
13718
ECHO_C= ECHO_N= ECHO_T=
 
13719
case `echo -n x` in #(((((
 
13720
-n*)
 
13721
  case `echo 'xy\c'` in
 
13722
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13723
  xy)  ECHO_C='\c';;
 
13724
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13725
       ECHO_T=' ';;
 
13726
  esac;;
 
13727
*)
 
13728
  ECHO_N='-n';;
 
13729
esac
 
13730
 
 
13731
rm -f conf$$ conf$$.exe conf$$.file
 
13732
if test -d conf$$.dir; then
 
13733
  rm -f conf$$.dir/conf$$.file
 
13734
else
 
13735
  rm -f conf$$.dir
 
13736
  mkdir conf$$.dir 2>/dev/null
 
13737
fi
 
13738
if (echo >conf$$.file) 2>/dev/null; then
 
13739
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13740
    as_ln_s='ln -s'
 
13741
    # ... but there are two gotchas:
 
13742
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13743
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13744
    # In both cases, we have to default to `cp -pR'.
 
13745
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13746
      as_ln_s='cp -pR'
 
13747
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13748
    as_ln_s=ln
 
13749
  else
 
13750
    as_ln_s='cp -pR'
 
13751
  fi
 
13752
else
 
13753
  as_ln_s='cp -pR'
 
13754
fi
 
13755
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13756
rmdir conf$$.dir 2>/dev/null
 
13757
 
 
13758
 
 
13759
# as_fn_mkdir_p
 
13760
# -------------
 
13761
# Create "$as_dir" as a directory, including parents if necessary.
 
13762
as_fn_mkdir_p ()
 
13763
{
 
13764
 
 
13765
  case $as_dir in #(
 
13766
  -*) as_dir=./$as_dir;;
 
13767
  esac
 
13768
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13769
    as_dirs=
 
13770
    while :; do
 
13771
      case $as_dir in #(
 
13772
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13773
      *) as_qdir=$as_dir;;
 
13774
      esac
 
13775
      as_dirs="'$as_qdir' $as_dirs"
 
13776
      as_dir=`$as_dirname -- "$as_dir" ||
 
13777
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13778
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13779
         X"$as_dir" : 'X\(//\)$' \| \
 
13780
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13781
$as_echo X"$as_dir" |
 
13782
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13783
            s//\1/
 
13784
            q
 
13785
          }
 
13786
          /^X\(\/\/\)[^/].*/{
 
13787
            s//\1/
 
13788
            q
 
13789
          }
 
13790
          /^X\(\/\/\)$/{
 
13791
            s//\1/
 
13792
            q
 
13793
          }
 
13794
          /^X\(\/\).*/{
 
13795
            s//\1/
 
13796
            q
 
13797
          }
 
13798
          s/.*/./; q'`
 
13799
      test -d "$as_dir" && break
 
13800
    done
 
13801
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13802
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
13803
 
 
13804
 
 
13805
} # as_fn_mkdir_p
 
13806
if mkdir -p . 2>/dev/null; then
 
13807
  as_mkdir_p='mkdir -p "$as_dir"'
 
13808
else
 
13809
  test -d ./-p && rmdir ./-p
 
13810
  as_mkdir_p=false
 
13811
fi
 
13812
 
 
13813
 
 
13814
# as_fn_executable_p FILE
 
13815
# -----------------------
 
13816
# Test if FILE is an executable regular file.
 
13817
as_fn_executable_p ()
 
13818
{
 
13819
  test -f "$1" && test -x "$1"
 
13820
} # as_fn_executable_p
 
13821
as_test_x='test -x'
 
13822
as_executable_p=as_fn_executable_p
 
13823
 
 
13824
# Sed expression to map a string onto a valid CPP name.
 
13825
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13826
 
 
13827
# Sed expression to map a string onto a valid variable name.
 
13828
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13829
 
 
13830
 
 
13831
exec 6>&1
 
13832
## ----------------------------------- ##
 
13833
## Main body of $CONFIG_STATUS script. ##
 
13834
## ----------------------------------- ##
 
13835
_ASEOF
 
13836
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
13837
 
 
13838
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13839
# Save the log message, to keep $0 and so on meaningful, and to
 
13840
# report actual input values of CONFIG_FILES etc. instead of their
 
13841
# values after options handling.
 
13842
ac_log="
 
13843
This file was extended by libu2f-server $as_me 0.0.0, which was
 
13844
generated by GNU Autoconf 2.69.  Invocation command line was
 
13845
 
 
13846
  CONFIG_FILES    = $CONFIG_FILES
 
13847
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13848
  CONFIG_LINKS    = $CONFIG_LINKS
 
13849
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13850
  $ $0 $@
 
13851
 
 
13852
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13853
"
 
13854
 
 
13855
_ACEOF
 
13856
 
 
13857
case $ac_config_files in *"
 
13858
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13859
esac
 
13860
 
 
13861
 
 
13862
 
 
13863
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13864
# Files that config.status was made for.
 
13865
config_files="$ac_config_files"
 
13866
config_commands="$ac_config_commands"
 
13867
 
 
13868
_ACEOF
 
13869
 
 
13870
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13871
ac_cs_usage="\
 
13872
\`$as_me' instantiates files and other configuration actions
 
13873
from templates according to the current configuration.  Unless the files
 
13874
and actions are specified as TAGs, all are instantiated by default.
 
13875
 
 
13876
Usage: $0 [OPTION]... [TAG]...
 
13877
 
 
13878
  -h, --help       print this help, then exit
 
13879
  -V, --version    print version number and configuration settings, then exit
 
13880
      --config     print configuration, then exit
 
13881
  -q, --quiet, --silent
 
13882
                   do not print progress messages
 
13883
  -d, --debug      don't remove temporary files
 
13884
      --recheck    update $as_me by reconfiguring in the same conditions
 
13885
      --file=FILE[:TEMPLATE]
 
13886
                   instantiate the configuration file FILE
 
13887
 
 
13888
Configuration files:
 
13889
$config_files
 
13890
 
 
13891
Configuration commands:
 
13892
$config_commands
 
13893
 
 
13894
Report bugs to <yubico-devel@googlegroups.com>."
 
13895
 
 
13896
_ACEOF
 
13897
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13898
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
13899
ac_cs_version="\\
 
13900
libu2f-server config.status 0.0.0
 
13901
configured by $0, generated by GNU Autoconf 2.69,
 
13902
  with options \\"\$ac_cs_config\\"
 
13903
 
 
13904
Copyright (C) 2012 Free Software Foundation, Inc.
 
13905
This config.status script is free software; the Free Software Foundation
 
13906
gives unlimited permission to copy, distribute and modify it."
 
13907
 
 
13908
ac_pwd='$ac_pwd'
 
13909
srcdir='$srcdir'
 
13910
INSTALL='$INSTALL'
 
13911
MKDIR_P='$MKDIR_P'
 
13912
AWK='$AWK'
 
13913
test -n "\$AWK" || AWK=awk
 
13914
_ACEOF
 
13915
 
 
13916
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13917
# The default lists apply if the user does not specify any file.
 
13918
ac_need_defaults=:
 
13919
while test $# != 0
 
13920
do
 
13921
  case $1 in
 
13922
  --*=?*)
 
13923
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13924
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13925
    ac_shift=:
 
13926
    ;;
 
13927
  --*=)
 
13928
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13929
    ac_optarg=
 
13930
    ac_shift=:
 
13931
    ;;
 
13932
  *)
 
13933
    ac_option=$1
 
13934
    ac_optarg=$2
 
13935
    ac_shift=shift
 
13936
    ;;
 
13937
  esac
 
13938
 
 
13939
  case $ac_option in
 
13940
  # Handling of the options.
 
13941
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
13942
    ac_cs_recheck=: ;;
 
13943
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13944
    $as_echo "$ac_cs_version"; exit ;;
 
13945
  --config | --confi | --conf | --con | --co | --c )
 
13946
    $as_echo "$ac_cs_config"; exit ;;
 
13947
  --debug | --debu | --deb | --de | --d | -d )
 
13948
    debug=: ;;
 
13949
  --file | --fil | --fi | --f )
 
13950
    $ac_shift
 
13951
    case $ac_optarg in
 
13952
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13953
    '') as_fn_error $? "missing file argument" ;;
 
13954
    esac
 
13955
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
13956
    ac_need_defaults=false;;
 
13957
  --he | --h |  --help | --hel | -h )
 
13958
    $as_echo "$ac_cs_usage"; exit ;;
 
13959
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13960
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13961
    ac_cs_silent=: ;;
 
13962
 
 
13963
  # This is an error.
 
13964
  -*) as_fn_error $? "unrecognized option: \`$1'
 
13965
Try \`$0 --help' for more information." ;;
 
13966
 
 
13967
  *) as_fn_append ac_config_targets " $1"
 
13968
     ac_need_defaults=false ;;
 
13969
 
 
13970
  esac
 
13971
  shift
 
13972
done
 
13973
 
 
13974
ac_configure_extra_args=
 
13975
 
 
13976
if $ac_cs_silent; then
 
13977
  exec 6>/dev/null
 
13978
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13979
fi
 
13980
 
 
13981
_ACEOF
 
13982
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13983
if \$ac_cs_recheck; then
 
13984
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13985
  shift
 
13986
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
13987
  CONFIG_SHELL='$SHELL'
 
13988
  export CONFIG_SHELL
 
13989
  exec "\$@"
 
13990
fi
 
13991
 
 
13992
_ACEOF
 
13993
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13994
exec 5>>config.log
 
13995
{
 
13996
  echo
 
13997
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
13998
## Running $as_me. ##
 
13999
_ASBOX
 
14000
  $as_echo "$ac_log"
 
14001
} >&5
 
14002
 
 
14003
_ACEOF
 
14004
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14005
#
 
14006
# INIT-COMMANDS
 
14007
#
 
14008
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14009
 
 
14010
 
 
14011
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14012
# if CDPATH is set.
 
14013
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14014
 
 
14015
sed_quote_subst='$sed_quote_subst'
 
14016
double_quote_subst='$double_quote_subst'
 
14017
delay_variable_subst='$delay_variable_subst'
 
14018
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
14019
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
14020
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
 
14021
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
14022
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
14023
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
14024
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
14025
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
14026
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
14027
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
14028
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
14029
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
14030
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
14031
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
14032
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
14033
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
14034
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
14035
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
14036
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
14037
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
14038
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
14039
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
14040
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
14041
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
14042
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
14043
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
14044
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
14045
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
14046
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
14047
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
14048
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
14049
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
14050
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14051
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14052
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
14053
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
14054
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
14055
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
14056
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
14057
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
14058
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
14059
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
14060
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
14061
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
14062
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
14063
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
14064
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14065
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14066
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14067
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
14068
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
14069
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
14070
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
14071
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
14072
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
14073
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
14074
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
14075
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14076
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14077
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
14078
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
14079
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
14080
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
14081
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
14082
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
14083
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
14084
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
14085
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
14086
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
14087
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
14088
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
14089
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
14090
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
14091
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
14092
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
14093
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
14094
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14095
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
14096
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
14097
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14098
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14099
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
14100
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
14101
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14102
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14103
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14104
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
14105
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14106
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
14107
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14108
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14109
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14110
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
14111
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
14112
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
14113
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
14114
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14115
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
14116
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
14117
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
14118
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
14119
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
14120
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
14121
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
14122
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
14123
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
14124
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14125
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
14126
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14127
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
14128
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
14129
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
14130
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14131
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
14132
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
14133
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
14134
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
14135
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
14136
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14137
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14138
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
14139
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
14140
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
14141
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
14142
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
14143
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
14144
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
14145
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
14146
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
14147
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
14148
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
14149
 
 
14150
LTCC='$LTCC'
 
14151
LTCFLAGS='$LTCFLAGS'
 
14152
compiler='$compiler_DEFAULT'
 
14153
 
 
14154
# A function that is used when there is no print builtin or printf.
 
14155
func_fallback_echo ()
 
14156
{
 
14157
  eval 'cat <<_LTECHO_EOF
 
14158
\$1
 
14159
_LTECHO_EOF'
 
14160
}
 
14161
 
 
14162
# Quote evaled strings.
 
14163
for var in AS \
 
14164
DLLTOOL \
 
14165
OBJDUMP \
 
14166
SHELL \
 
14167
ECHO \
 
14168
PATH_SEPARATOR \
 
14169
SED \
 
14170
GREP \
 
14171
EGREP \
 
14172
FGREP \
 
14173
LD \
 
14174
NM \
 
14175
LN_S \
 
14176
lt_SP2NL \
 
14177
lt_NL2SP \
 
14178
reload_flag \
 
14179
deplibs_check_method \
 
14180
file_magic_cmd \
 
14181
file_magic_glob \
 
14182
want_nocaseglob \
 
14183
sharedlib_from_linklib_cmd \
 
14184
AR \
 
14185
AR_FLAGS \
 
14186
archiver_list_spec \
 
14187
STRIP \
 
14188
RANLIB \
 
14189
CC \
 
14190
CFLAGS \
 
14191
compiler \
 
14192
lt_cv_sys_global_symbol_pipe \
 
14193
lt_cv_sys_global_symbol_to_cdecl \
 
14194
lt_cv_sys_global_symbol_to_c_name_address \
 
14195
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14196
nm_file_list_spec \
 
14197
lt_prog_compiler_no_builtin_flag \
 
14198
lt_prog_compiler_pic \
 
14199
lt_prog_compiler_wl \
 
14200
lt_prog_compiler_static \
 
14201
lt_cv_prog_compiler_c_o \
 
14202
need_locks \
 
14203
MANIFEST_TOOL \
 
14204
DSYMUTIL \
 
14205
NMEDIT \
 
14206
LIPO \
 
14207
OTOOL \
 
14208
OTOOL64 \
 
14209
shrext_cmds \
 
14210
export_dynamic_flag_spec \
 
14211
whole_archive_flag_spec \
 
14212
compiler_needs_object \
 
14213
with_gnu_ld \
 
14214
allow_undefined_flag \
 
14215
no_undefined_flag \
 
14216
hardcode_libdir_flag_spec \
 
14217
hardcode_libdir_separator \
 
14218
exclude_expsyms \
 
14219
include_expsyms \
 
14220
file_list_spec \
 
14221
variables_saved_for_relink \
 
14222
libname_spec \
 
14223
library_names_spec \
 
14224
soname_spec \
 
14225
install_override_mode \
 
14226
finish_eval \
 
14227
old_striplib \
 
14228
striplib; do
 
14229
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14230
    *[\\\\\\\`\\"\\\$]*)
 
14231
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14232
      ;;
 
14233
    *)
 
14234
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14235
      ;;
 
14236
    esac
 
14237
done
 
14238
 
 
14239
# Double-quote double-evaled strings.
 
14240
for var in reload_cmds \
 
14241
old_postinstall_cmds \
 
14242
old_postuninstall_cmds \
 
14243
old_archive_cmds \
 
14244
extract_expsyms_cmds \
 
14245
old_archive_from_new_cmds \
 
14246
old_archive_from_expsyms_cmds \
 
14247
archive_cmds \
 
14248
archive_expsym_cmds \
 
14249
module_cmds \
 
14250
module_expsym_cmds \
 
14251
export_symbols_cmds \
 
14252
prelink_cmds \
 
14253
postlink_cmds \
 
14254
postinstall_cmds \
 
14255
postuninstall_cmds \
 
14256
finish_cmds \
 
14257
sys_lib_search_path_spec \
 
14258
sys_lib_dlsearch_path_spec; do
 
14259
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14260
    *[\\\\\\\`\\"\\\$]*)
 
14261
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14262
      ;;
 
14263
    *)
 
14264
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14265
      ;;
 
14266
    esac
 
14267
done
 
14268
 
 
14269
ac_aux_dir='$ac_aux_dir'
 
14270
xsi_shell='$xsi_shell'
 
14271
lt_shell_append='$lt_shell_append'
 
14272
 
 
14273
# See if we are running on zsh, and set the options which allow our
 
14274
# commands through without removal of \ escapes INIT.
 
14275
if test -n "\${ZSH_VERSION+set}" ; then
 
14276
   setopt NO_GLOB_SUBST
 
14277
fi
 
14278
 
 
14279
 
 
14280
    PACKAGE='$PACKAGE'
 
14281
    VERSION='$VERSION'
 
14282
    TIMESTAMP='$TIMESTAMP'
 
14283
    RM='$RM'
 
14284
    ofile='$ofile'
 
14285
 
 
14286
 
 
14287
 
 
14288
 
 
14289
_ACEOF
 
14290
 
 
14291
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14292
 
 
14293
# Handling of arguments.
 
14294
for ac_config_target in $ac_config_targets
 
14295
do
 
14296
  case $ac_config_target in
 
14297
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14298
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
14299
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14300
    "gtk-doc/Makefile") CONFIG_FILES="$CONFIG_FILES gtk-doc/Makefile" ;;
 
14301
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
14302
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
14303
    "u2f-server/Makefile") CONFIG_FILES="$CONFIG_FILES u2f-server/Makefile" ;;
 
14304
    "u2f-server/u2f-server-version.h") CONFIG_FILES="$CONFIG_FILES u2f-server/u2f-server-version.h" ;;
 
14305
    "u2f-server/u2f-server.pc") CONFIG_FILES="$CONFIG_FILES u2f-server/u2f-server.pc" ;;
 
14306
 
 
14307
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
14308
  esac
 
14309
done
 
14310
 
 
14311
 
 
14312
# If the user did not use the arguments to specify the items to instantiate,
 
14313
# then the envvar interface is used.  Set only those that are not.
 
14314
# We use the long form for the default assignment because of an extremely
 
14315
# bizarre bug on SunOS 4.1.3.
 
14316
if $ac_need_defaults; then
 
14317
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14318
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14319
fi
 
14320
 
 
14321
# Have a temporary directory for convenience.  Make it in the build tree
 
14322
# simply because there is no reason against having it here, and in addition,
 
14323
# creating and moving files from /tmp can sometimes cause problems.
 
14324
# Hook for its removal unless debugging.
 
14325
# Note that there is a small window in which the directory will not be cleaned:
 
14326
# after its creation but before its name has been assigned to `$tmp'.
 
14327
$debug ||
 
14328
{
 
14329
  tmp= ac_tmp=
 
14330
  trap 'exit_status=$?
 
14331
  : "${ac_tmp:=$tmp}"
 
14332
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
14333
' 0
 
14334
  trap 'as_fn_exit 1' 1 2 13 15
 
14335
}
 
14336
# Create a (secure) tmp directory for tmp files.
 
14337
 
 
14338
{
 
14339
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14340
  test -d "$tmp"
 
14341
}  ||
 
14342
{
 
14343
  tmp=./conf$$-$RANDOM
 
14344
  (umask 077 && mkdir "$tmp")
 
14345
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
14346
ac_tmp=$tmp
 
14347
 
 
14348
# Set up the scripts for CONFIG_FILES section.
 
14349
# No need to generate them if there are no CONFIG_FILES.
 
14350
# This happens for instance with `./config.status config.h'.
 
14351
if test -n "$CONFIG_FILES"; then
 
14352
 
 
14353
 
 
14354
ac_cr=`echo X | tr X '\015'`
 
14355
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14356
# But we know of no other shell where ac_cr would be empty at this
 
14357
# point, so we can use a bashism as a fallback.
 
14358
if test "x$ac_cr" = x; then
 
14359
  eval ac_cr=\$\'\\r\'
 
14360
fi
 
14361
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14362
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14363
  ac_cs_awk_cr='\\r'
 
14364
else
 
14365
  ac_cs_awk_cr=$ac_cr
 
14366
fi
 
14367
 
 
14368
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
14369
_ACEOF
 
14370
 
 
14371
 
 
14372
{
 
14373
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14374
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14375
  echo "_ACEOF"
 
14376
} >conf$$subs.sh ||
 
14377
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14378
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
14379
ac_delim='%!_!# '
 
14380
for ac_last_try in false false false false false :; do
 
14381
  . ./conf$$subs.sh ||
 
14382
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14383
 
 
14384
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14385
  if test $ac_delim_n = $ac_delim_num; then
 
14386
    break
 
14387
  elif $ac_last_try; then
 
14388
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14389
  else
 
14390
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14391
  fi
 
14392
done
 
14393
rm -f conf$$subs.sh
 
14394
 
 
14395
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14396
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
14397
_ACEOF
 
14398
sed -n '
 
14399
h
 
14400
s/^/S["/; s/!.*/"]=/
 
14401
p
 
14402
g
 
14403
s/^[^!]*!//
 
14404
:repl
 
14405
t repl
 
14406
s/'"$ac_delim"'$//
 
14407
t delim
 
14408
:nl
 
14409
h
 
14410
s/\(.\{148\}\)..*/\1/
 
14411
t more1
 
14412
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14413
p
 
14414
n
 
14415
b repl
 
14416
:more1
 
14417
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14418
p
 
14419
g
 
14420
s/.\{148\}//
 
14421
t nl
 
14422
:delim
 
14423
h
 
14424
s/\(.\{148\}\)..*/\1/
 
14425
t more2
 
14426
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14427
p
 
14428
b
 
14429
:more2
 
14430
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14431
p
 
14432
g
 
14433
s/.\{148\}//
 
14434
t delim
 
14435
' <conf$$subs.awk | sed '
 
14436
/^[^""]/{
 
14437
  N
 
14438
  s/\n//
 
14439
}
 
14440
' >>$CONFIG_STATUS || ac_write_fail=1
 
14441
rm -f conf$$subs.awk
 
14442
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14443
_ACAWK
 
14444
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14445
  for (key in S) S_is_set[key] = 1
 
14446
  FS = ""
 
14447
 
 
14448
}
 
14449
{
 
14450
  line = $ 0
 
14451
  nfields = split(line, field, "@")
 
14452
  substed = 0
 
14453
  len = length(field[1])
 
14454
  for (i = 2; i < nfields; i++) {
 
14455
    key = field[i]
 
14456
    keylen = length(key)
 
14457
    if (S_is_set[key]) {
 
14458
      value = S[key]
 
14459
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14460
      len += length(value) + length(field[++i])
 
14461
      substed = 1
 
14462
    } else
 
14463
      len += 1 + keylen
 
14464
  }
 
14465
 
 
14466
  print line
 
14467
}
 
14468
 
 
14469
_ACAWK
 
14470
_ACEOF
 
14471
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14472
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14473
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14474
else
 
14475
  cat
 
14476
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14477
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14478
_ACEOF
 
14479
 
 
14480
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14481
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
14482
# trailing colons and then remove the whole line if VPATH becomes empty
 
14483
# (actually we leave an empty line to preserve line numbers).
 
14484
if test "x$srcdir" = x.; then
 
14485
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14486
h
 
14487
s///
 
14488
s/^/:/
 
14489
s/[      ]*$/:/
 
14490
s/:\$(srcdir):/:/g
 
14491
s/:\${srcdir}:/:/g
 
14492
s/:@srcdir@:/:/g
 
14493
s/^:*//
 
14494
s/:*$//
 
14495
x
 
14496
s/\(=[   ]*\).*/\1/
 
14497
G
 
14498
s/\n//
 
14499
s/^[^=]*=[       ]*$//
 
14500
}'
 
14501
fi
 
14502
 
 
14503
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14504
fi # test -n "$CONFIG_FILES"
 
14505
 
 
14506
 
 
14507
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
 
14508
shift
 
14509
for ac_tag
 
14510
do
 
14511
  case $ac_tag in
 
14512
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14513
  esac
 
14514
  case $ac_mode$ac_tag in
 
14515
  :[FHL]*:*);;
 
14516
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14517
  :[FH]-) ac_tag=-:-;;
 
14518
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14519
  esac
 
14520
  ac_save_IFS=$IFS
 
14521
  IFS=:
 
14522
  set x $ac_tag
 
14523
  IFS=$ac_save_IFS
 
14524
  shift
 
14525
  ac_file=$1
 
14526
  shift
 
14527
 
 
14528
  case $ac_mode in
 
14529
  :L) ac_source=$1;;
 
14530
  :[FH])
 
14531
    ac_file_inputs=
 
14532
    for ac_f
 
14533
    do
 
14534
      case $ac_f in
 
14535
      -) ac_f="$ac_tmp/stdin";;
 
14536
      *) # Look for the file first in the build tree, then in the source tree
 
14537
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14538
         # because $ac_f cannot contain `:'.
 
14539
         test -f "$ac_f" ||
 
14540
           case $ac_f in
 
14541
           [\\/$]*) false;;
 
14542
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14543
           esac ||
 
14544
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14545
      esac
 
14546
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14547
      as_fn_append ac_file_inputs " '$ac_f'"
 
14548
    done
 
14549
 
 
14550
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14551
    # use $as_me), people would be surprised to read:
 
14552
    #    /* config.h.  Generated by config.status.  */
 
14553
    configure_input='Generated from '`
 
14554
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14555
        `' by configure.'
 
14556
    if test x"$ac_file" != x-; then
 
14557
      configure_input="$ac_file.  $configure_input"
 
14558
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14559
$as_echo "$as_me: creating $ac_file" >&6;}
 
14560
    fi
 
14561
    # Neutralize special characters interpreted by sed in replacement strings.
 
14562
    case $configure_input in #(
 
14563
    *\&* | *\|* | *\\* )
 
14564
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14565
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14566
    *) ac_sed_conf_input=$configure_input;;
 
14567
    esac
 
14568
 
 
14569
    case $ac_tag in
 
14570
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
14571
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
14572
    esac
 
14573
    ;;
 
14574
  esac
 
14575
 
 
14576
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14577
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14578
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14579
         X"$ac_file" : 'X\(//\)$' \| \
 
14580
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14581
$as_echo X"$ac_file" |
 
14582
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14583
            s//\1/
 
14584
            q
 
14585
          }
 
14586
          /^X\(\/\/\)[^/].*/{
 
14587
            s//\1/
 
14588
            q
 
14589
          }
 
14590
          /^X\(\/\/\)$/{
 
14591
            s//\1/
 
14592
            q
 
14593
          }
 
14594
          /^X\(\/\).*/{
 
14595
            s//\1/
 
14596
            q
 
14597
          }
 
14598
          s/.*/./; q'`
 
14599
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14600
  ac_builddir=.
 
14601
 
 
14602
case "$ac_dir" in
 
14603
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14604
*)
 
14605
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14606
  # A ".." for each directory in $ac_dir_suffix.
 
14607
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14608
  case $ac_top_builddir_sub in
 
14609
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14610
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14611
  esac ;;
 
14612
esac
 
14613
ac_abs_top_builddir=$ac_pwd
 
14614
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14615
# for backward compatibility:
 
14616
ac_top_builddir=$ac_top_build_prefix
 
14617
 
 
14618
case $srcdir in
 
14619
  .)  # We are building in place.
 
14620
    ac_srcdir=.
 
14621
    ac_top_srcdir=$ac_top_builddir_sub
 
14622
    ac_abs_top_srcdir=$ac_pwd ;;
 
14623
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14624
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14625
    ac_top_srcdir=$srcdir
 
14626
    ac_abs_top_srcdir=$srcdir ;;
 
14627
  *) # Relative name.
 
14628
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14629
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14630
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14631
esac
 
14632
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14633
 
 
14634
 
 
14635
  case $ac_mode in
 
14636
  :F)
 
14637
  #
 
14638
  # CONFIG_FILE
 
14639
  #
 
14640
 
 
14641
  case $INSTALL in
 
14642
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14643
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14644
  esac
 
14645
  ac_MKDIR_P=$MKDIR_P
 
14646
  case $MKDIR_P in
 
14647
  [\\/$]* | ?:[\\/]* ) ;;
 
14648
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14649
  esac
 
14650
_ACEOF
 
14651
 
 
14652
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14653
# If the template does not know about datarootdir, expand it.
 
14654
# FIXME: This hack should be removed a few years after 2.60.
 
14655
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14656
ac_sed_dataroot='
 
14657
/datarootdir/ {
 
14658
  p
 
14659
  q
 
14660
}
 
14661
/@datadir@/p
 
14662
/@docdir@/p
 
14663
/@infodir@/p
 
14664
/@localedir@/p
 
14665
/@mandir@/p'
 
14666
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14667
*datarootdir*) ac_datarootdir_seen=yes;;
 
14668
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14669
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14670
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14671
_ACEOF
 
14672
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14673
  ac_datarootdir_hack='
 
14674
  s&@datadir@&$datadir&g
 
14675
  s&@docdir@&$docdir&g
 
14676
  s&@infodir@&$infodir&g
 
14677
  s&@localedir@&$localedir&g
 
14678
  s&@mandir@&$mandir&g
 
14679
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
14680
esac
 
14681
_ACEOF
 
14682
 
 
14683
# Neutralize VPATH when `$srcdir' = `.'.
 
14684
# Shell code in configure.ac might set extrasub.
 
14685
# FIXME: do we really want to maintain this feature?
 
14686
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14687
ac_sed_extra="$ac_vpsub
 
14688
$extrasub
 
14689
_ACEOF
 
14690
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14691
:t
 
14692
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14693
s|@configure_input@|$ac_sed_conf_input|;t t
 
14694
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14695
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14696
s&@srcdir@&$ac_srcdir&;t t
 
14697
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14698
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14699
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14700
s&@builddir@&$ac_builddir&;t t
 
14701
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14702
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14703
s&@INSTALL@&$ac_INSTALL&;t t
 
14704
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14705
$ac_datarootdir_hack
 
14706
"
 
14707
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
14708
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14709
 
 
14710
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14711
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
14712
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
14713
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
14714
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14715
which seems to be undefined.  Please make sure it is defined" >&5
 
14716
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14717
which seems to be undefined.  Please make sure it is defined" >&2;}
 
14718
 
 
14719
  rm -f "$ac_tmp/stdin"
 
14720
  case $ac_file in
 
14721
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
14722
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
14723
  esac \
 
14724
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14725
 ;;
 
14726
 
 
14727
 
 
14728
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
14729
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
14730
 ;;
 
14731
  esac
 
14732
 
 
14733
 
 
14734
  case $ac_file$ac_mode in
 
14735
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
14736
  # Older Autoconf quotes --file arguments for eval, but not when files
 
14737
  # are listed without --file.  Let's play safe and only enable the eval
 
14738
  # if we detect the quoting.
 
14739
  case $CONFIG_FILES in
 
14740
  *\'*) eval set x "$CONFIG_FILES" ;;
 
14741
  *)   set x $CONFIG_FILES ;;
 
14742
  esac
 
14743
  shift
 
14744
  for mf
 
14745
  do
 
14746
    # Strip MF so we end up with the name of the file.
 
14747
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14748
    # Check whether this is an Automake generated Makefile or not.
 
14749
    # We used to match only the files named 'Makefile.in', but
 
14750
    # some people rename them; so instead we look at the file content.
 
14751
    # Grep'ing the first line is not enough: some people post-process
 
14752
    # each Makefile.in and add a new line on top of each file to say so.
 
14753
    # Grep'ing the whole file is not good either: AIX grep has a line
 
14754
    # limit of 2048, but all sed's we know have understand at least 4000.
 
14755
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
14756
      dirpart=`$as_dirname -- "$mf" ||
 
14757
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14758
         X"$mf" : 'X\(//\)[^/]' \| \
 
14759
         X"$mf" : 'X\(//\)$' \| \
 
14760
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
14761
$as_echo X"$mf" |
 
14762
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14763
            s//\1/
 
14764
            q
 
14765
          }
 
14766
          /^X\(\/\/\)[^/].*/{
 
14767
            s//\1/
 
14768
            q
 
14769
          }
 
14770
          /^X\(\/\/\)$/{
 
14771
            s//\1/
 
14772
            q
 
14773
          }
 
14774
          /^X\(\/\).*/{
 
14775
            s//\1/
 
14776
            q
 
14777
          }
 
14778
          s/.*/./; q'`
 
14779
    else
 
14780
      continue
 
14781
    fi
 
14782
    # Extract the definition of DEPDIR, am__include, and am__quote
 
14783
    # from the Makefile without running 'make'.
 
14784
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
14785
    test -z "$DEPDIR" && continue
 
14786
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14787
    test -z "$am__include" && continue
 
14788
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
14789
    # Find all dependency output files, they are included files with
 
14790
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14791
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
14792
    # expansion.
 
14793
    for file in `sed -n "
 
14794
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
14795
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
14796
      # Make sure the directory exists.
 
14797
      test -f "$dirpart/$file" && continue
 
14798
      fdir=`$as_dirname -- "$file" ||
 
14799
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14800
         X"$file" : 'X\(//\)[^/]' \| \
 
14801
         X"$file" : 'X\(//\)$' \| \
 
14802
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
14803
$as_echo X"$file" |
 
14804
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14805
            s//\1/
 
14806
            q
 
14807
          }
 
14808
          /^X\(\/\/\)[^/].*/{
 
14809
            s//\1/
 
14810
            q
 
14811
          }
 
14812
          /^X\(\/\/\)$/{
 
14813
            s//\1/
 
14814
            q
 
14815
          }
 
14816
          /^X\(\/\).*/{
 
14817
            s//\1/
 
14818
            q
 
14819
          }
 
14820
          s/.*/./; q'`
 
14821
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
14822
      # echo "creating $dirpart/$file"
 
14823
      echo '# dummy' > "$dirpart/$file"
 
14824
    done
 
14825
  done
 
14826
}
 
14827
 ;;
 
14828
    "libtool":C)
 
14829
 
 
14830
    # See if we are running on zsh, and set the options which allow our
 
14831
    # commands through without removal of \ escapes.
 
14832
    if test -n "${ZSH_VERSION+set}" ; then
 
14833
      setopt NO_GLOB_SUBST
 
14834
    fi
 
14835
 
 
14836
    cfgfile="${ofile}T"
 
14837
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
14838
    $RM "$cfgfile"
 
14839
 
 
14840
    cat <<_LT_EOF >> "$cfgfile"
 
14841
#! $SHELL
 
14842
 
 
14843
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
14844
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
14845
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14846
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
14847
#
 
14848
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
14849
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
14850
#                 Foundation, Inc.
 
14851
#   Written by Gordon Matzigkeit, 1996
 
14852
#
 
14853
#   This file is part of GNU Libtool.
 
14854
#
 
14855
# GNU Libtool is free software; you can redistribute it and/or
 
14856
# modify it under the terms of the GNU General Public License as
 
14857
# published by the Free Software Foundation; either version 2 of
 
14858
# the License, or (at your option) any later version.
 
14859
#
 
14860
# As a special exception to the GNU General Public License,
 
14861
# if you distribute this file as part of a program or library that
 
14862
# is built using GNU Libtool, you may include this file under the
 
14863
# same distribution terms that you use for the rest of that program.
 
14864
#
 
14865
# GNU Libtool is distributed in the hope that it will be useful,
 
14866
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14867
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14868
# GNU General Public License for more details.
 
14869
#
 
14870
# You should have received a copy of the GNU General Public License
 
14871
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
14872
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
14873
# obtained by writing to the Free Software Foundation, Inc.,
 
14874
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
14875
 
 
14876
 
 
14877
# The names of the tagged configurations supported by this script.
 
14878
available_tags=""
 
14879
 
 
14880
# ### BEGIN LIBTOOL CONFIG
 
14881
 
 
14882
# Which release of libtool.m4 was used?
 
14883
macro_version=$macro_version
 
14884
macro_revision=$macro_revision
 
14885
 
 
14886
# Assembler program.
 
14887
AS=$lt_AS
 
14888
 
 
14889
# DLL creation program.
 
14890
DLLTOOL=$lt_DLLTOOL
 
14891
 
 
14892
# Object dumper program.
 
14893
OBJDUMP=$lt_OBJDUMP
 
14894
 
 
14895
# Whether or not to build shared libraries.
 
14896
build_libtool_libs=$enable_shared
 
14897
 
 
14898
# Whether or not to build static libraries.
 
14899
build_old_libs=$enable_static
 
14900
 
 
14901
# What type of objects to build.
 
14902
pic_mode=$pic_mode
 
14903
 
 
14904
# Whether or not to optimize for fast installation.
 
14905
fast_install=$enable_fast_install
 
14906
 
 
14907
# Shell to use when invoking shell scripts.
 
14908
SHELL=$lt_SHELL
 
14909
 
 
14910
# An echo program that protects backslashes.
 
14911
ECHO=$lt_ECHO
 
14912
 
 
14913
# The PATH separator for the build system.
 
14914
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
14915
 
 
14916
# The host system.
 
14917
host_alias=$host_alias
 
14918
host=$host
 
14919
host_os=$host_os
 
14920
 
 
14921
# The build system.
 
14922
build_alias=$build_alias
 
14923
build=$build
 
14924
build_os=$build_os
 
14925
 
 
14926
# A sed program that does not truncate output.
 
14927
SED=$lt_SED
 
14928
 
 
14929
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
14930
Xsed="\$SED -e 1s/^X//"
 
14931
 
 
14932
# A grep program that handles long lines.
 
14933
GREP=$lt_GREP
 
14934
 
 
14935
# An ERE matcher.
 
14936
EGREP=$lt_EGREP
 
14937
 
 
14938
# A literal string matcher.
 
14939
FGREP=$lt_FGREP
 
14940
 
 
14941
# A BSD- or MS-compatible name lister.
 
14942
NM=$lt_NM
 
14943
 
 
14944
# Whether we need soft or hard links.
 
14945
LN_S=$lt_LN_S
 
14946
 
 
14947
# What is the maximum length of a command?
 
14948
max_cmd_len=$max_cmd_len
 
14949
 
 
14950
# Object file suffix (normally "o").
 
14951
objext=$ac_objext
 
14952
 
 
14953
# Executable file suffix (normally "").
 
14954
exeext=$exeext
 
14955
 
 
14956
# whether the shell understands "unset".
 
14957
lt_unset=$lt_unset
 
14958
 
 
14959
# turn spaces into newlines.
 
14960
SP2NL=$lt_lt_SP2NL
 
14961
 
 
14962
# turn newlines into spaces.
 
14963
NL2SP=$lt_lt_NL2SP
 
14964
 
 
14965
# convert \$build file names to \$host format.
 
14966
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
14967
 
 
14968
# convert \$build files to toolchain format.
 
14969
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
14970
 
 
14971
# Method to check whether dependent libraries are shared objects.
 
14972
deplibs_check_method=$lt_deplibs_check_method
 
14973
 
 
14974
# Command to use when deplibs_check_method = "file_magic".
 
14975
file_magic_cmd=$lt_file_magic_cmd
 
14976
 
 
14977
# How to find potential files when deplibs_check_method = "file_magic".
 
14978
file_magic_glob=$lt_file_magic_glob
 
14979
 
 
14980
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
14981
want_nocaseglob=$lt_want_nocaseglob
 
14982
 
 
14983
# Command to associate shared and link libraries.
 
14984
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
14985
 
 
14986
# The archiver.
 
14987
AR=$lt_AR
 
14988
 
 
14989
# Flags to create an archive.
 
14990
AR_FLAGS=$lt_AR_FLAGS
 
14991
 
 
14992
# How to feed a file listing to the archiver.
 
14993
archiver_list_spec=$lt_archiver_list_spec
 
14994
 
 
14995
# A symbol stripping program.
 
14996
STRIP=$lt_STRIP
 
14997
 
 
14998
# Commands used to install an old-style archive.
 
14999
RANLIB=$lt_RANLIB
 
15000
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15001
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15002
 
 
15003
# Whether to use a lock for old archive extraction.
 
15004
lock_old_archive_extraction=$lock_old_archive_extraction
 
15005
 
 
15006
# A C compiler.
 
15007
LTCC=$lt_CC
 
15008
 
 
15009
# LTCC compiler flags.
 
15010
LTCFLAGS=$lt_CFLAGS
 
15011
 
 
15012
# Take the output of nm and produce a listing of raw symbols and C names.
 
15013
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15014
 
 
15015
# Transform the output of nm in a proper C declaration.
 
15016
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15017
 
 
15018
# Transform the output of nm in a C name address pair.
 
15019
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15020
 
 
15021
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15022
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15023
 
 
15024
# Specify filename containing input files for \$NM.
 
15025
nm_file_list_spec=$lt_nm_file_list_spec
 
15026
 
 
15027
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
15028
lt_sysroot=$lt_sysroot
 
15029
 
 
15030
# The name of the directory that contains temporary libtool files.
 
15031
objdir=$objdir
 
15032
 
 
15033
# Used to examine libraries when file_magic_cmd begins with "file".
 
15034
MAGIC_CMD=$MAGIC_CMD
 
15035
 
 
15036
# Must we lock files when doing compilation?
 
15037
need_locks=$lt_need_locks
 
15038
 
 
15039
# Manifest tool.
 
15040
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
15041
 
 
15042
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15043
DSYMUTIL=$lt_DSYMUTIL
 
15044
 
 
15045
# Tool to change global to local symbols on Mac OS X.
 
15046
NMEDIT=$lt_NMEDIT
 
15047
 
 
15048
# Tool to manipulate fat objects and archives on Mac OS X.
 
15049
LIPO=$lt_LIPO
 
15050
 
 
15051
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15052
OTOOL=$lt_OTOOL
 
15053
 
 
15054
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15055
OTOOL64=$lt_OTOOL64
 
15056
 
 
15057
# Old archive suffix (normally "a").
 
15058
libext=$libext
 
15059
 
 
15060
# Shared library suffix (normally ".so").
 
15061
shrext_cmds=$lt_shrext_cmds
 
15062
 
 
15063
# The commands to extract the exported symbol list from a shared archive.
 
15064
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15065
 
 
15066
# Variables whose values should be saved in libtool wrapper scripts and
 
15067
# restored at link time.
 
15068
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15069
 
 
15070
# Do we need the "lib" prefix for modules?
 
15071
need_lib_prefix=$need_lib_prefix
 
15072
 
 
15073
# Do we need a version for libraries?
 
15074
need_version=$need_version
 
15075
 
 
15076
# Library versioning type.
 
15077
version_type=$version_type
 
15078
 
 
15079
# Shared library runtime path variable.
 
15080
runpath_var=$runpath_var
 
15081
 
 
15082
# Shared library path variable.
 
15083
shlibpath_var=$shlibpath_var
 
15084
 
 
15085
# Is shlibpath searched before the hard-coded library search path?
 
15086
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15087
 
 
15088
# Format of library name prefix.
 
15089
libname_spec=$lt_libname_spec
 
15090
 
 
15091
# List of archive names.  First name is the real one, the rest are links.
 
15092
# The last name is the one that the linker finds with -lNAME
 
15093
library_names_spec=$lt_library_names_spec
 
15094
 
 
15095
# The coded name of the library, if different from the real name.
 
15096
soname_spec=$lt_soname_spec
 
15097
 
 
15098
# Permission mode override for installation of shared libraries.
 
15099
install_override_mode=$lt_install_override_mode
 
15100
 
 
15101
# Command to use after installation of a shared archive.
 
15102
postinstall_cmds=$lt_postinstall_cmds
 
15103
 
 
15104
# Command to use after uninstallation of a shared archive.
 
15105
postuninstall_cmds=$lt_postuninstall_cmds
 
15106
 
 
15107
# Commands used to finish a libtool library installation in a directory.
 
15108
finish_cmds=$lt_finish_cmds
 
15109
 
 
15110
# As "finish_cmds", except a single script fragment to be evaled but
 
15111
# not shown.
 
15112
finish_eval=$lt_finish_eval
 
15113
 
 
15114
# Whether we should hardcode library paths into libraries.
 
15115
hardcode_into_libs=$hardcode_into_libs
 
15116
 
 
15117
# Compile-time system search path for libraries.
 
15118
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15119
 
 
15120
# Run-time system search path for libraries.
 
15121
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15122
 
 
15123
# Whether dlopen is supported.
 
15124
dlopen_support=$enable_dlopen
 
15125
 
 
15126
# Whether dlopen of programs is supported.
 
15127
dlopen_self=$enable_dlopen_self
 
15128
 
 
15129
# Whether dlopen of statically linked programs is supported.
 
15130
dlopen_self_static=$enable_dlopen_self_static
 
15131
 
 
15132
# Commands to strip libraries.
 
15133
old_striplib=$lt_old_striplib
 
15134
striplib=$lt_striplib
 
15135
 
 
15136
 
 
15137
# The linker used to build libraries.
 
15138
LD=$lt_LD
 
15139
 
 
15140
# How to create reloadable object files.
 
15141
reload_flag=$lt_reload_flag
 
15142
reload_cmds=$lt_reload_cmds
 
15143
 
 
15144
# Commands used to build an old-style archive.
 
15145
old_archive_cmds=$lt_old_archive_cmds
 
15146
 
 
15147
# A language specific compiler.
 
15148
CC=$lt_compiler
 
15149
 
 
15150
# Is the compiler the GNU compiler?
 
15151
with_gcc=$GCC
 
15152
 
 
15153
# Compiler flag to turn off builtin functions.
 
15154
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15155
 
 
15156
# Additional compiler flags for building library objects.
 
15157
pic_flag=$lt_lt_prog_compiler_pic
 
15158
 
 
15159
# How to pass a linker flag through the compiler.
 
15160
wl=$lt_lt_prog_compiler_wl
 
15161
 
 
15162
# Compiler flag to prevent dynamic linking.
 
15163
link_static_flag=$lt_lt_prog_compiler_static
 
15164
 
 
15165
# Does compiler simultaneously support -c and -o options?
 
15166
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15167
 
 
15168
# Whether or not to add -lc for building shared libraries.
 
15169
build_libtool_need_lc=$archive_cmds_need_lc
 
15170
 
 
15171
# Whether or not to disallow shared libs when runtime libs are static.
 
15172
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15173
 
 
15174
# Compiler flag to allow reflexive dlopens.
 
15175
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15176
 
 
15177
# Compiler flag to generate shared objects directly from archives.
 
15178
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15179
 
 
15180
# Whether the compiler copes with passing no objects directly.
 
15181
compiler_needs_object=$lt_compiler_needs_object
 
15182
 
 
15183
# Create an old-style archive from a shared archive.
 
15184
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15185
 
 
15186
# Create a temporary old-style archive to link instead of a shared archive.
 
15187
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15188
 
 
15189
# Commands used to build a shared archive.
 
15190
archive_cmds=$lt_archive_cmds
 
15191
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15192
 
 
15193
# Commands used to build a loadable module if different from building
 
15194
# a shared archive.
 
15195
module_cmds=$lt_module_cmds
 
15196
module_expsym_cmds=$lt_module_expsym_cmds
 
15197
 
 
15198
# Whether we are building with GNU ld or not.
 
15199
with_gnu_ld=$lt_with_gnu_ld
 
15200
 
 
15201
# Flag that allows shared libraries with undefined symbols to be built.
 
15202
allow_undefined_flag=$lt_allow_undefined_flag
 
15203
 
 
15204
# Flag that enforces no undefined symbols.
 
15205
no_undefined_flag=$lt_no_undefined_flag
 
15206
 
 
15207
# Flag to hardcode \$libdir into a binary during linking.
 
15208
# This must work even if \$libdir does not exist
 
15209
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15210
 
 
15211
# Whether we need a single "-rpath" flag with a separated argument.
 
15212
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15213
 
 
15214
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15215
# DIR into the resulting binary.
 
15216
hardcode_direct=$hardcode_direct
 
15217
 
 
15218
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15219
# DIR into the resulting binary and the resulting library dependency is
 
15220
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15221
# library is relocated.
 
15222
hardcode_direct_absolute=$hardcode_direct_absolute
 
15223
 
 
15224
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15225
# into the resulting binary.
 
15226
hardcode_minus_L=$hardcode_minus_L
 
15227
 
 
15228
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15229
# into the resulting binary.
 
15230
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15231
 
 
15232
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15233
# into the library and all subsequent libraries and executables linked
 
15234
# against it.
 
15235
hardcode_automatic=$hardcode_automatic
 
15236
 
 
15237
# Set to yes if linker adds runtime paths of dependent libraries
 
15238
# to runtime path list.
 
15239
inherit_rpath=$inherit_rpath
 
15240
 
 
15241
# Whether libtool must link a program against all its dependency libraries.
 
15242
link_all_deplibs=$link_all_deplibs
 
15243
 
 
15244
# Set to "yes" if exported symbols are required.
 
15245
always_export_symbols=$always_export_symbols
 
15246
 
 
15247
# The commands to list exported symbols.
 
15248
export_symbols_cmds=$lt_export_symbols_cmds
 
15249
 
 
15250
# Symbols that should not be listed in the preloaded symbols.
 
15251
exclude_expsyms=$lt_exclude_expsyms
 
15252
 
 
15253
# Symbols that must always be exported.
 
15254
include_expsyms=$lt_include_expsyms
 
15255
 
 
15256
# Commands necessary for linking programs (against libraries) with templates.
 
15257
prelink_cmds=$lt_prelink_cmds
 
15258
 
 
15259
# Commands necessary for finishing linking programs.
 
15260
postlink_cmds=$lt_postlink_cmds
 
15261
 
 
15262
# Specify filename containing input files.
 
15263
file_list_spec=$lt_file_list_spec
 
15264
 
 
15265
# How to hardcode a shared library path into an executable.
 
15266
hardcode_action=$hardcode_action
 
15267
 
 
15268
# ### END LIBTOOL CONFIG
 
15269
 
 
15270
_LT_EOF
 
15271
 
 
15272
  case $host_os in
 
15273
  aix3*)
 
15274
    cat <<\_LT_EOF >> "$cfgfile"
 
15275
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15276
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15277
# vanish in a puff of smoke.
 
15278
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15279
  COLLECT_NAMES=
 
15280
  export COLLECT_NAMES
 
15281
fi
 
15282
_LT_EOF
 
15283
    ;;
 
15284
  esac
 
15285
 
 
15286
 
 
15287
ltmain="$ac_aux_dir/ltmain.sh"
 
15288
 
 
15289
 
 
15290
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15291
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15292
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15293
  # is reportedly fixed, but why not run on old versions too?
 
15294
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15295
     || (rm -f "$cfgfile"; exit 1)
 
15296
 
 
15297
  if test x"$xsi_shell" = xyes; then
 
15298
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15299
func_dirname ()\
 
15300
{\
 
15301
\    case ${1} in\
 
15302
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15303
\      *  ) func_dirname_result="${3}" ;;\
 
15304
\    esac\
 
15305
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15306
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15307
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15308
test 0 -eq $? || _lt_function_replace_fail=:
 
15309
 
 
15310
 
 
15311
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15312
func_basename ()\
 
15313
{\
 
15314
\    func_basename_result="${1##*/}"\
 
15315
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15316
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15317
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15318
test 0 -eq $? || _lt_function_replace_fail=:
 
15319
 
 
15320
 
 
15321
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15322
func_dirname_and_basename ()\
 
15323
{\
 
15324
\    case ${1} in\
 
15325
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15326
\      *  ) func_dirname_result="${3}" ;;\
 
15327
\    esac\
 
15328
\    func_basename_result="${1##*/}"\
 
15329
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15330
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15331
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15332
test 0 -eq $? || _lt_function_replace_fail=:
 
15333
 
 
15334
 
 
15335
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15336
func_stripname ()\
 
15337
{\
 
15338
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15339
\    # positional parameters, so assign one to ordinary parameter first.\
 
15340
\    func_stripname_result=${3}\
 
15341
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15342
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15343
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15344
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15345
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15346
test 0 -eq $? || _lt_function_replace_fail=:
 
15347
 
 
15348
 
 
15349
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15350
func_split_long_opt ()\
 
15351
{\
 
15352
\    func_split_long_opt_name=${1%%=*}\
 
15353
\    func_split_long_opt_arg=${1#*=}\
 
15354
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15355
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15356
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15357
test 0 -eq $? || _lt_function_replace_fail=:
 
15358
 
 
15359
 
 
15360
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15361
func_split_short_opt ()\
 
15362
{\
 
15363
\    func_split_short_opt_arg=${1#??}\
 
15364
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15365
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15366
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15367
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15368
test 0 -eq $? || _lt_function_replace_fail=:
 
15369
 
 
15370
 
 
15371
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15372
func_lo2o ()\
 
15373
{\
 
15374
\    case ${1} in\
 
15375
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15376
\      *)    func_lo2o_result=${1} ;;\
 
15377
\    esac\
 
15378
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15379
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15380
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15381
test 0 -eq $? || _lt_function_replace_fail=:
 
15382
 
 
15383
 
 
15384
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15385
func_xform ()\
 
15386
{\
 
15387
    func_xform_result=${1%.*}.lo\
 
15388
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15389
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15390
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15391
test 0 -eq $? || _lt_function_replace_fail=:
 
15392
 
 
15393
 
 
15394
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15395
func_arith ()\
 
15396
{\
 
15397
    func_arith_result=$(( $* ))\
 
15398
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15399
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15400
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15401
test 0 -eq $? || _lt_function_replace_fail=:
 
15402
 
 
15403
 
 
15404
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15405
func_len ()\
 
15406
{\
 
15407
    func_len_result=${#1}\
 
15408
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15409
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15410
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15411
test 0 -eq $? || _lt_function_replace_fail=:
 
15412
 
 
15413
fi
 
15414
 
 
15415
if test x"$lt_shell_append" = xyes; then
 
15416
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15417
func_append ()\
 
15418
{\
 
15419
    eval "${1}+=\\${2}"\
 
15420
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15421
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15422
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15423
test 0 -eq $? || _lt_function_replace_fail=:
 
15424
 
 
15425
 
 
15426
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15427
func_append_quoted ()\
 
15428
{\
 
15429
\    func_quote_for_eval "${2}"\
 
15430
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15431
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15432
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15433
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15434
test 0 -eq $? || _lt_function_replace_fail=:
 
15435
 
 
15436
 
 
15437
  # Save a `func_append' function call where possible by direct use of '+='
 
15438
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15439
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15440
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15441
  test 0 -eq $? || _lt_function_replace_fail=:
 
15442
else
 
15443
  # Save a `func_append' function call even when '+=' is not available
 
15444
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15445
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15446
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15447
  test 0 -eq $? || _lt_function_replace_fail=:
 
15448
fi
 
15449
 
 
15450
if test x"$_lt_function_replace_fail" = x":"; then
 
15451
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15452
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15453
fi
 
15454
 
 
15455
 
 
15456
   mv -f "$cfgfile" "$ofile" ||
 
15457
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15458
  chmod +x "$ofile"
 
15459
 
 
15460
 ;;
 
15461
 
 
15462
  esac
 
15463
done # for ac_tag
 
15464
 
 
15465
 
 
15466
as_fn_exit 0
 
15467
_ACEOF
 
15468
ac_clean_files=$ac_clean_files_save
 
15469
 
 
15470
test $ac_write_fail = 0 ||
 
15471
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15472
 
 
15473
 
 
15474
# configure is writing to config.log, and then calls config.status.
 
15475
# config.status does its own redirection, appending to config.log.
 
15476
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15477
# by configure, so config.status won't be able to write to it; its
 
15478
# output is simply discarded.  So we exec the FD to /dev/null,
 
15479
# effectively closing config.log, so it can be properly (re)opened and
 
15480
# appended to by config.status.  When coming back to configure, we
 
15481
# need to make the FD available again.
 
15482
if test "$no_create" != yes; then
 
15483
  ac_cs_success=:
 
15484
  ac_config_status_args=
 
15485
  test "$silent" = yes &&
 
15486
    ac_config_status_args="$ac_config_status_args --quiet"
 
15487
  exec 5>/dev/null
 
15488
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15489
  exec 5>>config.log
 
15490
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15491
  # would make configure fail if this is the last instruction.
 
15492
  $ac_cs_success || as_fn_exit 1
 
15493
fi
 
15494
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15495
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15496
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15497
fi
 
15498
 
 
15499
 
 
15500
{ $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
 
15501
 
 
15502
  version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE major $U2FS_VERSION_MAJOR minor $U2FS_VERSION_MINOR patch $U2FS_VERSION_PATCH number $U2FS_VERSION_NUMBER
 
15503
  Host type:        ${host}
 
15504
  Install prefix:   ${prefix}
 
15505
  Compiler:         ${CC}
 
15506
  Shared library:   ${enable_shared}
 
15507
  Static library:   ${enable_static}
 
15508
  JSON CFLAGS:      $LIBJSON_CFLAGS
 
15509
  JSON LIBS:        $LIBJSON_LIBS
 
15510
  OPENSSL CFLAGS:   $LIBSSL_CFLAGS
 
15511
  OPENSSL LIBS:     $LIBSSL_LIBS
 
15512
  CHECK CFLAGS:     $CHECK_CFLAGS
 
15513
  CHECK LIBS:       $CHECK_LIBS
 
15514
" >&5
 
15515
$as_echo "$as_me: summary of build options:
 
15516
 
 
15517
  version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE major $U2FS_VERSION_MAJOR minor $U2FS_VERSION_MINOR patch $U2FS_VERSION_PATCH number $U2FS_VERSION_NUMBER
 
15518
  Host type:        ${host}
 
15519
  Install prefix:   ${prefix}
 
15520
  Compiler:         ${CC}
 
15521
  Shared library:   ${enable_shared}
 
15522
  Static library:   ${enable_static}
 
15523
  JSON CFLAGS:      $LIBJSON_CFLAGS
 
15524
  JSON LIBS:        $LIBJSON_LIBS
 
15525
  OPENSSL CFLAGS:   $LIBSSL_CFLAGS
 
15526
  OPENSSL LIBS:     $LIBSSL_LIBS
 
15527
  CHECK CFLAGS:     $CHECK_CFLAGS
 
15528
  CHECK LIBS:       $CHECK_LIBS
 
15529
" >&6;}