OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libssp/] [configure] - Blame information for rev 286

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 276 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for libssp 1.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1
173
 
174
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178
    PATH=/empty FPATH=/empty; export PATH FPATH
179
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181
  if (eval "$as_required") 2>/dev/null; then :
182
  as_have_required=yes
183
else
184
  as_have_required=no
185
fi
186
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
 
188
else
189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190
as_found=false
191
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192
do
193
  IFS=$as_save_IFS
194
  test -z "$as_dir" && as_dir=.
195
  as_found=:
196
  case $as_dir in #(
197
         /*)
198
           for as_base in sh bash ksh sh5; do
199
             # Try only shells that exist, to save several forks.
200
             as_shell=$as_dir/$as_base
201
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203
  CONFIG_SHELL=$as_shell as_have_required=yes
204
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205
  break 2
206
fi
207
fi
208
           done;;
209
       esac
210
  as_found=false
211
done
212
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214
  CONFIG_SHELL=$SHELL as_have_required=yes
215
fi; }
216
IFS=$as_save_IFS
217
 
218
 
219
      if test "x$CONFIG_SHELL" != x; then :
220
  # We cannot yet assume a decent shell, so we have to provide a
221
        # neutralization value for shells without unset; and this also
222
        # works around shells that cannot unset nonexistent variables.
223
        BASH_ENV=/dev/null
224
        ENV=/dev/null
225
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226
        export CONFIG_SHELL
227
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228
fi
229
 
230
    if test x$as_have_required = xno; then :
231
  $as_echo "$0: This script requires a shell more modern than all"
232
  $as_echo "$0: the shells that I found on your system."
233
  if test x${ZSH_VERSION+set} = xset ; then
234
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236
  else
237
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238
$0: including any error possibly output before this
239
$0: message. Then install a modern shell, or manually run
240
$0: the script under such a shell if you do have one."
241
  fi
242
  exit 1
243
fi
244
fi
245
fi
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
export SHELL
248
# Unset more variables known to interfere with behavior of common tools.
249
CLICOLOR_FORCE= GREP_OPTIONS=
250
unset CLICOLOR_FORCE GREP_OPTIONS
251
 
252
## --------------------- ##
253
## M4sh Shell Functions. ##
254
## --------------------- ##
255
# as_fn_unset VAR
256
# ---------------
257
# Portably unset VAR.
258
as_fn_unset ()
259
{
260
  { eval $1=; unset $1;}
261
}
262
as_unset=as_fn_unset
263
 
264
# as_fn_set_status STATUS
265
# -----------------------
266
# Set $? to STATUS, without forking.
267
as_fn_set_status ()
268
{
269
  return $1
270
} # as_fn_set_status
271
 
272
# as_fn_exit STATUS
273
# -----------------
274
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275
as_fn_exit ()
276
{
277
  set +e
278
  as_fn_set_status $1
279
  exit $1
280
} # as_fn_exit
281
 
282
# as_fn_mkdir_p
283
# -------------
284
# Create "$as_dir" as a directory, including parents if necessary.
285
as_fn_mkdir_p ()
286
{
287
 
288
  case $as_dir in #(
289
  -*) as_dir=./$as_dir;;
290
  esac
291
  test -d "$as_dir" || eval $as_mkdir_p || {
292
    as_dirs=
293
    while :; do
294
      case $as_dir in #(
295
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296
      *) as_qdir=$as_dir;;
297
      esac
298
      as_dirs="'$as_qdir' $as_dirs"
299
      as_dir=`$as_dirname -- "$as_dir" ||
300
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301
         X"$as_dir" : 'X\(//\)[^/]' \| \
302
         X"$as_dir" : 'X\(//\)$' \| \
303
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304
$as_echo X"$as_dir" |
305
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\/\)[^/].*/{
310
            s//\1/
311
            q
312
          }
313
          /^X\(\/\/\)$/{
314
            s//\1/
315
            q
316
          }
317
          /^X\(\/\).*/{
318
            s//\1/
319
            q
320
          }
321
          s/.*/./; q'`
322
      test -d "$as_dir" && break
323
    done
324
    test -z "$as_dirs" || eval "mkdir $as_dirs"
325
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
 
327
 
328
} # as_fn_mkdir_p
329
# as_fn_append VAR VALUE
330
# ----------------------
331
# Append the text in VALUE to the end of the definition contained in VAR. Take
332
# advantage of any shell optimizations that allow amortized linear growth over
333
# repeated appends, instead of the typical quadratic growth present in naive
334
# implementations.
335
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336
  eval 'as_fn_append ()
337
  {
338
    eval $1+=\$2
339
  }'
340
else
341
  as_fn_append ()
342
  {
343
    eval $1=\$$1\$2
344
  }
345
fi # as_fn_append
346
 
347
# as_fn_arith ARG...
348
# ------------------
349
# Perform arithmetic evaluation on the ARGs, and store the result in the
350
# global $as_val. Take advantage of shells that can avoid forks. The arguments
351
# must be portable across $(()) and expr.
352
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353
  eval 'as_fn_arith ()
354
  {
355
    as_val=$(( $* ))
356
  }'
357
else
358
  as_fn_arith ()
359
  {
360
    as_val=`expr "$@" || test $? -eq 1`
361
  }
362
fi # as_fn_arith
363
 
364
 
365
# as_fn_error ERROR [LINENO LOG_FD]
366
# ---------------------------------
367
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369
# script with status $?, using 1 if that was 0.
370
as_fn_error ()
371
{
372
  as_status=$?; test $as_status -eq 0 && as_status=1
373
  if test "$3"; then
374
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376
  fi
377
  $as_echo "$as_me: error: $1" >&2
378
  as_fn_exit $as_status
379
} # as_fn_error
380
 
381
if expr a : '\(a\)' >/dev/null 2>&1 &&
382
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
  as_expr=expr
384
else
385
  as_expr=false
386
fi
387
 
388
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
  as_basename=basename
390
else
391
  as_basename=false
392
fi
393
 
394
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
  as_dirname=dirname
396
else
397
  as_dirname=false
398
fi
399
 
400
as_me=`$as_basename -- "$0" ||
401
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402
         X"$0" : 'X\(//\)$' \| \
403
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404
$as_echo X/"$0" |
405
    sed '/^.*\/\([^/][^/]*\)\/*$/{
406
            s//\1/
407
            q
408
          }
409
          /^X\/\(\/\/\)$/{
410
            s//\1/
411
            q
412
          }
413
          /^X\/\(\/\).*/{
414
            s//\1/
415
            q
416
          }
417
          s/.*/./; q'`
418
 
419
# Avoid depending upon Character Ranges.
420
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423
as_cr_digits='0123456789'
424
as_cr_alnum=$as_cr_Letters$as_cr_digits
425
 
426
 
427
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432
  sed -n '
433
    p
434
    /[$]LINENO/=
435
  ' <$as_myself |
436
    sed '
437
      s/[$]LINENO.*/&-/
438
      t lineno
439
      b
440
      :lineno
441
      N
442
      :loop
443
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
      t loop
445
      s/-\n.*//
446
    ' >$as_me.lineno &&
447
  chmod +x "$as_me.lineno" ||
448
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
 
450
  # Don't try to exec as it changes $[0], causing all sort of problems
451
  # (the dirname of $[0] is not the place where we might find the
452
  # original and so on.  Autoconf is especially sensitive to this).
453
  . "./$as_me.lineno"
454
  # Exit status is that of the last command.
455
  exit
456
}
457
 
458
ECHO_C= ECHO_N= ECHO_T=
459
case `echo -n x` in #(((((
460
-n*)
461
  case `echo 'xy\c'` in
462
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463
  xy)  ECHO_C='\c';;
464
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
       ECHO_T=' ';;
466
  esac;;
467
*)
468
  ECHO_N='-n';;
469
esac
470
 
471
rm -f conf$$ conf$$.exe conf$$.file
472
if test -d conf$$.dir; then
473
  rm -f conf$$.dir/conf$$.file
474
else
475
  rm -f conf$$.dir
476
  mkdir conf$$.dir 2>/dev/null
477
fi
478
if (echo >conf$$.file) 2>/dev/null; then
479
  if ln -s conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s='ln -s'
481
    # ... but there are two gotchas:
482
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484
    # In both cases, we have to default to `cp -p'.
485
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486
      as_ln_s='cp -p'
487
  elif ln conf$$.file conf$$ 2>/dev/null; then
488
    as_ln_s=ln
489
  else
490
    as_ln_s='cp -p'
491
  fi
492
else
493
  as_ln_s='cp -p'
494
fi
495
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496
rmdir conf$$.dir 2>/dev/null
497
 
498
if mkdir -p . 2>/dev/null; then
499
  as_mkdir_p='mkdir -p "$as_dir"'
500
else
501
  test -d ./-p && rmdir ./-p
502
  as_mkdir_p=false
503
fi
504
 
505
if test -x / >/dev/null 2>&1; then
506
  as_test_x='test -x'
507
else
508
  if ls -dL / >/dev/null 2>&1; then
509
    as_ls_L_option=L
510
  else
511
    as_ls_L_option=
512
  fi
513
  as_test_x='
514
    eval sh -c '\''
515
      if test -d "$1"; then
516
        test -d "$1/.";
517
      else
518
        case $1 in #(
519
        -*)set "./$1";;
520
        esac;
521
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522
        ???[sx]*):;;*)false;;esac;fi
523
    '\'' sh
524
  '
525
fi
526
as_executable_p=$as_test_x
527
 
528
# Sed expression to map a string onto a valid CPP name.
529
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
 
531
# Sed expression to map a string onto a valid variable name.
532
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
535
 
536
 
537
exec 7<&0 &1
538
 
539
# Name of the host.
540
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541
# so uname gets run too.
542
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
 
544
#
545
# Initializations.
546
#
547
ac_default_prefix=/usr/local
548
ac_clean_files=
549
ac_config_libobj_dir=.
550
LIBOBJS=
551
cross_compiling=no
552
subdirs=
553
MFLAGS=
554
MAKEFLAGS=
555
 
556
# Identity of this package.
557
PACKAGE_NAME='libssp'
558
PACKAGE_TARNAME='libssp'
559
PACKAGE_VERSION='1.0'
560
PACKAGE_STRING='libssp 1.0'
561
PACKAGE_BUGREPORT=''
562
PACKAGE_URL=''
563
 
564
ac_unique_file="ssp.c"
565
# Factoring default headers for most tests.
566
ac_includes_default="\
567
#include 
568
#ifdef HAVE_SYS_TYPES_H
569
# include 
570
#endif
571
#ifdef HAVE_SYS_STAT_H
572
# include 
573
#endif
574
#ifdef STDC_HEADERS
575
# include 
576
# include 
577
#else
578
# ifdef HAVE_STDLIB_H
579
#  include 
580
# endif
581
#endif
582
#ifdef HAVE_STRING_H
583
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584
#  include 
585
# endif
586
# include 
587
#endif
588
#ifdef HAVE_STRINGS_H
589
# include 
590
#endif
591
#ifdef HAVE_INTTYPES_H
592
# include 
593
#endif
594
#ifdef HAVE_STDINT_H
595
# include 
596
#endif
597
#ifdef HAVE_UNISTD_H
598
# include 
599
#endif"
600
 
601
ac_subst_vars='am__EXEEXT_FALSE
602
am__EXEEXT_TRUE
603
LTLIBOBJS
604
LIBOBJS
605
toolexeclibdir
606
toolexecdir
607
enable_static
608
enable_shared
609
OTOOL64
610
OTOOL
611
LIPO
612
NMEDIT
613
DSYMUTIL
614
RANLIB
615
AR
616
OBJDUMP
617
LN_S
618
NM
619
ac_ct_DUMPBIN
620
DUMPBIN
621
LD
622
FGREP
623
SED
624
LIBTOOL
625
ssp_have_usable_vsnprintf
626
EGREP
627
GREP
628
LIBSSP_USE_SYMVER_FALSE
629
LIBSSP_USE_SYMVER_TRUE
630
CPP
631
am__fastdepCC_FALSE
632
am__fastdepCC_TRUE
633
CCDEPMODE
634
AMDEPBACKSLASH
635
AMDEP_FALSE
636
AMDEP_TRUE
637
am__quote
638
am__include
639
DEPDIR
640
OBJEXT
641
EXEEXT
642
ac_ct_CC
643
CPPFLAGS
644
LDFLAGS
645
CFLAGS
646
CC
647
multi_basedir
648
MAINT
649
MAINTAINER_MODE_FALSE
650
MAINTAINER_MODE_TRUE
651
am__untar
652
am__tar
653
AMTAR
654
am__leading_dot
655
SET_MAKE
656
AWK
657
mkdir_p
658
MKDIR_P
659
INSTALL_STRIP_PROGRAM
660
STRIP
661
install_sh
662
MAKEINFO
663
AUTOHEADER
664
AUTOMAKE
665
AUTOCONF
666
ACLOCAL
667
VERSION
668
PACKAGE
669
CYGPATH_W
670
am__isrc
671
INSTALL_DATA
672
INSTALL_SCRIPT
673
INSTALL_PROGRAM
674
target_noncanonical
675
target_os
676
target_vendor
677
target_cpu
678
target
679
host_os
680
host_vendor
681
host_cpu
682
host
683
build_os
684
build_vendor
685
build_cpu
686
build
687
target_alias
688
host_alias
689
build_alias
690
LIBS
691
ECHO_T
692
ECHO_N
693
ECHO_C
694
DEFS
695
mandir
696
localedir
697
libdir
698
psdir
699
pdfdir
700
dvidir
701
htmldir
702
infodir
703
docdir
704
oldincludedir
705
includedir
706
localstatedir
707
sharedstatedir
708
sysconfdir
709
datadir
710
datarootdir
711
libexecdir
712
sbindir
713
bindir
714
program_transform_name
715
prefix
716
exec_prefix
717
PACKAGE_URL
718
PACKAGE_BUGREPORT
719
PACKAGE_STRING
720
PACKAGE_VERSION
721
PACKAGE_TARNAME
722
PACKAGE_NAME
723
PATH_SEPARATOR
724
SHELL'
725
ac_subst_files=''
726
ac_user_opts='
727
enable_option_checking
728
enable_version_specific_runtime_libs
729
enable_maintainer_mode
730
enable_multilib
731
enable_dependency_tracking
732
enable_shared
733
enable_static
734
with_pic
735
enable_fast_install
736
with_gnu_ld
737
enable_libtool_lock
738
'
739
      ac_precious_vars='build_alias
740
host_alias
741
target_alias
742
CPP
743
CPPFLAGS'
744
 
745
 
746
# Initialize some variables set by options.
747
ac_init_help=
748
ac_init_version=false
749
ac_unrecognized_opts=
750
ac_unrecognized_sep=
751
# The variables have the same names as the options, with
752
# dashes changed to underlines.
753
cache_file=/dev/null
754
exec_prefix=NONE
755
no_create=
756
no_recursion=
757
prefix=NONE
758
program_prefix=NONE
759
program_suffix=NONE
760
program_transform_name=s,x,x,
761
silent=
762
site=
763
srcdir=
764
verbose=
765
x_includes=NONE
766
x_libraries=NONE
767
 
768
# Installation directory options.
769
# These are left unexpanded so users can "make install exec_prefix=/foo"
770
# and all the variables that are supposed to be based on exec_prefix
771
# by default will actually change.
772
# Use braces instead of parens because sh, perl, etc. also accept them.
773
# (The list follows the same order as the GNU Coding Standards.)
774
bindir='${exec_prefix}/bin'
775
sbindir='${exec_prefix}/sbin'
776
libexecdir='${exec_prefix}/libexec'
777
datarootdir='${prefix}/share'
778
datadir='${datarootdir}'
779
sysconfdir='${prefix}/etc'
780
sharedstatedir='${prefix}/com'
781
localstatedir='${prefix}/var'
782
includedir='${prefix}/include'
783
oldincludedir='/usr/include'
784
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785
infodir='${datarootdir}/info'
786
htmldir='${docdir}'
787
dvidir='${docdir}'
788
pdfdir='${docdir}'
789
psdir='${docdir}'
790
libdir='${exec_prefix}/lib'
791
localedir='${datarootdir}/locale'
792
mandir='${datarootdir}/man'
793
 
794
ac_prev=
795
ac_dashdash=
796
for ac_option
797
do
798
  # If the previous option needs an argument, assign it.
799
  if test -n "$ac_prev"; then
800
    eval $ac_prev=\$ac_option
801
    ac_prev=
802
    continue
803
  fi
804
 
805
  case $ac_option in
806
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807
  *)    ac_optarg=yes ;;
808
  esac
809
 
810
  # Accept the important Cygnus configure options, so we can diagnose typos.
811
 
812
  case $ac_dashdash$ac_option in
813
  --)
814
    ac_dashdash=yes ;;
815
 
816
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
817
    ac_prev=bindir ;;
818
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819
    bindir=$ac_optarg ;;
820
 
821
  -build | --build | --buil | --bui | --bu)
822
    ac_prev=build_alias ;;
823
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824
    build_alias=$ac_optarg ;;
825
 
826
  -cache-file | --cache-file | --cache-fil | --cache-fi \
827
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828
    ac_prev=cache_file ;;
829
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831
    cache_file=$ac_optarg ;;
832
 
833
  --config-cache | -C)
834
    cache_file=config.cache ;;
835
 
836
  -datadir | --datadir | --datadi | --datad)
837
    ac_prev=datadir ;;
838
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
839
    datadir=$ac_optarg ;;
840
 
841
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842
  | --dataroo | --dataro | --datar)
843
    ac_prev=datarootdir ;;
844
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846
    datarootdir=$ac_optarg ;;
847
 
848
  -disable-* | --disable-*)
849
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850
    # Reject names that are not valid shell variable names.
851
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852
      as_fn_error "invalid feature name: $ac_useropt"
853
    ac_useropt_orig=$ac_useropt
854
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855
    case $ac_user_opts in
856
      *"
857
"enable_$ac_useropt"
858
"*) ;;
859
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860
         ac_unrecognized_sep=', ';;
861
    esac
862
    eval enable_$ac_useropt=no ;;
863
 
864
  -docdir | --docdir | --docdi | --doc | --do)
865
    ac_prev=docdir ;;
866
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867
    docdir=$ac_optarg ;;
868
 
869
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870
    ac_prev=dvidir ;;
871
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872
    dvidir=$ac_optarg ;;
873
 
874
  -enable-* | --enable-*)
875
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876
    # Reject names that are not valid shell variable names.
877
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878
      as_fn_error "invalid feature name: $ac_useropt"
879
    ac_useropt_orig=$ac_useropt
880
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881
    case $ac_user_opts in
882
      *"
883
"enable_$ac_useropt"
884
"*) ;;
885
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886
         ac_unrecognized_sep=', ';;
887
    esac
888
    eval enable_$ac_useropt=\$ac_optarg ;;
889
 
890
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892
  | --exec | --exe | --ex)
893
    ac_prev=exec_prefix ;;
894
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896
  | --exec=* | --exe=* | --ex=*)
897
    exec_prefix=$ac_optarg ;;
898
 
899
  -gas | --gas | --ga | --g)
900
    # Obsolete; use --with-gas.
901
    with_gas=yes ;;
902
 
903
  -help | --help | --hel | --he | -h)
904
    ac_init_help=long ;;
905
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906
    ac_init_help=recursive ;;
907
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908
    ac_init_help=short ;;
909
 
910
  -host | --host | --hos | --ho)
911
    ac_prev=host_alias ;;
912
  -host=* | --host=* | --hos=* | --ho=*)
913
    host_alias=$ac_optarg ;;
914
 
915
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916
    ac_prev=htmldir ;;
917
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918
  | --ht=*)
919
    htmldir=$ac_optarg ;;
920
 
921
  -includedir | --includedir | --includedi | --included | --include \
922
  | --includ | --inclu | --incl | --inc)
923
    ac_prev=includedir ;;
924
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925
  | --includ=* | --inclu=* | --incl=* | --inc=*)
926
    includedir=$ac_optarg ;;
927
 
928
  -infodir | --infodir | --infodi | --infod | --info | --inf)
929
    ac_prev=infodir ;;
930
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931
    infodir=$ac_optarg ;;
932
 
933
  -libdir | --libdir | --libdi | --libd)
934
    ac_prev=libdir ;;
935
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
936
    libdir=$ac_optarg ;;
937
 
938
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939
  | --libexe | --libex | --libe)
940
    ac_prev=libexecdir ;;
941
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942
  | --libexe=* | --libex=* | --libe=*)
943
    libexecdir=$ac_optarg ;;
944
 
945
  -localedir | --localedir | --localedi | --localed | --locale)
946
    ac_prev=localedir ;;
947
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948
    localedir=$ac_optarg ;;
949
 
950
  -localstatedir | --localstatedir | --localstatedi | --localstated \
951
  | --localstate | --localstat | --localsta | --localst | --locals)
952
    ac_prev=localstatedir ;;
953
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955
    localstatedir=$ac_optarg ;;
956
 
957
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958
    ac_prev=mandir ;;
959
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960
    mandir=$ac_optarg ;;
961
 
962
  -nfp | --nfp | --nf)
963
    # Obsolete; use --without-fp.
964
    with_fp=no ;;
965
 
966
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967
  | --no-cr | --no-c | -n)
968
    no_create=yes ;;
969
 
970
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972
    no_recursion=yes ;;
973
 
974
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976
  | --oldin | --oldi | --old | --ol | --o)
977
    ac_prev=oldincludedir ;;
978
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981
    oldincludedir=$ac_optarg ;;
982
 
983
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984
    ac_prev=prefix ;;
985
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986
    prefix=$ac_optarg ;;
987
 
988
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
989
  | --program-pre | --program-pr | --program-p)
990
    ac_prev=program_prefix ;;
991
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
992
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993
    program_prefix=$ac_optarg ;;
994
 
995
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
996
  | --program-suf | --program-su | --program-s)
997
    ac_prev=program_suffix ;;
998
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
999
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000
    program_suffix=$ac_optarg ;;
1001
 
1002
  -program-transform-name | --program-transform-name \
1003
  | --program-transform-nam | --program-transform-na \
1004
  | --program-transform-n | --program-transform- \
1005
  | --program-transform | --program-transfor \
1006
  | --program-transfo | --program-transf \
1007
  | --program-trans | --program-tran \
1008
  | --progr-tra | --program-tr | --program-t)
1009
    ac_prev=program_transform_name ;;
1010
  -program-transform-name=* | --program-transform-name=* \
1011
  | --program-transform-nam=* | --program-transform-na=* \
1012
  | --program-transform-n=* | --program-transform-=* \
1013
  | --program-transform=* | --program-transfor=* \
1014
  | --program-transfo=* | --program-transf=* \
1015
  | --program-trans=* | --program-tran=* \
1016
  | --progr-tra=* | --program-tr=* | --program-t=*)
1017
    program_transform_name=$ac_optarg ;;
1018
 
1019
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020
    ac_prev=pdfdir ;;
1021
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022
    pdfdir=$ac_optarg ;;
1023
 
1024
  -psdir | --psdir | --psdi | --psd | --ps)
1025
    ac_prev=psdir ;;
1026
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027
    psdir=$ac_optarg ;;
1028
 
1029
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030
  | -silent | --silent | --silen | --sile | --sil)
1031
    silent=yes ;;
1032
 
1033
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034
    ac_prev=sbindir ;;
1035
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036
  | --sbi=* | --sb=*)
1037
    sbindir=$ac_optarg ;;
1038
 
1039
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041
  | --sharedst | --shareds | --shared | --share | --shar \
1042
  | --sha | --sh)
1043
    ac_prev=sharedstatedir ;;
1044
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047
  | --sha=* | --sh=*)
1048
    sharedstatedir=$ac_optarg ;;
1049
 
1050
  -site | --site | --sit)
1051
    ac_prev=site ;;
1052
  -site=* | --site=* | --sit=*)
1053
    site=$ac_optarg ;;
1054
 
1055
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056
    ac_prev=srcdir ;;
1057
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058
    srcdir=$ac_optarg ;;
1059
 
1060
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061
  | --syscon | --sysco | --sysc | --sys | --sy)
1062
    ac_prev=sysconfdir ;;
1063
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065
    sysconfdir=$ac_optarg ;;
1066
 
1067
  -target | --target | --targe | --targ | --tar | --ta | --t)
1068
    ac_prev=target_alias ;;
1069
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070
    target_alias=$ac_optarg ;;
1071
 
1072
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073
    verbose=yes ;;
1074
 
1075
  -version | --version | --versio | --versi | --vers | -V)
1076
    ac_init_version=: ;;
1077
 
1078
  -with-* | --with-*)
1079
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080
    # Reject names that are not valid shell variable names.
1081
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082
      as_fn_error "invalid package name: $ac_useropt"
1083
    ac_useropt_orig=$ac_useropt
1084
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085
    case $ac_user_opts in
1086
      *"
1087
"with_$ac_useropt"
1088
"*) ;;
1089
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090
         ac_unrecognized_sep=', ';;
1091
    esac
1092
    eval with_$ac_useropt=\$ac_optarg ;;
1093
 
1094
  -without-* | --without-*)
1095
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096
    # Reject names that are not valid shell variable names.
1097
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098
      as_fn_error "invalid package name: $ac_useropt"
1099
    ac_useropt_orig=$ac_useropt
1100
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101
    case $ac_user_opts in
1102
      *"
1103
"with_$ac_useropt"
1104
"*) ;;
1105
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106
         ac_unrecognized_sep=', ';;
1107
    esac
1108
    eval with_$ac_useropt=no ;;
1109
 
1110
  --x)
1111
    # Obsolete; use --with-x.
1112
    with_x=yes ;;
1113
 
1114
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115
  | --x-incl | --x-inc | --x-in | --x-i)
1116
    ac_prev=x_includes ;;
1117
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119
    x_includes=$ac_optarg ;;
1120
 
1121
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123
    ac_prev=x_libraries ;;
1124
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126
    x_libraries=$ac_optarg ;;
1127
 
1128
  -*) as_fn_error "unrecognized option: \`$ac_option'
1129
Try \`$0 --help' for more information."
1130
    ;;
1131
 
1132
  *=*)
1133
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134
    # Reject names that are not valid shell variable names.
1135
    case $ac_envvar in #(
1136
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1137
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138
    esac
1139
    eval $ac_envvar=\$ac_optarg
1140
    export $ac_envvar ;;
1141
 
1142
  *)
1143
    # FIXME: should be removed in autoconf 3.0.
1144
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148
    ;;
1149
 
1150
  esac
1151
done
1152
 
1153
if test -n "$ac_prev"; then
1154
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155
  as_fn_error "missing argument to $ac_option"
1156
fi
1157
 
1158
if test -n "$ac_unrecognized_opts"; then
1159
  case $enable_option_checking in
1160
    no) ;;
1161
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163
  esac
1164
fi
1165
 
1166
# Check all directory arguments for consistency.
1167
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168
                datadir sysconfdir sharedstatedir localstatedir includedir \
1169
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170
                libdir localedir mandir
1171
do
1172
  eval ac_val=\$$ac_var
1173
  # Remove trailing slashes.
1174
  case $ac_val in
1175
    */ )
1176
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177
      eval $ac_var=\$ac_val;;
1178
  esac
1179
  # Be sure to have absolute directory names.
1180
  case $ac_val in
1181
    [\\/$]* | ?:[\\/]* )  continue;;
1182
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183
  esac
1184
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185
done
1186
 
1187
# There might be people who depend on the old broken behavior: `$host'
1188
# used to hold the argument of --host etc.
1189
# FIXME: To remove some day.
1190
build=$build_alias
1191
host=$host_alias
1192
target=$target_alias
1193
 
1194
# FIXME: To remove some day.
1195
if test "x$host_alias" != x; then
1196
  if test "x$build_alias" = x; then
1197
    cross_compiling=maybe
1198
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199
    If a cross compiler is detected then cross compile mode will be used." >&2
1200
  elif test "x$build_alias" != "x$host_alias"; then
1201
    cross_compiling=yes
1202
  fi
1203
fi
1204
 
1205
ac_tool_prefix=
1206
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
 
1208
test "$silent" = yes && exec 6>/dev/null
1209
 
1210
 
1211
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212
ac_ls_di=`ls -di .` &&
1213
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214
  as_fn_error "working directory cannot be determined"
1215
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216
  as_fn_error "pwd does not report name of working directory"
1217
 
1218
 
1219
# Find the source files, if location was not specified.
1220
if test -z "$srcdir"; then
1221
  ac_srcdir_defaulted=yes
1222
  # Try the directory containing this script, then the parent directory.
1223
  ac_confdir=`$as_dirname -- "$as_myself" ||
1224
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225
         X"$as_myself" : 'X\(//\)[^/]' \| \
1226
         X"$as_myself" : 'X\(//\)$' \| \
1227
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228
$as_echo X"$as_myself" |
1229
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230
            s//\1/
1231
            q
1232
          }
1233
          /^X\(\/\/\)[^/].*/{
1234
            s//\1/
1235
            q
1236
          }
1237
          /^X\(\/\/\)$/{
1238
            s//\1/
1239
            q
1240
          }
1241
          /^X\(\/\).*/{
1242
            s//\1/
1243
            q
1244
          }
1245
          s/.*/./; q'`
1246
  srcdir=$ac_confdir
1247
  if test ! -r "$srcdir/$ac_unique_file"; then
1248
    srcdir=..
1249
  fi
1250
else
1251
  ac_srcdir_defaulted=no
1252
fi
1253
if test ! -r "$srcdir/$ac_unique_file"; then
1254
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256
fi
1257
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258
ac_abs_confdir=`(
1259
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260
        pwd)`
1261
# When building in place, set srcdir=.
1262
if test "$ac_abs_confdir" = "$ac_pwd"; then
1263
  srcdir=.
1264
fi
1265
# Remove unnecessary trailing slashes from srcdir.
1266
# Double slashes in file names in object file debugging info
1267
# mess up M-x gdb in Emacs.
1268
case $srcdir in
1269
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270
esac
1271
for ac_var in $ac_precious_vars; do
1272
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273
  eval ac_env_${ac_var}_value=\$${ac_var}
1274
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276
done
1277
 
1278
#
1279
# Report the --help message.
1280
#
1281
if test "$ac_init_help" = "long"; then
1282
  # Omit some internal or obsolete options to make the list less imposing.
1283
  # This message is too long to be a string in the A/UX 3.1 sh.
1284
  cat <<_ACEOF
1285
\`configure' configures libssp 1.0 to adapt to many kinds of systems.
1286
 
1287
Usage: $0 [OPTION]... [VAR=VALUE]...
1288
 
1289
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290
VAR=VALUE.  See below for descriptions of some of the useful variables.
1291
 
1292
Defaults for the options are specified in brackets.
1293
 
1294
Configuration:
1295
  -h, --help              display this help and exit
1296
      --help=short        display options specific to this package
1297
      --help=recursive    display the short help of all the included packages
1298
  -V, --version           display version information and exit
1299
  -q, --quiet, --silent   do not print \`checking...' messages
1300
      --cache-file=FILE   cache test results in FILE [disabled]
1301
  -C, --config-cache      alias for \`--cache-file=config.cache'
1302
  -n, --no-create         do not create output files
1303
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304
 
1305
Installation directories:
1306
  --prefix=PREFIX         install architecture-independent files in PREFIX
1307
                          [$ac_default_prefix]
1308
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309
                          [PREFIX]
1310
 
1311
By default, \`make install' will install all the files in
1312
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314
for instance \`--prefix=\$HOME'.
1315
 
1316
For better control, use the options below.
1317
 
1318
Fine tuning of the installation directories:
1319
  --bindir=DIR            user executables [EPREFIX/bin]
1320
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1321
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1322
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1323
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1324
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1325
  --libdir=DIR            object code libraries [EPREFIX/lib]
1326
  --includedir=DIR        C header files [PREFIX/include]
1327
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1328
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1329
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1330
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1331
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1333
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libssp]
1334
  --htmldir=DIR           html documentation [DOCDIR]
1335
  --dvidir=DIR            dvi documentation [DOCDIR]
1336
  --pdfdir=DIR            pdf documentation [DOCDIR]
1337
  --psdir=DIR             ps documentation [DOCDIR]
1338
_ACEOF
1339
 
1340
  cat <<\_ACEOF
1341
 
1342
Program names:
1343
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1344
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1345
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1346
 
1347
System types:
1348
  --build=BUILD     configure for building on BUILD [guessed]
1349
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1350
  --target=TARGET   configure for building compilers for TARGET [HOST]
1351
_ACEOF
1352
fi
1353
 
1354
if test -n "$ac_init_help"; then
1355
  case $ac_init_help in
1356
     short | recursive ) echo "Configuration of libssp 1.0:";;
1357
   esac
1358
  cat <<\_ACEOF
1359
 
1360
Optional Features:
1361
  --disable-option-checking  ignore unrecognized --enable/--with options
1362
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364
  --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1365
  --enable-maintainer-mode  enable make rules and dependencies not useful
1366
                          (and sometimes confusing) to the casual installer
1367
  --enable-multilib       build many library versions (default)
1368
  --disable-dependency-tracking  speeds up one-time build
1369
  --enable-dependency-tracking   do not reject slow dependency extractors
1370
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1371
  --enable-static[=PKGS]  build static libraries [default=yes]
1372
  --enable-fast-install[=PKGS]
1373
                          optimize for fast installation [default=yes]
1374
  --disable-libtool-lock  avoid locking (might break parallel builds)
1375
 
1376
Optional Packages:
1377
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1378
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1379
  --with-pic              try to use only PIC/non-PIC objects [default=use
1380
                          both]
1381
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1382
 
1383
Some influential environment variables:
1384
  CC          C compiler command
1385
  CFLAGS      C compiler flags
1386
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1387
              nonstandard directory 
1388
  LIBS        libraries to pass to the linker, e.g. -l
1389
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1390
              you have headers in a nonstandard directory 
1391
  CPP         C preprocessor
1392
 
1393
Use these variables to override the choices made by `configure' or to help
1394
it to find libraries and programs with nonstandard names/locations.
1395
 
1396
Report bugs to the package provider.
1397
_ACEOF
1398
ac_status=$?
1399
fi
1400
 
1401
if test "$ac_init_help" = "recursive"; then
1402
  # If there are subdirs, report their specific --help.
1403
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404
    test -d "$ac_dir" ||
1405
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1406
      continue
1407
    ac_builddir=.
1408
 
1409
case "$ac_dir" in
1410
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411
*)
1412
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1413
  # A ".." for each directory in $ac_dir_suffix.
1414
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1415
  case $ac_top_builddir_sub in
1416
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418
  esac ;;
1419
esac
1420
ac_abs_top_builddir=$ac_pwd
1421
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422
# for backward compatibility:
1423
ac_top_builddir=$ac_top_build_prefix
1424
 
1425
case $srcdir in
1426
  .)  # We are building in place.
1427
    ac_srcdir=.
1428
    ac_top_srcdir=$ac_top_builddir_sub
1429
    ac_abs_top_srcdir=$ac_pwd ;;
1430
  [\\/]* | ?:[\\/]* )  # Absolute name.
1431
    ac_srcdir=$srcdir$ac_dir_suffix;
1432
    ac_top_srcdir=$srcdir
1433
    ac_abs_top_srcdir=$srcdir ;;
1434
  *) # Relative name.
1435
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1437
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438
esac
1439
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440
 
1441
    cd "$ac_dir" || { ac_status=$?; continue; }
1442
    # Check for guested configure.
1443
    if test -f "$ac_srcdir/configure.gnu"; then
1444
      echo &&
1445
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446
    elif test -f "$ac_srcdir/configure"; then
1447
      echo &&
1448
      $SHELL "$ac_srcdir/configure" --help=recursive
1449
    else
1450
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451
    fi || ac_status=$?
1452
    cd "$ac_pwd" || { ac_status=$?; break; }
1453
  done
1454
fi
1455
 
1456
test -n "$ac_init_help" && exit $ac_status
1457
if $ac_init_version; then
1458
  cat <<\_ACEOF
1459
libssp configure 1.0
1460
generated by GNU Autoconf 2.64
1461
 
1462
Copyright (C) 2009 Free Software Foundation, Inc.
1463
This configure script is free software; the Free Software Foundation
1464
gives unlimited permission to copy, distribute and modify it.
1465
_ACEOF
1466
  exit
1467
fi
1468
 
1469
## ------------------------ ##
1470
## Autoconf initialization. ##
1471
## ------------------------ ##
1472
 
1473
# ac_fn_c_try_compile LINENO
1474
# --------------------------
1475
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1476
ac_fn_c_try_compile ()
1477
{
1478
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479
  rm -f conftest.$ac_objext
1480
  if { { ac_try="$ac_compile"
1481
case "(($ac_try" in
1482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483
  *) ac_try_echo=$ac_try;;
1484
esac
1485
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486
$as_echo "$ac_try_echo"; } >&5
1487
  (eval "$ac_compile") 2>conftest.err
1488
  ac_status=$?
1489
  if test -s conftest.err; then
1490
    grep -v '^ *+' conftest.err >conftest.er1
1491
    cat conftest.er1 >&5
1492
    mv -f conftest.er1 conftest.err
1493
  fi
1494
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495
  test $ac_status = 0; } && {
1496
         test -z "$ac_c_werror_flag" ||
1497
         test ! -s conftest.err
1498
       } && test -s conftest.$ac_objext; then :
1499
  ac_retval=0
1500
else
1501
  $as_echo "$as_me: failed program was:" >&5
1502
sed 's/^/| /' conftest.$ac_ext >&5
1503
 
1504
        ac_retval=1
1505
fi
1506
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1507
  return $ac_retval
1508
 
1509
} # ac_fn_c_try_compile
1510
 
1511
# ac_fn_c_try_cpp LINENO
1512
# ----------------------
1513
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1514
ac_fn_c_try_cpp ()
1515
{
1516
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1518
case "(($ac_try" in
1519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520
  *) ac_try_echo=$ac_try;;
1521
esac
1522
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523
$as_echo "$ac_try_echo"; } >&5
1524
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1525
  ac_status=$?
1526
  if test -s conftest.err; then
1527
    grep -v '^ *+' conftest.err >conftest.er1
1528
    cat conftest.er1 >&5
1529
    mv -f conftest.er1 conftest.err
1530
  fi
1531
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532
  test $ac_status = 0; } >/dev/null && {
1533
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1534
         test ! -s conftest.err
1535
       }; then :
1536
  ac_retval=0
1537
else
1538
  $as_echo "$as_me: failed program was:" >&5
1539
sed 's/^/| /' conftest.$ac_ext >&5
1540
 
1541
    ac_retval=1
1542
fi
1543
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1544
  return $ac_retval
1545
 
1546
} # ac_fn_c_try_cpp
1547
 
1548
# ac_fn_c_try_link LINENO
1549
# -----------------------
1550
# Try to link conftest.$ac_ext, and return whether this succeeded.
1551
ac_fn_c_try_link ()
1552
{
1553
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554
  rm -f conftest.$ac_objext conftest$ac_exeext
1555
  if { { ac_try="$ac_link"
1556
case "(($ac_try" in
1557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558
  *) ac_try_echo=$ac_try;;
1559
esac
1560
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561
$as_echo "$ac_try_echo"; } >&5
1562
  (eval "$ac_link") 2>conftest.err
1563
  ac_status=$?
1564
  if test -s conftest.err; then
1565
    grep -v '^ *+' conftest.err >conftest.er1
1566
    cat conftest.er1 >&5
1567
    mv -f conftest.er1 conftest.err
1568
  fi
1569
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570
  test $ac_status = 0; } && {
1571
         test -z "$ac_c_werror_flag" ||
1572
         test ! -s conftest.err
1573
       } && test -s conftest$ac_exeext && {
1574
         test "$cross_compiling" = yes ||
1575
         $as_test_x conftest$ac_exeext
1576
       }; then :
1577
  ac_retval=0
1578
else
1579
  $as_echo "$as_me: failed program was:" >&5
1580
sed 's/^/| /' conftest.$ac_ext >&5
1581
 
1582
        ac_retval=1
1583
fi
1584
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586
  # interfere with the next link command; also delete a directory that is
1587
  # left behind by Apple's compiler.  We do this before executing the actions.
1588
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590
  return $ac_retval
1591
 
1592
} # ac_fn_c_try_link
1593
 
1594
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1595
# -------------------------------------------------------
1596
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1597
# the include files in INCLUDES and setting the cache variable VAR
1598
# accordingly.
1599
ac_fn_c_check_header_mongrel ()
1600
{
1601
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1603
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604
$as_echo_n "checking for $2... " >&6; }
1605
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606
  $as_echo_n "(cached) " >&6
1607
fi
1608
eval ac_res=\$$3
1609
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610
$as_echo "$ac_res" >&6; }
1611
else
1612
  # Is the header compilable?
1613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1614
$as_echo_n "checking $2 usability... " >&6; }
1615
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616
/* end confdefs.h.  */
1617
$4
1618
#include <$2>
1619
_ACEOF
1620
if ac_fn_c_try_compile "$LINENO"; then :
1621
  ac_header_compiler=yes
1622
else
1623
  ac_header_compiler=no
1624
fi
1625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1627
$as_echo "$ac_header_compiler" >&6; }
1628
 
1629
# Is the header present?
1630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1631
$as_echo_n "checking $2 presence... " >&6; }
1632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633
/* end confdefs.h.  */
1634
#include <$2>
1635
_ACEOF
1636
if ac_fn_c_try_cpp "$LINENO"; then :
1637
  ac_header_preproc=yes
1638
else
1639
  ac_header_preproc=no
1640
fi
1641
rm -f conftest.err conftest.$ac_ext
1642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1643
$as_echo "$ac_header_preproc" >&6; }
1644
 
1645
# So?  What about this header?
1646
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1647
  yes:no: )
1648
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1649
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1650
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652
    ;;
1653
  no:yes:* )
1654
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1655
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1656
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1657
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1658
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1659
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1660
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1661
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1662
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664
    ;;
1665
esac
1666
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667
$as_echo_n "checking for $2... " >&6; }
1668
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1669
  $as_echo_n "(cached) " >&6
1670
else
1671
  eval "$3=\$ac_header_compiler"
1672
fi
1673
eval ac_res=\$$3
1674
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675
$as_echo "$ac_res" >&6; }
1676
fi
1677
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678
 
1679
} # ac_fn_c_check_header_mongrel
1680
 
1681
# ac_fn_c_try_run LINENO
1682
# ----------------------
1683
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684
# that executables *can* be run.
1685
ac_fn_c_try_run ()
1686
{
1687
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688
  if { { ac_try="$ac_link"
1689
case "(($ac_try" in
1690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691
  *) ac_try_echo=$ac_try;;
1692
esac
1693
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694
$as_echo "$ac_try_echo"; } >&5
1695
  (eval "$ac_link") 2>&5
1696
  ac_status=$?
1697
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699
  { { case "(($ac_try" in
1700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701
  *) ac_try_echo=$ac_try;;
1702
esac
1703
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704
$as_echo "$ac_try_echo"; } >&5
1705
  (eval "$ac_try") 2>&5
1706
  ac_status=$?
1707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708
  test $ac_status = 0; }; }; then :
1709
  ac_retval=0
1710
else
1711
  $as_echo "$as_me: program exited with status $ac_status" >&5
1712
       $as_echo "$as_me: failed program was:" >&5
1713
sed 's/^/| /' conftest.$ac_ext >&5
1714
 
1715
       ac_retval=$ac_status
1716
fi
1717
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719
  return $ac_retval
1720
 
1721
} # ac_fn_c_try_run
1722
 
1723
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724
# -------------------------------------------------------
1725
# Tests whether HEADER exists and can be compiled using the include files in
1726
# INCLUDES, setting the cache variable VAR accordingly.
1727
ac_fn_c_check_header_compile ()
1728
{
1729
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731
$as_echo_n "checking for $2... " >&6; }
1732
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733
  $as_echo_n "(cached) " >&6
1734
else
1735
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736
/* end confdefs.h.  */
1737
$4
1738
#include <$2>
1739
_ACEOF
1740
if ac_fn_c_try_compile "$LINENO"; then :
1741
  eval "$3=yes"
1742
else
1743
  eval "$3=no"
1744
fi
1745
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746
fi
1747
eval ac_res=\$$3
1748
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749
$as_echo "$ac_res" >&6; }
1750
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
 
1752
} # ac_fn_c_check_header_compile
1753
 
1754
# ac_fn_c_check_func LINENO FUNC VAR
1755
# ----------------------------------
1756
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1757
ac_fn_c_check_func ()
1758
{
1759
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761
$as_echo_n "checking for $2... " >&6; }
1762
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763
  $as_echo_n "(cached) " >&6
1764
else
1765
  if test x$gcc_no_link = xyes; then
1766
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1767
fi
1768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769
/* end confdefs.h.  */
1770
/* Define $2 to an innocuous variant, in case  declares $2.
1771
   For example, HP-UX 11i  declares gettimeofday.  */
1772
#define $2 innocuous_$2
1773
 
1774
/* System header to define __stub macros and hopefully few prototypes,
1775
    which can conflict with char $2 (); below.
1776
    Prefer  to  if __STDC__ is defined, since
1777
     exists even on freestanding compilers.  */
1778
 
1779
#ifdef __STDC__
1780
# include 
1781
#else
1782
# include 
1783
#endif
1784
 
1785
#undef $2
1786
 
1787
/* Override any GCC internal prototype to avoid an error.
1788
   Use char because int might match the return type of a GCC
1789
   builtin and then its argument prototype would still apply.  */
1790
#ifdef __cplusplus
1791
extern "C"
1792
#endif
1793
char $2 ();
1794
/* The GNU C library defines this for functions which it implements
1795
    to always fail with ENOSYS.  Some functions are actually named
1796
    something starting with __ and the normal name is an alias.  */
1797
#if defined __stub_$2 || defined __stub___$2
1798
choke me
1799
#endif
1800
 
1801
int
1802
main ()
1803
{
1804
return $2 ();
1805
  ;
1806
  return 0;
1807
}
1808
_ACEOF
1809
if ac_fn_c_try_link "$LINENO"; then :
1810
  eval "$3=yes"
1811
else
1812
  eval "$3=no"
1813
fi
1814
rm -f core conftest.err conftest.$ac_objext \
1815
    conftest$ac_exeext conftest.$ac_ext
1816
fi
1817
eval ac_res=\$$3
1818
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819
$as_echo "$ac_res" >&6; }
1820
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821
 
1822
} # ac_fn_c_check_func
1823
cat >config.log <<_ACEOF
1824
This file contains any messages produced by compilers while
1825
running configure, to aid debugging if configure makes a mistake.
1826
 
1827
It was created by libssp $as_me 1.0, which was
1828
generated by GNU Autoconf 2.64.  Invocation command line was
1829
 
1830
  $ $0 $@
1831
 
1832
_ACEOF
1833
exec 5>>config.log
1834
{
1835
cat <<_ASUNAME
1836
## --------- ##
1837
## Platform. ##
1838
## --------- ##
1839
 
1840
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
 
1846
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1848
 
1849
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1850
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1851
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1853
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1854
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1855
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1856
 
1857
_ASUNAME
1858
 
1859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860
for as_dir in $PATH
1861
do
1862
  IFS=$as_save_IFS
1863
  test -z "$as_dir" && as_dir=.
1864
    $as_echo "PATH: $as_dir"
1865
  done
1866
IFS=$as_save_IFS
1867
 
1868
} >&5
1869
 
1870
cat >&5 <<_ACEOF
1871
 
1872
 
1873
## ----------- ##
1874
## Core tests. ##
1875
## ----------- ##
1876
 
1877
_ACEOF
1878
 
1879
 
1880
# Keep a trace of the command line.
1881
# Strip out --no-create and --no-recursion so they do not pile up.
1882
# Strip out --silent because we don't want to record it for future runs.
1883
# Also quote any args containing shell meta-characters.
1884
# Make two passes to allow for proper duplicate-argument suppression.
1885
ac_configure_args=
1886
ac_configure_args0=
1887
ac_configure_args1=
1888
ac_must_keep_next=false
1889
for ac_pass in 1 2
1890
do
1891
  for ac_arg
1892
  do
1893
    case $ac_arg in
1894
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896
    | -silent | --silent | --silen | --sile | --sil)
1897
      continue ;;
1898
    *\'*)
1899
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900
    esac
1901
    case $ac_pass in
1902
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903
    2)
1904
      as_fn_append ac_configure_args1 " '$ac_arg'"
1905
      if test $ac_must_keep_next = true; then
1906
        ac_must_keep_next=false # Got value, back to normal.
1907
      else
1908
        case $ac_arg in
1909
          *=* | --config-cache | -C | -disable-* | --disable-* \
1910
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912
          | -with-* | --with-* | -without-* | --without-* | --x)
1913
            case "$ac_configure_args0 " in
1914
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915
            esac
1916
            ;;
1917
          -* ) ac_must_keep_next=true ;;
1918
        esac
1919
      fi
1920
      as_fn_append ac_configure_args " '$ac_arg'"
1921
      ;;
1922
    esac
1923
  done
1924
done
1925
{ ac_configure_args0=; unset ac_configure_args0;}
1926
{ ac_configure_args1=; unset ac_configure_args1;}
1927
 
1928
# When interrupted or exit'd, cleanup temporary files, and complete
1929
# config.log.  We remove comments because anyway the quotes in there
1930
# would cause problems or look ugly.
1931
# WARNING: Use '\'' to represent an apostrophe within the trap.
1932
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933
trap 'exit_status=$?
1934
  # Save into config.log some information that might help in debugging.
1935
  {
1936
    echo
1937
 
1938
    cat <<\_ASBOX
1939
## ---------------- ##
1940
## Cache variables. ##
1941
## ---------------- ##
1942
_ASBOX
1943
    echo
1944
    # The following way of writing the cache mishandles newlines in values,
1945
(
1946
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947
    eval ac_val=\$$ac_var
1948
    case $ac_val in #(
1949
    *${as_nl}*)
1950
      case $ac_var in #(
1951
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953
      esac
1954
      case $ac_var in #(
1955
      _ | IFS | as_nl) ;; #(
1956
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957
      *) { eval $ac_var=; unset $ac_var;} ;;
1958
      esac ;;
1959
    esac
1960
  done
1961
  (set) 2>&1 |
1962
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963
    *${as_nl}ac_space=\ *)
1964
      sed -n \
1965
        "s/'\''/'\''\\\\'\'''\''/g;
1966
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967
      ;; #(
1968
    *)
1969
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970
      ;;
1971
    esac |
1972
    sort
1973
)
1974
    echo
1975
 
1976
    cat <<\_ASBOX
1977
## ----------------- ##
1978
## Output variables. ##
1979
## ----------------- ##
1980
_ASBOX
1981
    echo
1982
    for ac_var in $ac_subst_vars
1983
    do
1984
      eval ac_val=\$$ac_var
1985
      case $ac_val in
1986
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987
      esac
1988
      $as_echo "$ac_var='\''$ac_val'\''"
1989
    done | sort
1990
    echo
1991
 
1992
    if test -n "$ac_subst_files"; then
1993
      cat <<\_ASBOX
1994
## ------------------- ##
1995
## File substitutions. ##
1996
## ------------------- ##
1997
_ASBOX
1998
      echo
1999
      for ac_var in $ac_subst_files
2000
      do
2001
        eval ac_val=\$$ac_var
2002
        case $ac_val in
2003
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004
        esac
2005
        $as_echo "$ac_var='\''$ac_val'\''"
2006
      done | sort
2007
      echo
2008
    fi
2009
 
2010
    if test -s confdefs.h; then
2011
      cat <<\_ASBOX
2012
## ----------- ##
2013
## confdefs.h. ##
2014
## ----------- ##
2015
_ASBOX
2016
      echo
2017
      cat confdefs.h
2018
      echo
2019
    fi
2020
    test "$ac_signal" != 0 &&
2021
      $as_echo "$as_me: caught signal $ac_signal"
2022
    $as_echo "$as_me: exit $exit_status"
2023
  } >&5
2024
  rm -f core *.core core.conftest.* &&
2025
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026
    exit $exit_status
2027
' 0
2028
for ac_signal in 1 2 13 15; do
2029
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030
done
2031
ac_signal=0
2032
 
2033
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2034
rm -f -r conftest* confdefs.h
2035
 
2036
$as_echo "/* confdefs.h */" > confdefs.h
2037
 
2038
# Predefined preprocessor variables.
2039
 
2040
cat >>confdefs.h <<_ACEOF
2041
#define PACKAGE_NAME "$PACKAGE_NAME"
2042
_ACEOF
2043
 
2044
cat >>confdefs.h <<_ACEOF
2045
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046
_ACEOF
2047
 
2048
cat >>confdefs.h <<_ACEOF
2049
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2050
_ACEOF
2051
 
2052
cat >>confdefs.h <<_ACEOF
2053
#define PACKAGE_STRING "$PACKAGE_STRING"
2054
_ACEOF
2055
 
2056
cat >>confdefs.h <<_ACEOF
2057
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058
_ACEOF
2059
 
2060
cat >>confdefs.h <<_ACEOF
2061
#define PACKAGE_URL "$PACKAGE_URL"
2062
_ACEOF
2063
 
2064
 
2065
# Let the site file select an alternate cache file if it wants to.
2066
# Prefer an explicitly selected file to automatically selected ones.
2067
ac_site_file1=NONE
2068
ac_site_file2=NONE
2069
if test -n "$CONFIG_SITE"; then
2070
  ac_site_file1=$CONFIG_SITE
2071
elif test "x$prefix" != xNONE; then
2072
  ac_site_file1=$prefix/share/config.site
2073
  ac_site_file2=$prefix/etc/config.site
2074
else
2075
  ac_site_file1=$ac_default_prefix/share/config.site
2076
  ac_site_file2=$ac_default_prefix/etc/config.site
2077
fi
2078
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079
do
2080
  test "x$ac_site_file" = xNONE && continue
2081
  if test -r "$ac_site_file"; then
2082
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084
    sed 's/^/| /' "$ac_site_file" >&5
2085
    . "$ac_site_file"
2086
  fi
2087
done
2088
 
2089
if test -r "$cache_file"; then
2090
  # Some versions of bash will fail to source /dev/null (special
2091
  # files actually), so we avoid doing that.
2092
  if test -f "$cache_file"; then
2093
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094
$as_echo "$as_me: loading cache $cache_file" >&6;}
2095
    case $cache_file in
2096
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097
      *)                      . "./$cache_file";;
2098
    esac
2099
  fi
2100
else
2101
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102
$as_echo "$as_me: creating cache $cache_file" >&6;}
2103
  >$cache_file
2104
fi
2105
 
2106
# Check that the precious variables saved in the cache have kept the same
2107
# value.
2108
ac_cache_corrupted=false
2109
for ac_var in $ac_precious_vars; do
2110
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111
  eval ac_new_set=\$ac_env_${ac_var}_set
2112
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113
  eval ac_new_val=\$ac_env_${ac_var}_value
2114
  case $ac_old_set,$ac_new_set in
2115
    set,)
2116
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118
      ac_cache_corrupted=: ;;
2119
    ,set)
2120
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122
      ac_cache_corrupted=: ;;
2123
    ,);;
2124
    *)
2125
      if test "x$ac_old_val" != "x$ac_new_val"; then
2126
        # differences in whitespace do not lead to failure.
2127
        ac_old_val_w=`echo x $ac_old_val`
2128
        ac_new_val_w=`echo x $ac_new_val`
2129
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132
          ac_cache_corrupted=:
2133
        else
2134
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136
          eval $ac_var=\$ac_old_val
2137
        fi
2138
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2139
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2140
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2141
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2142
      fi;;
2143
  esac
2144
  # Pass precious variables to config.status.
2145
  if test "$ac_new_set" = set; then
2146
    case $ac_new_val in
2147
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148
    *) ac_arg=$ac_var=$ac_new_val ;;
2149
    esac
2150
    case " $ac_configure_args " in
2151
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2152
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153
    esac
2154
  fi
2155
done
2156
if $ac_cache_corrupted; then
2157
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162
fi
2163
## -------------------- ##
2164
## Main body of script. ##
2165
## -------------------- ##
2166
 
2167
ac_ext=c
2168
ac_cpp='$CPP $CPPFLAGS'
2169
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
 
2173
 
2174
 
2175
 
2176
 
2177
 
2178
ac_aux_dir=
2179
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2180
  for ac_t in install-sh install.sh shtool; do
2181
    if test -f "$ac_dir/$ac_t"; then
2182
      ac_aux_dir=$ac_dir
2183
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2184
      break 2
2185
    fi
2186
  done
2187
done
2188
if test -z "$ac_aux_dir"; then
2189
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2190
fi
2191
 
2192
# These three variables are undocumented and unsupported,
2193
# and are intended to be withdrawn in a future Autoconf release.
2194
# They can cause serious problems if a builder's source tree is in a directory
2195
# whose full name contains unusual characters.
2196
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2197
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2198
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2199
 
2200
 
2201
# Make sure we can run config.sub.
2202
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2203
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2204
 
2205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2206
$as_echo_n "checking build system type... " >&6; }
2207
if test "${ac_cv_build+set}" = set; then :
2208
  $as_echo_n "(cached) " >&6
2209
else
2210
  ac_build_alias=$build_alias
2211
test "x$ac_build_alias" = x &&
2212
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2213
test "x$ac_build_alias" = x &&
2214
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2215
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2216
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2217
 
2218
fi
2219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2220
$as_echo "$ac_cv_build" >&6; }
2221
case $ac_cv_build in
2222
*-*-*) ;;
2223
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2224
esac
2225
build=$ac_cv_build
2226
ac_save_IFS=$IFS; IFS='-'
2227
set x $ac_cv_build
2228
shift
2229
build_cpu=$1
2230
build_vendor=$2
2231
shift; shift
2232
# Remember, the first character of IFS is used to create $*,
2233
# except with old shells:
2234
build_os=$*
2235
IFS=$ac_save_IFS
2236
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2237
 
2238
 
2239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2240
$as_echo_n "checking host system type... " >&6; }
2241
if test "${ac_cv_host+set}" = set; then :
2242
  $as_echo_n "(cached) " >&6
2243
else
2244
  if test "x$host_alias" = x; then
2245
  ac_cv_host=$ac_cv_build
2246
else
2247
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2248
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2249
fi
2250
 
2251
fi
2252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2253
$as_echo "$ac_cv_host" >&6; }
2254
case $ac_cv_host in
2255
*-*-*) ;;
2256
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2257
esac
2258
host=$ac_cv_host
2259
ac_save_IFS=$IFS; IFS='-'
2260
set x $ac_cv_host
2261
shift
2262
host_cpu=$1
2263
host_vendor=$2
2264
shift; shift
2265
# Remember, the first character of IFS is used to create $*,
2266
# except with old shells:
2267
host_os=$*
2268
IFS=$ac_save_IFS
2269
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2270
 
2271
 
2272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2273
$as_echo_n "checking target system type... " >&6; }
2274
if test "${ac_cv_target+set}" = set; then :
2275
  $as_echo_n "(cached) " >&6
2276
else
2277
  if test "x$target_alias" = x; then
2278
  ac_cv_target=$ac_cv_host
2279
else
2280
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2281
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2282
fi
2283
 
2284
fi
2285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2286
$as_echo "$ac_cv_target" >&6; }
2287
case $ac_cv_target in
2288
*-*-*) ;;
2289
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2290
esac
2291
target=$ac_cv_target
2292
ac_save_IFS=$IFS; IFS='-'
2293
set x $ac_cv_target
2294
shift
2295
target_cpu=$1
2296
target_vendor=$2
2297
shift; shift
2298
# Remember, the first character of IFS is used to create $*,
2299
# except with old shells:
2300
target_os=$*
2301
IFS=$ac_save_IFS
2302
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2303
 
2304
 
2305
# The aliases save the names the user supplied, while $host etc.
2306
# will get canonicalized.
2307
test -n "$target_alias" &&
2308
  test "$program_prefix$program_suffix$program_transform_name" = \
2309
    NONENONEs,x,x, &&
2310
  program_prefix=${target_alias}-
2311
 
2312
 case ${build_alias} in
2313
  "") build_noncanonical=${build} ;;
2314
  *) build_noncanonical=${build_alias} ;;
2315
esac
2316
 
2317
 case ${host_alias} in
2318
  "") host_noncanonical=${build_noncanonical} ;;
2319
  *) host_noncanonical=${host_alias} ;;
2320
esac
2321
 
2322
 case ${target_alias} in
2323
  "") target_noncanonical=${host_noncanonical} ;;
2324
  *) target_noncanonical=${target_alias} ;;
2325
esac
2326
 
2327
 
2328
 
2329
 
2330
am__api_version='1.11'
2331
 
2332
# Find a good install program.  We prefer a C program (faster),
2333
# so one script is as good as another.  But avoid the broken or
2334
# incompatible versions:
2335
# SysV /etc/install, /usr/sbin/install
2336
# SunOS /usr/etc/install
2337
# IRIX /sbin/install
2338
# AIX /bin/install
2339
# AmigaOS /C/install, which installs bootblocks on floppy discs
2340
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2341
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2342
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2343
# OS/2's system install, which has a completely different semantic
2344
# ./install, which can be erroneously created by make from ./install.sh.
2345
# Reject install programs that cannot install multiple files.
2346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2347
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2348
if test -z "$INSTALL"; then
2349
if test "${ac_cv_path_install+set}" = set; then :
2350
  $as_echo_n "(cached) " >&6
2351
else
2352
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353
for as_dir in $PATH
2354
do
2355
  IFS=$as_save_IFS
2356
  test -z "$as_dir" && as_dir=.
2357
    # Account for people who put trailing slashes in PATH elements.
2358
case $as_dir/ in #((
2359
  ./ | .// | /[cC]/* | \
2360
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2361
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2362
  /usr/ucb/* ) ;;
2363
  *)
2364
    # OSF1 and SCO ODT 3.0 have their own names for install.
2365
    # Don't use installbsd from OSF since it installs stuff as root
2366
    # by default.
2367
    for ac_prog in ginstall scoinst install; do
2368
      for ac_exec_ext in '' $ac_executable_extensions; do
2369
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2370
          if test $ac_prog = install &&
2371
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372
            # AIX install.  It has an incompatible calling convention.
2373
            :
2374
          elif test $ac_prog = install &&
2375
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376
            # program-specific install script used by HP pwplus--don't use.
2377
            :
2378
          else
2379
            rm -rf conftest.one conftest.two conftest.dir
2380
            echo one > conftest.one
2381
            echo two > conftest.two
2382
            mkdir conftest.dir
2383
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2384
              test -s conftest.one && test -s conftest.two &&
2385
              test -s conftest.dir/conftest.one &&
2386
              test -s conftest.dir/conftest.two
2387
            then
2388
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2389
              break 3
2390
            fi
2391
          fi
2392
        fi
2393
      done
2394
    done
2395
    ;;
2396
esac
2397
 
2398
  done
2399
IFS=$as_save_IFS
2400
 
2401
rm -rf conftest.one conftest.two conftest.dir
2402
 
2403
fi
2404
  if test "${ac_cv_path_install+set}" = set; then
2405
    INSTALL=$ac_cv_path_install
2406
  else
2407
    # As a last resort, use the slow shell script.  Don't cache a
2408
    # value for INSTALL within a source directory, because that will
2409
    # break other packages using the cache if that directory is
2410
    # removed, or if the value is a relative name.
2411
    INSTALL=$ac_install_sh
2412
  fi
2413
fi
2414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2415
$as_echo "$INSTALL" >&6; }
2416
 
2417
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2418
# It thinks the first close brace ends the variable substitution.
2419
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2420
 
2421
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2422
 
2423
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2424
 
2425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2426
$as_echo_n "checking whether build environment is sane... " >&6; }
2427
# Just in case
2428
sleep 1
2429
echo timestamp > conftest.file
2430
# Reject unsafe characters in $srcdir or the absolute working directory
2431
# name.  Accept space and tab only in the latter.
2432
am_lf='
2433
'
2434
case `pwd` in
2435
  *[\\\"\#\$\&\'\`$am_lf]*)
2436
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2437
esac
2438
case $srcdir in
2439
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2440
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2441
esac
2442
 
2443
# Do `set' in a subshell so we don't clobber the current shell's
2444
# arguments.  Must try -L first in case configure is actually a
2445
# symlink; some systems play weird games with the mod time of symlinks
2446
# (eg FreeBSD returns the mod time of the symlink's containing
2447
# directory).
2448
if (
2449
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2450
   if test "$*" = "X"; then
2451
      # -L didn't work.
2452
      set X `ls -t "$srcdir/configure" conftest.file`
2453
   fi
2454
   rm -f conftest.file
2455
   if test "$*" != "X $srcdir/configure conftest.file" \
2456
      && test "$*" != "X conftest.file $srcdir/configure"; then
2457
 
2458
      # If neither matched, then we have a broken ls.  This can happen
2459
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2460
      # broken ls alias from the environment.  This has actually
2461
      # happened.  Such a system could not be considered "sane".
2462
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2463
alias in your environment" "$LINENO" 5
2464
   fi
2465
 
2466
   test "$2" = conftest.file
2467
   )
2468
then
2469
   # Ok.
2470
   :
2471
else
2472
   as_fn_error "newly created file is older than distributed files!
2473
Check your system clock" "$LINENO" 5
2474
fi
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2476
$as_echo "yes" >&6; }
2477
test "$program_prefix" != NONE &&
2478
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2479
# Use a double $ so make ignores it.
2480
test "$program_suffix" != NONE &&
2481
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2482
# Double any \ or $.
2483
# By default was `s,x,x', remove it if useless.
2484
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2485
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2486
 
2487
# expand $ac_aux_dir to an absolute path
2488
am_aux_dir=`cd $ac_aux_dir && pwd`
2489
 
2490
if test x"${MISSING+set}" != xset; then
2491
  case $am_aux_dir in
2492
  *\ * | *\     *)
2493
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2494
  *)
2495
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2496
  esac
2497
fi
2498
# Use eval to expand $SHELL
2499
if eval "$MISSING --run true"; then
2500
  am_missing_run="$MISSING --run "
2501
else
2502
  am_missing_run=
2503
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2504
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2505
fi
2506
 
2507
if test x"${install_sh}" != xset; then
2508
  case $am_aux_dir in
2509
  *\ * | *\     *)
2510
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2511
  *)
2512
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2513
  esac
2514
fi
2515
 
2516
# Installed binaries are usually stripped using `strip' when the user
2517
# run `make install-strip'.  However `strip' might not be the right
2518
# tool to use in cross-compilation environments, therefore Automake
2519
# will honor the `STRIP' environment variable to overrule this program.
2520
if test "$cross_compiling" != no; then
2521
  if test -n "$ac_tool_prefix"; then
2522
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2523
set dummy ${ac_tool_prefix}strip; ac_word=$2
2524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525
$as_echo_n "checking for $ac_word... " >&6; }
2526
if test "${ac_cv_prog_STRIP+set}" = set; then :
2527
  $as_echo_n "(cached) " >&6
2528
else
2529
  if test -n "$STRIP"; then
2530
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2531
else
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533
for as_dir in $PATH
2534
do
2535
  IFS=$as_save_IFS
2536
  test -z "$as_dir" && as_dir=.
2537
    for ac_exec_ext in '' $ac_executable_extensions; do
2538
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2540
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541
    break 2
2542
  fi
2543
done
2544
  done
2545
IFS=$as_save_IFS
2546
 
2547
fi
2548
fi
2549
STRIP=$ac_cv_prog_STRIP
2550
if test -n "$STRIP"; then
2551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2552
$as_echo "$STRIP" >&6; }
2553
else
2554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555
$as_echo "no" >&6; }
2556
fi
2557
 
2558
 
2559
fi
2560
if test -z "$ac_cv_prog_STRIP"; then
2561
  ac_ct_STRIP=$STRIP
2562
  # Extract the first word of "strip", so it can be a program name with args.
2563
set dummy strip; ac_word=$2
2564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565
$as_echo_n "checking for $ac_word... " >&6; }
2566
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2567
  $as_echo_n "(cached) " >&6
2568
else
2569
  if test -n "$ac_ct_STRIP"; then
2570
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2571
else
2572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573
for as_dir in $PATH
2574
do
2575
  IFS=$as_save_IFS
2576
  test -z "$as_dir" && as_dir=.
2577
    for ac_exec_ext in '' $ac_executable_extensions; do
2578
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579
    ac_cv_prog_ac_ct_STRIP="strip"
2580
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581
    break 2
2582
  fi
2583
done
2584
  done
2585
IFS=$as_save_IFS
2586
 
2587
fi
2588
fi
2589
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2590
if test -n "$ac_ct_STRIP"; then
2591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2592
$as_echo "$ac_ct_STRIP" >&6; }
2593
else
2594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595
$as_echo "no" >&6; }
2596
fi
2597
 
2598
  if test "x$ac_ct_STRIP" = x; then
2599
    STRIP=":"
2600
  else
2601
    case $cross_compiling:$ac_tool_warned in
2602
yes:)
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2604
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2605
ac_tool_warned=yes ;;
2606
esac
2607
    STRIP=$ac_ct_STRIP
2608
  fi
2609
else
2610
  STRIP="$ac_cv_prog_STRIP"
2611
fi
2612
 
2613
fi
2614
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2615
 
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2617
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2618
if test -z "$MKDIR_P"; then
2619
  if test "${ac_cv_path_mkdir+set}" = set; then :
2620
  $as_echo_n "(cached) " >&6
2621
else
2622
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2624
do
2625
  IFS=$as_save_IFS
2626
  test -z "$as_dir" && as_dir=.
2627
    for ac_prog in mkdir gmkdir; do
2628
         for ac_exec_ext in '' $ac_executable_extensions; do
2629
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2630
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2631
             'mkdir (GNU coreutils) '* | \
2632
             'mkdir (coreutils) '* | \
2633
             'mkdir (fileutils) '4.1*)
2634
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2635
               break 3;;
2636
           esac
2637
         done
2638
       done
2639
  done
2640
IFS=$as_save_IFS
2641
 
2642
fi
2643
 
2644
  if test "${ac_cv_path_mkdir+set}" = set; then
2645
    MKDIR_P="$ac_cv_path_mkdir -p"
2646
  else
2647
    # As a last resort, use the slow shell script.  Don't cache a
2648
    # value for MKDIR_P within a source directory, because that will
2649
    # break other packages using the cache if that directory is
2650
    # removed, or if the value is a relative name.
2651
    test -d ./--version && rmdir ./--version
2652
    MKDIR_P="$ac_install_sh -d"
2653
  fi
2654
fi
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2656
$as_echo "$MKDIR_P" >&6; }
2657
 
2658
mkdir_p="$MKDIR_P"
2659
case $mkdir_p in
2660
  [\\/$]* | ?:[\\/]*) ;;
2661
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2662
esac
2663
 
2664
for ac_prog in gawk mawk nawk awk
2665
do
2666
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2667
set dummy $ac_prog; ac_word=$2
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669
$as_echo_n "checking for $ac_word... " >&6; }
2670
if test "${ac_cv_prog_AWK+set}" = set; then :
2671
  $as_echo_n "(cached) " >&6
2672
else
2673
  if test -n "$AWK"; then
2674
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2675
else
2676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677
for as_dir in $PATH
2678
do
2679
  IFS=$as_save_IFS
2680
  test -z "$as_dir" && as_dir=.
2681
    for ac_exec_ext in '' $ac_executable_extensions; do
2682
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683
    ac_cv_prog_AWK="$ac_prog"
2684
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685
    break 2
2686
  fi
2687
done
2688
  done
2689
IFS=$as_save_IFS
2690
 
2691
fi
2692
fi
2693
AWK=$ac_cv_prog_AWK
2694
if test -n "$AWK"; then
2695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2696
$as_echo "$AWK" >&6; }
2697
else
2698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699
$as_echo "no" >&6; }
2700
fi
2701
 
2702
 
2703
  test -n "$AWK" && break
2704
done
2705
 
2706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2707
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2708
set x ${MAKE-make}
2709
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2710
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2711
  $as_echo_n "(cached) " >&6
2712
else
2713
  cat >conftest.make <<\_ACEOF
2714
SHELL = /bin/sh
2715
all:
2716
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2717
_ACEOF
2718
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2719
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2720
  *@@@%%%=?*=@@@%%%*)
2721
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2722
  *)
2723
    eval ac_cv_prog_make_${ac_make}_set=no;;
2724
esac
2725
rm -f conftest.make
2726
fi
2727
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2728
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729
$as_echo "yes" >&6; }
2730
  SET_MAKE=
2731
else
2732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733
$as_echo "no" >&6; }
2734
  SET_MAKE="MAKE=${MAKE-make}"
2735
fi
2736
 
2737
rm -rf .tst 2>/dev/null
2738
mkdir .tst 2>/dev/null
2739
if test -d .tst; then
2740
  am__leading_dot=.
2741
else
2742
  am__leading_dot=_
2743
fi
2744
rmdir .tst 2>/dev/null
2745
 
2746
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2747
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2748
  # is not polluted with repeated "-I."
2749
  am__isrc=' -I$(srcdir)'
2750
  # test to see if srcdir already configured
2751
  if test -f $srcdir/config.status; then
2752
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2753
  fi
2754
fi
2755
 
2756
# test whether we have cygpath
2757
if test -z "$CYGPATH_W"; then
2758
  if (cygpath --version) >/dev/null 2>/dev/null; then
2759
    CYGPATH_W='cygpath -w'
2760
  else
2761
    CYGPATH_W=echo
2762
  fi
2763
fi
2764
 
2765
 
2766
# Define the identity of the package.
2767
 PACKAGE='libssp'
2768
 VERSION='1.0'
2769
 
2770
 
2771
cat >>confdefs.h <<_ACEOF
2772
#define PACKAGE "$PACKAGE"
2773
_ACEOF
2774
 
2775
 
2776
cat >>confdefs.h <<_ACEOF
2777
#define VERSION "$VERSION"
2778
_ACEOF
2779
 
2780
# Some tools Automake needs.
2781
 
2782
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2783
 
2784
 
2785
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2786
 
2787
 
2788
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2789
 
2790
 
2791
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2792
 
2793
 
2794
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2795
 
2796
# We need awk for the "check" target.  The system "awk" is bad on
2797
# some platforms.
2798
# Always define AMTAR for backward compatibility.
2799
 
2800
AMTAR=${AMTAR-"${am_missing_run}tar"}
2801
 
2802
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2803
 
2804
 
2805
 
2806
 
2807
 
2808
 
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2810
$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2811
# Check whether --enable-version-specific-runtime-libs was given.
2812
if test "${enable_version_specific_runtime_libs+set}" = set; then :
2813
  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2814
 yes) version_specific_libs=yes ;;
2815
 no)  version_specific_libs=no ;;
2816
 *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2817
 esac
2818
else
2819
  version_specific_libs=no
2820
fi
2821
 
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2823
$as_echo "$version_specific_libs" >&6; }
2824
 
2825
 
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2827
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2828
    # Check whether --enable-maintainer-mode was given.
2829
if test "${enable_maintainer_mode+set}" = set; then :
2830
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2831
else
2832
  USE_MAINTAINER_MODE=no
2833
fi
2834
 
2835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2836
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2837
   if test $USE_MAINTAINER_MODE = yes; then
2838
  MAINTAINER_MODE_TRUE=
2839
  MAINTAINER_MODE_FALSE='#'
2840
else
2841
  MAINTAINER_MODE_TRUE='#'
2842
  MAINTAINER_MODE_FALSE=
2843
fi
2844
 
2845
  MAINT=$MAINTAINER_MODE_TRUE
2846
 
2847
 
2848
 
2849
 
2850
 
2851
# Default to --enable-multilib
2852
# Check whether --enable-multilib was given.
2853
if test "${enable_multilib+set}" = set; then :
2854
  enableval=$enable_multilib; case "$enableval" in
2855
  yes) multilib=yes ;;
2856
  no)  multilib=no ;;
2857
  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2858
 esac
2859
else
2860
  multilib=yes
2861
fi
2862
 
2863
 
2864
# We may get other options which we leave undocumented:
2865
# --with-target-subdir, --with-multisrctop, --with-multisubdir
2866
# See config-ml.in if you want the gory details.
2867
 
2868
if test "$srcdir" = "."; then
2869
  if test "$with_target_subdir" != "."; then
2870
    multi_basedir="$srcdir/$with_multisrctop../.."
2871
  else
2872
    multi_basedir="$srcdir/$with_multisrctop.."
2873
  fi
2874
else
2875
  multi_basedir="$srcdir/.."
2876
fi
2877
 
2878
 
2879
# Even if the default multilib is not a cross compilation,
2880
# it may be that some of the other multilibs are.
2881
if test $cross_compiling = no && test $multilib = yes \
2882
   && test "x${with_multisubdir}" != x ; then
2883
   cross_compiling=maybe
2884
fi
2885
 
2886
ac_config_commands="$ac_config_commands default-1"
2887
 
2888
 
2889
target_alias=${target_alias-$host_alias}
2890
 
2891
 
2892
ac_config_headers="$ac_config_headers config.h"
2893
 
2894
 
2895
ac_ext=c
2896
ac_cpp='$CPP $CPPFLAGS'
2897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900
 
2901
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2902
# We must force CC to /not/ be precious variables; otherwise
2903
# the wrong, non-multilib-adjusted value will be used in multilibs.
2904
# As a side effect, we have to subst CFLAGS ourselves.
2905
 
2906
 
2907
 
2908
ac_ext=c
2909
ac_cpp='$CPP $CPPFLAGS'
2910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913
if test -n "$ac_tool_prefix"; then
2914
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2915
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917
$as_echo_n "checking for $ac_word... " >&6; }
2918
if test "${ac_cv_prog_CC+set}" = set; then :
2919
  $as_echo_n "(cached) " >&6
2920
else
2921
  if test -n "$CC"; then
2922
  ac_cv_prog_CC="$CC" # Let the user override the test.
2923
else
2924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925
for as_dir in $PATH
2926
do
2927
  IFS=$as_save_IFS
2928
  test -z "$as_dir" && as_dir=.
2929
    for ac_exec_ext in '' $ac_executable_extensions; do
2930
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2932
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933
    break 2
2934
  fi
2935
done
2936
  done
2937
IFS=$as_save_IFS
2938
 
2939
fi
2940
fi
2941
CC=$ac_cv_prog_CC
2942
if test -n "$CC"; then
2943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944
$as_echo "$CC" >&6; }
2945
else
2946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947
$as_echo "no" >&6; }
2948
fi
2949
 
2950
 
2951
fi
2952
if test -z "$ac_cv_prog_CC"; then
2953
  ac_ct_CC=$CC
2954
  # Extract the first word of "gcc", so it can be a program name with args.
2955
set dummy gcc; ac_word=$2
2956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957
$as_echo_n "checking for $ac_word... " >&6; }
2958
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2959
  $as_echo_n "(cached) " >&6
2960
else
2961
  if test -n "$ac_ct_CC"; then
2962
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963
else
2964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965
for as_dir in $PATH
2966
do
2967
  IFS=$as_save_IFS
2968
  test -z "$as_dir" && as_dir=.
2969
    for ac_exec_ext in '' $ac_executable_extensions; do
2970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971
    ac_cv_prog_ac_ct_CC="gcc"
2972
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973
    break 2
2974
  fi
2975
done
2976
  done
2977
IFS=$as_save_IFS
2978
 
2979
fi
2980
fi
2981
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982
if test -n "$ac_ct_CC"; then
2983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984
$as_echo "$ac_ct_CC" >&6; }
2985
else
2986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987
$as_echo "no" >&6; }
2988
fi
2989
 
2990
  if test "x$ac_ct_CC" = x; then
2991
    CC=""
2992
  else
2993
    case $cross_compiling:$ac_tool_warned in
2994
yes:)
2995
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997
ac_tool_warned=yes ;;
2998
esac
2999
    CC=$ac_ct_CC
3000
  fi
3001
else
3002
  CC="$ac_cv_prog_CC"
3003
fi
3004
 
3005
if test -z "$CC"; then
3006
          if test -n "$ac_tool_prefix"; then
3007
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008
set dummy ${ac_tool_prefix}cc; ac_word=$2
3009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010
$as_echo_n "checking for $ac_word... " >&6; }
3011
if test "${ac_cv_prog_CC+set}" = set; then :
3012
  $as_echo_n "(cached) " >&6
3013
else
3014
  if test -n "$CC"; then
3015
  ac_cv_prog_CC="$CC" # Let the user override the test.
3016
else
3017
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018
for as_dir in $PATH
3019
do
3020
  IFS=$as_save_IFS
3021
  test -z "$as_dir" && as_dir=.
3022
    for ac_exec_ext in '' $ac_executable_extensions; do
3023
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3025
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026
    break 2
3027
  fi
3028
done
3029
  done
3030
IFS=$as_save_IFS
3031
 
3032
fi
3033
fi
3034
CC=$ac_cv_prog_CC
3035
if test -n "$CC"; then
3036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037
$as_echo "$CC" >&6; }
3038
else
3039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040
$as_echo "no" >&6; }
3041
fi
3042
 
3043
 
3044
  fi
3045
fi
3046
if test -z "$CC"; then
3047
  # Extract the first word of "cc", so it can be a program name with args.
3048
set dummy cc; ac_word=$2
3049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050
$as_echo_n "checking for $ac_word... " >&6; }
3051
if test "${ac_cv_prog_CC+set}" = set; then :
3052
  $as_echo_n "(cached) " >&6
3053
else
3054
  if test -n "$CC"; then
3055
  ac_cv_prog_CC="$CC" # Let the user override the test.
3056
else
3057
  ac_prog_rejected=no
3058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059
for as_dir in $PATH
3060
do
3061
  IFS=$as_save_IFS
3062
  test -z "$as_dir" && as_dir=.
3063
    for ac_exec_ext in '' $ac_executable_extensions; do
3064
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3066
       ac_prog_rejected=yes
3067
       continue
3068
     fi
3069
    ac_cv_prog_CC="cc"
3070
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071
    break 2
3072
  fi
3073
done
3074
  done
3075
IFS=$as_save_IFS
3076
 
3077
if test $ac_prog_rejected = yes; then
3078
  # We found a bogon in the path, so make sure we never use it.
3079
  set dummy $ac_cv_prog_CC
3080
  shift
3081
  if test $# != 0; then
3082
    # We chose a different compiler from the bogus one.
3083
    # However, it has the same basename, so the bogon will be chosen
3084
    # first if we set CC to just the basename; use the full file name.
3085
    shift
3086
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087
  fi
3088
fi
3089
fi
3090
fi
3091
CC=$ac_cv_prog_CC
3092
if test -n "$CC"; then
3093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094
$as_echo "$CC" >&6; }
3095
else
3096
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097
$as_echo "no" >&6; }
3098
fi
3099
 
3100
 
3101
fi
3102
if test -z "$CC"; then
3103
  if test -n "$ac_tool_prefix"; then
3104
  for ac_prog in cl.exe
3105
  do
3106
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3107
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109
$as_echo_n "checking for $ac_word... " >&6; }
3110
if test "${ac_cv_prog_CC+set}" = set; then :
3111
  $as_echo_n "(cached) " >&6
3112
else
3113
  if test -n "$CC"; then
3114
  ac_cv_prog_CC="$CC" # Let the user override the test.
3115
else
3116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117
for as_dir in $PATH
3118
do
3119
  IFS=$as_save_IFS
3120
  test -z "$as_dir" && as_dir=.
3121
    for ac_exec_ext in '' $ac_executable_extensions; do
3122
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3124
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125
    break 2
3126
  fi
3127
done
3128
  done
3129
IFS=$as_save_IFS
3130
 
3131
fi
3132
fi
3133
CC=$ac_cv_prog_CC
3134
if test -n "$CC"; then
3135
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136
$as_echo "$CC" >&6; }
3137
else
3138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139
$as_echo "no" >&6; }
3140
fi
3141
 
3142
 
3143
    test -n "$CC" && break
3144
  done
3145
fi
3146
if test -z "$CC"; then
3147
  ac_ct_CC=$CC
3148
  for ac_prog in cl.exe
3149
do
3150
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3151
set dummy $ac_prog; ac_word=$2
3152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153
$as_echo_n "checking for $ac_word... " >&6; }
3154
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3155
  $as_echo_n "(cached) " >&6
3156
else
3157
  if test -n "$ac_ct_CC"; then
3158
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159
else
3160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161
for as_dir in $PATH
3162
do
3163
  IFS=$as_save_IFS
3164
  test -z "$as_dir" && as_dir=.
3165
    for ac_exec_ext in '' $ac_executable_extensions; do
3166
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167
    ac_cv_prog_ac_ct_CC="$ac_prog"
3168
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169
    break 2
3170
  fi
3171
done
3172
  done
3173
IFS=$as_save_IFS
3174
 
3175
fi
3176
fi
3177
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178
if test -n "$ac_ct_CC"; then
3179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3180
$as_echo "$ac_ct_CC" >&6; }
3181
else
3182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183
$as_echo "no" >&6; }
3184
fi
3185
 
3186
 
3187
  test -n "$ac_ct_CC" && break
3188
done
3189
 
3190
  if test "x$ac_ct_CC" = x; then
3191
    CC=""
3192
  else
3193
    case $cross_compiling:$ac_tool_warned in
3194
yes:)
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197
ac_tool_warned=yes ;;
3198
esac
3199
    CC=$ac_ct_CC
3200
  fi
3201
fi
3202
 
3203
fi
3204
 
3205
 
3206
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208
as_fn_error "no acceptable C compiler found in \$PATH
3209
See \`config.log' for more details." "$LINENO" 5; }
3210
 
3211
# Provide some information about the compiler.
3212
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3213
set X $ac_compile
3214
ac_compiler=$2
3215
for ac_option in --version -v -V -qversion; do
3216
  { { ac_try="$ac_compiler $ac_option >&5"
3217
case "(($ac_try" in
3218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219
  *) ac_try_echo=$ac_try;;
3220
esac
3221
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222
$as_echo "$ac_try_echo"; } >&5
3223
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3224
  ac_status=$?
3225
  if test -s conftest.err; then
3226
    sed '10a\
3227
... rest of stderr output deleted ...
3228
         10q' conftest.err >conftest.er1
3229
    cat conftest.er1 >&5
3230
    rm -f conftest.er1 conftest.err
3231
  fi
3232
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233
  test $ac_status = 0; }
3234
done
3235
 
3236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237
/* end confdefs.h.  */
3238
 
3239
int
3240
main ()
3241
{
3242
 
3243
  ;
3244
  return 0;
3245
}
3246
_ACEOF
3247
# FIXME: Cleanup?
3248
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3249
  (eval $ac_link) 2>&5
3250
  ac_status=$?
3251
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252
  test $ac_status = 0; }; then :
3253
  gcc_no_link=no
3254
else
3255
  gcc_no_link=yes
3256
fi
3257
if test x$gcc_no_link = xyes; then
3258
  # Setting cross_compile will disable run tests; it will
3259
  # also disable AC_CHECK_FILE but that's generally
3260
  # correct if we can't link.
3261
  cross_compiling=yes
3262
  EXEEXT=
3263
else
3264
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265
/* end confdefs.h.  */
3266
 
3267
int
3268
main ()
3269
{
3270
 
3271
  ;
3272
  return 0;
3273
}
3274
_ACEOF
3275
ac_clean_files_save=$ac_clean_files
3276
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3277
# Try to create an executable without -o first, disregard a.out.
3278
# It will help us diagnose broken compilers, and finding out an intuition
3279
# of exeext.
3280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3281
$as_echo_n "checking for C compiler default output file name... " >&6; }
3282
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3283
 
3284
# The possible output files:
3285
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3286
 
3287
ac_rmfiles=
3288
for ac_file in $ac_files
3289
do
3290
  case $ac_file in
3291
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3293
  esac
3294
done
3295
rm -f $ac_rmfiles
3296
 
3297
if { { ac_try="$ac_link_default"
3298
case "(($ac_try" in
3299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300
  *) ac_try_echo=$ac_try;;
3301
esac
3302
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303
$as_echo "$ac_try_echo"; } >&5
3304
  (eval "$ac_link_default") 2>&5
3305
  ac_status=$?
3306
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307
  test $ac_status = 0; }; then :
3308
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3309
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3310
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3311
# so that the user can short-circuit this test for compilers unknown to
3312
# Autoconf.
3313
for ac_file in $ac_files ''
3314
do
3315
  test -f "$ac_file" || continue
3316
  case $ac_file in
3317
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3318
        ;;
3319
    [ab].out )
3320
        # We found the default executable, but exeext='' is most
3321
        # certainly right.
3322
        break;;
3323
    *.* )
3324
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3325
        then :; else
3326
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327
        fi
3328
        # We set ac_cv_exeext here because the later test for it is not
3329
        # safe: cross compilers may not add the suffix if given an `-o'
3330
        # argument, so we may need to know it at that point already.
3331
        # Even if this section looks crufty: it has the advantage of
3332
        # actually working.
3333
        break;;
3334
    * )
3335
        break;;
3336
  esac
3337
done
3338
test "$ac_cv_exeext" = no && ac_cv_exeext=
3339
 
3340
else
3341
  ac_file=''
3342
fi
3343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344
$as_echo "$ac_file" >&6; }
3345
if test -z "$ac_file"; then :
3346
  $as_echo "$as_me: failed program was:" >&5
3347
sed 's/^/| /' conftest.$ac_ext >&5
3348
 
3349
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351
{ as_fn_set_status 77
3352
as_fn_error "C compiler cannot create executables
3353
See \`config.log' for more details." "$LINENO" 5; }; }
3354
fi
3355
ac_exeext=$ac_cv_exeext
3356
 
3357
# Check that the compiler produces executables we can run.  If not, either
3358
# the compiler is broken, or we cross compile.
3359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360
$as_echo_n "checking whether the C compiler works... " >&6; }
3361
# If not cross compiling, check that we can run a simple program.
3362
if test "$cross_compiling" != yes; then
3363
  if { ac_try='./$ac_file'
3364
  { { case "(($ac_try" in
3365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366
  *) ac_try_echo=$ac_try;;
3367
esac
3368
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369
$as_echo "$ac_try_echo"; } >&5
3370
  (eval "$ac_try") 2>&5
3371
  ac_status=$?
3372
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373
  test $ac_status = 0; }; }; then
3374
    cross_compiling=no
3375
  else
3376
    if test "$cross_compiling" = maybe; then
3377
        cross_compiling=yes
3378
    else
3379
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381
as_fn_error "cannot run C compiled programs.
3382
If you meant to cross compile, use \`--host'.
3383
See \`config.log' for more details." "$LINENO" 5; }
3384
    fi
3385
  fi
3386
fi
3387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388
$as_echo "yes" >&6; }
3389
 
3390
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3391
ac_clean_files=$ac_clean_files_save
3392
# Check that the compiler produces executables we can run.  If not, either
3393
# the compiler is broken, or we cross compile.
3394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3395
$as_echo_n "checking whether we are cross compiling... " >&6; }
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3397
$as_echo "$cross_compiling" >&6; }
3398
 
3399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3400
$as_echo_n "checking for suffix of executables... " >&6; }
3401
if { { ac_try="$ac_link"
3402
case "(($ac_try" in
3403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404
  *) ac_try_echo=$ac_try;;
3405
esac
3406
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407
$as_echo "$ac_try_echo"; } >&5
3408
  (eval "$ac_link") 2>&5
3409
  ac_status=$?
3410
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411
  test $ac_status = 0; }; then :
3412
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3413
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3414
# work properly (i.e., refer to `conftest.exe'), while it won't with
3415
# `rm'.
3416
for ac_file in conftest.exe conftest conftest.*; do
3417
  test -f "$ac_file" || continue
3418
  case $ac_file in
3419
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3420
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421
          break;;
3422
    * ) break;;
3423
  esac
3424
done
3425
else
3426
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428
as_fn_error "cannot compute suffix of executables: cannot compile and link
3429
See \`config.log' for more details." "$LINENO" 5; }
3430
fi
3431
rm -f conftest$ac_cv_exeext
3432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3433
$as_echo "$ac_cv_exeext" >&6; }
3434
 
3435
rm -f conftest.$ac_ext
3436
EXEEXT=$ac_cv_exeext
3437
ac_exeext=$EXEEXT
3438
fi
3439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3440
$as_echo_n "checking for suffix of object files... " >&6; }
3441
if test "${ac_cv_objext+set}" = set; then :
3442
  $as_echo_n "(cached) " >&6
3443
else
3444
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445
/* end confdefs.h.  */
3446
 
3447
int
3448
main ()
3449
{
3450
 
3451
  ;
3452
  return 0;
3453
}
3454
_ACEOF
3455
rm -f conftest.o conftest.obj
3456
if { { ac_try="$ac_compile"
3457
case "(($ac_try" in
3458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459
  *) ac_try_echo=$ac_try;;
3460
esac
3461
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462
$as_echo "$ac_try_echo"; } >&5
3463
  (eval "$ac_compile") 2>&5
3464
  ac_status=$?
3465
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466
  test $ac_status = 0; }; then :
3467
  for ac_file in conftest.o conftest.obj conftest.*; do
3468
  test -f "$ac_file" || continue;
3469
  case $ac_file in
3470
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3471
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472
       break;;
3473
  esac
3474
done
3475
else
3476
  $as_echo "$as_me: failed program was:" >&5
3477
sed 's/^/| /' conftest.$ac_ext >&5
3478
 
3479
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481
as_fn_error "cannot compute suffix of object files: cannot compile
3482
See \`config.log' for more details." "$LINENO" 5; }
3483
fi
3484
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485
fi
3486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3487
$as_echo "$ac_cv_objext" >&6; }
3488
OBJEXT=$ac_cv_objext
3489
ac_objext=$OBJEXT
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3491
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3492
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3493
  $as_echo_n "(cached) " >&6
3494
else
3495
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496
/* end confdefs.h.  */
3497
 
3498
int
3499
main ()
3500
{
3501
#ifndef __GNUC__
3502
       choke me
3503
#endif
3504
 
3505
  ;
3506
  return 0;
3507
}
3508
_ACEOF
3509
if ac_fn_c_try_compile "$LINENO"; then :
3510
  ac_compiler_gnu=yes
3511
else
3512
  ac_compiler_gnu=no
3513
fi
3514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3516
 
3517
fi
3518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3519
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520
if test $ac_compiler_gnu = yes; then
3521
  GCC=yes
3522
else
3523
  GCC=
3524
fi
3525
ac_test_CFLAGS=${CFLAGS+set}
3526
ac_save_CFLAGS=$CFLAGS
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3528
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3529
if test "${ac_cv_prog_cc_g+set}" = set; then :
3530
  $as_echo_n "(cached) " >&6
3531
else
3532
  ac_save_c_werror_flag=$ac_c_werror_flag
3533
   ac_c_werror_flag=yes
3534
   ac_cv_prog_cc_g=no
3535
   CFLAGS="-g"
3536
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537
/* end confdefs.h.  */
3538
 
3539
int
3540
main ()
3541
{
3542
 
3543
  ;
3544
  return 0;
3545
}
3546
_ACEOF
3547
if ac_fn_c_try_compile "$LINENO"; then :
3548
  ac_cv_prog_cc_g=yes
3549
else
3550
  CFLAGS=""
3551
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552
/* end confdefs.h.  */
3553
 
3554
int
3555
main ()
3556
{
3557
 
3558
  ;
3559
  return 0;
3560
}
3561
_ACEOF
3562
if ac_fn_c_try_compile "$LINENO"; then :
3563
 
3564
else
3565
  ac_c_werror_flag=$ac_save_c_werror_flag
3566
         CFLAGS="-g"
3567
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568
/* end confdefs.h.  */
3569
 
3570
int
3571
main ()
3572
{
3573
 
3574
  ;
3575
  return 0;
3576
}
3577
_ACEOF
3578
if ac_fn_c_try_compile "$LINENO"; then :
3579
  ac_cv_prog_cc_g=yes
3580
fi
3581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582
fi
3583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584
fi
3585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586
   ac_c_werror_flag=$ac_save_c_werror_flag
3587
fi
3588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3589
$as_echo "$ac_cv_prog_cc_g" >&6; }
3590
if test "$ac_test_CFLAGS" = set; then
3591
  CFLAGS=$ac_save_CFLAGS
3592
elif test $ac_cv_prog_cc_g = yes; then
3593
  if test "$GCC" = yes; then
3594
    CFLAGS="-g -O2"
3595
  else
3596
    CFLAGS="-g"
3597
  fi
3598
else
3599
  if test "$GCC" = yes; then
3600
    CFLAGS="-O2"
3601
  else
3602
    CFLAGS=
3603
  fi
3604
fi
3605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3606
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3607
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3608
  $as_echo_n "(cached) " >&6
3609
else
3610
  ac_cv_prog_cc_c89=no
3611
ac_save_CC=$CC
3612
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613
/* end confdefs.h.  */
3614
#include 
3615
#include 
3616
#include 
3617
#include 
3618
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3619
struct buf { int x; };
3620
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621
static char *e (p, i)
3622
     char **p;
3623
     int i;
3624
{
3625
  return p[i];
3626
}
3627
static char *f (char * (*g) (char **, int), char **p, ...)
3628
{
3629
  char *s;
3630
  va_list v;
3631
  va_start (v,p);
3632
  s = g (p, va_arg (v,int));
3633
  va_end (v);
3634
  return s;
3635
}
3636
 
3637
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3638
   function prototypes and stuff, but not '\xHH' hex character constants.
3639
   These don't provoke an error unfortunately, instead are silently treated
3640
   as 'x'.  The following induces an error, until -std is added to get
3641
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3642
   array size at least.  It's necessary to write '\x00'==0 to get something
3643
   that's true only with -std.  */
3644
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645
 
3646
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647
   inside strings and character constants.  */
3648
#define FOO(x) 'x'
3649
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650
 
3651
int test (int i, double x);
3652
struct s1 {int (*f) (int a);};
3653
struct s2 {int (*f) (double a);};
3654
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655
int argc;
3656
char **argv;
3657
int
3658
main ()
3659
{
3660
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3661
  ;
3662
  return 0;
3663
}
3664
_ACEOF
3665
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667
do
3668
  CC="$ac_save_CC $ac_arg"
3669
  if ac_fn_c_try_compile "$LINENO"; then :
3670
  ac_cv_prog_cc_c89=$ac_arg
3671
fi
3672
rm -f core conftest.err conftest.$ac_objext
3673
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3674
done
3675
rm -f conftest.$ac_ext
3676
CC=$ac_save_CC
3677
 
3678
fi
3679
# AC_CACHE_VAL
3680
case "x$ac_cv_prog_cc_c89" in
3681
  x)
3682
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3683
$as_echo "none needed" >&6; } ;;
3684
  xno)
3685
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686
$as_echo "unsupported" >&6; } ;;
3687
  *)
3688
    CC="$CC $ac_cv_prog_cc_c89"
3689
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3690
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3691
esac
3692
if test "x$ac_cv_prog_cc_c89" != xno; then :
3693
 
3694
fi
3695
 
3696
ac_ext=c
3697
ac_cpp='$CPP $CPPFLAGS'
3698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
DEPDIR="${am__leading_dot}deps"
3702
 
3703
ac_config_commands="$ac_config_commands depfiles"
3704
 
3705
 
3706
am_make=${MAKE-make}
3707
cat > confinc << 'END'
3708
am__doit:
3709
        @echo this is the am__doit target
3710
.PHONY: am__doit
3711
END
3712
# If we don't find an include directive, just comment out the code.
3713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3714
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3715
am__include="#"
3716
am__quote=
3717
_am_result=none
3718
# First try GNU make style include.
3719
echo "include confinc" > confmf
3720
# Ignore all kinds of additional output from `make'.
3721
case `$am_make -s -f confmf 2> /dev/null` in #(
3722
*the\ am__doit\ target*)
3723
  am__include=include
3724
  am__quote=
3725
  _am_result=GNU
3726
  ;;
3727
esac
3728
# Now try BSD make style include.
3729
if test "$am__include" = "#"; then
3730
   echo '.include "confinc"' > confmf
3731
   case `$am_make -s -f confmf 2> /dev/null` in #(
3732
   *the\ am__doit\ target*)
3733
     am__include=.include
3734
     am__quote="\""
3735
     _am_result=BSD
3736
     ;;
3737
   esac
3738
fi
3739
 
3740
 
3741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3742
$as_echo "$_am_result" >&6; }
3743
rm -f confinc confmf
3744
 
3745
# Check whether --enable-dependency-tracking was given.
3746
if test "${enable_dependency_tracking+set}" = set; then :
3747
  enableval=$enable_dependency_tracking;
3748
fi
3749
 
3750
if test "x$enable_dependency_tracking" != xno; then
3751
  am_depcomp="$ac_aux_dir/depcomp"
3752
  AMDEPBACKSLASH='\'
3753
fi
3754
 if test "x$enable_dependency_tracking" != xno; then
3755
  AMDEP_TRUE=
3756
  AMDEP_FALSE='#'
3757
else
3758
  AMDEP_TRUE='#'
3759
  AMDEP_FALSE=
3760
fi
3761
 
3762
 
3763
 
3764
depcc="$CC"   am_compiler_list=
3765
 
3766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3767
$as_echo_n "checking dependency style of $depcc... " >&6; }
3768
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3769
  $as_echo_n "(cached) " >&6
3770
else
3771
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3772
  # We make a subdir and do the tests there.  Otherwise we can end up
3773
  # making bogus files that we don't know about and never remove.  For
3774
  # instance it was reported that on HP-UX the gcc test will end up
3775
  # making a dummy file named `D' -- because `-MD' means `put the output
3776
  # in D'.
3777
  mkdir conftest.dir
3778
  # Copy depcomp to subdir because otherwise we won't find it if we're
3779
  # using a relative directory.
3780
  cp "$am_depcomp" conftest.dir
3781
  cd conftest.dir
3782
  # We will build objects and dependencies in a subdirectory because
3783
  # it helps to detect inapplicable dependency modes.  For instance
3784
  # both Tru64's cc and ICC support -MD to output dependencies as a
3785
  # side effect of compilation, but ICC will put the dependencies in
3786
  # the current directory while Tru64 will put them in the object
3787
  # directory.
3788
  mkdir sub
3789
 
3790
  am_cv_CC_dependencies_compiler_type=none
3791
  if test "$am_compiler_list" = ""; then
3792
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3793
  fi
3794
  am__universal=false
3795
  case " $depcc " in #(
3796
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3797
     esac
3798
 
3799
  for depmode in $am_compiler_list; do
3800
    # Setup a source with many dependencies, because some compilers
3801
    # like to wrap large dependency lists on column 80 (with \), and
3802
    # we should not choose a depcomp mode which is confused by this.
3803
    #
3804
    # We need to recreate these files for each test, as the compiler may
3805
    # overwrite some of them when testing with obscure command lines.
3806
    # This happens at least with the AIX C compiler.
3807
    : > sub/conftest.c
3808
    for i in 1 2 3 4 5 6; do
3809
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3810
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3811
      # Solaris 8's {/usr,}/bin/sh.
3812
      touch sub/conftst$i.h
3813
    done
3814
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3815
 
3816
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3817
    # mode.  It turns out that the SunPro C++ compiler does not properly
3818
    # handle `-M -o', and we need to detect this.  Also, some Intel
3819
    # versions had trouble with output in subdirs
3820
    am__obj=sub/conftest.${OBJEXT-o}
3821
    am__minus_obj="-o $am__obj"
3822
    case $depmode in
3823
    gcc)
3824
      # This depmode causes a compiler race in universal mode.
3825
      test "$am__universal" = false || continue
3826
      ;;
3827
    nosideeffect)
3828
      # after this tag, mechanisms are not by side-effect, so they'll
3829
      # only be used when explicitly requested
3830
      if test "x$enable_dependency_tracking" = xyes; then
3831
        continue
3832
      else
3833
        break
3834
      fi
3835
      ;;
3836
    msvisualcpp | msvcmsys)
3837
      # This compiler won't grok `-c -o', but also, the minuso test has
3838
      # not run yet.  These depmodes are late enough in the game, and
3839
      # so weak that their functioning should not be impacted.
3840
      am__obj=conftest.${OBJEXT-o}
3841
      am__minus_obj=
3842
      ;;
3843
    none) break ;;
3844
    esac
3845
    if depmode=$depmode \
3846
       source=sub/conftest.c object=$am__obj \
3847
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3848
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3849
         >/dev/null 2>conftest.err &&
3850
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3851
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3852
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3853
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3854
      # icc doesn't choke on unknown options, it will just issue warnings
3855
      # or remarks (even with -Werror).  So we grep stderr for any message
3856
      # that says an option was ignored or not supported.
3857
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3858
      #   icc: Command line warning: ignoring option '-M'; no argument required
3859
      # The diagnosis changed in icc 8.0:
3860
      #   icc: Command line remark: option '-MP' not supported
3861
      if (grep 'ignoring option' conftest.err ||
3862
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3863
        am_cv_CC_dependencies_compiler_type=$depmode
3864
        break
3865
      fi
3866
    fi
3867
  done
3868
 
3869
  cd ..
3870
  rm -rf conftest.dir
3871
else
3872
  am_cv_CC_dependencies_compiler_type=none
3873
fi
3874
 
3875
fi
3876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3877
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3878
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3879
 
3880
 if
3881
  test "x$enable_dependency_tracking" != xno \
3882
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3883
  am__fastdepCC_TRUE=
3884
  am__fastdepCC_FALSE='#'
3885
else
3886
  am__fastdepCC_TRUE='#'
3887
  am__fastdepCC_FALSE=
3888
fi
3889
 
3890
 
3891
 
3892
 
3893
 
3894
 
3895
if test "x$GCC" != "xyes"; then
3896
  as_fn_error "libssp must be built with GCC" "$LINENO" 5
3897
fi
3898
ac_ext=c
3899
ac_cpp='$CPP $CPPFLAGS'
3900
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3904
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3905
# On Suns, sometimes $CPP names a directory.
3906
if test -n "$CPP" && test -d "$CPP"; then
3907
  CPP=
3908
fi
3909
if test -z "$CPP"; then
3910
  if test "${ac_cv_prog_CPP+set}" = set; then :
3911
  $as_echo_n "(cached) " >&6
3912
else
3913
      # Double quotes because CPP needs to be expanded
3914
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3915
    do
3916
      ac_preproc_ok=false
3917
for ac_c_preproc_warn_flag in '' yes
3918
do
3919
  # Use a header file that comes with gcc, so configuring glibc
3920
  # with a fresh cross-compiler works.
3921
  # Prefer  to  if __STDC__ is defined, since
3922
  #  exists even on freestanding compilers.
3923
  # On the NeXT, cc -E runs the code through the compiler's parser,
3924
  # not just through cpp. "Syntax error" is here to catch this case.
3925
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926
/* end confdefs.h.  */
3927
#ifdef __STDC__
3928
# include 
3929
#else
3930
# include 
3931
#endif
3932
                     Syntax error
3933
_ACEOF
3934
if ac_fn_c_try_cpp "$LINENO"; then :
3935
 
3936
else
3937
  # Broken: fails on valid input.
3938
continue
3939
fi
3940
rm -f conftest.err conftest.$ac_ext
3941
 
3942
  # OK, works on sane cases.  Now check whether nonexistent headers
3943
  # can be detected and how.
3944
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945
/* end confdefs.h.  */
3946
#include 
3947
_ACEOF
3948
if ac_fn_c_try_cpp "$LINENO"; then :
3949
  # Broken: success on invalid input.
3950
continue
3951
else
3952
  # Passes both tests.
3953
ac_preproc_ok=:
3954
break
3955
fi
3956
rm -f conftest.err conftest.$ac_ext
3957
 
3958
done
3959
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960
rm -f conftest.err conftest.$ac_ext
3961
if $ac_preproc_ok; then :
3962
  break
3963
fi
3964
 
3965
    done
3966
    ac_cv_prog_CPP=$CPP
3967
 
3968
fi
3969
  CPP=$ac_cv_prog_CPP
3970
else
3971
  ac_cv_prog_CPP=$CPP
3972
fi
3973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3974
$as_echo "$CPP" >&6; }
3975
ac_preproc_ok=false
3976
for ac_c_preproc_warn_flag in '' yes
3977
do
3978
  # Use a header file that comes with gcc, so configuring glibc
3979
  # with a fresh cross-compiler works.
3980
  # Prefer  to  if __STDC__ is defined, since
3981
  #  exists even on freestanding compilers.
3982
  # On the NeXT, cc -E runs the code through the compiler's parser,
3983
  # not just through cpp. "Syntax error" is here to catch this case.
3984
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985
/* end confdefs.h.  */
3986
#ifdef __STDC__
3987
# include 
3988
#else
3989
# include 
3990
#endif
3991
                     Syntax error
3992
_ACEOF
3993
if ac_fn_c_try_cpp "$LINENO"; then :
3994
 
3995
else
3996
  # Broken: fails on valid input.
3997
continue
3998
fi
3999
rm -f conftest.err conftest.$ac_ext
4000
 
4001
  # OK, works on sane cases.  Now check whether nonexistent headers
4002
  # can be detected and how.
4003
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004
/* end confdefs.h.  */
4005
#include 
4006
_ACEOF
4007
if ac_fn_c_try_cpp "$LINENO"; then :
4008
  # Broken: success on invalid input.
4009
continue
4010
else
4011
  # Passes both tests.
4012
ac_preproc_ok=:
4013
break
4014
fi
4015
rm -f conftest.err conftest.$ac_ext
4016
 
4017
done
4018
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019
rm -f conftest.err conftest.$ac_ext
4020
if $ac_preproc_ok; then :
4021
 
4022
else
4023
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4026
See \`config.log' for more details." "$LINENO" 5; }
4027
fi
4028
 
4029
ac_ext=c
4030
ac_cpp='$CPP $CPPFLAGS'
4031
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
 
4035
 
4036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
4037
$as_echo_n "checking whether -fstack-protector works... " >&6; }
4038
save_CFLAGS="$CFLAGS"
4039
CFLAGS="$CFLAGS -fstack-protector -Werror"
4040
 
4041
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042
/* end confdefs.h.  */
4043
 
4044
void __attribute__((noinline)) bar (char *x)
4045
{
4046
  __builtin_memset (x, 0, 64);
4047
}
4048
int
4049
main ()
4050
{
4051
char buf[64]; bar (buf);
4052
  ;
4053
  return 0;
4054
}
4055
_ACEOF
4056
if ac_fn_c_try_compile "$LINENO"; then :
4057
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058
$as_echo "yes" >&6; }
4059
else
4060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061
$as_echo "no" >&6; }
4062
fi
4063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064
CFLAGS="$save_CFLAGS"
4065
 
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
4067
$as_echo_n "checking whether hidden visibility is supported... " >&6; }
4068
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069
/* end confdefs.h.  */
4070
 
4071
void __attribute__((visibility ("hidden"))) bar (void) {}
4072
int
4073
main ()
4074
{
4075
 
4076
  ;
4077
  return 0;
4078
}
4079
_ACEOF
4080
if ac_fn_c_try_compile "$LINENO"; then :
4081
  ssp_hidden=yes
4082
else
4083
  ssp_hidden=no
4084
fi
4085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
4087
$as_echo "$ssp_hidden" >&6; }
4088
if test x$ssp_hidden = xyes; then
4089
 
4090
$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
4091
 
4092
fi
4093
 
4094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
4095
$as_echo_n "checking whether symbol versioning is supported... " >&6; }
4096
cat > conftest.map <
4097
FOO_1.0 {
4098
  global: *foo*; bar; local: *;
4099
};
4100
EOF
4101
save_LDFLAGS="$LDFLAGS"
4102
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
4103
if test x$gcc_no_link = xyes; then
4104
  # If we cannot link, we cannot build shared libraries, so do not use
4105
  # symbol versioning.
4106
  ssp_use_symver=no
4107
else
4108
  if test x$gcc_no_link = xyes; then
4109
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4110
fi
4111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112
/* end confdefs.h.  */
4113
int foo;
4114
int
4115
main ()
4116
{
4117
 
4118
  ;
4119
  return 0;
4120
}
4121
_ACEOF
4122
if ac_fn_c_try_link "$LINENO"; then :
4123
  ssp_use_symver=yes
4124
else
4125
  ssp_use_symver=no
4126
fi
4127
rm -f core conftest.err conftest.$ac_objext \
4128
    conftest$ac_exeext conftest.$ac_ext
4129
fi
4130
LDFLAGS="$save_LDFLAGS"
4131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
4132
$as_echo "$ssp_use_symver" >&6; }
4133
 if test "x$ssp_use_symver" = xyes; then
4134
  LIBSSP_USE_SYMVER_TRUE=
4135
  LIBSSP_USE_SYMVER_FALSE='#'
4136
else
4137
  LIBSSP_USE_SYMVER_TRUE='#'
4138
  LIBSSP_USE_SYMVER_FALSE=
4139
fi
4140
 
4141
 
4142
 
4143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4144
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4145
if test "${ac_cv_path_GREP+set}" = set; then :
4146
  $as_echo_n "(cached) " >&6
4147
else
4148
  if test -z "$GREP"; then
4149
  ac_path_GREP_found=false
4150
  # Loop through the user's path and test for each of PROGNAME-LIST
4151
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153
do
4154
  IFS=$as_save_IFS
4155
  test -z "$as_dir" && as_dir=.
4156
    for ac_prog in grep ggrep; do
4157
    for ac_exec_ext in '' $ac_executable_extensions; do
4158
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4159
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4160
# Check for GNU ac_path_GREP and select it if it is found.
4161
  # Check for GNU $ac_path_GREP
4162
case `"$ac_path_GREP" --version 2>&1` in
4163
*GNU*)
4164
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4165
*)
4166
  ac_count=0
4167
  $as_echo_n 0123456789 >"conftest.in"
4168
  while :
4169
  do
4170
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4171
    mv "conftest.tmp" "conftest.in"
4172
    cp "conftest.in" "conftest.nl"
4173
    $as_echo 'GREP' >> "conftest.nl"
4174
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4177
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4178
      # Best one so far, save it but keep looking for a better one
4179
      ac_cv_path_GREP="$ac_path_GREP"
4180
      ac_path_GREP_max=$ac_count
4181
    fi
4182
    # 10*(2^10) chars as input seems more than enough
4183
    test $ac_count -gt 10 && break
4184
  done
4185
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186
esac
4187
 
4188
      $ac_path_GREP_found && break 3
4189
    done
4190
  done
4191
  done
4192
IFS=$as_save_IFS
4193
  if test -z "$ac_cv_path_GREP"; then
4194
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195
  fi
4196
else
4197
  ac_cv_path_GREP=$GREP
4198
fi
4199
 
4200
fi
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4202
$as_echo "$ac_cv_path_GREP" >&6; }
4203
 GREP="$ac_cv_path_GREP"
4204
 
4205
 
4206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4207
$as_echo_n "checking for egrep... " >&6; }
4208
if test "${ac_cv_path_EGREP+set}" = set; then :
4209
  $as_echo_n "(cached) " >&6
4210
else
4211
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4212
   then ac_cv_path_EGREP="$GREP -E"
4213
   else
4214
     if test -z "$EGREP"; then
4215
  ac_path_EGREP_found=false
4216
  # Loop through the user's path and test for each of PROGNAME-LIST
4217
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219
do
4220
  IFS=$as_save_IFS
4221
  test -z "$as_dir" && as_dir=.
4222
    for ac_prog in egrep; do
4223
    for ac_exec_ext in '' $ac_executable_extensions; do
4224
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4225
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4226
# Check for GNU ac_path_EGREP and select it if it is found.
4227
  # Check for GNU $ac_path_EGREP
4228
case `"$ac_path_EGREP" --version 2>&1` in
4229
*GNU*)
4230
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4231
*)
4232
  ac_count=0
4233
  $as_echo_n 0123456789 >"conftest.in"
4234
  while :
4235
  do
4236
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4237
    mv "conftest.tmp" "conftest.in"
4238
    cp "conftest.in" "conftest.nl"
4239
    $as_echo 'EGREP' >> "conftest.nl"
4240
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4243
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4244
      # Best one so far, save it but keep looking for a better one
4245
      ac_cv_path_EGREP="$ac_path_EGREP"
4246
      ac_path_EGREP_max=$ac_count
4247
    fi
4248
    # 10*(2^10) chars as input seems more than enough
4249
    test $ac_count -gt 10 && break
4250
  done
4251
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252
esac
4253
 
4254
      $ac_path_EGREP_found && break 3
4255
    done
4256
  done
4257
  done
4258
IFS=$as_save_IFS
4259
  if test -z "$ac_cv_path_EGREP"; then
4260
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261
  fi
4262
else
4263
  ac_cv_path_EGREP=$EGREP
4264
fi
4265
 
4266
   fi
4267
fi
4268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4269
$as_echo "$ac_cv_path_EGREP" >&6; }
4270
 EGREP="$ac_cv_path_EGREP"
4271
 
4272
 
4273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4274
$as_echo_n "checking for ANSI C header files... " >&6; }
4275
if test "${ac_cv_header_stdc+set}" = set; then :
4276
  $as_echo_n "(cached) " >&6
4277
else
4278
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279
/* end confdefs.h.  */
4280
#include 
4281
#include 
4282
#include 
4283
#include 
4284
 
4285
int
4286
main ()
4287
{
4288
 
4289
  ;
4290
  return 0;
4291
}
4292
_ACEOF
4293
if ac_fn_c_try_compile "$LINENO"; then :
4294
  ac_cv_header_stdc=yes
4295
else
4296
  ac_cv_header_stdc=no
4297
fi
4298
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299
 
4300
if test $ac_cv_header_stdc = yes; then
4301
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303
/* end confdefs.h.  */
4304
#include 
4305
 
4306
_ACEOF
4307
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308
  $EGREP "memchr" >/dev/null 2>&1; then :
4309
 
4310
else
4311
  ac_cv_header_stdc=no
4312
fi
4313
rm -f conftest*
4314
 
4315
fi
4316
 
4317
if test $ac_cv_header_stdc = yes; then
4318
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320
/* end confdefs.h.  */
4321
#include 
4322
 
4323
_ACEOF
4324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325
  $EGREP "free" >/dev/null 2>&1; then :
4326
 
4327
else
4328
  ac_cv_header_stdc=no
4329
fi
4330
rm -f conftest*
4331
 
4332
fi
4333
 
4334
if test $ac_cv_header_stdc = yes; then
4335
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4336
  if test "$cross_compiling" = yes; then :
4337
  :
4338
else
4339
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340
/* end confdefs.h.  */
4341
#include 
4342
#include 
4343
#if ((' ' & 0x0FF) == 0x020)
4344
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4345
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346
#else
4347
# define ISLOWER(c) \
4348
                   (('a' <= (c) && (c) <= 'i') \
4349
                     || ('j' <= (c) && (c) <= 'r') \
4350
                     || ('s' <= (c) && (c) <= 'z'))
4351
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4352
#endif
4353
 
4354
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4355
int
4356
main ()
4357
{
4358
  int i;
4359
  for (i = 0; i < 256; i++)
4360
    if (XOR (islower (i), ISLOWER (i))
4361
        || toupper (i) != TOUPPER (i))
4362
      return 2;
4363
  return 0;
4364
}
4365
_ACEOF
4366
if ac_fn_c_try_run "$LINENO"; then :
4367
 
4368
else
4369
  ac_cv_header_stdc=no
4370
fi
4371
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4372
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4373
fi
4374
 
4375
fi
4376
fi
4377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4378
$as_echo "$ac_cv_header_stdc" >&6; }
4379
if test $ac_cv_header_stdc = yes; then
4380
 
4381
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4382
 
4383
fi
4384
 
4385
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4386
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4387
                  inttypes.h stdint.h unistd.h
4388
do :
4389
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4390
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4391
"
4392
eval as_val=\$$as_ac_Header
4393
   if test "x$as_val" = x""yes; then :
4394
  cat >>confdefs.h <<_ACEOF
4395
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396
_ACEOF
4397
 
4398
fi
4399
 
4400
done
4401
 
4402
 
4403
for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
4404
do :
4405
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4406
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4407
eval as_val=\$$as_ac_Header
4408
   if test "x$as_val" = x""yes; then :
4409
  cat >>confdefs.h <<_ACEOF
4410
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4411
_ACEOF
4412
 
4413
fi
4414
 
4415
done
4416
 
4417
 
4418
if test x$gcc_no_link = xyes; then
4419
  # Presume the ISO C functions are available; add target-specific
4420
  # configuration here if required.
4421
  $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
4422
 
4423
  $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
4424
 
4425
else
4426
  for ac_func in mempcpy strncpy strncat
4427
do :
4428
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4429
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4430
eval as_val=\$$as_ac_var
4431
   if test "x$as_val" = x""yes; then :
4432
  cat >>confdefs.h <<_ACEOF
4433
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4434
_ACEOF
4435
 
4436
fi
4437
done
4438
 
4439
fi
4440
 
4441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4442
$as_echo_n "checking whether vsnprintf is usable... " >&6; }
4443
if test "$cross_compiling" = yes; then :
4444
  ssp_have_usable_vsnprintf=undef
4445
else
4446
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447
/* end confdefs.h.  */
4448
 
4449
#include 
4450
#include 
4451
#include 
4452
int foo (char *buf, size_t n, const char *fmt, ...)
4453
{
4454
  va_list ap;
4455
  int ret;
4456
  va_start (ap, fmt);
4457
  ret = vsnprintf (buf, n, fmt, ap);
4458
  va_end (ap);
4459
  return ret;
4460
}
4461
int
4462
main ()
4463
{
4464
char buf[8]; memset (buf, 'A', sizeof (buf));
4465
 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4466
   return 1;
4467
 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4468
  ;
4469
  return 0;
4470
}
4471
_ACEOF
4472
if ac_fn_c_try_run "$LINENO"; then :
4473
  ssp_have_usable_vsnprintf=define
4474
else
4475
  ssp_have_usable_vsnprintf=undef
4476
fi
4477
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4478
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4479
fi
4480
 
4481
if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483
$as_echo "yes" >&6; }
4484
 
4485
$as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
4486
 
4487
else
4488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489
$as_echo "no" >&6; }
4490
fi
4491
 
4492
 
4493
case `pwd` in
4494
  *\ * | *\     *)
4495
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4496
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4497
esac
4498
 
4499
 
4500
 
4501
macro_version='2.2.7a'
4502
macro_revision='1.3134'
4503
 
4504
 
4505
 
4506
 
4507
 
4508
 
4509
 
4510
 
4511
 
4512
 
4513
 
4514
 
4515
 
4516
ltmain="$ac_aux_dir/ltmain.sh"
4517
 
4518
# Backslashify metacharacters that are still active within
4519
# double-quoted strings.
4520
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4521
 
4522
# Same as above, but do not quote variable references.
4523
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4524
 
4525
# Sed substitution to delay expansion of an escaped shell variable in a
4526
# double_quote_subst'ed string.
4527
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4528
 
4529
# Sed substitution to delay expansion of an escaped single quote.
4530
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4531
 
4532
# Sed substitution to avoid accidental globbing in evaled expressions
4533
no_glob_subst='s/\*/\\\*/g'
4534
 
4535
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4536
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4537
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4538
 
4539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4540
$as_echo_n "checking how to print strings... " >&6; }
4541
# Test print first, because it will be a builtin if present.
4542
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4543
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4544
  ECHO='print -r --'
4545
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4546
  ECHO='printf %s\n'
4547
else
4548
  # Use this function as a fallback that always works.
4549
  func_fallback_echo ()
4550
  {
4551
    eval 'cat <<_LTECHO_EOF
4552
$1
4553
_LTECHO_EOF'
4554
  }
4555
  ECHO='func_fallback_echo'
4556
fi
4557
 
4558
# func_echo_all arg...
4559
# Invoke $ECHO with all args, space-separated.
4560
func_echo_all ()
4561
{
4562
    $ECHO ""
4563
}
4564
 
4565
case "$ECHO" in
4566
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4567
$as_echo "printf" >&6; } ;;
4568
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4569
$as_echo "print -r" >&6; } ;;
4570
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4571
$as_echo "cat" >&6; } ;;
4572
esac
4573
 
4574
 
4575
 
4576
 
4577
 
4578
 
4579
 
4580
 
4581
 
4582
 
4583
 
4584
 
4585
 
4586
 
4587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4588
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4589
if test "${ac_cv_path_SED+set}" = set; then :
4590
  $as_echo_n "(cached) " >&6
4591
else
4592
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4593
     for ac_i in 1 2 3 4 5 6 7; do
4594
       ac_script="$ac_script$as_nl$ac_script"
4595
     done
4596
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4597
     { ac_script=; unset ac_script;}
4598
     if test -z "$SED"; then
4599
  ac_path_SED_found=false
4600
  # Loop through the user's path and test for each of PROGNAME-LIST
4601
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602
for as_dir in $PATH
4603
do
4604
  IFS=$as_save_IFS
4605
  test -z "$as_dir" && as_dir=.
4606
    for ac_prog in sed gsed; do
4607
    for ac_exec_ext in '' $ac_executable_extensions; do
4608
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4609
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4610
# Check for GNU ac_path_SED and select it if it is found.
4611
  # Check for GNU $ac_path_SED
4612
case `"$ac_path_SED" --version 2>&1` in
4613
*GNU*)
4614
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4615
*)
4616
  ac_count=0
4617
  $as_echo_n 0123456789 >"conftest.in"
4618
  while :
4619
  do
4620
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4621
    mv "conftest.tmp" "conftest.in"
4622
    cp "conftest.in" "conftest.nl"
4623
    $as_echo '' >> "conftest.nl"
4624
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4625
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4626
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4627
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4628
      # Best one so far, save it but keep looking for a better one
4629
      ac_cv_path_SED="$ac_path_SED"
4630
      ac_path_SED_max=$ac_count
4631
    fi
4632
    # 10*(2^10) chars as input seems more than enough
4633
    test $ac_count -gt 10 && break
4634
  done
4635
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636
esac
4637
 
4638
      $ac_path_SED_found && break 3
4639
    done
4640
  done
4641
  done
4642
IFS=$as_save_IFS
4643
  if test -z "$ac_cv_path_SED"; then
4644
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4645
  fi
4646
else
4647
  ac_cv_path_SED=$SED
4648
fi
4649
 
4650
fi
4651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4652
$as_echo "$ac_cv_path_SED" >&6; }
4653
 SED="$ac_cv_path_SED"
4654
  rm -f conftest.sed
4655
 
4656
test -z "$SED" && SED=sed
4657
Xsed="$SED -e 1s/^X//"
4658
 
4659
 
4660
 
4661
 
4662
 
4663
 
4664
 
4665
 
4666
 
4667
 
4668
 
4669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4670
$as_echo_n "checking for fgrep... " >&6; }
4671
if test "${ac_cv_path_FGREP+set}" = set; then :
4672
  $as_echo_n "(cached) " >&6
4673
else
4674
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4675
   then ac_cv_path_FGREP="$GREP -F"
4676
   else
4677
     if test -z "$FGREP"; then
4678
  ac_path_FGREP_found=false
4679
  # Loop through the user's path and test for each of PROGNAME-LIST
4680
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682
do
4683
  IFS=$as_save_IFS
4684
  test -z "$as_dir" && as_dir=.
4685
    for ac_prog in fgrep; do
4686
    for ac_exec_ext in '' $ac_executable_extensions; do
4687
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4688
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4689
# Check for GNU ac_path_FGREP and select it if it is found.
4690
  # Check for GNU $ac_path_FGREP
4691
case `"$ac_path_FGREP" --version 2>&1` in
4692
*GNU*)
4693
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4694
*)
4695
  ac_count=0
4696
  $as_echo_n 0123456789 >"conftest.in"
4697
  while :
4698
  do
4699
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4700
    mv "conftest.tmp" "conftest.in"
4701
    cp "conftest.in" "conftest.nl"
4702
    $as_echo 'FGREP' >> "conftest.nl"
4703
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4706
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4707
      # Best one so far, save it but keep looking for a better one
4708
      ac_cv_path_FGREP="$ac_path_FGREP"
4709
      ac_path_FGREP_max=$ac_count
4710
    fi
4711
    # 10*(2^10) chars as input seems more than enough
4712
    test $ac_count -gt 10 && break
4713
  done
4714
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715
esac
4716
 
4717
      $ac_path_FGREP_found && break 3
4718
    done
4719
  done
4720
  done
4721
IFS=$as_save_IFS
4722
  if test -z "$ac_cv_path_FGREP"; then
4723
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724
  fi
4725
else
4726
  ac_cv_path_FGREP=$FGREP
4727
fi
4728
 
4729
   fi
4730
fi
4731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4732
$as_echo "$ac_cv_path_FGREP" >&6; }
4733
 FGREP="$ac_cv_path_FGREP"
4734
 
4735
 
4736
test -z "$GREP" && GREP=grep
4737
 
4738
 
4739
 
4740
 
4741
 
4742
 
4743
 
4744
 
4745
 
4746
 
4747
 
4748
 
4749
 
4750
 
4751
 
4752
 
4753
 
4754
 
4755
 
4756
# Check whether --with-gnu-ld was given.
4757
if test "${with_gnu_ld+set}" = set; then :
4758
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4759
else
4760
  with_gnu_ld=no
4761
fi
4762
 
4763
ac_prog=ld
4764
if test "$GCC" = yes; then
4765
  # Check if gcc -print-prog-name=ld gives a path.
4766
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4767
$as_echo_n "checking for ld used by $CC... " >&6; }
4768
  case $host in
4769
  *-*-mingw*)
4770
    # gcc leaves a trailing carriage return which upsets mingw
4771
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4772
  *)
4773
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4774
  esac
4775
  case $ac_prog in
4776
    # Accept absolute paths.
4777
    [\\/]* | ?:[\\/]*)
4778
      re_direlt='/[^/][^/]*/\.\./'
4779
      # Canonicalize the pathname of ld
4780
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4781
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4782
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4783
      done
4784
      test -z "$LD" && LD="$ac_prog"
4785
      ;;
4786
  "")
4787
    # If it fails, then pretend we aren't using GCC.
4788
    ac_prog=ld
4789
    ;;
4790
  *)
4791
    # If it is relative, then search for the first ld in PATH.
4792
    with_gnu_ld=unknown
4793
    ;;
4794
  esac
4795
elif test "$with_gnu_ld" = yes; then
4796
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4797
$as_echo_n "checking for GNU ld... " >&6; }
4798
else
4799
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4800
$as_echo_n "checking for non-GNU ld... " >&6; }
4801
fi
4802
if test "${lt_cv_path_LD+set}" = set; then :
4803
  $as_echo_n "(cached) " >&6
4804
else
4805
  if test -z "$LD"; then
4806
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4807
  for ac_dir in $PATH; do
4808
    IFS="$lt_save_ifs"
4809
    test -z "$ac_dir" && ac_dir=.
4810
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4811
      lt_cv_path_LD="$ac_dir/$ac_prog"
4812
      # Check to see if the program is GNU ld.  I'd rather use --version,
4813
      # but apparently some variants of GNU ld only accept -v.
4814
      # Break only if it was the GNU/non-GNU ld that we prefer.
4815
      case `"$lt_cv_path_LD" -v 2>&1 
4816
      *GNU* | *'with BFD'*)
4817
        test "$with_gnu_ld" != no && break
4818
        ;;
4819
      *)
4820
        test "$with_gnu_ld" != yes && break
4821
        ;;
4822
      esac
4823
    fi
4824
  done
4825
  IFS="$lt_save_ifs"
4826
else
4827
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4828
fi
4829
fi
4830
 
4831
LD="$lt_cv_path_LD"
4832
if test -n "$LD"; then
4833
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4834
$as_echo "$LD" >&6; }
4835
else
4836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837
$as_echo "no" >&6; }
4838
fi
4839
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4841
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4842
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4843
  $as_echo_n "(cached) " >&6
4844
else
4845
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4846
case `$LD -v 2>&1 
4847
*GNU* | *'with BFD'*)
4848
  lt_cv_prog_gnu_ld=yes
4849
  ;;
4850
*)
4851
  lt_cv_prog_gnu_ld=no
4852
  ;;
4853
esac
4854
fi
4855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4856
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4857
with_gnu_ld=$lt_cv_prog_gnu_ld
4858
 
4859
 
4860
 
4861
 
4862
 
4863
 
4864
 
4865
 
4866
 
4867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4868
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4869
if test "${lt_cv_path_NM+set}" = set; then :
4870
  $as_echo_n "(cached) " >&6
4871
else
4872
  if test -n "$NM"; then
4873
  # Let the user override the test.
4874
  lt_cv_path_NM="$NM"
4875
else
4876
  lt_nm_to_check="${ac_tool_prefix}nm"
4877
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4878
    lt_nm_to_check="$lt_nm_to_check nm"
4879
  fi
4880
  for lt_tmp_nm in $lt_nm_to_check; do
4881
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4882
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4883
      IFS="$lt_save_ifs"
4884
      test -z "$ac_dir" && ac_dir=.
4885
      tmp_nm="$ac_dir/$lt_tmp_nm"
4886
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4887
        # Check to see if the nm accepts a BSD-compat flag.
4888
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4889
        #   nm: unknown option "B" ignored
4890
        # Tru64's nm complains that /dev/null is an invalid object file
4891
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4892
        */dev/null* | *'Invalid file or object type'*)
4893
          lt_cv_path_NM="$tmp_nm -B"
4894
          break
4895
          ;;
4896
        *)
4897
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4898
          */dev/null*)
4899
            lt_cv_path_NM="$tmp_nm -p"
4900
            break
4901
            ;;
4902
          *)
4903
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4904
            continue # so that we can try to find one that supports BSD flags
4905
            ;;
4906
          esac
4907
          ;;
4908
        esac
4909
      fi
4910
    done
4911
    IFS="$lt_save_ifs"
4912
  done
4913
  : ${lt_cv_path_NM=no}
4914
fi
4915
fi
4916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4917
$as_echo "$lt_cv_path_NM" >&6; }
4918
if test "$lt_cv_path_NM" != "no"; then
4919
  NM="$lt_cv_path_NM"
4920
else
4921
  # Didn't find any BSD compatible name lister, look for dumpbin.
4922
  if test -n "$DUMPBIN"; then :
4923
    # Let the user override the test.
4924
  else
4925
    if test -n "$ac_tool_prefix"; then
4926
  for ac_prog in dumpbin "link -dump"
4927
  do
4928
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4929
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931
$as_echo_n "checking for $ac_word... " >&6; }
4932
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4933
  $as_echo_n "(cached) " >&6
4934
else
4935
  if test -n "$DUMPBIN"; then
4936
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4937
else
4938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939
for as_dir in $PATH
4940
do
4941
  IFS=$as_save_IFS
4942
  test -z "$as_dir" && as_dir=.
4943
    for ac_exec_ext in '' $ac_executable_extensions; do
4944
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4946
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947
    break 2
4948
  fi
4949
done
4950
  done
4951
IFS=$as_save_IFS
4952
 
4953
fi
4954
fi
4955
DUMPBIN=$ac_cv_prog_DUMPBIN
4956
if test -n "$DUMPBIN"; then
4957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4958
$as_echo "$DUMPBIN" >&6; }
4959
else
4960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961
$as_echo "no" >&6; }
4962
fi
4963
 
4964
 
4965
    test -n "$DUMPBIN" && break
4966
  done
4967
fi
4968
if test -z "$DUMPBIN"; then
4969
  ac_ct_DUMPBIN=$DUMPBIN
4970
  for ac_prog in dumpbin "link -dump"
4971
do
4972
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4973
set dummy $ac_prog; ac_word=$2
4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975
$as_echo_n "checking for $ac_word... " >&6; }
4976
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4977
  $as_echo_n "(cached) " >&6
4978
else
4979
  if test -n "$ac_ct_DUMPBIN"; then
4980
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4981
else
4982
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983
for as_dir in $PATH
4984
do
4985
  IFS=$as_save_IFS
4986
  test -z "$as_dir" && as_dir=.
4987
    for ac_exec_ext in '' $ac_executable_extensions; do
4988
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4990
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991
    break 2
4992
  fi
4993
done
4994
  done
4995
IFS=$as_save_IFS
4996
 
4997
fi
4998
fi
4999
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5000
if test -n "$ac_ct_DUMPBIN"; then
5001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5002
$as_echo "$ac_ct_DUMPBIN" >&6; }
5003
else
5004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005
$as_echo "no" >&6; }
5006
fi
5007
 
5008
 
5009
  test -n "$ac_ct_DUMPBIN" && break
5010
done
5011
 
5012
  if test "x$ac_ct_DUMPBIN" = x; then
5013
    DUMPBIN=":"
5014
  else
5015
    case $cross_compiling:$ac_tool_warned in
5016
yes:)
5017
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019
ac_tool_warned=yes ;;
5020
esac
5021
    DUMPBIN=$ac_ct_DUMPBIN
5022
  fi
5023
fi
5024
 
5025
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5026
    *COFF*)
5027
      DUMPBIN="$DUMPBIN -symbols"
5028
      ;;
5029
    *)
5030
      DUMPBIN=:
5031
      ;;
5032
    esac
5033
  fi
5034
 
5035
  if test "$DUMPBIN" != ":"; then
5036
    NM="$DUMPBIN"
5037
  fi
5038
fi
5039
test -z "$NM" && NM=nm
5040
 
5041
 
5042
 
5043
 
5044
 
5045
 
5046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5047
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5048
if test "${lt_cv_nm_interface+set}" = set; then :
5049
  $as_echo_n "(cached) " >&6
5050
else
5051
  lt_cv_nm_interface="BSD nm"
5052
  echo "int some_variable = 0;" > conftest.$ac_ext
5053
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5054
  (eval "$ac_compile" 2>conftest.err)
5055
  cat conftest.err >&5
5056
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5057
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5058
  cat conftest.err >&5
5059
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5060
  cat conftest.out >&5
5061
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5062
    lt_cv_nm_interface="MS dumpbin"
5063
  fi
5064
  rm -f conftest*
5065
fi
5066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5067
$as_echo "$lt_cv_nm_interface" >&6; }
5068
 
5069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5070
$as_echo_n "checking whether ln -s works... " >&6; }
5071
LN_S=$as_ln_s
5072
if test "$LN_S" = "ln -s"; then
5073
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5074
$as_echo "yes" >&6; }
5075
else
5076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5077
$as_echo "no, using $LN_S" >&6; }
5078
fi
5079
 
5080
# find the maximum length of command line arguments
5081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5082
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5083
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5084
  $as_echo_n "(cached) " >&6
5085
else
5086
    i=0
5087
  teststring="ABCD"
5088
 
5089
  case $build_os in
5090
  msdosdjgpp*)
5091
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5092
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5093
    # during glob expansion).  Even if it were fixed, the result of this
5094
    # check would be larger than it should be.
5095
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5096
    ;;
5097
 
5098
  gnu*)
5099
    # Under GNU Hurd, this test is not required because there is
5100
    # no limit to the length of command line arguments.
5101
    # Libtool will interpret -1 as no limit whatsoever
5102
    lt_cv_sys_max_cmd_len=-1;
5103
    ;;
5104
 
5105
  cygwin* | mingw* | cegcc*)
5106
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5107
    # about 5 minutes as the teststring grows exponentially.
5108
    # Worse, since 9x/ME are not pre-emptively multitasking,
5109
    # you end up with a "frozen" computer, even though with patience
5110
    # the test eventually succeeds (with a max line length of 256k).
5111
    # Instead, let's just punt: use the minimum linelength reported by
5112
    # all of the supported platforms: 8192 (on NT/2K/XP).
5113
    lt_cv_sys_max_cmd_len=8192;
5114
    ;;
5115
 
5116
  mint*)
5117
    # On MiNT this can take a long time and run out of memory.
5118
    lt_cv_sys_max_cmd_len=8192;
5119
    ;;
5120
 
5121
  amigaos*)
5122
    # On AmigaOS with pdksh, this test takes hours, literally.
5123
    # So we just punt and use a minimum line length of 8192.
5124
    lt_cv_sys_max_cmd_len=8192;
5125
    ;;
5126
 
5127
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5128
    # This has been around since 386BSD, at least.  Likely further.
5129
    if test -x /sbin/sysctl; then
5130
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5131
    elif test -x /usr/sbin/sysctl; then
5132
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5133
    else
5134
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5135
    fi
5136
    # And add a safety zone
5137
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5138
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5139
    ;;
5140
 
5141
  interix*)
5142
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5143
    lt_cv_sys_max_cmd_len=196608
5144
    ;;
5145
 
5146
  osf*)
5147
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5148
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5149
    # nice to cause kernel panics so lets avoid the loop below.
5150
    # First set a reasonable default.
5151
    lt_cv_sys_max_cmd_len=16384
5152
    #
5153
    if test -x /sbin/sysconfig; then
5154
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5155
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5156
      esac
5157
    fi
5158
    ;;
5159
  sco3.2v5*)
5160
    lt_cv_sys_max_cmd_len=102400
5161
    ;;
5162
  sysv5* | sco5v6* | sysv4.2uw2*)
5163
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5164
    if test -n "$kargmax"; then
5165
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5166
    else
5167
      lt_cv_sys_max_cmd_len=32768
5168
    fi
5169
    ;;
5170
  *)
5171
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5172
    if test -n "$lt_cv_sys_max_cmd_len"; then
5173
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5174
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5175
    else
5176
      # Make teststring a little bigger before we do anything with it.
5177
      # a 1K string should be a reasonable start.
5178
      for i in 1 2 3 4 5 6 7 8 ; do
5179
        teststring=$teststring$teststring
5180
      done
5181
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5182
      # If test is not a shell built-in, we'll probably end up computing a
5183
      # maximum length that is only half of the actual maximum length, but
5184
      # we can't tell.
5185
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5186
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5187
              test $i != 17 # 1/2 MB should be enough
5188
      do
5189
        i=`expr $i + 1`
5190
        teststring=$teststring$teststring
5191
      done
5192
      # Only check the string length outside the loop.
5193
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5194
      teststring=
5195
      # Add a significant safety factor because C++ compilers can tack on
5196
      # massive amounts of additional arguments before passing them to the
5197
      # linker.  It appears as though 1/2 is a usable value.
5198
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5199
    fi
5200
    ;;
5201
  esac
5202
 
5203
fi
5204
 
5205
if test -n $lt_cv_sys_max_cmd_len ; then
5206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5207
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5208
else
5209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5210
$as_echo "none" >&6; }
5211
fi
5212
max_cmd_len=$lt_cv_sys_max_cmd_len
5213
 
5214
 
5215
 
5216
 
5217
 
5218
 
5219
: ${CP="cp -f"}
5220
: ${MV="mv -f"}
5221
: ${RM="rm -f"}
5222
 
5223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5224
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5225
# Try some XSI features
5226
xsi_shell=no
5227
( _lt_dummy="a/b/c"
5228
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5229
      = c,a/b,, \
5230
    && eval 'test $(( 1 + 1 )) -eq 2 \
5231
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5232
  && xsi_shell=yes
5233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5234
$as_echo "$xsi_shell" >&6; }
5235
 
5236
 
5237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5238
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5239
lt_shell_append=no
5240
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5241
    >/dev/null 2>&1 \
5242
  && lt_shell_append=yes
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5244
$as_echo "$lt_shell_append" >&6; }
5245
 
5246
 
5247
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5248
  lt_unset=unset
5249
else
5250
  lt_unset=false
5251
fi
5252
 
5253
 
5254
 
5255
 
5256
 
5257
# test EBCDIC or ASCII
5258
case `echo X|tr X '\101'` in
5259
 A) # ASCII based system
5260
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5261
  lt_SP2NL='tr \040 \012'
5262
  lt_NL2SP='tr \015\012 \040\040'
5263
  ;;
5264
 *) # EBCDIC based system
5265
  lt_SP2NL='tr \100 \n'
5266
  lt_NL2SP='tr \r\n \100\100'
5267
  ;;
5268
esac
5269
 
5270
 
5271
 
5272
 
5273
 
5274
 
5275
 
5276
 
5277
 
5278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5279
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5280
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5281
  $as_echo_n "(cached) " >&6
5282
else
5283
  lt_cv_ld_reload_flag='-r'
5284
fi
5285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5286
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5287
reload_flag=$lt_cv_ld_reload_flag
5288
case $reload_flag in
5289
"" | " "*) ;;
5290
*) reload_flag=" $reload_flag" ;;
5291
esac
5292
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5293
case $host_os in
5294
  darwin*)
5295
    if test "$GCC" = yes; then
5296
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5297
    else
5298
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5299
    fi
5300
    ;;
5301
esac
5302
 
5303
 
5304
 
5305
 
5306
 
5307
 
5308
 
5309
 
5310
 
5311
if test -n "$ac_tool_prefix"; then
5312
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5313
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315
$as_echo_n "checking for $ac_word... " >&6; }
5316
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5317
  $as_echo_n "(cached) " >&6
5318
else
5319
  if test -n "$OBJDUMP"; then
5320
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5321
else
5322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323
for as_dir in $PATH
5324
do
5325
  IFS=$as_save_IFS
5326
  test -z "$as_dir" && as_dir=.
5327
    for ac_exec_ext in '' $ac_executable_extensions; do
5328
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5330
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331
    break 2
5332
  fi
5333
done
5334
  done
5335
IFS=$as_save_IFS
5336
 
5337
fi
5338
fi
5339
OBJDUMP=$ac_cv_prog_OBJDUMP
5340
if test -n "$OBJDUMP"; then
5341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5342
$as_echo "$OBJDUMP" >&6; }
5343
else
5344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345
$as_echo "no" >&6; }
5346
fi
5347
 
5348
 
5349
fi
5350
if test -z "$ac_cv_prog_OBJDUMP"; then
5351
  ac_ct_OBJDUMP=$OBJDUMP
5352
  # Extract the first word of "objdump", so it can be a program name with args.
5353
set dummy objdump; ac_word=$2
5354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355
$as_echo_n "checking for $ac_word... " >&6; }
5356
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5357
  $as_echo_n "(cached) " >&6
5358
else
5359
  if test -n "$ac_ct_OBJDUMP"; then
5360
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5361
else
5362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363
for as_dir in $PATH
5364
do
5365
  IFS=$as_save_IFS
5366
  test -z "$as_dir" && as_dir=.
5367
    for ac_exec_ext in '' $ac_executable_extensions; do
5368
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5370
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371
    break 2
5372
  fi
5373
done
5374
  done
5375
IFS=$as_save_IFS
5376
 
5377
fi
5378
fi
5379
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5380
if test -n "$ac_ct_OBJDUMP"; then
5381
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5382
$as_echo "$ac_ct_OBJDUMP" >&6; }
5383
else
5384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385
$as_echo "no" >&6; }
5386
fi
5387
 
5388
  if test "x$ac_ct_OBJDUMP" = x; then
5389
    OBJDUMP="false"
5390
  else
5391
    case $cross_compiling:$ac_tool_warned in
5392
yes:)
5393
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395
ac_tool_warned=yes ;;
5396
esac
5397
    OBJDUMP=$ac_ct_OBJDUMP
5398
  fi
5399
else
5400
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5401
fi
5402
 
5403
test -z "$OBJDUMP" && OBJDUMP=objdump
5404
 
5405
 
5406
 
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5414
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5415
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5416
  $as_echo_n "(cached) " >&6
5417
else
5418
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5419
lt_cv_file_magic_test_file=
5420
lt_cv_deplibs_check_method='unknown'
5421
# Need to set the preceding variable on all platforms that support
5422
# interlibrary dependencies.
5423
# 'none' -- dependencies not supported.
5424
# `unknown' -- same as none, but documents that we really don't know.
5425
# 'pass_all' -- all dependencies passed with no checks.
5426
# 'test_compile' -- check by making test program.
5427
# 'file_magic [[regex]]' -- check by looking for files in library path
5428
# which responds to the $file_magic_cmd with a given extended regex.
5429
# If you have `file' or equivalent on your system and you're not sure
5430
# whether `pass_all' will *always* work, you probably want this one.
5431
 
5432
case $host_os in
5433
aix[4-9]*)
5434
  lt_cv_deplibs_check_method=pass_all
5435
  ;;
5436
 
5437
beos*)
5438
  lt_cv_deplibs_check_method=pass_all
5439
  ;;
5440
 
5441
bsdi[45]*)
5442
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5443
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5444
  lt_cv_file_magic_test_file=/shlib/libc.so
5445
  ;;
5446
 
5447
cygwin*)
5448
  # func_win32_libid is a shell function defined in ltmain.sh
5449
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5450
  lt_cv_file_magic_cmd='func_win32_libid'
5451
  ;;
5452
 
5453
mingw* | pw32*)
5454
  # Base MSYS/MinGW do not provide the 'file' command needed by
5455
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5456
  # unless we find 'file', for example because we are cross-compiling.
5457
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5458
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5459
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5460
    lt_cv_file_magic_cmd='func_win32_libid'
5461
  else
5462
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5463
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5464
  fi
5465
  ;;
5466
 
5467
cegcc*)
5468
  # use the weaker test based on 'objdump'. See mingw*.
5469
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5470
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5471
  ;;
5472
 
5473
darwin* | rhapsody*)
5474
  lt_cv_deplibs_check_method=pass_all
5475
  ;;
5476
 
5477
freebsd* | dragonfly*)
5478
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5479
    case $host_cpu in
5480
    i*86 )
5481
      # Not sure whether the presence of OpenBSD here was a mistake.
5482
      # Let's accept both of them until this is cleared up.
5483
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5484
      lt_cv_file_magic_cmd=/usr/bin/file
5485
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5486
      ;;
5487
    esac
5488
  else
5489
    lt_cv_deplibs_check_method=pass_all
5490
  fi
5491
  ;;
5492
 
5493
gnu*)
5494
  lt_cv_deplibs_check_method=pass_all
5495
  ;;
5496
 
5497
haiku*)
5498
  lt_cv_deplibs_check_method=pass_all
5499
  ;;
5500
 
5501
hpux10.20* | hpux11*)
5502
  lt_cv_file_magic_cmd=/usr/bin/file
5503
  case $host_cpu in
5504
  ia64*)
5505
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5506
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5507
    ;;
5508
  hppa*64*)
5509
    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]'
5510
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5511
    ;;
5512
  *)
5513
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5514
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5515
    ;;
5516
  esac
5517
  ;;
5518
 
5519
interix[3-9]*)
5520
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5521
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5522
  ;;
5523
 
5524
irix5* | irix6* | nonstopux*)
5525
  case $LD in
5526
  *-32|*"-32 ") libmagic=32-bit;;
5527
  *-n32|*"-n32 ") libmagic=N32;;
5528
  *-64|*"-64 ") libmagic=64-bit;;
5529
  *) libmagic=never-match;;
5530
  esac
5531
  lt_cv_deplibs_check_method=pass_all
5532
  ;;
5533
 
5534
# This must be Linux ELF.
5535
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5536
  lt_cv_deplibs_check_method=pass_all
5537
  ;;
5538
 
5539
netbsd*)
5540
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5542
  else
5543
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5544
  fi
5545
  ;;
5546
 
5547
newos6*)
5548
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5549
  lt_cv_file_magic_cmd=/usr/bin/file
5550
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5551
  ;;
5552
 
5553
*nto* | *qnx*)
5554
  lt_cv_deplibs_check_method=pass_all
5555
  ;;
5556
 
5557
openbsd*)
5558
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5559
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5560
  else
5561
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5562
  fi
5563
  ;;
5564
 
5565
osf3* | osf4* | osf5*)
5566
  lt_cv_deplibs_check_method=pass_all
5567
  ;;
5568
 
5569
rdos*)
5570
  lt_cv_deplibs_check_method=pass_all
5571
  ;;
5572
 
5573
solaris*)
5574
  lt_cv_deplibs_check_method=pass_all
5575
  ;;
5576
 
5577
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5578
  lt_cv_deplibs_check_method=pass_all
5579
  ;;
5580
 
5581
sysv4 | sysv4.3*)
5582
  case $host_vendor in
5583
  motorola)
5584
    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]'
5585
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5586
    ;;
5587
  ncr)
5588
    lt_cv_deplibs_check_method=pass_all
5589
    ;;
5590
  sequent)
5591
    lt_cv_file_magic_cmd='/bin/file'
5592
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5593
    ;;
5594
  sni)
5595
    lt_cv_file_magic_cmd='/bin/file'
5596
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5597
    lt_cv_file_magic_test_file=/lib/libc.so
5598
    ;;
5599
  siemens)
5600
    lt_cv_deplibs_check_method=pass_all
5601
    ;;
5602
  pc)
5603
    lt_cv_deplibs_check_method=pass_all
5604
    ;;
5605
  esac
5606
  ;;
5607
 
5608
tpf*)
5609
  lt_cv_deplibs_check_method=pass_all
5610
  ;;
5611
esac
5612
 
5613
fi
5614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5615
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5616
file_magic_cmd=$lt_cv_file_magic_cmd
5617
deplibs_check_method=$lt_cv_deplibs_check_method
5618
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5619
 
5620
 
5621
 
5622
 
5623
 
5624
 
5625
 
5626
 
5627
 
5628
 
5629
 
5630
 
5631
if test -n "$ac_tool_prefix"; then
5632
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5633
set dummy ${ac_tool_prefix}ar; ac_word=$2
5634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635
$as_echo_n "checking for $ac_word... " >&6; }
5636
if test "${ac_cv_prog_AR+set}" = set; then :
5637
  $as_echo_n "(cached) " >&6
5638
else
5639
  if test -n "$AR"; then
5640
  ac_cv_prog_AR="$AR" # Let the user override the test.
5641
else
5642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643
for as_dir in $PATH
5644
do
5645
  IFS=$as_save_IFS
5646
  test -z "$as_dir" && as_dir=.
5647
    for ac_exec_ext in '' $ac_executable_extensions; do
5648
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5650
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651
    break 2
5652
  fi
5653
done
5654
  done
5655
IFS=$as_save_IFS
5656
 
5657
fi
5658
fi
5659
AR=$ac_cv_prog_AR
5660
if test -n "$AR"; then
5661
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5662
$as_echo "$AR" >&6; }
5663
else
5664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665
$as_echo "no" >&6; }
5666
fi
5667
 
5668
 
5669
fi
5670
if test -z "$ac_cv_prog_AR"; then
5671
  ac_ct_AR=$AR
5672
  # Extract the first word of "ar", so it can be a program name with args.
5673
set dummy ar; ac_word=$2
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675
$as_echo_n "checking for $ac_word... " >&6; }
5676
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5677
  $as_echo_n "(cached) " >&6
5678
else
5679
  if test -n "$ac_ct_AR"; then
5680
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5681
else
5682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683
for as_dir in $PATH
5684
do
5685
  IFS=$as_save_IFS
5686
  test -z "$as_dir" && as_dir=.
5687
    for ac_exec_ext in '' $ac_executable_extensions; do
5688
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689
    ac_cv_prog_ac_ct_AR="ar"
5690
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691
    break 2
5692
  fi
5693
done
5694
  done
5695
IFS=$as_save_IFS
5696
 
5697
fi
5698
fi
5699
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5700
if test -n "$ac_ct_AR"; then
5701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5702
$as_echo "$ac_ct_AR" >&6; }
5703
else
5704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705
$as_echo "no" >&6; }
5706
fi
5707
 
5708
  if test "x$ac_ct_AR" = x; then
5709
    AR="false"
5710
  else
5711
    case $cross_compiling:$ac_tool_warned in
5712
yes:)
5713
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715
ac_tool_warned=yes ;;
5716
esac
5717
    AR=$ac_ct_AR
5718
  fi
5719
else
5720
  AR="$ac_cv_prog_AR"
5721
fi
5722
 
5723
test -z "$AR" && AR=ar
5724
test -z "$AR_FLAGS" && AR_FLAGS=cru
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
if test -n "$ac_tool_prefix"; then
5737
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5738
set dummy ${ac_tool_prefix}strip; ac_word=$2
5739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740
$as_echo_n "checking for $ac_word... " >&6; }
5741
if test "${ac_cv_prog_STRIP+set}" = set; then :
5742
  $as_echo_n "(cached) " >&6
5743
else
5744
  if test -n "$STRIP"; then
5745
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5746
else
5747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748
for as_dir in $PATH
5749
do
5750
  IFS=$as_save_IFS
5751
  test -z "$as_dir" && as_dir=.
5752
    for ac_exec_ext in '' $ac_executable_extensions; do
5753
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5755
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756
    break 2
5757
  fi
5758
done
5759
  done
5760
IFS=$as_save_IFS
5761
 
5762
fi
5763
fi
5764
STRIP=$ac_cv_prog_STRIP
5765
if test -n "$STRIP"; then
5766
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5767
$as_echo "$STRIP" >&6; }
5768
else
5769
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770
$as_echo "no" >&6; }
5771
fi
5772
 
5773
 
5774
fi
5775
if test -z "$ac_cv_prog_STRIP"; then
5776
  ac_ct_STRIP=$STRIP
5777
  # Extract the first word of "strip", so it can be a program name with args.
5778
set dummy strip; ac_word=$2
5779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780
$as_echo_n "checking for $ac_word... " >&6; }
5781
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5782
  $as_echo_n "(cached) " >&6
5783
else
5784
  if test -n "$ac_ct_STRIP"; then
5785
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5786
else
5787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788
for as_dir in $PATH
5789
do
5790
  IFS=$as_save_IFS
5791
  test -z "$as_dir" && as_dir=.
5792
    for ac_exec_ext in '' $ac_executable_extensions; do
5793
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5794
    ac_cv_prog_ac_ct_STRIP="strip"
5795
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796
    break 2
5797
  fi
5798
done
5799
  done
5800
IFS=$as_save_IFS
5801
 
5802
fi
5803
fi
5804
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5805
if test -n "$ac_ct_STRIP"; then
5806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5807
$as_echo "$ac_ct_STRIP" >&6; }
5808
else
5809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810
$as_echo "no" >&6; }
5811
fi
5812
 
5813
  if test "x$ac_ct_STRIP" = x; then
5814
    STRIP=":"
5815
  else
5816
    case $cross_compiling:$ac_tool_warned in
5817
yes:)
5818
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5819
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5820
ac_tool_warned=yes ;;
5821
esac
5822
    STRIP=$ac_ct_STRIP
5823
  fi
5824
else
5825
  STRIP="$ac_cv_prog_STRIP"
5826
fi
5827
 
5828
test -z "$STRIP" && STRIP=:
5829
 
5830
 
5831
 
5832
 
5833
 
5834
 
5835
if test -n "$ac_tool_prefix"; then
5836
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5837
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839
$as_echo_n "checking for $ac_word... " >&6; }
5840
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5841
  $as_echo_n "(cached) " >&6
5842
else
5843
  if test -n "$RANLIB"; then
5844
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5845
else
5846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847
for as_dir in $PATH
5848
do
5849
  IFS=$as_save_IFS
5850
  test -z "$as_dir" && as_dir=.
5851
    for ac_exec_ext in '' $ac_executable_extensions; do
5852
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5854
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855
    break 2
5856
  fi
5857
done
5858
  done
5859
IFS=$as_save_IFS
5860
 
5861
fi
5862
fi
5863
RANLIB=$ac_cv_prog_RANLIB
5864
if test -n "$RANLIB"; then
5865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5866
$as_echo "$RANLIB" >&6; }
5867
else
5868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869
$as_echo "no" >&6; }
5870
fi
5871
 
5872
 
5873
fi
5874
if test -z "$ac_cv_prog_RANLIB"; then
5875
  ac_ct_RANLIB=$RANLIB
5876
  # Extract the first word of "ranlib", so it can be a program name with args.
5877
set dummy ranlib; ac_word=$2
5878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879
$as_echo_n "checking for $ac_word... " >&6; }
5880
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5881
  $as_echo_n "(cached) " >&6
5882
else
5883
  if test -n "$ac_ct_RANLIB"; then
5884
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5885
else
5886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887
for as_dir in $PATH
5888
do
5889
  IFS=$as_save_IFS
5890
  test -z "$as_dir" && as_dir=.
5891
    for ac_exec_ext in '' $ac_executable_extensions; do
5892
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5894
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895
    break 2
5896
  fi
5897
done
5898
  done
5899
IFS=$as_save_IFS
5900
 
5901
fi
5902
fi
5903
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5904
if test -n "$ac_ct_RANLIB"; then
5905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5906
$as_echo "$ac_ct_RANLIB" >&6; }
5907
else
5908
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909
$as_echo "no" >&6; }
5910
fi
5911
 
5912
  if test "x$ac_ct_RANLIB" = x; then
5913
    RANLIB=":"
5914
  else
5915
    case $cross_compiling:$ac_tool_warned in
5916
yes:)
5917
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919
ac_tool_warned=yes ;;
5920
esac
5921
    RANLIB=$ac_ct_RANLIB
5922
  fi
5923
else
5924
  RANLIB="$ac_cv_prog_RANLIB"
5925
fi
5926
 
5927
test -z "$RANLIB" && RANLIB=:
5928
 
5929
 
5930
 
5931
 
5932
 
5933
 
5934
# Determine commands to create old-style static archives.
5935
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5936
old_postinstall_cmds='chmod 644 $oldlib'
5937
old_postuninstall_cmds=
5938
 
5939
if test -n "$RANLIB"; then
5940
  case $host_os in
5941
  openbsd*)
5942
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5943
    ;;
5944
  *)
5945
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5946
    ;;
5947
  esac
5948
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5949
fi
5950
 
5951
case $host_os in
5952
  darwin*)
5953
    lock_old_archive_extraction=yes ;;
5954
  *)
5955
    lock_old_archive_extraction=no ;;
5956
esac
5957
 
5958
 
5959
 
5960
 
5961
 
5962
 
5963
 
5964
 
5965
 
5966
 
5967
 
5968
 
5969
 
5970
 
5971
 
5972
 
5973
 
5974
 
5975
 
5976
 
5977
 
5978
 
5979
 
5980
 
5981
 
5982
 
5983
 
5984
 
5985
 
5986
 
5987
 
5988
 
5989
 
5990
 
5991
 
5992
 
5993
 
5994
 
5995
 
5996
# If no C compiler was specified, use CC.
5997
LTCC=${LTCC-"$CC"}
5998
 
5999
# If no C compiler flags were specified, use CFLAGS.
6000
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6001
 
6002
# Allow CC to be a program name with arguments.
6003
compiler=$CC
6004
 
6005
 
6006
# Check for command to grab the raw symbol name followed by C symbol from nm.
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6008
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6009
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6010
  $as_echo_n "(cached) " >&6
6011
else
6012
 
6013
# These are sane defaults that work on at least a few old systems.
6014
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6015
 
6016
# Character class describing NM global symbol codes.
6017
symcode='[BCDEGRST]'
6018
 
6019
# Regexp to match symbols that can be accessed directly from C.
6020
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6021
 
6022
# Define system-specific variables.
6023
case $host_os in
6024
aix*)
6025
  symcode='[BCDT]'
6026
  ;;
6027
cygwin* | mingw* | pw32* | cegcc*)
6028
  symcode='[ABCDGISTW]'
6029
  ;;
6030
hpux*)
6031
  if test "$host_cpu" = ia64; then
6032
    symcode='[ABCDEGRST]'
6033
  fi
6034
  ;;
6035
irix* | nonstopux*)
6036
  symcode='[BCDEGRST]'
6037
  ;;
6038
osf*)
6039
  symcode='[BCDEGQRST]'
6040
  ;;
6041
solaris*)
6042
  symcode='[BDRT]'
6043
  ;;
6044
sco3.2v5*)
6045
  symcode='[DT]'
6046
  ;;
6047
sysv4.2uw2*)
6048
  symcode='[DT]'
6049
  ;;
6050
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6051
  symcode='[ABDT]'
6052
  ;;
6053
sysv4)
6054
  symcode='[DFNSTU]'
6055
  ;;
6056
esac
6057
 
6058
# If we're using GNU nm, then use its standard symbol codes.
6059
case `$NM -V 2>&1` in
6060
*GNU* | *'with BFD'*)
6061
  symcode='[ABCDGIRSTW]' ;;
6062
esac
6063
 
6064
# Transform an extracted symbol line into a proper C declaration.
6065
# Some systems (esp. on ia64) link data and code symbols differently,
6066
# so use this general approach.
6067
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6068
 
6069
# Transform an extracted symbol line into symbol name and symbol address
6070
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6071
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'"
6072
 
6073
# Handle CRLF in mingw tool chain
6074
opt_cr=
6075
case $build_os in
6076
mingw*)
6077
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6078
  ;;
6079
esac
6080
 
6081
# Try without a prefix underscore, then with it.
6082
for ac_symprfx in "" "_"; do
6083
 
6084
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6085
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6086
 
6087
  # Write the raw and C identifiers.
6088
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6089
    # Fake it for dumpbin and say T for any non-static function
6090
    # and D for any global variable.
6091
    # Also find C++ and __fastcall symbols from MSVC++,
6092
    # which start with @ or ?.
6093
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6094
"     {last_section=section; section=\$ 3};"\
6095
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6096
"     \$ 0!~/External *\|/{next};"\
6097
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6098
"     {if(hide[section]) next};"\
6099
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6100
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6101
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6102
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6103
"     ' prfx=^$ac_symprfx"
6104
  else
6105
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6106
  fi
6107
 
6108
  # Check to see that the pipe works correctly.
6109
  pipe_works=no
6110
 
6111
  rm -f conftest*
6112
  cat > conftest.$ac_ext <<_LT_EOF
6113
#ifdef __cplusplus
6114
extern "C" {
6115
#endif
6116
char nm_test_var;
6117
void nm_test_func(void);
6118
void nm_test_func(void){}
6119
#ifdef __cplusplus
6120
}
6121
#endif
6122
int main(){nm_test_var='a';nm_test_func();return(0);}
6123
_LT_EOF
6124
 
6125
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6126
  (eval $ac_compile) 2>&5
6127
  ac_status=$?
6128
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129
  test $ac_status = 0; }; then
6130
    # Now try to grab the symbols.
6131
    nlist=conftest.nm
6132
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6133
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6134
  ac_status=$?
6135
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136
  test $ac_status = 0; } && test -s "$nlist"; then
6137
      # Try sorting and uniquifying the output.
6138
      if sort "$nlist" | uniq > "$nlist"T; then
6139
        mv -f "$nlist"T "$nlist"
6140
      else
6141
        rm -f "$nlist"T
6142
      fi
6143
 
6144
      # Make sure that we snagged all the symbols we need.
6145
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6146
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6147
          cat <<_LT_EOF > conftest.$ac_ext
6148
#ifdef __cplusplus
6149
extern "C" {
6150
#endif
6151
 
6152
_LT_EOF
6153
          # Now generate the symbol file.
6154
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6155
 
6156
          cat <<_LT_EOF >> conftest.$ac_ext
6157
 
6158
/* The mapping between symbol names and symbols.  */
6159
const struct {
6160
  const char *name;
6161
  void       *address;
6162
}
6163
lt__PROGRAM__LTX_preloaded_symbols[] =
6164
{
6165
  { "@PROGRAM@", (void *) 0 },
6166
_LT_EOF
6167
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6168
          cat <<\_LT_EOF >> conftest.$ac_ext
6169
  {0, (void *) 0}
6170
};
6171
 
6172
/* This works around a problem in FreeBSD linker */
6173
#ifdef FREEBSD_WORKAROUND
6174
static const void *lt_preloaded_setup() {
6175
  return lt__PROGRAM__LTX_preloaded_symbols;
6176
}
6177
#endif
6178
 
6179
#ifdef __cplusplus
6180
}
6181
#endif
6182
_LT_EOF
6183
          # Now try linking the two files.
6184
          mv conftest.$ac_objext conftstm.$ac_objext
6185
          lt_save_LIBS="$LIBS"
6186
          lt_save_CFLAGS="$CFLAGS"
6187
          LIBS="conftstm.$ac_objext"
6188
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6189
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6190
  (eval $ac_link) 2>&5
6191
  ac_status=$?
6192
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6194
            pipe_works=yes
6195
          fi
6196
          LIBS="$lt_save_LIBS"
6197
          CFLAGS="$lt_save_CFLAGS"
6198
        else
6199
          echo "cannot find nm_test_func in $nlist" >&5
6200
        fi
6201
      else
6202
        echo "cannot find nm_test_var in $nlist" >&5
6203
      fi
6204
    else
6205
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6206
    fi
6207
  else
6208
    echo "$progname: failed program was:" >&5
6209
    cat conftest.$ac_ext >&5
6210
  fi
6211
  rm -rf conftest* conftst*
6212
 
6213
  # Do not use the global_symbol_pipe unless it works.
6214
  if test "$pipe_works" = yes; then
6215
    break
6216
  else
6217
    lt_cv_sys_global_symbol_pipe=
6218
  fi
6219
done
6220
 
6221
fi
6222
 
6223
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6224
  lt_cv_sys_global_symbol_to_cdecl=
6225
fi
6226
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6228
$as_echo "failed" >&6; }
6229
else
6230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6231
$as_echo "ok" >&6; }
6232
fi
6233
 
6234
 
6235
 
6236
 
6237
 
6238
 
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
 
6252
 
6253
 
6254
 
6255
# Check whether --enable-libtool-lock was given.
6256
if test "${enable_libtool_lock+set}" = set; then :
6257
  enableval=$enable_libtool_lock;
6258
fi
6259
 
6260
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6261
 
6262
# Some flags need to be propagated to the compiler or linker for good
6263
# libtool support.
6264
case $host in
6265
ia64-*-hpux*)
6266
  # Find out which ABI we are using.
6267
  echo 'int i;' > conftest.$ac_ext
6268
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6269
  (eval $ac_compile) 2>&5
6270
  ac_status=$?
6271
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272
  test $ac_status = 0; }; then
6273
    case `/usr/bin/file conftest.$ac_objext` in
6274
      *ELF-32*)
6275
        HPUX_IA64_MODE="32"
6276
        ;;
6277
      *ELF-64*)
6278
        HPUX_IA64_MODE="64"
6279
        ;;
6280
    esac
6281
  fi
6282
  rm -rf conftest*
6283
  ;;
6284
*-*-irix6*)
6285
  # Find out which ABI we are using.
6286
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6287
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6288
  (eval $ac_compile) 2>&5
6289
  ac_status=$?
6290
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291
  test $ac_status = 0; }; then
6292
    if test "$lt_cv_prog_gnu_ld" = yes; then
6293
      case `/usr/bin/file conftest.$ac_objext` in
6294
        *32-bit*)
6295
          LD="${LD-ld} -melf32bsmip"
6296
          ;;
6297
        *N32*)
6298
          LD="${LD-ld} -melf32bmipn32"
6299
          ;;
6300
        *64-bit*)
6301
          LD="${LD-ld} -melf64bmip"
6302
        ;;
6303
      esac
6304
    else
6305
      case `/usr/bin/file conftest.$ac_objext` in
6306
        *32-bit*)
6307
          LD="${LD-ld} -32"
6308
          ;;
6309
        *N32*)
6310
          LD="${LD-ld} -n32"
6311
          ;;
6312
        *64-bit*)
6313
          LD="${LD-ld} -64"
6314
          ;;
6315
      esac
6316
    fi
6317
  fi
6318
  rm -rf conftest*
6319
  ;;
6320
 
6321
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6322
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6323
  # Find out which ABI we are using.
6324
  echo 'int i;' > conftest.$ac_ext
6325
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6326
  (eval $ac_compile) 2>&5
6327
  ac_status=$?
6328
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329
  test $ac_status = 0; }; then
6330
    case `/usr/bin/file conftest.o` in
6331
      *32-bit*)
6332
        case $host in
6333
          x86_64-*kfreebsd*-gnu)
6334
            LD="${LD-ld} -m elf_i386_fbsd"
6335
            ;;
6336
          x86_64-*linux*)
6337
            LD="${LD-ld} -m elf_i386"
6338
            ;;
6339
          ppc64-*linux*|powerpc64-*linux*)
6340
            LD="${LD-ld} -m elf32ppclinux"
6341
            ;;
6342
          s390x-*linux*)
6343
            LD="${LD-ld} -m elf_s390"
6344
            ;;
6345
          sparc64-*linux*)
6346
            LD="${LD-ld} -m elf32_sparc"
6347
            ;;
6348
        esac
6349
        ;;
6350
      *64-bit*)
6351
        case $host in
6352
          x86_64-*kfreebsd*-gnu)
6353
            LD="${LD-ld} -m elf_x86_64_fbsd"
6354
            ;;
6355
          x86_64-*linux*)
6356
            LD="${LD-ld} -m elf_x86_64"
6357
            ;;
6358
          ppc*-*linux*|powerpc*-*linux*)
6359
            LD="${LD-ld} -m elf64ppc"
6360
            ;;
6361
          s390*-*linux*|s390*-*tpf*)
6362
            LD="${LD-ld} -m elf64_s390"
6363
            ;;
6364
          sparc*-*linux*)
6365
            LD="${LD-ld} -m elf64_sparc"
6366
            ;;
6367
        esac
6368
        ;;
6369
    esac
6370
  fi
6371
  rm -rf conftest*
6372
  ;;
6373
 
6374
*-*-sco3.2v5*)
6375
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6376
  SAVE_CFLAGS="$CFLAGS"
6377
  CFLAGS="$CFLAGS -belf"
6378
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6379
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6380
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6381
  $as_echo_n "(cached) " >&6
6382
else
6383
  ac_ext=c
6384
ac_cpp='$CPP $CPPFLAGS'
6385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
 
6389
     if test x$gcc_no_link = xyes; then
6390
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6391
fi
6392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393
/* end confdefs.h.  */
6394
 
6395
int
6396
main ()
6397
{
6398
 
6399
  ;
6400
  return 0;
6401
}
6402
_ACEOF
6403
if ac_fn_c_try_link "$LINENO"; then :
6404
  lt_cv_cc_needs_belf=yes
6405
else
6406
  lt_cv_cc_needs_belf=no
6407
fi
6408
rm -f core conftest.err conftest.$ac_objext \
6409
    conftest$ac_exeext conftest.$ac_ext
6410
     ac_ext=c
6411
ac_cpp='$CPP $CPPFLAGS'
6412
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415
 
6416
fi
6417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6418
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6419
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6420
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6421
    CFLAGS="$SAVE_CFLAGS"
6422
  fi
6423
  ;;
6424
sparc*-*solaris*)
6425
  # Find out which ABI we are using.
6426
  echo 'int i;' > conftest.$ac_ext
6427
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6428
  (eval $ac_compile) 2>&5
6429
  ac_status=$?
6430
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431
  test $ac_status = 0; }; then
6432
    case `/usr/bin/file conftest.o` in
6433
    *64-bit*)
6434
      case $lt_cv_prog_gnu_ld in
6435
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6436
      *)
6437
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6438
          LD="${LD-ld} -64"
6439
        fi
6440
        ;;
6441
      esac
6442
      ;;
6443
    esac
6444
  fi
6445
  rm -rf conftest*
6446
  ;;
6447
esac
6448
 
6449
need_locks="$enable_libtool_lock"
6450
 
6451
 
6452
  case $host_os in
6453
    rhapsody* | darwin*)
6454
    if test -n "$ac_tool_prefix"; then
6455
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6456
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458
$as_echo_n "checking for $ac_word... " >&6; }
6459
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6460
  $as_echo_n "(cached) " >&6
6461
else
6462
  if test -n "$DSYMUTIL"; then
6463
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6464
else
6465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466
for as_dir in $PATH
6467
do
6468
  IFS=$as_save_IFS
6469
  test -z "$as_dir" && as_dir=.
6470
    for ac_exec_ext in '' $ac_executable_extensions; do
6471
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6473
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474
    break 2
6475
  fi
6476
done
6477
  done
6478
IFS=$as_save_IFS
6479
 
6480
fi
6481
fi
6482
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6483
if test -n "$DSYMUTIL"; then
6484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6485
$as_echo "$DSYMUTIL" >&6; }
6486
else
6487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488
$as_echo "no" >&6; }
6489
fi
6490
 
6491
 
6492
fi
6493
if test -z "$ac_cv_prog_DSYMUTIL"; then
6494
  ac_ct_DSYMUTIL=$DSYMUTIL
6495
  # Extract the first word of "dsymutil", so it can be a program name with args.
6496
set dummy dsymutil; ac_word=$2
6497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498
$as_echo_n "checking for $ac_word... " >&6; }
6499
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6500
  $as_echo_n "(cached) " >&6
6501
else
6502
  if test -n "$ac_ct_DSYMUTIL"; then
6503
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6504
else
6505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506
for as_dir in $PATH
6507
do
6508
  IFS=$as_save_IFS
6509
  test -z "$as_dir" && as_dir=.
6510
    for ac_exec_ext in '' $ac_executable_extensions; do
6511
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6513
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514
    break 2
6515
  fi
6516
done
6517
  done
6518
IFS=$as_save_IFS
6519
 
6520
fi
6521
fi
6522
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6523
if test -n "$ac_ct_DSYMUTIL"; then
6524
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6525
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6526
else
6527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528
$as_echo "no" >&6; }
6529
fi
6530
 
6531
  if test "x$ac_ct_DSYMUTIL" = x; then
6532
    DSYMUTIL=":"
6533
  else
6534
    case $cross_compiling:$ac_tool_warned in
6535
yes:)
6536
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538
ac_tool_warned=yes ;;
6539
esac
6540
    DSYMUTIL=$ac_ct_DSYMUTIL
6541
  fi
6542
else
6543
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6544
fi
6545
 
6546
    if test -n "$ac_tool_prefix"; then
6547
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6548
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550
$as_echo_n "checking for $ac_word... " >&6; }
6551
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6552
  $as_echo_n "(cached) " >&6
6553
else
6554
  if test -n "$NMEDIT"; then
6555
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6556
else
6557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558
for as_dir in $PATH
6559
do
6560
  IFS=$as_save_IFS
6561
  test -z "$as_dir" && as_dir=.
6562
    for ac_exec_ext in '' $ac_executable_extensions; do
6563
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6565
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566
    break 2
6567
  fi
6568
done
6569
  done
6570
IFS=$as_save_IFS
6571
 
6572
fi
6573
fi
6574
NMEDIT=$ac_cv_prog_NMEDIT
6575
if test -n "$NMEDIT"; then
6576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6577
$as_echo "$NMEDIT" >&6; }
6578
else
6579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580
$as_echo "no" >&6; }
6581
fi
6582
 
6583
 
6584
fi
6585
if test -z "$ac_cv_prog_NMEDIT"; then
6586
  ac_ct_NMEDIT=$NMEDIT
6587
  # Extract the first word of "nmedit", so it can be a program name with args.
6588
set dummy nmedit; ac_word=$2
6589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590
$as_echo_n "checking for $ac_word... " >&6; }
6591
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6592
  $as_echo_n "(cached) " >&6
6593
else
6594
  if test -n "$ac_ct_NMEDIT"; then
6595
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6596
else
6597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598
for as_dir in $PATH
6599
do
6600
  IFS=$as_save_IFS
6601
  test -z "$as_dir" && as_dir=.
6602
    for ac_exec_ext in '' $ac_executable_extensions; do
6603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6605
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606
    break 2
6607
  fi
6608
done
6609
  done
6610
IFS=$as_save_IFS
6611
 
6612
fi
6613
fi
6614
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6615
if test -n "$ac_ct_NMEDIT"; then
6616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6617
$as_echo "$ac_ct_NMEDIT" >&6; }
6618
else
6619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620
$as_echo "no" >&6; }
6621
fi
6622
 
6623
  if test "x$ac_ct_NMEDIT" = x; then
6624
    NMEDIT=":"
6625
  else
6626
    case $cross_compiling:$ac_tool_warned in
6627
yes:)
6628
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6629
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630
ac_tool_warned=yes ;;
6631
esac
6632
    NMEDIT=$ac_ct_NMEDIT
6633
  fi
6634
else
6635
  NMEDIT="$ac_cv_prog_NMEDIT"
6636
fi
6637
 
6638
    if test -n "$ac_tool_prefix"; then
6639
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6640
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642
$as_echo_n "checking for $ac_word... " >&6; }
6643
if test "${ac_cv_prog_LIPO+set}" = set; then :
6644
  $as_echo_n "(cached) " >&6
6645
else
6646
  if test -n "$LIPO"; then
6647
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6648
else
6649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650
for as_dir in $PATH
6651
do
6652
  IFS=$as_save_IFS
6653
  test -z "$as_dir" && as_dir=.
6654
    for ac_exec_ext in '' $ac_executable_extensions; do
6655
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6657
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658
    break 2
6659
  fi
6660
done
6661
  done
6662
IFS=$as_save_IFS
6663
 
6664
fi
6665
fi
6666
LIPO=$ac_cv_prog_LIPO
6667
if test -n "$LIPO"; then
6668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6669
$as_echo "$LIPO" >&6; }
6670
else
6671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672
$as_echo "no" >&6; }
6673
fi
6674
 
6675
 
6676
fi
6677
if test -z "$ac_cv_prog_LIPO"; then
6678
  ac_ct_LIPO=$LIPO
6679
  # Extract the first word of "lipo", so it can be a program name with args.
6680
set dummy lipo; ac_word=$2
6681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682
$as_echo_n "checking for $ac_word... " >&6; }
6683
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6684
  $as_echo_n "(cached) " >&6
6685
else
6686
  if test -n "$ac_ct_LIPO"; then
6687
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6688
else
6689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690
for as_dir in $PATH
6691
do
6692
  IFS=$as_save_IFS
6693
  test -z "$as_dir" && as_dir=.
6694
    for ac_exec_ext in '' $ac_executable_extensions; do
6695
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696
    ac_cv_prog_ac_ct_LIPO="lipo"
6697
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698
    break 2
6699
  fi
6700
done
6701
  done
6702
IFS=$as_save_IFS
6703
 
6704
fi
6705
fi
6706
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6707
if test -n "$ac_ct_LIPO"; then
6708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6709
$as_echo "$ac_ct_LIPO" >&6; }
6710
else
6711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712
$as_echo "no" >&6; }
6713
fi
6714
 
6715
  if test "x$ac_ct_LIPO" = x; then
6716
    LIPO=":"
6717
  else
6718
    case $cross_compiling:$ac_tool_warned in
6719
yes:)
6720
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6721
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722
ac_tool_warned=yes ;;
6723
esac
6724
    LIPO=$ac_ct_LIPO
6725
  fi
6726
else
6727
  LIPO="$ac_cv_prog_LIPO"
6728
fi
6729
 
6730
    if test -n "$ac_tool_prefix"; then
6731
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6732
set dummy ${ac_tool_prefix}otool; ac_word=$2
6733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734
$as_echo_n "checking for $ac_word... " >&6; }
6735
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6736
  $as_echo_n "(cached) " >&6
6737
else
6738
  if test -n "$OTOOL"; then
6739
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6740
else
6741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742
for as_dir in $PATH
6743
do
6744
  IFS=$as_save_IFS
6745
  test -z "$as_dir" && as_dir=.
6746
    for ac_exec_ext in '' $ac_executable_extensions; do
6747
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6749
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750
    break 2
6751
  fi
6752
done
6753
  done
6754
IFS=$as_save_IFS
6755
 
6756
fi
6757
fi
6758
OTOOL=$ac_cv_prog_OTOOL
6759
if test -n "$OTOOL"; then
6760
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6761
$as_echo "$OTOOL" >&6; }
6762
else
6763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764
$as_echo "no" >&6; }
6765
fi
6766
 
6767
 
6768
fi
6769
if test -z "$ac_cv_prog_OTOOL"; then
6770
  ac_ct_OTOOL=$OTOOL
6771
  # Extract the first word of "otool", so it can be a program name with args.
6772
set dummy otool; ac_word=$2
6773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774
$as_echo_n "checking for $ac_word... " >&6; }
6775
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6776
  $as_echo_n "(cached) " >&6
6777
else
6778
  if test -n "$ac_ct_OTOOL"; then
6779
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6780
else
6781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782
for as_dir in $PATH
6783
do
6784
  IFS=$as_save_IFS
6785
  test -z "$as_dir" && as_dir=.
6786
    for ac_exec_ext in '' $ac_executable_extensions; do
6787
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788
    ac_cv_prog_ac_ct_OTOOL="otool"
6789
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790
    break 2
6791
  fi
6792
done
6793
  done
6794
IFS=$as_save_IFS
6795
 
6796
fi
6797
fi
6798
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6799
if test -n "$ac_ct_OTOOL"; then
6800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6801
$as_echo "$ac_ct_OTOOL" >&6; }
6802
else
6803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804
$as_echo "no" >&6; }
6805
fi
6806
 
6807
  if test "x$ac_ct_OTOOL" = x; then
6808
    OTOOL=":"
6809
  else
6810
    case $cross_compiling:$ac_tool_warned in
6811
yes:)
6812
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814
ac_tool_warned=yes ;;
6815
esac
6816
    OTOOL=$ac_ct_OTOOL
6817
  fi
6818
else
6819
  OTOOL="$ac_cv_prog_OTOOL"
6820
fi
6821
 
6822
    if test -n "$ac_tool_prefix"; then
6823
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6824
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826
$as_echo_n "checking for $ac_word... " >&6; }
6827
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6828
  $as_echo_n "(cached) " >&6
6829
else
6830
  if test -n "$OTOOL64"; then
6831
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6832
else
6833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834
for as_dir in $PATH
6835
do
6836
  IFS=$as_save_IFS
6837
  test -z "$as_dir" && as_dir=.
6838
    for ac_exec_ext in '' $ac_executable_extensions; do
6839
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6841
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842
    break 2
6843
  fi
6844
done
6845
  done
6846
IFS=$as_save_IFS
6847
 
6848
fi
6849
fi
6850
OTOOL64=$ac_cv_prog_OTOOL64
6851
if test -n "$OTOOL64"; then
6852
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6853
$as_echo "$OTOOL64" >&6; }
6854
else
6855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856
$as_echo "no" >&6; }
6857
fi
6858
 
6859
 
6860
fi
6861
if test -z "$ac_cv_prog_OTOOL64"; then
6862
  ac_ct_OTOOL64=$OTOOL64
6863
  # Extract the first word of "otool64", so it can be a program name with args.
6864
set dummy otool64; ac_word=$2
6865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866
$as_echo_n "checking for $ac_word... " >&6; }
6867
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6868
  $as_echo_n "(cached) " >&6
6869
else
6870
  if test -n "$ac_ct_OTOOL64"; then
6871
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6872
else
6873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874
for as_dir in $PATH
6875
do
6876
  IFS=$as_save_IFS
6877
  test -z "$as_dir" && as_dir=.
6878
    for ac_exec_ext in '' $ac_executable_extensions; do
6879
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6881
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882
    break 2
6883
  fi
6884
done
6885
  done
6886
IFS=$as_save_IFS
6887
 
6888
fi
6889
fi
6890
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6891
if test -n "$ac_ct_OTOOL64"; then
6892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6893
$as_echo "$ac_ct_OTOOL64" >&6; }
6894
else
6895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896
$as_echo "no" >&6; }
6897
fi
6898
 
6899
  if test "x$ac_ct_OTOOL64" = x; then
6900
    OTOOL64=":"
6901
  else
6902
    case $cross_compiling:$ac_tool_warned in
6903
yes:)
6904
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906
ac_tool_warned=yes ;;
6907
esac
6908
    OTOOL64=$ac_ct_OTOOL64
6909
  fi
6910
else
6911
  OTOOL64="$ac_cv_prog_OTOOL64"
6912
fi
6913
 
6914
 
6915
 
6916
 
6917
 
6918
 
6919
 
6920
 
6921
 
6922
 
6923
 
6924
 
6925
 
6926
 
6927
 
6928
 
6929
 
6930
 
6931
 
6932
 
6933
 
6934
 
6935
 
6936
 
6937
 
6938
 
6939
 
6940
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6941
$as_echo_n "checking for -single_module linker flag... " >&6; }
6942
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6943
  $as_echo_n "(cached) " >&6
6944
else
6945
  lt_cv_apple_cc_single_mod=no
6946
      if test -z "${LT_MULTI_MODULE}"; then
6947
        # By default we will add the -single_module flag. You can override
6948
        # by either setting the environment variable LT_MULTI_MODULE
6949
        # non-empty at configure time, or by adding -multi_module to the
6950
        # link flags.
6951
        rm -rf libconftest.dylib*
6952
        echo "int foo(void){return 1;}" > conftest.c
6953
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6954
-dynamiclib -Wl,-single_module conftest.c" >&5
6955
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6956
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6957
        _lt_result=$?
6958
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6959
          lt_cv_apple_cc_single_mod=yes
6960
        else
6961
          cat conftest.err >&5
6962
        fi
6963
        rm -rf libconftest.dylib*
6964
        rm -f conftest.*
6965
      fi
6966
fi
6967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6968
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6969
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6970
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6971
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6972
  $as_echo_n "(cached) " >&6
6973
else
6974
  lt_cv_ld_exported_symbols_list=no
6975
      save_LDFLAGS=$LDFLAGS
6976
      echo "_main" > conftest.sym
6977
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6978
      if test x$gcc_no_link = xyes; then
6979
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6980
fi
6981
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982
/* end confdefs.h.  */
6983
 
6984
int
6985
main ()
6986
{
6987
 
6988
  ;
6989
  return 0;
6990
}
6991
_ACEOF
6992
if ac_fn_c_try_link "$LINENO"; then :
6993
  lt_cv_ld_exported_symbols_list=yes
6994
else
6995
  lt_cv_ld_exported_symbols_list=no
6996
fi
6997
rm -f core conftest.err conftest.$ac_objext \
6998
    conftest$ac_exeext conftest.$ac_ext
6999
        LDFLAGS="$save_LDFLAGS"
7000
 
7001
fi
7002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7003
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7004
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7005
$as_echo_n "checking for -force_load linker flag... " >&6; }
7006
if test "${lt_cv_ld_force_load+set}" = set; then :
7007
  $as_echo_n "(cached) " >&6
7008
else
7009
  lt_cv_ld_force_load=no
7010
      cat > conftest.c << _LT_EOF
7011
int forced_loaded() { return 2;}
7012
_LT_EOF
7013
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7014
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7015
      echo "$AR cru libconftest.a conftest.o" >&5
7016
      $AR cru libconftest.a conftest.o 2>&5
7017
      cat > conftest.c << _LT_EOF
7018
int main() { return 0;}
7019
_LT_EOF
7020
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7021
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7022
      _lt_result=$?
7023
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7024
        lt_cv_ld_force_load=yes
7025
      else
7026
        cat conftest.err >&5
7027
      fi
7028
        rm -f conftest.err libconftest.a conftest conftest.c
7029
        rm -rf conftest.dSYM
7030
 
7031
fi
7032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7033
$as_echo "$lt_cv_ld_force_load" >&6; }
7034
    case $host_os in
7035
    rhapsody* | darwin1.[012])
7036
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7037
    darwin1.*)
7038
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7039
    darwin*) # darwin 5.x on
7040
      # if running on 10.5 or later, the deployment target defaults
7041
      # to the OS version, if on x86, and 10.4, the deployment
7042
      # target defaults to 10.4. Don't you love it?
7043
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7044
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7045
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7046
        10.[012]*)
7047
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7048
        10.*)
7049
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7050
      esac
7051
    ;;
7052
  esac
7053
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7054
      _lt_dar_single_mod='$single_module'
7055
    fi
7056
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7057
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7058
    else
7059
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7060
    fi
7061
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7062
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7063
    else
7064
      _lt_dsymutil=
7065
    fi
7066
    ;;
7067
  esac
7068
 
7069
for ac_header in dlfcn.h
7070
do :
7071
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7072
"
7073
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7074
  cat >>confdefs.h <<_ACEOF
7075
#define HAVE_DLFCN_H 1
7076
_ACEOF
7077
 
7078
fi
7079
 
7080
done
7081
 
7082
 
7083
 
7084
 
7085
 
7086
# Set options
7087
 
7088
 
7089
 
7090
        enable_dlopen=no
7091
 
7092
 
7093
  enable_win32_dll=no
7094
 
7095
 
7096
            # Check whether --enable-shared was given.
7097
if test "${enable_shared+set}" = set; then :
7098
  enableval=$enable_shared; p=${PACKAGE-default}
7099
    case $enableval in
7100
    yes) enable_shared=yes ;;
7101
    no) enable_shared=no ;;
7102
    *)
7103
      enable_shared=no
7104
      # Look at the argument we got.  We use all the common list separators.
7105
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7106
      for pkg in $enableval; do
7107
        IFS="$lt_save_ifs"
7108
        if test "X$pkg" = "X$p"; then
7109
          enable_shared=yes
7110
        fi
7111
      done
7112
      IFS="$lt_save_ifs"
7113
      ;;
7114
    esac
7115
else
7116
  enable_shared=yes
7117
fi
7118
 
7119
 
7120
 
7121
 
7122
 
7123
 
7124
 
7125
 
7126
 
7127
  # Check whether --enable-static was given.
7128
if test "${enable_static+set}" = set; then :
7129
  enableval=$enable_static; p=${PACKAGE-default}
7130
    case $enableval in
7131
    yes) enable_static=yes ;;
7132
    no) enable_static=no ;;
7133
    *)
7134
     enable_static=no
7135
      # Look at the argument we got.  We use all the common list separators.
7136
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7137
      for pkg in $enableval; do
7138
        IFS="$lt_save_ifs"
7139
        if test "X$pkg" = "X$p"; then
7140
          enable_static=yes
7141
        fi
7142
      done
7143
      IFS="$lt_save_ifs"
7144
      ;;
7145
    esac
7146
else
7147
  enable_static=yes
7148
fi
7149
 
7150
 
7151
 
7152
 
7153
 
7154
 
7155
 
7156
 
7157
 
7158
 
7159
# Check whether --with-pic was given.
7160
if test "${with_pic+set}" = set; then :
7161
  withval=$with_pic; pic_mode="$withval"
7162
else
7163
  pic_mode=default
7164
fi
7165
 
7166
 
7167
test -z "$pic_mode" && pic_mode=default
7168
 
7169
 
7170
 
7171
 
7172
 
7173
 
7174
 
7175
  # Check whether --enable-fast-install was given.
7176
if test "${enable_fast_install+set}" = set; then :
7177
  enableval=$enable_fast_install; p=${PACKAGE-default}
7178
    case $enableval in
7179
    yes) enable_fast_install=yes ;;
7180
    no) enable_fast_install=no ;;
7181
    *)
7182
      enable_fast_install=no
7183
      # Look at the argument we got.  We use all the common list separators.
7184
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7185
      for pkg in $enableval; do
7186
        IFS="$lt_save_ifs"
7187
        if test "X$pkg" = "X$p"; then
7188
          enable_fast_install=yes
7189
        fi
7190
      done
7191
      IFS="$lt_save_ifs"
7192
      ;;
7193
    esac
7194
else
7195
  enable_fast_install=yes
7196
fi
7197
 
7198
 
7199
 
7200
 
7201
 
7202
 
7203
 
7204
 
7205
 
7206
 
7207
 
7208
# This can be used to rebuild libtool when needed
7209
LIBTOOL_DEPS="$ltmain"
7210
 
7211
# Always use our own libtool.
7212
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7213
 
7214
 
7215
 
7216
 
7217
 
7218
 
7219
 
7220
 
7221
 
7222
 
7223
 
7224
 
7225
 
7226
 
7227
 
7228
 
7229
 
7230
 
7231
 
7232
 
7233
 
7234
 
7235
 
7236
 
7237
 
7238
 
7239
test -z "$LN_S" && LN_S="ln -s"
7240
 
7241
 
7242
 
7243
 
7244
 
7245
 
7246
 
7247
 
7248
 
7249
 
7250
 
7251
 
7252
 
7253
 
7254
if test -n "${ZSH_VERSION+set}" ; then
7255
   setopt NO_GLOB_SUBST
7256
fi
7257
 
7258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7259
$as_echo_n "checking for objdir... " >&6; }
7260
if test "${lt_cv_objdir+set}" = set; then :
7261
  $as_echo_n "(cached) " >&6
7262
else
7263
  rm -f .libs 2>/dev/null
7264
mkdir .libs 2>/dev/null
7265
if test -d .libs; then
7266
  lt_cv_objdir=.libs
7267
else
7268
  # MS-DOS does not allow filenames that begin with a dot.
7269
  lt_cv_objdir=_libs
7270
fi
7271
rmdir .libs 2>/dev/null
7272
fi
7273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7274
$as_echo "$lt_cv_objdir" >&6; }
7275
objdir=$lt_cv_objdir
7276
 
7277
 
7278
 
7279
 
7280
 
7281
cat >>confdefs.h <<_ACEOF
7282
#define LT_OBJDIR "$lt_cv_objdir/"
7283
_ACEOF
7284
 
7285
 
7286
 
7287
 
7288
case $host_os in
7289
aix3*)
7290
  # AIX sometimes has problems with the GCC collect2 program.  For some
7291
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7292
  # vanish in a puff of smoke.
7293
  if test "X${COLLECT_NAMES+set}" != Xset; then
7294
    COLLECT_NAMES=
7295
    export COLLECT_NAMES
7296
  fi
7297
  ;;
7298
esac
7299
 
7300
# Global variables:
7301
ofile=libtool
7302
can_build_shared=yes
7303
 
7304
# All known linkers require a `.a' archive for static linking (except MSVC,
7305
# which needs '.lib').
7306
libext=a
7307
 
7308
with_gnu_ld="$lt_cv_prog_gnu_ld"
7309
 
7310
old_CC="$CC"
7311
old_CFLAGS="$CFLAGS"
7312
 
7313
# Set sane defaults for various variables
7314
test -z "$CC" && CC=cc
7315
test -z "$LTCC" && LTCC=$CC
7316
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7317
test -z "$LD" && LD=ld
7318
test -z "$ac_objext" && ac_objext=o
7319
 
7320
for cc_temp in $compiler""; do
7321
  case $cc_temp in
7322
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7323
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7324
    \-*) ;;
7325
    *) break;;
7326
  esac
7327
done
7328
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7329
 
7330
 
7331
# Only perform the check for file, if the check method requires it
7332
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7333
case $deplibs_check_method in
7334
file_magic*)
7335
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7336
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7337
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7338
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7339
  $as_echo_n "(cached) " >&6
7340
else
7341
  case $MAGIC_CMD in
7342
[\\/*] |  ?:[\\/]*)
7343
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7344
  ;;
7345
*)
7346
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7347
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7348
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7349
  for ac_dir in $ac_dummy; do
7350
    IFS="$lt_save_ifs"
7351
    test -z "$ac_dir" && ac_dir=.
7352
    if test -f $ac_dir/${ac_tool_prefix}file; then
7353
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7354
      if test -n "$file_magic_test_file"; then
7355
        case $deplibs_check_method in
7356
        "file_magic "*)
7357
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7358
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7359
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7360
            $EGREP "$file_magic_regex" > /dev/null; then
7361
            :
7362
          else
7363
            cat <<_LT_EOF 1>&2
7364
 
7365
*** Warning: the command libtool uses to detect shared libraries,
7366
*** $file_magic_cmd, produces output that libtool cannot recognize.
7367
*** The result is that libtool may fail to recognize shared libraries
7368
*** as such.  This will affect the creation of libtool libraries that
7369
*** depend on shared libraries, but programs linked with such libtool
7370
*** libraries will work regardless of this problem.  Nevertheless, you
7371
*** may want to report the problem to your system manager and/or to
7372
*** bug-libtool@gnu.org
7373
 
7374
_LT_EOF
7375
          fi ;;
7376
        esac
7377
      fi
7378
      break
7379
    fi
7380
  done
7381
  IFS="$lt_save_ifs"
7382
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7383
  ;;
7384
esac
7385
fi
7386
 
7387
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7388
if test -n "$MAGIC_CMD"; then
7389
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7390
$as_echo "$MAGIC_CMD" >&6; }
7391
else
7392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393
$as_echo "no" >&6; }
7394
fi
7395
 
7396
 
7397
 
7398
 
7399
 
7400
if test -z "$lt_cv_path_MAGIC_CMD"; then
7401
  if test -n "$ac_tool_prefix"; then
7402
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7403
$as_echo_n "checking for file... " >&6; }
7404
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7405
  $as_echo_n "(cached) " >&6
7406
else
7407
  case $MAGIC_CMD in
7408
[\\/*] |  ?:[\\/]*)
7409
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7410
  ;;
7411
*)
7412
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7413
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7414
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7415
  for ac_dir in $ac_dummy; do
7416
    IFS="$lt_save_ifs"
7417
    test -z "$ac_dir" && ac_dir=.
7418
    if test -f $ac_dir/file; then
7419
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7420
      if test -n "$file_magic_test_file"; then
7421
        case $deplibs_check_method in
7422
        "file_magic "*)
7423
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7424
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7426
            $EGREP "$file_magic_regex" > /dev/null; then
7427
            :
7428
          else
7429
            cat <<_LT_EOF 1>&2
7430
 
7431
*** Warning: the command libtool uses to detect shared libraries,
7432
*** $file_magic_cmd, produces output that libtool cannot recognize.
7433
*** The result is that libtool may fail to recognize shared libraries
7434
*** as such.  This will affect the creation of libtool libraries that
7435
*** depend on shared libraries, but programs linked with such libtool
7436
*** libraries will work regardless of this problem.  Nevertheless, you
7437
*** may want to report the problem to your system manager and/or to
7438
*** bug-libtool@gnu.org
7439
 
7440
_LT_EOF
7441
          fi ;;
7442
        esac
7443
      fi
7444
      break
7445
    fi
7446
  done
7447
  IFS="$lt_save_ifs"
7448
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7449
  ;;
7450
esac
7451
fi
7452
 
7453
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7454
if test -n "$MAGIC_CMD"; then
7455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7456
$as_echo "$MAGIC_CMD" >&6; }
7457
else
7458
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459
$as_echo "no" >&6; }
7460
fi
7461
 
7462
 
7463
  else
7464
    MAGIC_CMD=:
7465
  fi
7466
fi
7467
 
7468
  fi
7469
  ;;
7470
esac
7471
 
7472
# Use C for the default configuration in the libtool script
7473
 
7474
lt_save_CC="$CC"
7475
ac_ext=c
7476
ac_cpp='$CPP $CPPFLAGS'
7477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480
 
7481
 
7482
# Source file extension for C test sources.
7483
ac_ext=c
7484
 
7485
# Object file extension for compiled C test sources.
7486
objext=o
7487
objext=$objext
7488
 
7489
# Code to be used in simple compile tests
7490
lt_simple_compile_test_code="int some_variable = 0;"
7491
 
7492
# Code to be used in simple link tests
7493
lt_simple_link_test_code='int main(){return(0);}'
7494
 
7495
 
7496
 
7497
 
7498
 
7499
 
7500
 
7501
# If no C compiler was specified, use CC.
7502
LTCC=${LTCC-"$CC"}
7503
 
7504
# If no C compiler flags were specified, use CFLAGS.
7505
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7506
 
7507
# Allow CC to be a program name with arguments.
7508
compiler=$CC
7509
 
7510
# Save the default compiler, since it gets overwritten when the other
7511
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7512
compiler_DEFAULT=$CC
7513
 
7514
# save warnings/boilerplate of simple test code
7515
ac_outfile=conftest.$ac_objext
7516
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7517
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7518
_lt_compiler_boilerplate=`cat conftest.err`
7519
$RM conftest*
7520
 
7521
ac_outfile=conftest.$ac_objext
7522
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7523
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7524
_lt_linker_boilerplate=`cat conftest.err`
7525
$RM -r conftest*
7526
 
7527
 
7528
## CAVEAT EMPTOR:
7529
## There is no encapsulation within the following macros, do not change
7530
## the running order or otherwise move them around unless you know exactly
7531
## what you are doing...
7532
if test -n "$compiler"; then
7533
 
7534
lt_prog_compiler_no_builtin_flag=
7535
 
7536
if test "$GCC" = yes; then
7537
  case $cc_basename in
7538
  nvcc*)
7539
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7540
  *)
7541
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7542
  esac
7543
 
7544
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7546
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7547
  $as_echo_n "(cached) " >&6
7548
else
7549
  lt_cv_prog_compiler_rtti_exceptions=no
7550
   ac_outfile=conftest.$ac_objext
7551
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7552
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7553
   # Insert the option either (1) after the last *FLAGS variable, or
7554
   # (2) before a word containing "conftest.", or (3) at the end.
7555
   # Note that $ac_compile itself does not contain backslashes and begins
7556
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7557
   # The option is referenced via a variable to avoid confusing sed.
7558
   lt_compile=`echo "$ac_compile" | $SED \
7559
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561
   -e 's:$: $lt_compiler_flag:'`
7562
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7563
   (eval "$lt_compile" 2>conftest.err)
7564
   ac_status=$?
7565
   cat conftest.err >&5
7566
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567
   if (exit $ac_status) && test -s "$ac_outfile"; then
7568
     # The compiler can only warn and ignore the option if not recognized
7569
     # So say no if there are warnings other than the usual output.
7570
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7571
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7573
       lt_cv_prog_compiler_rtti_exceptions=yes
7574
     fi
7575
   fi
7576
   $RM conftest*
7577
 
7578
fi
7579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7581
 
7582
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7583
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7584
else
7585
    :
7586
fi
7587
 
7588
fi
7589
 
7590
 
7591
 
7592
 
7593
 
7594
 
7595
  lt_prog_compiler_wl=
7596
lt_prog_compiler_pic=
7597
lt_prog_compiler_static=
7598
 
7599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7600
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7601
 
7602
  if test "$GCC" = yes; then
7603
    lt_prog_compiler_wl='-Wl,'
7604
    lt_prog_compiler_static='-static'
7605
 
7606
    case $host_os in
7607
      aix*)
7608
      # All AIX code is PIC.
7609
      if test "$host_cpu" = ia64; then
7610
        # AIX 5 now supports IA64 processor
7611
        lt_prog_compiler_static='-Bstatic'
7612
      fi
7613
      ;;
7614
 
7615
    amigaos*)
7616
      case $host_cpu in
7617
      powerpc)
7618
            # see comment about AmigaOS4 .so support
7619
            lt_prog_compiler_pic='-fPIC'
7620
        ;;
7621
      m68k)
7622
            # FIXME: we need at least 68020 code to build shared libraries, but
7623
            # adding the `-m68020' flag to GCC prevents building anything better,
7624
            # like `-m68040'.
7625
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7626
        ;;
7627
      esac
7628
      ;;
7629
 
7630
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7631
      # PIC is the default for these OSes.
7632
      ;;
7633
 
7634
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7635
      # This hack is so that the source file can tell whether it is being
7636
      # built for inclusion in a dll (and should export symbols for example).
7637
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7638
      # (--disable-auto-import) libraries
7639
      lt_prog_compiler_pic='-DDLL_EXPORT'
7640
      ;;
7641
 
7642
    darwin* | rhapsody*)
7643
      # PIC is the default on this platform
7644
      # Common symbols not allowed in MH_DYLIB files
7645
      lt_prog_compiler_pic='-fno-common'
7646
      ;;
7647
 
7648
    haiku*)
7649
      # PIC is the default for Haiku.
7650
      # The "-static" flag exists, but is broken.
7651
      lt_prog_compiler_static=
7652
      ;;
7653
 
7654
    hpux*)
7655
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7656
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7657
      # sets the default TLS model and affects inlining.
7658
      case $host_cpu in
7659
      hppa*64*)
7660
        # +Z the default
7661
        ;;
7662
      *)
7663
        lt_prog_compiler_pic='-fPIC'
7664
        ;;
7665
      esac
7666
      ;;
7667
 
7668
    interix[3-9]*)
7669
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7670
      # Instead, we relocate shared libraries at runtime.
7671
      ;;
7672
 
7673
    msdosdjgpp*)
7674
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7675
      # on systems that don't support them.
7676
      lt_prog_compiler_can_build_shared=no
7677
      enable_shared=no
7678
      ;;
7679
 
7680
    *nto* | *qnx*)
7681
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7682
      # it will coredump.
7683
      lt_prog_compiler_pic='-fPIC -shared'
7684
      ;;
7685
 
7686
    sysv4*MP*)
7687
      if test -d /usr/nec; then
7688
        lt_prog_compiler_pic=-Kconform_pic
7689
      fi
7690
      ;;
7691
 
7692
    *)
7693
      lt_prog_compiler_pic='-fPIC'
7694
      ;;
7695
    esac
7696
 
7697
    case $cc_basename in
7698
    nvcc*) # Cuda Compiler Driver 2.2
7699
      lt_prog_compiler_wl='-Xlinker '
7700
      lt_prog_compiler_pic='-Xcompiler -fPIC'
7701
      ;;
7702
    esac
7703
  else
7704
    # PORTME Check for flag to pass linker flags through the system compiler.
7705
    case $host_os in
7706
    aix*)
7707
      lt_prog_compiler_wl='-Wl,'
7708
      if test "$host_cpu" = ia64; then
7709
        # AIX 5 now supports IA64 processor
7710
        lt_prog_compiler_static='-Bstatic'
7711
      else
7712
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7713
      fi
7714
      ;;
7715
 
7716
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7717
      # This hack is so that the source file can tell whether it is being
7718
      # built for inclusion in a dll (and should export symbols for example).
7719
      lt_prog_compiler_pic='-DDLL_EXPORT'
7720
      ;;
7721
 
7722
    hpux9* | hpux10* | hpux11*)
7723
      lt_prog_compiler_wl='-Wl,'
7724
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7725
      # not for PA HP-UX.
7726
      case $host_cpu in
7727
      hppa*64*|ia64*)
7728
        # +Z the default
7729
        ;;
7730
      *)
7731
        lt_prog_compiler_pic='+Z'
7732
        ;;
7733
      esac
7734
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7735
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7736
      ;;
7737
 
7738
    irix5* | irix6* | nonstopux*)
7739
      lt_prog_compiler_wl='-Wl,'
7740
      # PIC (with -KPIC) is the default.
7741
      lt_prog_compiler_static='-non_shared'
7742
      ;;
7743
 
7744
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7745
      case $cc_basename in
7746
      # old Intel for x86_64 which still supported -KPIC.
7747
      ecc*)
7748
        lt_prog_compiler_wl='-Wl,'
7749
        lt_prog_compiler_pic='-KPIC'
7750
        lt_prog_compiler_static='-static'
7751
        ;;
7752
      # icc used to be incompatible with GCC.
7753
      # ICC 10 doesn't accept -KPIC any more.
7754
      icc* | ifort*)
7755
        lt_prog_compiler_wl='-Wl,'
7756
        lt_prog_compiler_pic='-fPIC'
7757
        lt_prog_compiler_static='-static'
7758
        ;;
7759
      # Lahey Fortran 8.1.
7760
      lf95*)
7761
        lt_prog_compiler_wl='-Wl,'
7762
        lt_prog_compiler_pic='--shared'
7763
        lt_prog_compiler_static='--static'
7764
        ;;
7765
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7766
        # Portland Group compilers (*not* the Pentium gcc compiler,
7767
        # which looks to be a dead project)
7768
        lt_prog_compiler_wl='-Wl,'
7769
        lt_prog_compiler_pic='-fpic'
7770
        lt_prog_compiler_static='-Bstatic'
7771
        ;;
7772
      ccc*)
7773
        lt_prog_compiler_wl='-Wl,'
7774
        # All Alpha code is PIC.
7775
        lt_prog_compiler_static='-non_shared'
7776
        ;;
7777
      xl* | bgxl* | bgf* | mpixl*)
7778
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7779
        lt_prog_compiler_wl='-Wl,'
7780
        lt_prog_compiler_pic='-qpic'
7781
        lt_prog_compiler_static='-qstaticlink'
7782
        ;;
7783
      *)
7784
        case `$CC -V 2>&1 | sed 5q` in
7785
        *Sun\ F* | *Sun*Fortran*)
7786
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7787
          lt_prog_compiler_pic='-KPIC'
7788
          lt_prog_compiler_static='-Bstatic'
7789
          lt_prog_compiler_wl=''
7790
          ;;
7791
        *Sun\ C*)
7792
          # Sun C 5.9
7793
          lt_prog_compiler_pic='-KPIC'
7794
          lt_prog_compiler_static='-Bstatic'
7795
          lt_prog_compiler_wl='-Wl,'
7796
          ;;
7797
        esac
7798
        ;;
7799
      esac
7800
      ;;
7801
 
7802
    newsos6)
7803
      lt_prog_compiler_pic='-KPIC'
7804
      lt_prog_compiler_static='-Bstatic'
7805
      ;;
7806
 
7807
    *nto* | *qnx*)
7808
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7809
      # it will coredump.
7810
      lt_prog_compiler_pic='-fPIC -shared'
7811
      ;;
7812
 
7813
    osf3* | osf4* | osf5*)
7814
      lt_prog_compiler_wl='-Wl,'
7815
      # All OSF/1 code is PIC.
7816
      lt_prog_compiler_static='-non_shared'
7817
      ;;
7818
 
7819
    rdos*)
7820
      lt_prog_compiler_static='-non_shared'
7821
      ;;
7822
 
7823
    solaris*)
7824
      lt_prog_compiler_pic='-KPIC'
7825
      lt_prog_compiler_static='-Bstatic'
7826
      case $cc_basename in
7827
      f77* | f90* | f95*)
7828
        lt_prog_compiler_wl='-Qoption ld ';;
7829
      *)
7830
        lt_prog_compiler_wl='-Wl,';;
7831
      esac
7832
      ;;
7833
 
7834
    sunos4*)
7835
      lt_prog_compiler_wl='-Qoption ld '
7836
      lt_prog_compiler_pic='-PIC'
7837
      lt_prog_compiler_static='-Bstatic'
7838
      ;;
7839
 
7840
    sysv4 | sysv4.2uw2* | sysv4.3*)
7841
      lt_prog_compiler_wl='-Wl,'
7842
      lt_prog_compiler_pic='-KPIC'
7843
      lt_prog_compiler_static='-Bstatic'
7844
      ;;
7845
 
7846
    sysv4*MP*)
7847
      if test -d /usr/nec ;then
7848
        lt_prog_compiler_pic='-Kconform_pic'
7849
        lt_prog_compiler_static='-Bstatic'
7850
      fi
7851
      ;;
7852
 
7853
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7854
      lt_prog_compiler_wl='-Wl,'
7855
      lt_prog_compiler_pic='-KPIC'
7856
      lt_prog_compiler_static='-Bstatic'
7857
      ;;
7858
 
7859
    unicos*)
7860
      lt_prog_compiler_wl='-Wl,'
7861
      lt_prog_compiler_can_build_shared=no
7862
      ;;
7863
 
7864
    uts4*)
7865
      lt_prog_compiler_pic='-pic'
7866
      lt_prog_compiler_static='-Bstatic'
7867
      ;;
7868
 
7869
    *)
7870
      lt_prog_compiler_can_build_shared=no
7871
      ;;
7872
    esac
7873
  fi
7874
 
7875
case $host_os in
7876
  # For platforms which do not support PIC, -DPIC is meaningless:
7877
  *djgpp*)
7878
    lt_prog_compiler_pic=
7879
    ;;
7880
  *)
7881
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7882
    ;;
7883
esac
7884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7885
$as_echo "$lt_prog_compiler_pic" >&6; }
7886
 
7887
 
7888
 
7889
 
7890
 
7891
 
7892
#
7893
# Check to make sure the PIC flag actually works.
7894
#
7895
if test -n "$lt_prog_compiler_pic"; then
7896
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7897
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7898
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7899
  $as_echo_n "(cached) " >&6
7900
else
7901
  lt_cv_prog_compiler_pic_works=no
7902
   ac_outfile=conftest.$ac_objext
7903
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7905
   # Insert the option either (1) after the last *FLAGS variable, or
7906
   # (2) before a word containing "conftest.", or (3) at the end.
7907
   # Note that $ac_compile itself does not contain backslashes and begins
7908
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7909
   # The option is referenced via a variable to avoid confusing sed.
7910
   lt_compile=`echo "$ac_compile" | $SED \
7911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913
   -e 's:$: $lt_compiler_flag:'`
7914
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7915
   (eval "$lt_compile" 2>conftest.err)
7916
   ac_status=$?
7917
   cat conftest.err >&5
7918
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919
   if (exit $ac_status) && test -s "$ac_outfile"; then
7920
     # The compiler can only warn and ignore the option if not recognized
7921
     # So say no if there are warnings other than the usual output.
7922
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7923
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925
       lt_cv_prog_compiler_pic_works=yes
7926
     fi
7927
   fi
7928
   $RM conftest*
7929
 
7930
fi
7931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7932
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7933
 
7934
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7935
    case $lt_prog_compiler_pic in
7936
     "" | " "*) ;;
7937
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7938
     esac
7939
else
7940
    lt_prog_compiler_pic=
7941
     lt_prog_compiler_can_build_shared=no
7942
fi
7943
 
7944
fi
7945
 
7946
 
7947
 
7948
 
7949
 
7950
 
7951
#
7952
# Check to make sure the static flag actually works.
7953
#
7954
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7956
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7957
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7958
  $as_echo_n "(cached) " >&6
7959
else
7960
  lt_cv_prog_compiler_static_works=no
7961
   save_LDFLAGS="$LDFLAGS"
7962
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7963
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7964
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7965
     # The linker can only warn and ignore the option if not recognized
7966
     # So say no if there are warnings
7967
     if test -s conftest.err; then
7968
       # Append any errors to the config.log.
7969
       cat conftest.err 1>&5
7970
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7971
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7972
       if diff conftest.exp conftest.er2 >/dev/null; then
7973
         lt_cv_prog_compiler_static_works=yes
7974
       fi
7975
     else
7976
       lt_cv_prog_compiler_static_works=yes
7977
     fi
7978
   fi
7979
   $RM -r conftest*
7980
   LDFLAGS="$save_LDFLAGS"
7981
 
7982
fi
7983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7984
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7985
 
7986
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7987
    :
7988
else
7989
    lt_prog_compiler_static=
7990
fi
7991
 
7992
 
7993
 
7994
 
7995
 
7996
 
7997
 
7998
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7999
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8000
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8001
  $as_echo_n "(cached) " >&6
8002
else
8003
  lt_cv_prog_compiler_c_o=no
8004
   $RM -r conftest 2>/dev/null
8005
   mkdir conftest
8006
   cd conftest
8007
   mkdir out
8008
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8009
 
8010
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8011
   # Insert the option either (1) after the last *FLAGS variable, or
8012
   # (2) before a word containing "conftest.", or (3) at the end.
8013
   # Note that $ac_compile itself does not contain backslashes and begins
8014
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8015
   lt_compile=`echo "$ac_compile" | $SED \
8016
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8017
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018
   -e 's:$: $lt_compiler_flag:'`
8019
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8020
   (eval "$lt_compile" 2>out/conftest.err)
8021
   ac_status=$?
8022
   cat out/conftest.err >&5
8023
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8025
   then
8026
     # The compiler can only warn and ignore the option if not recognized
8027
     # So say no if there are warnings
8028
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8029
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8030
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8031
       lt_cv_prog_compiler_c_o=yes
8032
     fi
8033
   fi
8034
   chmod u+w . 2>&5
8035
   $RM conftest*
8036
   # SGI C++ compiler will create directory out/ii_files/ for
8037
   # template instantiation
8038
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8039
   $RM out/* && rmdir out
8040
   cd ..
8041
   $RM -r conftest
8042
   $RM conftest*
8043
 
8044
fi
8045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8046
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8047
 
8048
 
8049
 
8050
 
8051
 
8052
 
8053
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8054
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8055
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8056
  $as_echo_n "(cached) " >&6
8057
else
8058
  lt_cv_prog_compiler_c_o=no
8059
   $RM -r conftest 2>/dev/null
8060
   mkdir conftest
8061
   cd conftest
8062
   mkdir out
8063
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8064
 
8065
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8066
   # Insert the option either (1) after the last *FLAGS variable, or
8067
   # (2) before a word containing "conftest.", or (3) at the end.
8068
   # Note that $ac_compile itself does not contain backslashes and begins
8069
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8070
   lt_compile=`echo "$ac_compile" | $SED \
8071
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8072
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8073
   -e 's:$: $lt_compiler_flag:'`
8074
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8075
   (eval "$lt_compile" 2>out/conftest.err)
8076
   ac_status=$?
8077
   cat out/conftest.err >&5
8078
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8080
   then
8081
     # The compiler can only warn and ignore the option if not recognized
8082
     # So say no if there are warnings
8083
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8084
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8085
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8086
       lt_cv_prog_compiler_c_o=yes
8087
     fi
8088
   fi
8089
   chmod u+w . 2>&5
8090
   $RM conftest*
8091
   # SGI C++ compiler will create directory out/ii_files/ for
8092
   # template instantiation
8093
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8094
   $RM out/* && rmdir out
8095
   cd ..
8096
   $RM -r conftest
8097
   $RM conftest*
8098
 
8099
fi
8100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8101
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8102
 
8103
 
8104
 
8105
 
8106
hard_links="nottested"
8107
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8108
  # do not overwrite the value of need_locks provided by the user
8109
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8110
$as_echo_n "checking if we can lock with hard links... " >&6; }
8111
  hard_links=yes
8112
  $RM conftest*
8113
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8114
  touch conftest.a
8115
  ln conftest.a conftest.b 2>&5 || hard_links=no
8116
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8118
$as_echo "$hard_links" >&6; }
8119
  if test "$hard_links" = no; then
8120
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8121
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8122
    need_locks=warn
8123
  fi
8124
else
8125
  need_locks=no
8126
fi
8127
 
8128
 
8129
 
8130
 
8131
 
8132
 
8133
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8134
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8135
 
8136
  runpath_var=
8137
  allow_undefined_flag=
8138
  always_export_symbols=no
8139
  archive_cmds=
8140
  archive_expsym_cmds=
8141
  compiler_needs_object=no
8142
  enable_shared_with_static_runtimes=no
8143
  export_dynamic_flag_spec=
8144
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8145
  hardcode_automatic=no
8146
  hardcode_direct=no
8147
  hardcode_direct_absolute=no
8148
  hardcode_libdir_flag_spec=
8149
  hardcode_libdir_flag_spec_ld=
8150
  hardcode_libdir_separator=
8151
  hardcode_minus_L=no
8152
  hardcode_shlibpath_var=unsupported
8153
  inherit_rpath=no
8154
  link_all_deplibs=unknown
8155
  module_cmds=
8156
  module_expsym_cmds=
8157
  old_archive_from_new_cmds=
8158
  old_archive_from_expsyms_cmds=
8159
  thread_safe_flag_spec=
8160
  whole_archive_flag_spec=
8161
  # include_expsyms should be a list of space-separated symbols to be *always*
8162
  # included in the symbol list
8163
  include_expsyms=
8164
  # exclude_expsyms can be an extended regexp of symbols to exclude
8165
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8166
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8167
  # as well as any symbol that contains `d'.
8168
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8169
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8170
  # platforms (ab)use it in PIC code, but their linkers get confused if
8171
  # the symbol is explicitly referenced.  Since portable code cannot
8172
  # rely on this symbol name, it's probably fine to never include it in
8173
  # preloaded symbol tables.
8174
  # Exclude shared library initialization/finalization symbols.
8175
  extract_expsyms_cmds=
8176
 
8177
  case $host_os in
8178
  cygwin* | mingw* | pw32* | cegcc*)
8179
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8180
    # When not using gcc, we currently assume that we are using
8181
    # Microsoft Visual C++.
8182
    if test "$GCC" != yes; then
8183
      with_gnu_ld=no
8184
    fi
8185
    ;;
8186
  interix*)
8187
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8188
    with_gnu_ld=yes
8189
    ;;
8190
  openbsd*)
8191
    with_gnu_ld=no
8192
    ;;
8193
  esac
8194
 
8195
  ld_shlibs=yes
8196
 
8197
  # On some targets, GNU ld is compatible enough with the native linker
8198
  # that we're better off using the native interface for both.
8199
  lt_use_gnu_ld_interface=no
8200
  if test "$with_gnu_ld" = yes; then
8201
    case $host_os in
8202
      aix*)
8203
        # The AIX port of GNU ld has always aspired to compatibility
8204
        # with the native linker.  However, as the warning in the GNU ld
8205
        # block says, versions before 2.19.5* couldn't really create working
8206
        # shared libraries, regardless of the interface used.
8207
        case `$LD -v 2>&1` in
8208
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8209
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8210
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8211
          *)
8212
            lt_use_gnu_ld_interface=yes
8213
            ;;
8214
        esac
8215
        ;;
8216
      *)
8217
        lt_use_gnu_ld_interface=yes
8218
        ;;
8219
    esac
8220
  fi
8221
 
8222
  if test "$lt_use_gnu_ld_interface" = yes; then
8223
    # If archive_cmds runs LD, not CC, wlarc should be empty
8224
    wlarc='${wl}'
8225
 
8226
    # Set some defaults for GNU ld with shared library support. These
8227
    # are reset later if shared libraries are not supported. Putting them
8228
    # here allows them to be overridden if necessary.
8229
    runpath_var=LD_RUN_PATH
8230
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8231
    export_dynamic_flag_spec='${wl}--export-dynamic'
8232
    # ancient GNU ld didn't support --whole-archive et. al.
8233
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8234
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8235
    else
8236
      whole_archive_flag_spec=
8237
    fi
8238
    supports_anon_versioning=no
8239
    case `$LD -v 2>&1` in
8240
      *GNU\ gold*) supports_anon_versioning=yes ;;
8241
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8242
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8243
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8244
      *\ 2.11.*) ;; # other 2.11 versions
8245
      *) supports_anon_versioning=yes ;;
8246
    esac
8247
 
8248
    # See if GNU ld supports shared libraries.
8249
    case $host_os in
8250
    aix[3-9]*)
8251
      # On AIX/PPC, the GNU linker is very broken
8252
      if test "$host_cpu" != ia64; then
8253
        ld_shlibs=no
8254
        cat <<_LT_EOF 1>&2
8255
 
8256
*** Warning: the GNU linker, at least up to release 2.19, is reported
8257
*** to be unable to reliably create shared libraries on AIX.
8258
*** Therefore, libtool is disabling shared libraries support.  If you
8259
*** really care for shared libraries, you may want to install binutils
8260
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8261
*** You will then need to restart the configuration process.
8262
 
8263
_LT_EOF
8264
      fi
8265
      ;;
8266
 
8267
    amigaos*)
8268
      case $host_cpu in
8269
      powerpc)
8270
            # see comment about AmigaOS4 .so support
8271
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272
            archive_expsym_cmds=''
8273
        ;;
8274
      m68k)
8275
            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)'
8276
            hardcode_libdir_flag_spec='-L$libdir'
8277
            hardcode_minus_L=yes
8278
        ;;
8279
      esac
8280
      ;;
8281
 
8282
    beos*)
8283
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8284
        allow_undefined_flag=unsupported
8285
        # Joseph Beckenbach  says some releases of gcc
8286
        # support --undefined.  This deserves some investigation.  FIXME
8287
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288
      else
8289
        ld_shlibs=no
8290
      fi
8291
      ;;
8292
 
8293
    cygwin* | mingw* | pw32* | cegcc*)
8294
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8295
      # as there is no search path for DLLs.
8296
      hardcode_libdir_flag_spec='-L$libdir'
8297
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8298
      allow_undefined_flag=unsupported
8299
      always_export_symbols=no
8300
      enable_shared_with_static_runtimes=yes
8301
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8302
 
8303
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8304
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8305
        # If the export-symbols file already is a .def file (1st line
8306
        # is EXPORTS), use it as is; otherwise, prepend...
8307
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8308
          cp $export_symbols $output_objdir/$soname.def;
8309
        else
8310
          echo EXPORTS > $output_objdir/$soname.def;
8311
          cat $export_symbols >> $output_objdir/$soname.def;
8312
        fi~
8313
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8314
      else
8315
        ld_shlibs=no
8316
      fi
8317
      ;;
8318
 
8319
    haiku*)
8320
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8321
      link_all_deplibs=yes
8322
      ;;
8323
 
8324
    interix[3-9]*)
8325
      hardcode_direct=no
8326
      hardcode_shlibpath_var=no
8327
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8328
      export_dynamic_flag_spec='${wl}-E'
8329
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8330
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8331
      # default) and relocated if they conflict, which is a slow very memory
8332
      # consuming and fragmenting process.  To avoid this, we pick a random,
8333
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8334
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8335
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8336
      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'
8337
      ;;
8338
 
8339
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8340
      tmp_diet=no
8341
      if test "$host_os" = linux-dietlibc; then
8342
        case $cc_basename in
8343
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8344
        esac
8345
      fi
8346
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8347
         && test "$tmp_diet" = no
8348
      then
8349
        tmp_addflag=
8350
        tmp_sharedflag='-shared'
8351
        case $cc_basename,$host_cpu in
8352
        pgcc*)                          # Portland Group C compiler
8353
          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'
8354
          tmp_addflag=' $pic_flag'
8355
          ;;
8356
        pgf77* | pgf90* | pgf95* | pgfortran*)
8357
                                        # Portland Group f77 and f90 compilers
8358
          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'
8359
          tmp_addflag=' $pic_flag -Mnomain' ;;
8360
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8361
          tmp_addflag=' -i_dynamic' ;;
8362
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8363
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8364
        ifc* | ifort*)                  # Intel Fortran compiler
8365
          tmp_addflag=' -nofor_main' ;;
8366
        lf95*)                          # Lahey Fortran 8.1
8367
          whole_archive_flag_spec=
8368
          tmp_sharedflag='--shared' ;;
8369
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8370
          tmp_sharedflag='-qmkshrobj'
8371
          tmp_addflag= ;;
8372
        nvcc*)  # Cuda Compiler Driver 2.2
8373
          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'
8374
          compiler_needs_object=yes
8375
          ;;
8376
        esac
8377
        case `$CC -V 2>&1 | sed 5q` in
8378
        *Sun\ C*)                       # Sun C 5.9
8379
          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'
8380
          compiler_needs_object=yes
8381
          tmp_sharedflag='-G' ;;
8382
        *Sun\ F*)                       # Sun Fortran 8.3
8383
          tmp_sharedflag='-G' ;;
8384
        esac
8385
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8386
 
8387
        if test "x$supports_anon_versioning" = xyes; then
8388
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8389
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8390
            echo "local: *; };" >> $output_objdir/$libname.ver~
8391
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8392
        fi
8393
 
8394
        case $cc_basename in
8395
        xlf* | bgf* | bgxlf* | mpixlf*)
8396
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8397
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8398
          hardcode_libdir_flag_spec=
8399
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8400
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8401
          if test "x$supports_anon_versioning" = xyes; then
8402
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8403
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8404
              echo "local: *; };" >> $output_objdir/$libname.ver~
8405
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8406
          fi
8407
          ;;
8408
        esac
8409
      else
8410
        ld_shlibs=no
8411
      fi
8412
      ;;
8413
 
8414
    netbsd*)
8415
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8416
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8417
        wlarc=
8418
      else
8419
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8421
      fi
8422
      ;;
8423
 
8424
    solaris*)
8425
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8426
        ld_shlibs=no
8427
        cat <<_LT_EOF 1>&2
8428
 
8429
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8430
*** create shared libraries on Solaris systems.  Therefore, libtool
8431
*** is disabling shared libraries support.  We urge you to upgrade GNU
8432
*** binutils to release 2.9.1 or newer.  Another option is to modify
8433
*** your PATH or compiler configuration so that the native linker is
8434
*** used, and then restart.
8435
 
8436
_LT_EOF
8437
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8438
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8439
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8440
      else
8441
        ld_shlibs=no
8442
      fi
8443
      ;;
8444
 
8445
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8446
      case `$LD -v 2>&1` in
8447
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8448
        ld_shlibs=no
8449
        cat <<_LT_EOF 1>&2
8450
 
8451
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8452
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8453
*** is disabling shared libraries support.  We urge you to upgrade GNU
8454
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8455
*** your PATH or compiler configuration so that the native linker is
8456
*** used, and then restart.
8457
 
8458
_LT_EOF
8459
        ;;
8460
        *)
8461
          # For security reasons, it is highly recommended that you always
8462
          # use absolute paths for naming shared libraries, and exclude the
8463
          # DT_RUNPATH tag from executables and libraries.  But doing so
8464
          # requires that you compile everything twice, which is a pain.
8465
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8466
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8467
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8469
          else
8470
            ld_shlibs=no
8471
          fi
8472
        ;;
8473
      esac
8474
      ;;
8475
 
8476
    sunos4*)
8477
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8478
      wlarc=
8479
      hardcode_direct=yes
8480
      hardcode_shlibpath_var=no
8481
      ;;
8482
 
8483
    *)
8484
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8485
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8486
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8487
      else
8488
        ld_shlibs=no
8489
      fi
8490
      ;;
8491
    esac
8492
 
8493
    if test "$ld_shlibs" = no; then
8494
      runpath_var=
8495
      hardcode_libdir_flag_spec=
8496
      export_dynamic_flag_spec=
8497
      whole_archive_flag_spec=
8498
    fi
8499
  else
8500
    # PORTME fill in a description of your system's linker (not GNU ld)
8501
    case $host_os in
8502
    aix3*)
8503
      allow_undefined_flag=unsupported
8504
      always_export_symbols=yes
8505
      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'
8506
      # Note: this linker hardcodes the directories in LIBPATH if there
8507
      # are no directories specified by -L.
8508
      hardcode_minus_L=yes
8509
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8510
        # Neither direct hardcoding nor static linking is supported with a
8511
        # broken collect2.
8512
        hardcode_direct=unsupported
8513
      fi
8514
      ;;
8515
 
8516
    aix[4-9]*)
8517
      if test "$host_cpu" = ia64; then
8518
        # On IA64, the linker does run time linking by default, so we don't
8519
        # have to do anything special.
8520
        aix_use_runtimelinking=no
8521
        exp_sym_flag='-Bexport'
8522
        no_entry_flag=""
8523
      else
8524
        # If we're using GNU nm, then we don't want the "-C" option.
8525
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8526
        # Also, AIX nm treats weak defined symbols like other global
8527
        # defined symbols, whereas GNU nm marks them as "W".
8528
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8529
          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'
8530
        else
8531
          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'
8532
        fi
8533
        aix_use_runtimelinking=no
8534
 
8535
        # Test if we are trying to use run time linking or normal
8536
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8537
        # need to do runtime linking.
8538
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8539
          for ld_flag in $LDFLAGS; do
8540
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8541
            aix_use_runtimelinking=yes
8542
            break
8543
          fi
8544
          done
8545
          ;;
8546
        esac
8547
 
8548
        exp_sym_flag='-bexport'
8549
        no_entry_flag='-bnoentry'
8550
      fi
8551
 
8552
      # When large executables or shared objects are built, AIX ld can
8553
      # have problems creating the table of contents.  If linking a library
8554
      # or program results in "error TOC overflow" add -mminimal-toc to
8555
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8556
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8557
 
8558
      archive_cmds=''
8559
      hardcode_direct=yes
8560
      hardcode_direct_absolute=yes
8561
      hardcode_libdir_separator=':'
8562
      link_all_deplibs=yes
8563
      file_list_spec='${wl}-f,'
8564
 
8565
      if test "$GCC" = yes; then
8566
        case $host_os in aix4.[012]|aix4.[012].*)
8567
        # We only want to do this on AIX 4.2 and lower, the check
8568
        # below for broken collect2 doesn't work under 4.3+
8569
          collect2name=`${CC} -print-prog-name=collect2`
8570
          if test -f "$collect2name" &&
8571
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8572
          then
8573
          # We have reworked collect2
8574
          :
8575
          else
8576
          # We have old collect2
8577
          hardcode_direct=unsupported
8578
          # It fails to find uninstalled libraries when the uninstalled
8579
          # path is not listed in the libpath.  Setting hardcode_minus_L
8580
          # to unsupported forces relinking
8581
          hardcode_minus_L=yes
8582
          hardcode_libdir_flag_spec='-L$libdir'
8583
          hardcode_libdir_separator=
8584
          fi
8585
          ;;
8586
        esac
8587
        shared_flag='-shared'
8588
        if test "$aix_use_runtimelinking" = yes; then
8589
          shared_flag="$shared_flag "'${wl}-G'
8590
        fi
8591
      else
8592
        # not using gcc
8593
        if test "$host_cpu" = ia64; then
8594
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8595
        # chokes on -Wl,-G. The following line is correct:
8596
          shared_flag='-G'
8597
        else
8598
          if test "$aix_use_runtimelinking" = yes; then
8599
            shared_flag='${wl}-G'
8600
          else
8601
            shared_flag='${wl}-bM:SRE'
8602
          fi
8603
        fi
8604
      fi
8605
 
8606
      export_dynamic_flag_spec='${wl}-bexpall'
8607
      # It seems that -bexpall does not export symbols beginning with
8608
      # underscore (_), so it is better to generate a list of symbols to export.
8609
      always_export_symbols=yes
8610
      if test "$aix_use_runtimelinking" = yes; then
8611
        # Warning - without using the other runtime loading flags (-brtl),
8612
        # -berok will link without error, but may produce a broken library.
8613
        allow_undefined_flag='-berok'
8614
        # Determine the default libpath from the value encoded in an
8615
        # empty executable.
8616
        if test x$gcc_no_link = xyes; then
8617
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8618
fi
8619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620
/* end confdefs.h.  */
8621
 
8622
int
8623
main ()
8624
{
8625
 
8626
  ;
8627
  return 0;
8628
}
8629
_ACEOF
8630
if ac_fn_c_try_link "$LINENO"; then :
8631
 
8632
lt_aix_libpath_sed='
8633
    /Import File Strings/,/^$/ {
8634
        /^0/ {
8635
            s/^0  *\(.*\)$/\1/
8636
            p
8637
        }
8638
    }'
8639
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8640
# Check for a 64-bit object if we didn't find anything.
8641
if test -z "$aix_libpath"; then
8642
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8643
fi
8644
fi
8645
rm -f core conftest.err conftest.$ac_objext \
8646
    conftest$ac_exeext conftest.$ac_ext
8647
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8648
 
8649
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8650
        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"
8651
      else
8652
        if test "$host_cpu" = ia64; then
8653
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8654
          allow_undefined_flag="-z nodefs"
8655
          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"
8656
        else
8657
         # Determine the default libpath from the value encoded in an
8658
         # empty executable.
8659
         if test x$gcc_no_link = xyes; then
8660
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8661
fi
8662
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663
/* end confdefs.h.  */
8664
 
8665
int
8666
main ()
8667
{
8668
 
8669
  ;
8670
  return 0;
8671
}
8672
_ACEOF
8673
if ac_fn_c_try_link "$LINENO"; then :
8674
 
8675
lt_aix_libpath_sed='
8676
    /Import File Strings/,/^$/ {
8677
        /^0/ {
8678
            s/^0  *\(.*\)$/\1/
8679
            p
8680
        }
8681
    }'
8682
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8683
# Check for a 64-bit object if we didn't find anything.
8684
if test -z "$aix_libpath"; then
8685
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8686
fi
8687
fi
8688
rm -f core conftest.err conftest.$ac_objext \
8689
    conftest$ac_exeext conftest.$ac_ext
8690
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8691
 
8692
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8693
          # Warning - without using the other run time loading flags,
8694
          # -berok will link without error, but may produce a broken library.
8695
          no_undefined_flag=' ${wl}-bernotok'
8696
          allow_undefined_flag=' ${wl}-berok'
8697
          if test "$with_gnu_ld" = yes; then
8698
            # We only use this code for GNU lds that support --whole-archive.
8699
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8700
          else
8701
            # Exported symbols can be pulled into shared objects from archives
8702
            whole_archive_flag_spec='$convenience'
8703
          fi
8704
          archive_cmds_need_lc=yes
8705
          # This is similar to how AIX traditionally builds its shared libraries.
8706
          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'
8707
        fi
8708
      fi
8709
      ;;
8710
 
8711
    amigaos*)
8712
      case $host_cpu in
8713
      powerpc)
8714
            # see comment about AmigaOS4 .so support
8715
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716
            archive_expsym_cmds=''
8717
        ;;
8718
      m68k)
8719
            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)'
8720
            hardcode_libdir_flag_spec='-L$libdir'
8721
            hardcode_minus_L=yes
8722
        ;;
8723
      esac
8724
      ;;
8725
 
8726
    bsdi[45]*)
8727
      export_dynamic_flag_spec=-rdynamic
8728
      ;;
8729
 
8730
    cygwin* | mingw* | pw32* | cegcc*)
8731
      # When not using gcc, we currently assume that we are using
8732
      # Microsoft Visual C++.
8733
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8734
      # no search path for DLLs.
8735
      hardcode_libdir_flag_spec=' '
8736
      allow_undefined_flag=unsupported
8737
      # Tell ltmain to make .lib files, not .a files.
8738
      libext=lib
8739
      # Tell ltmain to make .dll files, not .so files.
8740
      shrext_cmds=".dll"
8741
      # FIXME: Setting linknames here is a bad hack.
8742
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8743
      # The linker will automatically build a .lib file if we build a DLL.
8744
      old_archive_from_new_cmds='true'
8745
      # FIXME: Should let the user specify the lib program.
8746
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8747
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8748
      enable_shared_with_static_runtimes=yes
8749
      ;;
8750
 
8751
    darwin* | rhapsody*)
8752
 
8753
 
8754
  archive_cmds_need_lc=no
8755
  hardcode_direct=no
8756
  hardcode_automatic=yes
8757
  hardcode_shlibpath_var=unsupported
8758
  if test "$lt_cv_ld_force_load" = "yes"; then
8759
    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\"`'
8760
  else
8761
    whole_archive_flag_spec=''
8762
  fi
8763
  link_all_deplibs=yes
8764
  allow_undefined_flag="$_lt_dar_allow_undefined"
8765
  case $cc_basename in
8766
     ifort*) _lt_dar_can_shared=yes ;;
8767
     *) _lt_dar_can_shared=$GCC ;;
8768
  esac
8769
  if test "$_lt_dar_can_shared" = "yes"; then
8770
    output_verbose_link_cmd=func_echo_all
8771
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8772
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8773
    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}"
8774
    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}"
8775
 
8776
  else
8777
  ld_shlibs=no
8778
  fi
8779
 
8780
      ;;
8781
 
8782
    dgux*)
8783
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784
      hardcode_libdir_flag_spec='-L$libdir'
8785
      hardcode_shlibpath_var=no
8786
      ;;
8787
 
8788
    freebsd1*)
8789
      ld_shlibs=no
8790
      ;;
8791
 
8792
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8793
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8794
    # does not break anything, and helps significantly (at the cost of a little
8795
    # extra space).
8796
    freebsd2.2*)
8797
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8798
      hardcode_libdir_flag_spec='-R$libdir'
8799
      hardcode_direct=yes
8800
      hardcode_shlibpath_var=no
8801
      ;;
8802
 
8803
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8804
    freebsd2*)
8805
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8806
      hardcode_direct=yes
8807
      hardcode_minus_L=yes
8808
      hardcode_shlibpath_var=no
8809
      ;;
8810
 
8811
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8812
    freebsd* | dragonfly*)
8813
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8814
      hardcode_libdir_flag_spec='-R$libdir'
8815
      hardcode_direct=yes
8816
      hardcode_shlibpath_var=no
8817
      ;;
8818
 
8819
    hpux9*)
8820
      if test "$GCC" = yes; then
8821
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8822
      else
8823
        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'
8824
      fi
8825
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8826
      hardcode_libdir_separator=:
8827
      hardcode_direct=yes
8828
 
8829
      # hardcode_minus_L: Not really in the search PATH,
8830
      # but as the default location of the library.
8831
      hardcode_minus_L=yes
8832
      export_dynamic_flag_spec='${wl}-E'
8833
      ;;
8834
 
8835
    hpux10*)
8836
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8837
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8838
      else
8839
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8840
      fi
8841
      if test "$with_gnu_ld" = no; then
8842
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8843
        hardcode_libdir_flag_spec_ld='+b $libdir'
8844
        hardcode_libdir_separator=:
8845
        hardcode_direct=yes
8846
        hardcode_direct_absolute=yes
8847
        export_dynamic_flag_spec='${wl}-E'
8848
        # hardcode_minus_L: Not really in the search PATH,
8849
        # but as the default location of the library.
8850
        hardcode_minus_L=yes
8851
      fi
8852
      ;;
8853
 
8854
    hpux11*)
8855
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8856
        case $host_cpu in
8857
        hppa*64*)
8858
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8859
          ;;
8860
        ia64*)
8861
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8862
          ;;
8863
        *)
8864
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8865
          ;;
8866
        esac
8867
      else
8868
        case $host_cpu in
8869
        hppa*64*)
8870
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871
          ;;
8872
        ia64*)
8873
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8874
          ;;
8875
        *)
8876
 
8877
          # Older versions of the 11.00 compiler do not understand -b yet
8878
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8879
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8880
$as_echo_n "checking if $CC understands -b... " >&6; }
8881
if test "${lt_cv_prog_compiler__b+set}" = set; then :
8882
  $as_echo_n "(cached) " >&6
8883
else
8884
  lt_cv_prog_compiler__b=no
8885
   save_LDFLAGS="$LDFLAGS"
8886
   LDFLAGS="$LDFLAGS -b"
8887
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8888
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8889
     # The linker can only warn and ignore the option if not recognized
8890
     # So say no if there are warnings
8891
     if test -s conftest.err; then
8892
       # Append any errors to the config.log.
8893
       cat conftest.err 1>&5
8894
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8895
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8896
       if diff conftest.exp conftest.er2 >/dev/null; then
8897
         lt_cv_prog_compiler__b=yes
8898
       fi
8899
     else
8900
       lt_cv_prog_compiler__b=yes
8901
     fi
8902
   fi
8903
   $RM -r conftest*
8904
   LDFLAGS="$save_LDFLAGS"
8905
 
8906
fi
8907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8908
$as_echo "$lt_cv_prog_compiler__b" >&6; }
8909
 
8910
if test x"$lt_cv_prog_compiler__b" = xyes; then
8911
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8912
else
8913
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8914
fi
8915
 
8916
          ;;
8917
        esac
8918
      fi
8919
      if test "$with_gnu_ld" = no; then
8920
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8921
        hardcode_libdir_separator=:
8922
 
8923
        case $host_cpu in
8924
        hppa*64*|ia64*)
8925
          hardcode_direct=no
8926
          hardcode_shlibpath_var=no
8927
          ;;
8928
        *)
8929
          hardcode_direct=yes
8930
          hardcode_direct_absolute=yes
8931
          export_dynamic_flag_spec='${wl}-E'
8932
 
8933
          # hardcode_minus_L: Not really in the search PATH,
8934
          # but as the default location of the library.
8935
          hardcode_minus_L=yes
8936
          ;;
8937
        esac
8938
      fi
8939
      ;;
8940
 
8941
    irix5* | irix6* | nonstopux*)
8942
      if test "$GCC" = yes; then
8943
        archive_cmds='$CC -shared $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'
8944
        # Try to use the -exported_symbol ld option, if it does not
8945
        # work, assume that -exports_file does not work either and
8946
        # implicitly export all symbols.
8947
        save_LDFLAGS="$LDFLAGS"
8948
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8949
        if test x$gcc_no_link = xyes; then
8950
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8951
fi
8952
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953
/* end confdefs.h.  */
8954
int foo(void) {}
8955
_ACEOF
8956
if ac_fn_c_try_link "$LINENO"; then :
8957
  archive_expsym_cmds='$CC -shared $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'
8958
 
8959
fi
8960
rm -f core conftest.err conftest.$ac_objext \
8961
    conftest$ac_exeext conftest.$ac_ext
8962
        LDFLAGS="$save_LDFLAGS"
8963
      else
8964
        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'
8965
        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'
8966
      fi
8967
      archive_cmds_need_lc='no'
8968
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969
      hardcode_libdir_separator=:
8970
      inherit_rpath=yes
8971
      link_all_deplibs=yes
8972
      ;;
8973
 
8974
    netbsd*)
8975
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8976
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8977
      else
8978
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8979
      fi
8980
      hardcode_libdir_flag_spec='-R$libdir'
8981
      hardcode_direct=yes
8982
      hardcode_shlibpath_var=no
8983
      ;;
8984
 
8985
    newsos6)
8986
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987
      hardcode_direct=yes
8988
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8989
      hardcode_libdir_separator=:
8990
      hardcode_shlibpath_var=no
8991
      ;;
8992
 
8993
    *nto* | *qnx*)
8994
      ;;
8995
 
8996
    openbsd*)
8997
      if test -f /usr/libexec/ld.so; then
8998
        hardcode_direct=yes
8999
        hardcode_shlibpath_var=no
9000
        hardcode_direct_absolute=yes
9001
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9002
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9003
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9004
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9005
          export_dynamic_flag_spec='${wl}-E'
9006
        else
9007
          case $host_os in
9008
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9009
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010
             hardcode_libdir_flag_spec='-R$libdir'
9011
             ;;
9012
           *)
9013
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9014
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9015
             ;;
9016
          esac
9017
        fi
9018
      else
9019
        ld_shlibs=no
9020
      fi
9021
      ;;
9022
 
9023
    os2*)
9024
      hardcode_libdir_flag_spec='-L$libdir'
9025
      hardcode_minus_L=yes
9026
      allow_undefined_flag=unsupported
9027
      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'
9028
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9029
      ;;
9030
 
9031
    osf3*)
9032
      if test "$GCC" = yes; then
9033
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9034
        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'
9035
      else
9036
        allow_undefined_flag=' -expect_unresolved \*'
9037
        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'
9038
      fi
9039
      archive_cmds_need_lc='no'
9040
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041
      hardcode_libdir_separator=:
9042
      ;;
9043
 
9044
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9045
      if test "$GCC" = yes; then
9046
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9047
        archive_cmds='$CC -shared${allow_undefined_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'
9048
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9049
      else
9050
        allow_undefined_flag=' -expect_unresolved \*'
9051
        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'
9052
        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~
9053
        $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'
9054
 
9055
        # Both c and cxx compiler support -rpath directly
9056
        hardcode_libdir_flag_spec='-rpath $libdir'
9057
      fi
9058
      archive_cmds_need_lc='no'
9059
      hardcode_libdir_separator=:
9060
      ;;
9061
 
9062
    solaris*)
9063
      no_undefined_flag=' -z defs'
9064
      if test "$GCC" = yes; then
9065
        wlarc='${wl}'
9066
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9067
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9068
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9069
      else
9070
        case `$CC -V 2>&1` in
9071
        *"Compilers 5.0"*)
9072
          wlarc=''
9073
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9075
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9076
          ;;
9077
        *)
9078
          wlarc='${wl}'
9079
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9080
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9081
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9082
          ;;
9083
        esac
9084
      fi
9085
      hardcode_libdir_flag_spec='-R$libdir'
9086
      hardcode_shlibpath_var=no
9087
      case $host_os in
9088
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9089
      *)
9090
        # The compiler driver will combine and reorder linker options,
9091
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9092
        # but is careful enough not to reorder.
9093
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9094
        if test "$GCC" = yes; then
9095
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9096
        else
9097
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9098
        fi
9099
        ;;
9100
      esac
9101
      link_all_deplibs=yes
9102
      ;;
9103
 
9104
    sunos4*)
9105
      if test "x$host_vendor" = xsequent; then
9106
        # Use $CC to link under sequent, because it throws in some extra .o
9107
        # files that make .init and .fini sections work.
9108
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9109
      else
9110
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9111
      fi
9112
      hardcode_libdir_flag_spec='-L$libdir'
9113
      hardcode_direct=yes
9114
      hardcode_minus_L=yes
9115
      hardcode_shlibpath_var=no
9116
      ;;
9117
 
9118
    sysv4)
9119
      case $host_vendor in
9120
        sni)
9121
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122
          hardcode_direct=yes # is this really true???
9123
        ;;
9124
        siemens)
9125
          ## LD is ld it makes a PLAMLIB
9126
          ## CC just makes a GrossModule.
9127
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9128
          reload_cmds='$CC -r -o $output$reload_objs'
9129
          hardcode_direct=no
9130
        ;;
9131
        motorola)
9132
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9134
        ;;
9135
      esac
9136
      runpath_var='LD_RUN_PATH'
9137
      hardcode_shlibpath_var=no
9138
      ;;
9139
 
9140
    sysv4.3*)
9141
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9142
      hardcode_shlibpath_var=no
9143
      export_dynamic_flag_spec='-Bexport'
9144
      ;;
9145
 
9146
    sysv4*MP*)
9147
      if test -d /usr/nec; then
9148
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149
        hardcode_shlibpath_var=no
9150
        runpath_var=LD_RUN_PATH
9151
        hardcode_runpath_var=yes
9152
        ld_shlibs=yes
9153
      fi
9154
      ;;
9155
 
9156
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9157
      no_undefined_flag='${wl}-z,text'
9158
      archive_cmds_need_lc=no
9159
      hardcode_shlibpath_var=no
9160
      runpath_var='LD_RUN_PATH'
9161
 
9162
      if test "$GCC" = yes; then
9163
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9164
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9165
      else
9166
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168
      fi
9169
      ;;
9170
 
9171
    sysv5* | sco3.2v5* | sco5v6*)
9172
      # Note: We can NOT use -z defs as we might desire, because we do not
9173
      # link with -lc, and that would cause any symbols used from libc to
9174
      # always be unresolved, which means just about no library would
9175
      # ever link correctly.  If we're not using GNU ld we use -z text
9176
      # though, which does catch some bad symbols but isn't as heavy-handed
9177
      # as -z defs.
9178
      no_undefined_flag='${wl}-z,text'
9179
      allow_undefined_flag='${wl}-z,nodefs'
9180
      archive_cmds_need_lc=no
9181
      hardcode_shlibpath_var=no
9182
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9183
      hardcode_libdir_separator=':'
9184
      link_all_deplibs=yes
9185
      export_dynamic_flag_spec='${wl}-Bexport'
9186
      runpath_var='LD_RUN_PATH'
9187
 
9188
      if test "$GCC" = yes; then
9189
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9190
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9191
      else
9192
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9194
      fi
9195
      ;;
9196
 
9197
    uts4*)
9198
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9199
      hardcode_libdir_flag_spec='-L$libdir'
9200
      hardcode_shlibpath_var=no
9201
      ;;
9202
 
9203
    *)
9204
      ld_shlibs=no
9205
      ;;
9206
    esac
9207
 
9208
    if test x$host_vendor = xsni; then
9209
      case $host in
9210
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9211
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9212
        ;;
9213
      esac
9214
    fi
9215
  fi
9216
 
9217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9218
$as_echo "$ld_shlibs" >&6; }
9219
test "$ld_shlibs" = no && can_build_shared=no
9220
 
9221
with_gnu_ld=$with_gnu_ld
9222
 
9223
 
9224
 
9225
 
9226
 
9227
 
9228
 
9229
 
9230
 
9231
 
9232
 
9233
 
9234
 
9235
 
9236
 
9237
#
9238
# Do we need to explicitly link libc?
9239
#
9240
case "x$archive_cmds_need_lc" in
9241
x|xyes)
9242
  # Assume -lc should be added
9243
  archive_cmds_need_lc=yes
9244
 
9245
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9246
    case $archive_cmds in
9247
    *'~'*)
9248
      # FIXME: we may have to deal with multi-command sequences.
9249
      ;;
9250
    '$CC '*)
9251
      # Test whether the compiler implicitly links with -lc since on some
9252
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9253
      # to ld, don't add -lc before -lgcc.
9254
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9255
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9256
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9257
  $as_echo_n "(cached) " >&6
9258
else
9259
  $RM conftest*
9260
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9261
 
9262
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9263
  (eval $ac_compile) 2>&5
9264
  ac_status=$?
9265
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9266
  test $ac_status = 0; } 2>conftest.err; then
9267
          soname=conftest
9268
          lib=conftest
9269
          libobjs=conftest.$ac_objext
9270
          deplibs=
9271
          wl=$lt_prog_compiler_wl
9272
          pic_flag=$lt_prog_compiler_pic
9273
          compiler_flags=-v
9274
          linker_flags=-v
9275
          verstring=
9276
          output_objdir=.
9277
          libname=conftest
9278
          lt_save_allow_undefined_flag=$allow_undefined_flag
9279
          allow_undefined_flag=
9280
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9281
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9282
  ac_status=$?
9283
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9284
  test $ac_status = 0; }
9285
          then
9286
            lt_cv_archive_cmds_need_lc=no
9287
          else
9288
            lt_cv_archive_cmds_need_lc=yes
9289
          fi
9290
          allow_undefined_flag=$lt_save_allow_undefined_flag
9291
        else
9292
          cat conftest.err 1>&5
9293
        fi
9294
        $RM conftest*
9295
 
9296
fi
9297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9298
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9299
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9300
      ;;
9301
    esac
9302
  fi
9303
  ;;
9304
esac
9305
 
9306
 
9307
 
9308
 
9309
 
9310
 
9311
 
9312
 
9313
 
9314
 
9315
 
9316
 
9317
 
9318
 
9319
 
9320
 
9321
 
9322
 
9323
 
9324
 
9325
 
9326
 
9327
 
9328
 
9329
 
9330
 
9331
 
9332
 
9333
 
9334
 
9335
 
9336
 
9337
 
9338
 
9339
 
9340
 
9341
 
9342
 
9343
 
9344
 
9345
 
9346
 
9347
 
9348
 
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
 
9356
 
9357
 
9358
 
9359
 
9360
 
9361
 
9362
 
9363
 
9364
 
9365
 
9366
 
9367
 
9368
 
9369
 
9370
 
9371
 
9372
 
9373
 
9374
 
9375
 
9376
 
9377
 
9378
 
9379
 
9380
 
9381
 
9382
 
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
 
9402
 
9403
 
9404
 
9405
 
9406
 
9407
 
9408
 
9409
 
9410
 
9411
 
9412
 
9413
 
9414
 
9415
 
9416
 
9417
 
9418
 
9419
 
9420
 
9421
 
9422
 
9423
 
9424
 
9425
 
9426
 
9427
 
9428
 
9429
 
9430
 
9431
 
9432
 
9433
 
9434
 
9435
 
9436
 
9437
 
9438
 
9439
 
9440
 
9441
 
9442
 
9443
 
9444
 
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9463
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9464
 
9465
if test "$GCC" = yes; then
9466
  case $host_os in
9467
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9468
    *) lt_awk_arg="/^libraries:/" ;;
9469
  esac
9470
  case $host_os in
9471
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9472
    *) lt_sed_strip_eq="s,=/,/,g" ;;
9473
  esac
9474
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9475
  case $lt_search_path_spec in
9476
  *\;*)
9477
    # if the path contains ";" then we assume it to be the separator
9478
    # otherwise default to the standard path separator (i.e. ":") - it is
9479
    # assumed that no part of a normal pathname contains ";" but that should
9480
    # okay in the real world where ";" in dirpaths is itself problematic.
9481
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9482
    ;;
9483
  *)
9484
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9485
    ;;
9486
  esac
9487
  # Ok, now we have the path, separated by spaces, we can step through it
9488
  # and add multilib dir if necessary.
9489
  lt_tmp_lt_search_path_spec=
9490
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9491
  for lt_sys_path in $lt_search_path_spec; do
9492
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9493
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9494
    else
9495
      test -d "$lt_sys_path" && \
9496
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9497
    fi
9498
  done
9499
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9500
BEGIN {RS=" "; FS="/|\n";} {
9501
  lt_foo="";
9502
  lt_count=0;
9503
  for (lt_i = NF; lt_i > 0; lt_i--) {
9504
    if ($lt_i != "" && $lt_i != ".") {
9505
      if ($lt_i == "..") {
9506
        lt_count++;
9507
      } else {
9508
        if (lt_count == 0) {
9509
          lt_foo="/" $lt_i lt_foo;
9510
        } else {
9511
          lt_count--;
9512
        }
9513
      }
9514
    }
9515
  }
9516
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9517
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9518
}'`
9519
  # AWK program above erroneously prepends '/' to C:/dos/paths
9520
  # for these hosts.
9521
  case $host_os in
9522
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9523
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9524
  esac
9525
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9526
else
9527
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9528
fi
9529
library_names_spec=
9530
libname_spec='lib$name'
9531
soname_spec=
9532
shrext_cmds=".so"
9533
postinstall_cmds=
9534
postuninstall_cmds=
9535
finish_cmds=
9536
finish_eval=
9537
shlibpath_var=
9538
shlibpath_overrides_runpath=unknown
9539
version_type=none
9540
dynamic_linker="$host_os ld.so"
9541
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9542
need_lib_prefix=unknown
9543
hardcode_into_libs=no
9544
 
9545
# when you set need_version to no, make sure it does not cause -set_version
9546
# flags to be left without arguments
9547
need_version=unknown
9548
 
9549
case $host_os in
9550
aix3*)
9551
  version_type=linux
9552
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9553
  shlibpath_var=LIBPATH
9554
 
9555
  # AIX 3 has no versioning support, so we append a major version to the name.
9556
  soname_spec='${libname}${release}${shared_ext}$major'
9557
  ;;
9558
 
9559
aix[4-9]*)
9560
  version_type=linux
9561
  need_lib_prefix=no
9562
  need_version=no
9563
  hardcode_into_libs=yes
9564
  if test "$host_cpu" = ia64; then
9565
    # AIX 5 supports IA64
9566
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9567
    shlibpath_var=LD_LIBRARY_PATH
9568
  else
9569
    # With GCC up to 2.95.x, collect2 would create an import file
9570
    # for dependence libraries.  The import file would start with
9571
    # the line `#! .'.  This would cause the generated library to
9572
    # depend on `.', always an invalid library.  This was fixed in
9573
    # development snapshots of GCC prior to 3.0.
9574
    case $host_os in
9575
      aix4 | aix4.[01] | aix4.[01].*)
9576
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9577
           echo ' yes '
9578
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9579
        :
9580
      else
9581
        can_build_shared=no
9582
      fi
9583
      ;;
9584
    esac
9585
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9586
    # soname into executable. Probably we can add versioning support to
9587
    # collect2, so additional links can be useful in future.
9588
    if test "$aix_use_runtimelinking" = yes; then
9589
      # If using run time linking (on AIX 4.2 or later) use lib.so
9590
      # instead of lib.a to let people know that these are not
9591
      # typical AIX shared libraries.
9592
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593
    else
9594
      # We preserve .a as extension for shared libraries through AIX4.2
9595
      # and later when we are not doing run time linking.
9596
      library_names_spec='${libname}${release}.a $libname.a'
9597
      soname_spec='${libname}${release}${shared_ext}$major'
9598
    fi
9599
    shlibpath_var=LIBPATH
9600
  fi
9601
  ;;
9602
 
9603
amigaos*)
9604
  case $host_cpu in
9605
  powerpc)
9606
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9607
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9608
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609
    ;;
9610
  m68k)
9611
    library_names_spec='$libname.ixlibrary $libname.a'
9612
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9613
    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'
9614
    ;;
9615
  esac
9616
  ;;
9617
 
9618
beos*)
9619
  library_names_spec='${libname}${shared_ext}'
9620
  dynamic_linker="$host_os ld.so"
9621
  shlibpath_var=LIBRARY_PATH
9622
  ;;
9623
 
9624
bsdi[45]*)
9625
  version_type=linux
9626
  need_version=no
9627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628
  soname_spec='${libname}${release}${shared_ext}$major'
9629
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9630
  shlibpath_var=LD_LIBRARY_PATH
9631
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9632
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9633
  # the default ld.so.conf also contains /usr/contrib/lib and
9634
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9635
  # libtool to hard-code these into programs
9636
  ;;
9637
 
9638
cygwin* | mingw* | pw32* | cegcc*)
9639
  version_type=windows
9640
  shrext_cmds=".dll"
9641
  need_version=no
9642
  need_lib_prefix=no
9643
 
9644
  case $GCC,$host_os in
9645
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9646
    library_names_spec='$libname.dll.a'
9647
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9648
    postinstall_cmds='base_file=`basename \${file}`~
9649
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9650
      dldir=$destdir/`dirname \$dlpath`~
9651
      test -d \$dldir || mkdir -p \$dldir~
9652
      $install_prog $dir/$dlname \$dldir/$dlname~
9653
      chmod a+x \$dldir/$dlname~
9654
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9655
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9656
      fi'
9657
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9658
      dlpath=$dir/\$dldll~
9659
       $RM \$dlpath'
9660
    shlibpath_overrides_runpath=yes
9661
 
9662
    case $host_os in
9663
    cygwin*)
9664
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9665
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666
 
9667
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9668
      ;;
9669
    mingw* | cegcc*)
9670
      # MinGW DLLs use traditional 'lib' prefix
9671
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9672
      ;;
9673
    pw32*)
9674
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9675
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9676
      ;;
9677
    esac
9678
    ;;
9679
 
9680
  *)
9681
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9682
    ;;
9683
  esac
9684
  dynamic_linker='Win32 ld.exe'
9685
  # FIXME: first we should search . and the directory the executable is in
9686
  shlibpath_var=PATH
9687
  ;;
9688
 
9689
darwin* | rhapsody*)
9690
  dynamic_linker="$host_os dyld"
9691
  version_type=darwin
9692
  need_lib_prefix=no
9693
  need_version=no
9694
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9695
  soname_spec='${libname}${release}${major}$shared_ext'
9696
  shlibpath_overrides_runpath=yes
9697
  shlibpath_var=DYLD_LIBRARY_PATH
9698
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9699
 
9700
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9701
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9702
  ;;
9703
 
9704
dgux*)
9705
  version_type=linux
9706
  need_lib_prefix=no
9707
  need_version=no
9708
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9709
  soname_spec='${libname}${release}${shared_ext}$major'
9710
  shlibpath_var=LD_LIBRARY_PATH
9711
  ;;
9712
 
9713
freebsd1*)
9714
  dynamic_linker=no
9715
  ;;
9716
 
9717
freebsd* | dragonfly*)
9718
  # DragonFly does not have aout.  When/if they implement a new
9719
  # versioning mechanism, adjust this.
9720
  if test -x /usr/bin/objformat; then
9721
    objformat=`/usr/bin/objformat`
9722
  else
9723
    case $host_os in
9724
    freebsd[123]*) objformat=aout ;;
9725
    *) objformat=elf ;;
9726
    esac
9727
  fi
9728
  version_type=freebsd-$objformat
9729
  case $version_type in
9730
    freebsd-elf*)
9731
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732
      need_version=no
9733
      need_lib_prefix=no
9734
      ;;
9735
    freebsd-*)
9736
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9737
      need_version=yes
9738
      ;;
9739
  esac
9740
  shlibpath_var=LD_LIBRARY_PATH
9741
  case $host_os in
9742
  freebsd2*)
9743
    shlibpath_overrides_runpath=yes
9744
    ;;
9745
  freebsd3.[01]* | freebsdelf3.[01]*)
9746
    shlibpath_overrides_runpath=yes
9747
    hardcode_into_libs=yes
9748
    ;;
9749
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9750
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9751
    shlibpath_overrides_runpath=no
9752
    hardcode_into_libs=yes
9753
    ;;
9754
  *) # from 4.6 on, and DragonFly
9755
    shlibpath_overrides_runpath=yes
9756
    hardcode_into_libs=yes
9757
    ;;
9758
  esac
9759
  ;;
9760
 
9761
gnu*)
9762
  version_type=linux
9763
  need_lib_prefix=no
9764
  need_version=no
9765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9766
  soname_spec='${libname}${release}${shared_ext}$major'
9767
  shlibpath_var=LD_LIBRARY_PATH
9768
  hardcode_into_libs=yes
9769
  ;;
9770
 
9771
haiku*)
9772
  version_type=linux
9773
  need_lib_prefix=no
9774
  need_version=no
9775
  dynamic_linker="$host_os runtime_loader"
9776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9777
  soname_spec='${libname}${release}${shared_ext}$major'
9778
  shlibpath_var=LIBRARY_PATH
9779
  shlibpath_overrides_runpath=yes
9780
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9781
  hardcode_into_libs=yes
9782
  ;;
9783
 
9784
hpux9* | hpux10* | hpux11*)
9785
  # Give a soname corresponding to the major version so that dld.sl refuses to
9786
  # link against other versions.
9787
  version_type=sunos
9788
  need_lib_prefix=no
9789
  need_version=no
9790
  case $host_cpu in
9791
  ia64*)
9792
    shrext_cmds='.so'
9793
    hardcode_into_libs=yes
9794
    dynamic_linker="$host_os dld.so"
9795
    shlibpath_var=LD_LIBRARY_PATH
9796
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9797
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798
    soname_spec='${libname}${release}${shared_ext}$major'
9799
    if test "X$HPUX_IA64_MODE" = X32; then
9800
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9801
    else
9802
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9803
    fi
9804
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9805
    ;;
9806
  hppa*64*)
9807
    shrext_cmds='.sl'
9808
    hardcode_into_libs=yes
9809
    dynamic_linker="$host_os dld.sl"
9810
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9811
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9812
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813
    soname_spec='${libname}${release}${shared_ext}$major'
9814
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9815
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9816
    ;;
9817
  *)
9818
    shrext_cmds='.sl'
9819
    dynamic_linker="$host_os dld.sl"
9820
    shlibpath_var=SHLIB_PATH
9821
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9822
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823
    soname_spec='${libname}${release}${shared_ext}$major'
9824
    ;;
9825
  esac
9826
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9827
  postinstall_cmds='chmod 555 $lib'
9828
  # or fails outright, so override atomically:
9829
  install_override_mode=555
9830
  ;;
9831
 
9832
interix[3-9]*)
9833
  version_type=linux
9834
  need_lib_prefix=no
9835
  need_version=no
9836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9837
  soname_spec='${libname}${release}${shared_ext}$major'
9838
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9839
  shlibpath_var=LD_LIBRARY_PATH
9840
  shlibpath_overrides_runpath=no
9841
  hardcode_into_libs=yes
9842
  ;;
9843
 
9844
irix5* | irix6* | nonstopux*)
9845
  case $host_os in
9846
    nonstopux*) version_type=nonstopux ;;
9847
    *)
9848
        if test "$lt_cv_prog_gnu_ld" = yes; then
9849
                version_type=linux
9850
        else
9851
                version_type=irix
9852
        fi ;;
9853
  esac
9854
  need_lib_prefix=no
9855
  need_version=no
9856
  soname_spec='${libname}${release}${shared_ext}$major'
9857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9858
  case $host_os in
9859
  irix5* | nonstopux*)
9860
    libsuff= shlibsuff=
9861
    ;;
9862
  *)
9863
    case $LD in # libtool.m4 will add one of these switches to LD
9864
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9865
      libsuff= shlibsuff= libmagic=32-bit;;
9866
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9867
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9868
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9869
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9870
    *) libsuff= shlibsuff= libmagic=never-match;;
9871
    esac
9872
    ;;
9873
  esac
9874
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9875
  shlibpath_overrides_runpath=no
9876
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9877
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9878
  hardcode_into_libs=yes
9879
  ;;
9880
 
9881
# No shared lib support for Linux oldld, aout, or coff.
9882
linux*oldld* | linux*aout* | linux*coff*)
9883
  dynamic_linker=no
9884
  ;;
9885
 
9886
# This must be Linux ELF.
9887
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9888
  version_type=linux
9889
  need_lib_prefix=no
9890
  need_version=no
9891
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892
  soname_spec='${libname}${release}${shared_ext}$major'
9893
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9894
  shlibpath_var=LD_LIBRARY_PATH
9895
  shlibpath_overrides_runpath=no
9896
 
9897
  # Some binutils ld are patched to set DT_RUNPATH
9898
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9899
  $as_echo_n "(cached) " >&6
9900
else
9901
  lt_cv_shlibpath_overrides_runpath=no
9902
    save_LDFLAGS=$LDFLAGS
9903
    save_libdir=$libdir
9904
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9905
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9906
    if test x$gcc_no_link = xyes; then
9907
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9908
fi
9909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910
/* end confdefs.h.  */
9911
 
9912
int
9913
main ()
9914
{
9915
 
9916
  ;
9917
  return 0;
9918
}
9919
_ACEOF
9920
if ac_fn_c_try_link "$LINENO"; then :
9921
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9922
  lt_cv_shlibpath_overrides_runpath=yes
9923
fi
9924
fi
9925
rm -f core conftest.err conftest.$ac_objext \
9926
    conftest$ac_exeext conftest.$ac_ext
9927
    LDFLAGS=$save_LDFLAGS
9928
    libdir=$save_libdir
9929
 
9930
fi
9931
 
9932
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9933
 
9934
  # This implies no fast_install, which is unacceptable.
9935
  # Some rework will be needed to allow for fast_install
9936
  # before this can be enabled.
9937
  hardcode_into_libs=yes
9938
 
9939
  # Append ld.so.conf contents to the search path
9940
  if test -f /etc/ld.so.conf; then
9941
    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' ' '`
9942
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9943
  fi
9944
 
9945
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9946
  # powerpc, because MkLinux only supported shared libraries with the
9947
  # GNU dynamic linker.  Since this was broken with cross compilers,
9948
  # most powerpc-linux boxes support dynamic linking these days and
9949
  # people can always --disable-shared, the test was removed, and we
9950
  # assume the GNU/Linux dynamic linker is in use.
9951
  dynamic_linker='GNU/Linux ld.so'
9952
  ;;
9953
 
9954
netbsd*)
9955
  version_type=sunos
9956
  need_lib_prefix=no
9957
  need_version=no
9958
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9960
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9961
    dynamic_linker='NetBSD (a.out) ld.so'
9962
  else
9963
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9964
    soname_spec='${libname}${release}${shared_ext}$major'
9965
    dynamic_linker='NetBSD ld.elf_so'
9966
  fi
9967
  shlibpath_var=LD_LIBRARY_PATH
9968
  shlibpath_overrides_runpath=yes
9969
  hardcode_into_libs=yes
9970
  ;;
9971
 
9972
newsos6)
9973
  version_type=linux
9974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975
  shlibpath_var=LD_LIBRARY_PATH
9976
  shlibpath_overrides_runpath=yes
9977
  ;;
9978
 
9979
*nto* | *qnx*)
9980
  version_type=qnx
9981
  need_lib_prefix=no
9982
  need_version=no
9983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984
  soname_spec='${libname}${release}${shared_ext}$major'
9985
  shlibpath_var=LD_LIBRARY_PATH
9986
  shlibpath_overrides_runpath=no
9987
  hardcode_into_libs=yes
9988
  dynamic_linker='ldqnx.so'
9989
  ;;
9990
 
9991
openbsd*)
9992
  version_type=sunos
9993
  sys_lib_dlsearch_path_spec="/usr/lib"
9994
  need_lib_prefix=no
9995
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9996
  case $host_os in
9997
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9998
    *)                          need_version=no  ;;
9999
  esac
10000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10001
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10002
  shlibpath_var=LD_LIBRARY_PATH
10003
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10004
    case $host_os in
10005
      openbsd2.[89] | openbsd2.[89].*)
10006
        shlibpath_overrides_runpath=no
10007
        ;;
10008
      *)
10009
        shlibpath_overrides_runpath=yes
10010
        ;;
10011
      esac
10012
  else
10013
    shlibpath_overrides_runpath=yes
10014
  fi
10015
  ;;
10016
 
10017
os2*)
10018
  libname_spec='$name'
10019
  shrext_cmds=".dll"
10020
  need_lib_prefix=no
10021
  library_names_spec='$libname${shared_ext} $libname.a'
10022
  dynamic_linker='OS/2 ld.exe'
10023
  shlibpath_var=LIBPATH
10024
  ;;
10025
 
10026
osf3* | osf4* | osf5*)
10027
  version_type=osf
10028
  need_lib_prefix=no
10029
  need_version=no
10030
  soname_spec='${libname}${release}${shared_ext}$major'
10031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032
  shlibpath_var=LD_LIBRARY_PATH
10033
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10034
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10035
  ;;
10036
 
10037
rdos*)
10038
  dynamic_linker=no
10039
  ;;
10040
 
10041
solaris*)
10042
  version_type=linux
10043
  need_lib_prefix=no
10044
  need_version=no
10045
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046
  soname_spec='${libname}${release}${shared_ext}$major'
10047
  shlibpath_var=LD_LIBRARY_PATH
10048
  shlibpath_overrides_runpath=yes
10049
  hardcode_into_libs=yes
10050
  # ldd complains unless libraries are executable
10051
  postinstall_cmds='chmod +x $lib'
10052
  ;;
10053
 
10054
sunos4*)
10055
  version_type=sunos
10056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10057
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10058
  shlibpath_var=LD_LIBRARY_PATH
10059
  shlibpath_overrides_runpath=yes
10060
  if test "$with_gnu_ld" = yes; then
10061
    need_lib_prefix=no
10062
  fi
10063
  need_version=yes
10064
  ;;
10065
 
10066
sysv4 | sysv4.3*)
10067
  version_type=linux
10068
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069
  soname_spec='${libname}${release}${shared_ext}$major'
10070
  shlibpath_var=LD_LIBRARY_PATH
10071
  case $host_vendor in
10072
    sni)
10073
      shlibpath_overrides_runpath=no
10074
      need_lib_prefix=no
10075
      runpath_var=LD_RUN_PATH
10076
      ;;
10077
    siemens)
10078
      need_lib_prefix=no
10079
      ;;
10080
    motorola)
10081
      need_lib_prefix=no
10082
      need_version=no
10083
      shlibpath_overrides_runpath=no
10084
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10085
      ;;
10086
  esac
10087
  ;;
10088
 
10089
sysv4*MP*)
10090
  if test -d /usr/nec ;then
10091
    version_type=linux
10092
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10093
    soname_spec='$libname${shared_ext}.$major'
10094
    shlibpath_var=LD_LIBRARY_PATH
10095
  fi
10096
  ;;
10097
 
10098
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10099
  version_type=freebsd-elf
10100
  need_lib_prefix=no
10101
  need_version=no
10102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10103
  soname_spec='${libname}${release}${shared_ext}$major'
10104
  shlibpath_var=LD_LIBRARY_PATH
10105
  shlibpath_overrides_runpath=yes
10106
  hardcode_into_libs=yes
10107
  if test "$with_gnu_ld" = yes; then
10108
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10109
  else
10110
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10111
    case $host_os in
10112
      sco3.2v5*)
10113
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10114
        ;;
10115
    esac
10116
  fi
10117
  sys_lib_dlsearch_path_spec='/usr/lib'
10118
  ;;
10119
 
10120
tpf*)
10121
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10122
  version_type=linux
10123
  need_lib_prefix=no
10124
  need_version=no
10125
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126
  shlibpath_var=LD_LIBRARY_PATH
10127
  shlibpath_overrides_runpath=no
10128
  hardcode_into_libs=yes
10129
  ;;
10130
 
10131
uts4*)
10132
  version_type=linux
10133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134
  soname_spec='${libname}${release}${shared_ext}$major'
10135
  shlibpath_var=LD_LIBRARY_PATH
10136
  ;;
10137
 
10138
*)
10139
  dynamic_linker=no
10140
  ;;
10141
esac
10142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10143
$as_echo "$dynamic_linker" >&6; }
10144
test "$dynamic_linker" = no && can_build_shared=no
10145
 
10146
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10147
if test "$GCC" = yes; then
10148
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10149
fi
10150
 
10151
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10152
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10153
fi
10154
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10155
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10156
fi
10157
 
10158
 
10159
 
10160
 
10161
 
10162
 
10163
 
10164
 
10165
 
10166
 
10167
 
10168
 
10169
 
10170
 
10171
 
10172
 
10173
 
10174
 
10175
 
10176
 
10177
 
10178
 
10179
 
10180
 
10181
 
10182
 
10183
 
10184
 
10185
 
10186
 
10187
 
10188
 
10189
 
10190
 
10191
 
10192
 
10193
 
10194
 
10195
 
10196
 
10197
 
10198
 
10199
 
10200
 
10201
 
10202
 
10203
 
10204
 
10205
 
10206
 
10207
 
10208
 
10209
 
10210
 
10211
 
10212
 
10213
 
10214
 
10215
 
10216
 
10217
 
10218
 
10219
 
10220
 
10221
 
10222
 
10223
 
10224
 
10225
 
10226
 
10227
 
10228
 
10229
 
10230
 
10231
 
10232
 
10233
 
10234
 
10235
 
10236
 
10237
 
10238
 
10239
 
10240
 
10241
 
10242
 
10243
 
10244
 
10245
 
10246
 
10247
 
10248
 
10249
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10250
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10251
hardcode_action=
10252
if test -n "$hardcode_libdir_flag_spec" ||
10253
   test -n "$runpath_var" ||
10254
   test "X$hardcode_automatic" = "Xyes" ; then
10255
 
10256
  # We can hardcode non-existent directories.
10257
  if test "$hardcode_direct" != no &&
10258
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10259
     # have to relink, otherwise we might link with an installed library
10260
     # when we should be linking with a yet-to-be-installed one
10261
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10262
     test "$hardcode_minus_L" != no; then
10263
    # Linking always hardcodes the temporary library directory.
10264
    hardcode_action=relink
10265
  else
10266
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10267
    hardcode_action=immediate
10268
  fi
10269
else
10270
  # We cannot hardcode anything, or else we can only hardcode existing
10271
  # directories.
10272
  hardcode_action=unsupported
10273
fi
10274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10275
$as_echo "$hardcode_action" >&6; }
10276
 
10277
if test "$hardcode_action" = relink ||
10278
   test "$inherit_rpath" = yes; then
10279
  # Fast installation is not supported
10280
  enable_fast_install=no
10281
elif test "$shlibpath_overrides_runpath" = yes ||
10282
     test "$enable_shared" = no; then
10283
  # Fast installation is not necessary
10284
  enable_fast_install=needless
10285
fi
10286
 
10287
 
10288
 
10289
 
10290
 
10291
 
10292
  if test "x$enable_dlopen" != xyes; then
10293
  enable_dlopen=unknown
10294
  enable_dlopen_self=unknown
10295
  enable_dlopen_self_static=unknown
10296
else
10297
  lt_cv_dlopen=no
10298
  lt_cv_dlopen_libs=
10299
 
10300
  case $host_os in
10301
  beos*)
10302
    lt_cv_dlopen="load_add_on"
10303
    lt_cv_dlopen_libs=
10304
    lt_cv_dlopen_self=yes
10305
    ;;
10306
 
10307
  mingw* | pw32* | cegcc*)
10308
    lt_cv_dlopen="LoadLibrary"
10309
    lt_cv_dlopen_libs=
10310
    ;;
10311
 
10312
  cygwin*)
10313
    lt_cv_dlopen="dlopen"
10314
    lt_cv_dlopen_libs=
10315
    ;;
10316
 
10317
  darwin*)
10318
  # if libdl is installed we need to link against it
10319
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10320
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10321
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10322
  $as_echo_n "(cached) " >&6
10323
else
10324
  ac_check_lib_save_LIBS=$LIBS
10325
LIBS="-ldl  $LIBS"
10326
if test x$gcc_no_link = xyes; then
10327
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10328
fi
10329
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330
/* end confdefs.h.  */
10331
 
10332
/* Override any GCC internal prototype to avoid an error.
10333
   Use char because int might match the return type of a GCC
10334
   builtin and then its argument prototype would still apply.  */
10335
#ifdef __cplusplus
10336
extern "C"
10337
#endif
10338
char dlopen ();
10339
int
10340
main ()
10341
{
10342
return dlopen ();
10343
  ;
10344
  return 0;
10345
}
10346
_ACEOF
10347
if ac_fn_c_try_link "$LINENO"; then :
10348
  ac_cv_lib_dl_dlopen=yes
10349
else
10350
  ac_cv_lib_dl_dlopen=no
10351
fi
10352
rm -f core conftest.err conftest.$ac_objext \
10353
    conftest$ac_exeext conftest.$ac_ext
10354
LIBS=$ac_check_lib_save_LIBS
10355
fi
10356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10357
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10358
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10359
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10360
else
10361
 
10362
    lt_cv_dlopen="dyld"
10363
    lt_cv_dlopen_libs=
10364
    lt_cv_dlopen_self=yes
10365
 
10366
fi
10367
 
10368
    ;;
10369
 
10370
  *)
10371
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10372
if test "x$ac_cv_func_shl_load" = x""yes; then :
10373
  lt_cv_dlopen="shl_load"
10374
else
10375
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10376
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10377
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10378
  $as_echo_n "(cached) " >&6
10379
else
10380
  ac_check_lib_save_LIBS=$LIBS
10381
LIBS="-ldld  $LIBS"
10382
if test x$gcc_no_link = xyes; then
10383
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10384
fi
10385
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386
/* end confdefs.h.  */
10387
 
10388
/* Override any GCC internal prototype to avoid an error.
10389
   Use char because int might match the return type of a GCC
10390
   builtin and then its argument prototype would still apply.  */
10391
#ifdef __cplusplus
10392
extern "C"
10393
#endif
10394
char shl_load ();
10395
int
10396
main ()
10397
{
10398
return shl_load ();
10399
  ;
10400
  return 0;
10401
}
10402
_ACEOF
10403
if ac_fn_c_try_link "$LINENO"; then :
10404
  ac_cv_lib_dld_shl_load=yes
10405
else
10406
  ac_cv_lib_dld_shl_load=no
10407
fi
10408
rm -f core conftest.err conftest.$ac_objext \
10409
    conftest$ac_exeext conftest.$ac_ext
10410
LIBS=$ac_check_lib_save_LIBS
10411
fi
10412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10413
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10414
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10415
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10416
else
10417
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10418
if test "x$ac_cv_func_dlopen" = x""yes; then :
10419
  lt_cv_dlopen="dlopen"
10420
else
10421
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10422
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10423
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10424
  $as_echo_n "(cached) " >&6
10425
else
10426
  ac_check_lib_save_LIBS=$LIBS
10427
LIBS="-ldl  $LIBS"
10428
if test x$gcc_no_link = xyes; then
10429
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10430
fi
10431
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432
/* end confdefs.h.  */
10433
 
10434
/* Override any GCC internal prototype to avoid an error.
10435
   Use char because int might match the return type of a GCC
10436
   builtin and then its argument prototype would still apply.  */
10437
#ifdef __cplusplus
10438
extern "C"
10439
#endif
10440
char dlopen ();
10441
int
10442
main ()
10443
{
10444
return dlopen ();
10445
  ;
10446
  return 0;
10447
}
10448
_ACEOF
10449
if ac_fn_c_try_link "$LINENO"; then :
10450
  ac_cv_lib_dl_dlopen=yes
10451
else
10452
  ac_cv_lib_dl_dlopen=no
10453
fi
10454
rm -f core conftest.err conftest.$ac_objext \
10455
    conftest$ac_exeext conftest.$ac_ext
10456
LIBS=$ac_check_lib_save_LIBS
10457
fi
10458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10459
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10460
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10461
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10462
else
10463
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10464
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10465
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10466
  $as_echo_n "(cached) " >&6
10467
else
10468
  ac_check_lib_save_LIBS=$LIBS
10469
LIBS="-lsvld  $LIBS"
10470
if test x$gcc_no_link = xyes; then
10471
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10472
fi
10473
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474
/* end confdefs.h.  */
10475
 
10476
/* Override any GCC internal prototype to avoid an error.
10477
   Use char because int might match the return type of a GCC
10478
   builtin and then its argument prototype would still apply.  */
10479
#ifdef __cplusplus
10480
extern "C"
10481
#endif
10482
char dlopen ();
10483
int
10484
main ()
10485
{
10486
return dlopen ();
10487
  ;
10488
  return 0;
10489
}
10490
_ACEOF
10491
if ac_fn_c_try_link "$LINENO"; then :
10492
  ac_cv_lib_svld_dlopen=yes
10493
else
10494
  ac_cv_lib_svld_dlopen=no
10495
fi
10496
rm -f core conftest.err conftest.$ac_objext \
10497
    conftest$ac_exeext conftest.$ac_ext
10498
LIBS=$ac_check_lib_save_LIBS
10499
fi
10500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10501
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10502
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10503
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10504
else
10505
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10506
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10507
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10508
  $as_echo_n "(cached) " >&6
10509
else
10510
  ac_check_lib_save_LIBS=$LIBS
10511
LIBS="-ldld  $LIBS"
10512
if test x$gcc_no_link = xyes; then
10513
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10514
fi
10515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516
/* end confdefs.h.  */
10517
 
10518
/* Override any GCC internal prototype to avoid an error.
10519
   Use char because int might match the return type of a GCC
10520
   builtin and then its argument prototype would still apply.  */
10521
#ifdef __cplusplus
10522
extern "C"
10523
#endif
10524
char dld_link ();
10525
int
10526
main ()
10527
{
10528
return dld_link ();
10529
  ;
10530
  return 0;
10531
}
10532
_ACEOF
10533
if ac_fn_c_try_link "$LINENO"; then :
10534
  ac_cv_lib_dld_dld_link=yes
10535
else
10536
  ac_cv_lib_dld_dld_link=no
10537
fi
10538
rm -f core conftest.err conftest.$ac_objext \
10539
    conftest$ac_exeext conftest.$ac_ext
10540
LIBS=$ac_check_lib_save_LIBS
10541
fi
10542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10543
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10544
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10545
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10546
fi
10547
 
10548
 
10549
fi
10550
 
10551
 
10552
fi
10553
 
10554
 
10555
fi
10556
 
10557
 
10558
fi
10559
 
10560
 
10561
fi
10562
 
10563
    ;;
10564
  esac
10565
 
10566
  if test "x$lt_cv_dlopen" != xno; then
10567
    enable_dlopen=yes
10568
  else
10569
    enable_dlopen=no
10570
  fi
10571
 
10572
  case $lt_cv_dlopen in
10573
  dlopen)
10574
    save_CPPFLAGS="$CPPFLAGS"
10575
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10576
 
10577
    save_LDFLAGS="$LDFLAGS"
10578
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10579
 
10580
    save_LIBS="$LIBS"
10581
    LIBS="$lt_cv_dlopen_libs $LIBS"
10582
 
10583
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10584
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10585
if test "${lt_cv_dlopen_self+set}" = set; then :
10586
  $as_echo_n "(cached) " >&6
10587
else
10588
          if test "$cross_compiling" = yes; then :
10589
  lt_cv_dlopen_self=cross
10590
else
10591
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10592
  lt_status=$lt_dlunknown
10593
  cat > conftest.$ac_ext <<_LT_EOF
10594
#line 10594 "configure"
10595
#include "confdefs.h"
10596
 
10597
#if HAVE_DLFCN_H
10598
#include 
10599
#endif
10600
 
10601
#include 
10602
 
10603
#ifdef RTLD_GLOBAL
10604
#  define LT_DLGLOBAL           RTLD_GLOBAL
10605
#else
10606
#  ifdef DL_GLOBAL
10607
#    define LT_DLGLOBAL         DL_GLOBAL
10608
#  else
10609
#    define LT_DLGLOBAL         0
10610
#  endif
10611
#endif
10612
 
10613
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10614
   find out it does not work in some platform. */
10615
#ifndef LT_DLLAZY_OR_NOW
10616
#  ifdef RTLD_LAZY
10617
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10618
#  else
10619
#    ifdef DL_LAZY
10620
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10621
#    else
10622
#      ifdef RTLD_NOW
10623
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10624
#      else
10625
#        ifdef DL_NOW
10626
#          define LT_DLLAZY_OR_NOW      DL_NOW
10627
#        else
10628
#          define LT_DLLAZY_OR_NOW      0
10629
#        endif
10630
#      endif
10631
#    endif
10632
#  endif
10633
#endif
10634
 
10635
/* When -fvisbility=hidden is used, assume the code has been annotated
10636
   correspondingly for the symbols needed.  */
10637
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10638
void fnord () __attribute__((visibility("default")));
10639
#endif
10640
 
10641
void fnord () { int i=42; }
10642
int main ()
10643
{
10644
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10645
  int status = $lt_dlunknown;
10646
 
10647
  if (self)
10648
    {
10649
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10650
      else
10651
        {
10652
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10653
          else puts (dlerror ());
10654
        }
10655
      /* dlclose (self); */
10656
    }
10657
  else
10658
    puts (dlerror ());
10659
 
10660
  return status;
10661
}
10662
_LT_EOF
10663
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10664
  (eval $ac_link) 2>&5
10665
  ac_status=$?
10666
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10667
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10668
    (./conftest; exit; ) >&5 2>/dev/null
10669
    lt_status=$?
10670
    case x$lt_status in
10671
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10672
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10673
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10674
    esac
10675
  else :
10676
    # compilation failed
10677
    lt_cv_dlopen_self=no
10678
  fi
10679
fi
10680
rm -fr conftest*
10681
 
10682
 
10683
fi
10684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10685
$as_echo "$lt_cv_dlopen_self" >&6; }
10686
 
10687
    if test "x$lt_cv_dlopen_self" = xyes; then
10688
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10689
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10690
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10691
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10692
  $as_echo_n "(cached) " >&6
10693
else
10694
          if test "$cross_compiling" = yes; then :
10695
  lt_cv_dlopen_self_static=cross
10696
else
10697
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10698
  lt_status=$lt_dlunknown
10699
  cat > conftest.$ac_ext <<_LT_EOF
10700
#line 10700 "configure"
10701
#include "confdefs.h"
10702
 
10703
#if HAVE_DLFCN_H
10704
#include 
10705
#endif
10706
 
10707
#include 
10708
 
10709
#ifdef RTLD_GLOBAL
10710
#  define LT_DLGLOBAL           RTLD_GLOBAL
10711
#else
10712
#  ifdef DL_GLOBAL
10713
#    define LT_DLGLOBAL         DL_GLOBAL
10714
#  else
10715
#    define LT_DLGLOBAL         0
10716
#  endif
10717
#endif
10718
 
10719
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10720
   find out it does not work in some platform. */
10721
#ifndef LT_DLLAZY_OR_NOW
10722
#  ifdef RTLD_LAZY
10723
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10724
#  else
10725
#    ifdef DL_LAZY
10726
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10727
#    else
10728
#      ifdef RTLD_NOW
10729
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10730
#      else
10731
#        ifdef DL_NOW
10732
#          define LT_DLLAZY_OR_NOW      DL_NOW
10733
#        else
10734
#          define LT_DLLAZY_OR_NOW      0
10735
#        endif
10736
#      endif
10737
#    endif
10738
#  endif
10739
#endif
10740
 
10741
/* When -fvisbility=hidden is used, assume the code has been annotated
10742
   correspondingly for the symbols needed.  */
10743
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10744
void fnord () __attribute__((visibility("default")));
10745
#endif
10746
 
10747
void fnord () { int i=42; }
10748
int main ()
10749
{
10750
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10751
  int status = $lt_dlunknown;
10752
 
10753
  if (self)
10754
    {
10755
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10756
      else
10757
        {
10758
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10759
          else puts (dlerror ());
10760
        }
10761
      /* dlclose (self); */
10762
    }
10763
  else
10764
    puts (dlerror ());
10765
 
10766
  return status;
10767
}
10768
_LT_EOF
10769
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10770
  (eval $ac_link) 2>&5
10771
  ac_status=$?
10772
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10773
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10774
    (./conftest; exit; ) >&5 2>/dev/null
10775
    lt_status=$?
10776
    case x$lt_status in
10777
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10778
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10779
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10780
    esac
10781
  else :
10782
    # compilation failed
10783
    lt_cv_dlopen_self_static=no
10784
  fi
10785
fi
10786
rm -fr conftest*
10787
 
10788
 
10789
fi
10790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10791
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10792
    fi
10793
 
10794
    CPPFLAGS="$save_CPPFLAGS"
10795
    LDFLAGS="$save_LDFLAGS"
10796
    LIBS="$save_LIBS"
10797
    ;;
10798
  esac
10799
 
10800
  case $lt_cv_dlopen_self in
10801
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10802
  *) enable_dlopen_self=unknown ;;
10803
  esac
10804
 
10805
  case $lt_cv_dlopen_self_static in
10806
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10807
  *) enable_dlopen_self_static=unknown ;;
10808
  esac
10809
fi
10810
 
10811
 
10812
 
10813
 
10814
 
10815
 
10816
 
10817
 
10818
 
10819
 
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
 
10827
striplib=
10828
old_striplib=
10829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10830
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10831
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10832
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10833
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10835
$as_echo "yes" >&6; }
10836
else
10837
# FIXME - insert some real tests, host_os isn't really good enough
10838
  case $host_os in
10839
  darwin*)
10840
    if test -n "$STRIP" ; then
10841
      striplib="$STRIP -x"
10842
      old_striplib="$STRIP -S"
10843
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10844
$as_echo "yes" >&6; }
10845
    else
10846
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847
$as_echo "no" >&6; }
10848
    fi
10849
    ;;
10850
  *)
10851
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852
$as_echo "no" >&6; }
10853
    ;;
10854
  esac
10855
fi
10856
 
10857
 
10858
 
10859
 
10860
 
10861
 
10862
 
10863
 
10864
 
10865
 
10866
 
10867
 
10868
  # Report which library types will actually be built
10869
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10870
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10871
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10872
$as_echo "$can_build_shared" >&6; }
10873
 
10874
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10875
$as_echo_n "checking whether to build shared libraries... " >&6; }
10876
  test "$can_build_shared" = "no" && enable_shared=no
10877
 
10878
  # On AIX, shared libraries and static libraries use the same namespace, and
10879
  # are all built from PIC.
10880
  case $host_os in
10881
  aix3*)
10882
    test "$enable_shared" = yes && enable_static=no
10883
    if test -n "$RANLIB"; then
10884
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10885
      postinstall_cmds='$RANLIB $lib'
10886
    fi
10887
    ;;
10888
 
10889
  aix[4-9]*)
10890
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10891
      test "$enable_shared" = yes && enable_static=no
10892
    fi
10893
    ;;
10894
  esac
10895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10896
$as_echo "$enable_shared" >&6; }
10897
 
10898
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10899
$as_echo_n "checking whether to build static libraries... " >&6; }
10900
  # Make sure either enable_shared or enable_static is yes.
10901
  test "$enable_shared" = yes || enable_static=yes
10902
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10903
$as_echo "$enable_static" >&6; }
10904
 
10905
 
10906
 
10907
 
10908
fi
10909
ac_ext=c
10910
ac_cpp='$CPP $CPPFLAGS'
10911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10914
 
10915
CC="$lt_save_CC"
10916
 
10917
 
10918
 
10919
 
10920
 
10921
 
10922
 
10923
 
10924
 
10925
 
10926
 
10927
 
10928
 
10929
        ac_config_commands="$ac_config_commands libtool"
10930
 
10931
 
10932
 
10933
 
10934
# Only expand once:
10935
 
10936
 
10937
 
10938
 
10939
 
10940
# Calculate toolexeclibdir
10941
# Also toolexecdir, though it's only used in toolexeclibdir
10942
case ${version_specific_libs} in
10943
  yes)
10944
    # Need the gcc compiler version to know where to install libraries
10945
    # and header files if --enable-version-specific-runtime-libs option
10946
    # is selected.
10947
    toolexecdir='$(libdir)/gcc/$(target_alias)'
10948
    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10949
    ;;
10950
  no)
10951
    if test -n "$with_cross_host" &&
10952
       test x"$with_cross_host" != x"no"; then
10953
      # Install a library built with a cross compiler in tooldir, not libdir.
10954
      toolexecdir='$(exec_prefix)/$(target_alias)'
10955
      toolexeclibdir='$(toolexecdir)/lib'
10956
    else
10957
      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10958
      toolexeclibdir='$(libdir)'
10959
    fi
10960
    multi_os_directory=`$CC -print-multi-os-directory`
10961
    case $multi_os_directory in
10962
      .) ;; # Avoid trailing /.
10963
      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10964
    esac
10965
    ;;
10966
esac
10967
 
10968
 
10969
 
10970
if test ${multilib} = yes; then
10971
  multilib_arg="--enable-multilib"
10972
else
10973
  multilib_arg=
10974
fi
10975
 
10976
ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10977
 
10978
cat >confcache <<\_ACEOF
10979
# This file is a shell script that caches the results of configure
10980
# tests run on this system so they can be shared between configure
10981
# scripts and configure runs, see configure's option --config-cache.
10982
# It is not useful on other systems.  If it contains results you don't
10983
# want to keep, you may remove or edit it.
10984
#
10985
# config.status only pays attention to the cache file if you give it
10986
# the --recheck option to rerun configure.
10987
#
10988
# `ac_cv_env_foo' variables (set or unset) will be overridden when
10989
# loading this file, other *unset* `ac_cv_foo' will be assigned the
10990
# following values.
10991
 
10992
_ACEOF
10993
 
10994
# The following way of writing the cache mishandles newlines in values,
10995
# but we know of no workaround that is simple, portable, and efficient.
10996
# So, we kill variables containing newlines.
10997
# Ultrix sh set writes to stderr and can't be redirected directly,
10998
# and sets the high bit in the cache file unless we assign to the vars.
10999
(
11000
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11001
    eval ac_val=\$$ac_var
11002
    case $ac_val in #(
11003
    *${as_nl}*)
11004
      case $ac_var in #(
11005
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11006
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11007
      esac
11008
      case $ac_var in #(
11009
      _ | IFS | as_nl) ;; #(
11010
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11011
      *) { eval $ac_var=; unset $ac_var;} ;;
11012
      esac ;;
11013
    esac
11014
  done
11015
 
11016
  (set) 2>&1 |
11017
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11018
    *${as_nl}ac_space=\ *)
11019
      # `set' does not quote correctly, so add quotes: double-quote
11020
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11021
      sed -n \
11022
        "s/'/'\\\\''/g;
11023
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11024
      ;; #(
11025
    *)
11026
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11027
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11028
      ;;
11029
    esac |
11030
    sort
11031
) |
11032
  sed '
11033
     /^ac_cv_env_/b end
11034
     t clear
11035
     :clear
11036
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11037
     t end
11038
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11039
     :end' >>confcache
11040
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11041
  if test -w "$cache_file"; then
11042
    test "x$cache_file" != "x/dev/null" &&
11043
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11044
$as_echo "$as_me: updating cache $cache_file" >&6;}
11045
    cat confcache >$cache_file
11046
  else
11047
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11048
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11049
  fi
11050
fi
11051
rm -f confcache
11052
 
11053
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11054
# Let make expand exec_prefix.
11055
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11056
 
11057
DEFS=-DHAVE_CONFIG_H
11058
 
11059
ac_libobjs=
11060
ac_ltlibobjs=
11061
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11062
  # 1. Remove the extension, and $U if already installed.
11063
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11064
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11065
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11066
  #    will be set to the directory where LIBOBJS objects are built.
11067
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11068
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11069
done
11070
LIBOBJS=$ac_libobjs
11071
 
11072
LTLIBOBJS=$ac_ltlibobjs
11073
 
11074
 
11075
 if test -n "$EXEEXT"; then
11076
  am__EXEEXT_TRUE=
11077
  am__EXEEXT_FALSE='#'
11078
else
11079
  am__EXEEXT_TRUE='#'
11080
  am__EXEEXT_FALSE=
11081
fi
11082
 
11083
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11084
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11085
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11086
fi
11087
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11088
  as_fn_error "conditional \"AMDEP\" was never defined.
11089
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11090
fi
11091
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11092
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11093
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11094
fi
11095
if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
11096
  as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
11097
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11098
fi
11099
 
11100
: ${CONFIG_STATUS=./config.status}
11101
ac_write_fail=0
11102
ac_clean_files_save=$ac_clean_files
11103
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11104
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11105
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11106
as_write_fail=0
11107
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11108
#! $SHELL
11109
# Generated by $as_me.
11110
# Run this file to recreate the current configuration.
11111
# Compiler output produced by configure, useful for debugging
11112
# configure, is in config.log if it exists.
11113
 
11114
debug=false
11115
ac_cs_recheck=false
11116
ac_cs_silent=false
11117
 
11118
SHELL=\${CONFIG_SHELL-$SHELL}
11119
export SHELL
11120
_ASEOF
11121
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11122
## -------------------- ##
11123
## M4sh Initialization. ##
11124
## -------------------- ##
11125
 
11126
# Be more Bourne compatible
11127
DUALCASE=1; export DUALCASE # for MKS sh
11128
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11129
  emulate sh
11130
  NULLCMD=:
11131
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11132
  # is contrary to our usage.  Disable this feature.
11133
  alias -g '${1+"$@"}'='"$@"'
11134
  setopt NO_GLOB_SUBST
11135
else
11136
  case `(set -o) 2>/dev/null` in #(
11137
  *posix*) :
11138
    set -o posix ;; #(
11139
  *) :
11140
     ;;
11141
esac
11142
fi
11143
 
11144
 
11145
as_nl='
11146
'
11147
export as_nl
11148
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11149
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11150
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11151
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11152
# Prefer a ksh shell builtin over an external printf program on Solaris,
11153
# but without wasting forks for bash or zsh.
11154
if test -z "$BASH_VERSION$ZSH_VERSION" \
11155
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11156
  as_echo='print -r --'
11157
  as_echo_n='print -rn --'
11158
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11159
  as_echo='printf %s\n'
11160
  as_echo_n='printf %s'
11161
else
11162
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11163
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11164
    as_echo_n='/usr/ucb/echo -n'
11165
  else
11166
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11167
    as_echo_n_body='eval
11168
      arg=$1;
11169
      case $arg in #(
11170
      *"$as_nl"*)
11171
        expr "X$arg" : "X\\(.*\\)$as_nl";
11172
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11173
      esac;
11174
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11175
    '
11176
    export as_echo_n_body
11177
    as_echo_n='sh -c $as_echo_n_body as_echo'
11178
  fi
11179
  export as_echo_body
11180
  as_echo='sh -c $as_echo_body as_echo'
11181
fi
11182
 
11183
# The user is always right.
11184
if test "${PATH_SEPARATOR+set}" != set; then
11185
  PATH_SEPARATOR=:
11186
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11187
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11188
      PATH_SEPARATOR=';'
11189
  }
11190
fi
11191
 
11192
 
11193
# IFS
11194
# We need space, tab and new line, in precisely that order.  Quoting is
11195
# there to prevent editors from complaining about space-tab.
11196
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11197
# splitting by setting IFS to empty value.)
11198
IFS=" ""        $as_nl"
11199
 
11200
# Find who we are.  Look in the path if we contain no directory separator.
11201
case $0 in #((
11202
  *[\\/]* ) as_myself=$0 ;;
11203
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204
for as_dir in $PATH
11205
do
11206
  IFS=$as_save_IFS
11207
  test -z "$as_dir" && as_dir=.
11208
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11209
  done
11210
IFS=$as_save_IFS
11211
 
11212
     ;;
11213
esac
11214
# We did not find ourselves, most probably we were run as `sh COMMAND'
11215
# in which case we are not to be found in the path.
11216
if test "x$as_myself" = x; then
11217
  as_myself=$0
11218
fi
11219
if test ! -f "$as_myself"; then
11220
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11221
  exit 1
11222
fi
11223
 
11224
# Unset variables that we do not need and which cause bugs (e.g. in
11225
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11226
# suppresses any "Segmentation fault" message there.  '((' could
11227
# trigger a bug in pdksh 5.2.14.
11228
for as_var in BASH_ENV ENV MAIL MAILPATH
11229
do eval test x\${$as_var+set} = xset \
11230
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11231
done
11232
PS1='$ '
11233
PS2='> '
11234
PS4='+ '
11235
 
11236
# NLS nuisances.
11237
LC_ALL=C
11238
export LC_ALL
11239
LANGUAGE=C
11240
export LANGUAGE
11241
 
11242
# CDPATH.
11243
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11244
 
11245
 
11246
# as_fn_error ERROR [LINENO LOG_FD]
11247
# ---------------------------------
11248
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11249
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11250
# script with status $?, using 1 if that was 0.
11251
as_fn_error ()
11252
{
11253
  as_status=$?; test $as_status -eq 0 && as_status=1
11254
  if test "$3"; then
11255
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11256
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11257
  fi
11258
  $as_echo "$as_me: error: $1" >&2
11259
  as_fn_exit $as_status
11260
} # as_fn_error
11261
 
11262
 
11263
# as_fn_set_status STATUS
11264
# -----------------------
11265
# Set $? to STATUS, without forking.
11266
as_fn_set_status ()
11267
{
11268
  return $1
11269
} # as_fn_set_status
11270
 
11271
# as_fn_exit STATUS
11272
# -----------------
11273
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11274
as_fn_exit ()
11275
{
11276
  set +e
11277
  as_fn_set_status $1
11278
  exit $1
11279
} # as_fn_exit
11280
 
11281
# as_fn_unset VAR
11282
# ---------------
11283
# Portably unset VAR.
11284
as_fn_unset ()
11285
{
11286
  { eval $1=; unset $1;}
11287
}
11288
as_unset=as_fn_unset
11289
# as_fn_append VAR VALUE
11290
# ----------------------
11291
# Append the text in VALUE to the end of the definition contained in VAR. Take
11292
# advantage of any shell optimizations that allow amortized linear growth over
11293
# repeated appends, instead of the typical quadratic growth present in naive
11294
# implementations.
11295
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11296
  eval 'as_fn_append ()
11297
  {
11298
    eval $1+=\$2
11299
  }'
11300
else
11301
  as_fn_append ()
11302
  {
11303
    eval $1=\$$1\$2
11304
  }
11305
fi # as_fn_append
11306
 
11307
# as_fn_arith ARG...
11308
# ------------------
11309
# Perform arithmetic evaluation on the ARGs, and store the result in the
11310
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11311
# must be portable across $(()) and expr.
11312
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11313
  eval 'as_fn_arith ()
11314
  {
11315
    as_val=$(( $* ))
11316
  }'
11317
else
11318
  as_fn_arith ()
11319
  {
11320
    as_val=`expr "$@" || test $? -eq 1`
11321
  }
11322
fi # as_fn_arith
11323
 
11324
 
11325
if expr a : '\(a\)' >/dev/null 2>&1 &&
11326
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11327
  as_expr=expr
11328
else
11329
  as_expr=false
11330
fi
11331
 
11332
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11333
  as_basename=basename
11334
else
11335
  as_basename=false
11336
fi
11337
 
11338
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11339
  as_dirname=dirname
11340
else
11341
  as_dirname=false
11342
fi
11343
 
11344
as_me=`$as_basename -- "$0" ||
11345
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11346
         X"$0" : 'X\(//\)$' \| \
11347
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11348
$as_echo X/"$0" |
11349
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11350
            s//\1/
11351
            q
11352
          }
11353
          /^X\/\(\/\/\)$/{
11354
            s//\1/
11355
            q
11356
          }
11357
          /^X\/\(\/\).*/{
11358
            s//\1/
11359
            q
11360
          }
11361
          s/.*/./; q'`
11362
 
11363
# Avoid depending upon Character Ranges.
11364
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11365
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11366
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11367
as_cr_digits='0123456789'
11368
as_cr_alnum=$as_cr_Letters$as_cr_digits
11369
 
11370
ECHO_C= ECHO_N= ECHO_T=
11371
case `echo -n x` in #(((((
11372
-n*)
11373
  case `echo 'xy\c'` in
11374
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11375
  xy)  ECHO_C='\c';;
11376
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11377
       ECHO_T=' ';;
11378
  esac;;
11379
*)
11380
  ECHO_N='-n';;
11381
esac
11382
 
11383
rm -f conf$$ conf$$.exe conf$$.file
11384
if test -d conf$$.dir; then
11385
  rm -f conf$$.dir/conf$$.file
11386
else
11387
  rm -f conf$$.dir
11388
  mkdir conf$$.dir 2>/dev/null
11389
fi
11390
if (echo >conf$$.file) 2>/dev/null; then
11391
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11392
    as_ln_s='ln -s'
11393
    # ... but there are two gotchas:
11394
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11395
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11396
    # In both cases, we have to default to `cp -p'.
11397
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11398
      as_ln_s='cp -p'
11399
  elif ln conf$$.file conf$$ 2>/dev/null; then
11400
    as_ln_s=ln
11401
  else
11402
    as_ln_s='cp -p'
11403
  fi
11404
else
11405
  as_ln_s='cp -p'
11406
fi
11407
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11408
rmdir conf$$.dir 2>/dev/null
11409
 
11410
 
11411
# as_fn_mkdir_p
11412
# -------------
11413
# Create "$as_dir" as a directory, including parents if necessary.
11414
as_fn_mkdir_p ()
11415
{
11416
 
11417
  case $as_dir in #(
11418
  -*) as_dir=./$as_dir;;
11419
  esac
11420
  test -d "$as_dir" || eval $as_mkdir_p || {
11421
    as_dirs=
11422
    while :; do
11423
      case $as_dir in #(
11424
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11425
      *) as_qdir=$as_dir;;
11426
      esac
11427
      as_dirs="'$as_qdir' $as_dirs"
11428
      as_dir=`$as_dirname -- "$as_dir" ||
11429
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11430
         X"$as_dir" : 'X\(//\)[^/]' \| \
11431
         X"$as_dir" : 'X\(//\)$' \| \
11432
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11433
$as_echo X"$as_dir" |
11434
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11435
            s//\1/
11436
            q
11437
          }
11438
          /^X\(\/\/\)[^/].*/{
11439
            s//\1/
11440
            q
11441
          }
11442
          /^X\(\/\/\)$/{
11443
            s//\1/
11444
            q
11445
          }
11446
          /^X\(\/\).*/{
11447
            s//\1/
11448
            q
11449
          }
11450
          s/.*/./; q'`
11451
      test -d "$as_dir" && break
11452
    done
11453
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11454
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11455
 
11456
 
11457
} # as_fn_mkdir_p
11458
if mkdir -p . 2>/dev/null; then
11459
  as_mkdir_p='mkdir -p "$as_dir"'
11460
else
11461
  test -d ./-p && rmdir ./-p
11462
  as_mkdir_p=false
11463
fi
11464
 
11465
if test -x / >/dev/null 2>&1; then
11466
  as_test_x='test -x'
11467
else
11468
  if ls -dL / >/dev/null 2>&1; then
11469
    as_ls_L_option=L
11470
  else
11471
    as_ls_L_option=
11472
  fi
11473
  as_test_x='
11474
    eval sh -c '\''
11475
      if test -d "$1"; then
11476
        test -d "$1/.";
11477
      else
11478
        case $1 in #(
11479
        -*)set "./$1";;
11480
        esac;
11481
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11482
        ???[sx]*):;;*)false;;esac;fi
11483
    '\'' sh
11484
  '
11485
fi
11486
as_executable_p=$as_test_x
11487
 
11488
# Sed expression to map a string onto a valid CPP name.
11489
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11490
 
11491
# Sed expression to map a string onto a valid variable name.
11492
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11493
 
11494
 
11495
exec 6>&1
11496
## ----------------------------------- ##
11497
## Main body of $CONFIG_STATUS script. ##
11498
## ----------------------------------- ##
11499
_ASEOF
11500
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11501
 
11502
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11503
# Save the log message, to keep $0 and so on meaningful, and to
11504
# report actual input values of CONFIG_FILES etc. instead of their
11505
# values after options handling.
11506
ac_log="
11507
This file was extended by libssp $as_me 1.0, which was
11508
generated by GNU Autoconf 2.64.  Invocation command line was
11509
 
11510
  CONFIG_FILES    = $CONFIG_FILES
11511
  CONFIG_HEADERS  = $CONFIG_HEADERS
11512
  CONFIG_LINKS    = $CONFIG_LINKS
11513
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11514
  $ $0 $@
11515
 
11516
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11517
"
11518
 
11519
_ACEOF
11520
 
11521
case $ac_config_files in *"
11522
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11523
esac
11524
 
11525
case $ac_config_headers in *"
11526
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11527
esac
11528
 
11529
 
11530
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11531
# Files that config.status was made for.
11532
config_files="$ac_config_files"
11533
config_headers="$ac_config_headers"
11534
config_commands="$ac_config_commands"
11535
 
11536
_ACEOF
11537
 
11538
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11539
ac_cs_usage="\
11540
\`$as_me' instantiates files and other configuration actions
11541
from templates according to the current configuration.  Unless the files
11542
and actions are specified as TAGs, all are instantiated by default.
11543
 
11544
Usage: $0 [OPTION]... [TAG]...
11545
 
11546
  -h, --help       print this help, then exit
11547
  -V, --version    print version number and configuration settings, then exit
11548
  -q, --quiet, --silent
11549
                   do not print progress messages
11550
  -d, --debug      don't remove temporary files
11551
      --recheck    update $as_me by reconfiguring in the same conditions
11552
      --file=FILE[:TEMPLATE]
11553
                   instantiate the configuration file FILE
11554
      --header=FILE[:TEMPLATE]
11555
                   instantiate the configuration header FILE
11556
 
11557
Configuration files:
11558
$config_files
11559
 
11560
Configuration headers:
11561
$config_headers
11562
 
11563
Configuration commands:
11564
$config_commands
11565
 
11566
Report bugs to the package provider."
11567
 
11568
_ACEOF
11569
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11570
ac_cs_version="\\
11571
libssp config.status 1.0
11572
configured by $0, generated by GNU Autoconf 2.64,
11573
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11574
 
11575
Copyright (C) 2009 Free Software Foundation, Inc.
11576
This config.status script is free software; the Free Software Foundation
11577
gives unlimited permission to copy, distribute and modify it."
11578
 
11579
ac_pwd='$ac_pwd'
11580
srcdir='$srcdir'
11581
INSTALL='$INSTALL'
11582
MKDIR_P='$MKDIR_P'
11583
AWK='$AWK'
11584
test -n "\$AWK" || AWK=awk
11585
_ACEOF
11586
 
11587
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11588
# The default lists apply if the user does not specify any file.
11589
ac_need_defaults=:
11590
while test $# != 0
11591
do
11592
  case $1 in
11593
  --*=*)
11594
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11595
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11596
    ac_shift=:
11597
    ;;
11598
  *)
11599
    ac_option=$1
11600
    ac_optarg=$2
11601
    ac_shift=shift
11602
    ;;
11603
  esac
11604
 
11605
  case $ac_option in
11606
  # Handling of the options.
11607
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11608
    ac_cs_recheck=: ;;
11609
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11610
    $as_echo "$ac_cs_version"; exit ;;
11611
  --debug | --debu | --deb | --de | --d | -d )
11612
    debug=: ;;
11613
  --file | --fil | --fi | --f )
11614
    $ac_shift
11615
    case $ac_optarg in
11616
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11617
    esac
11618
    as_fn_append CONFIG_FILES " '$ac_optarg'"
11619
    ac_need_defaults=false;;
11620
  --header | --heade | --head | --hea )
11621
    $ac_shift
11622
    case $ac_optarg in
11623
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11624
    esac
11625
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11626
    ac_need_defaults=false;;
11627
  --he | --h)
11628
    # Conflict between --help and --header
11629
    as_fn_error "ambiguous option: \`$1'
11630
Try \`$0 --help' for more information.";;
11631
  --help | --hel | -h )
11632
    $as_echo "$ac_cs_usage"; exit ;;
11633
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11634
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11635
    ac_cs_silent=: ;;
11636
 
11637
  # This is an error.
11638
  -*) as_fn_error "unrecognized option: \`$1'
11639
Try \`$0 --help' for more information." ;;
11640
 
11641
  *) as_fn_append ac_config_targets " $1"
11642
     ac_need_defaults=false ;;
11643
 
11644
  esac
11645
  shift
11646
done
11647
 
11648
ac_configure_extra_args=
11649
 
11650
if $ac_cs_silent; then
11651
  exec 6>/dev/null
11652
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11653
fi
11654
 
11655
_ACEOF
11656
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11657
if \$ac_cs_recheck; then
11658
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11659
  shift
11660
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11661
  CONFIG_SHELL='$SHELL'
11662
  export CONFIG_SHELL
11663
  exec "\$@"
11664
fi
11665
 
11666
_ACEOF
11667
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11668
exec 5>>config.log
11669
{
11670
  echo
11671
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11672
## Running $as_me. ##
11673
_ASBOX
11674
  $as_echo "$ac_log"
11675
} >&5
11676
 
11677
_ACEOF
11678
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11679
#
11680
# INIT-COMMANDS
11681
#
11682
 
11683
srcdir="$srcdir"
11684
host="$host"
11685
target="$target"
11686
with_multisubdir="$with_multisubdir"
11687
with_multisrctop="$with_multisrctop"
11688
with_target_subdir="$with_target_subdir"
11689
ac_configure_args="${multilib_arg} ${ac_configure_args}"
11690
multi_basedir="$multi_basedir"
11691
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11692
CC="$CC"
11693
CXX="$CXX"
11694
GFORTRAN="$GFORTRAN"
11695
GCJ="$GCJ"
11696
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11697
 
11698
 
11699
# The HP-UX ksh and POSIX shell print the target directory to stdout
11700
# if CDPATH is set.
11701
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11702
 
11703
sed_quote_subst='$sed_quote_subst'
11704
double_quote_subst='$double_quote_subst'
11705
delay_variable_subst='$delay_variable_subst'
11706
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11707
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11708
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11709
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11710
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11711
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11712
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11713
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11714
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11715
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11716
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11717
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11718
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11719
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11720
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11721
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11722
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11723
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11724
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11725
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11726
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11727
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11728
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11729
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11730
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11731
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11732
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11733
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11734
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11735
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11736
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11737
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11738
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11739
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11740
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11741
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11742
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11743
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11744
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11745
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11746
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11747
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11748
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11749
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11750
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11751
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11752
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11753
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11754
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"`'
11755
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11756
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11757
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11758
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11759
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11760
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11761
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11762
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11763
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11764
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11765
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11766
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11767
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11768
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11769
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11770
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11771
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11772
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11773
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11774
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11775
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11776
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11777
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11778
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11779
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11780
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11781
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11782
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11783
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11784
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11785
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11786
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11787
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11788
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11789
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11790
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11791
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11792
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11793
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11794
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11795
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11796
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11797
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11798
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11799
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11800
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11801
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11802
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11803
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11804
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11805
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11806
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11807
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11808
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11809
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11810
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11811
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11812
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11813
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11814
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11815
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11816
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11817
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11818
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11819
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11820
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11821
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11822
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11823
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11824
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11825
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11826
 
11827
LTCC='$LTCC'
11828
LTCFLAGS='$LTCFLAGS'
11829
compiler='$compiler_DEFAULT'
11830
 
11831
# A function that is used when there is no print builtin or printf.
11832
func_fallback_echo ()
11833
{
11834
  eval 'cat <<_LTECHO_EOF
11835
\$1
11836
_LTECHO_EOF'
11837
}
11838
 
11839
# Quote evaled strings.
11840
for var in SHELL \
11841
ECHO \
11842
SED \
11843
GREP \
11844
EGREP \
11845
FGREP \
11846
LD \
11847
NM \
11848
LN_S \
11849
lt_SP2NL \
11850
lt_NL2SP \
11851
reload_flag \
11852
OBJDUMP \
11853
deplibs_check_method \
11854
file_magic_cmd \
11855
AR \
11856
AR_FLAGS \
11857
STRIP \
11858
RANLIB \
11859
CC \
11860
CFLAGS \
11861
compiler \
11862
lt_cv_sys_global_symbol_pipe \
11863
lt_cv_sys_global_symbol_to_cdecl \
11864
lt_cv_sys_global_symbol_to_c_name_address \
11865
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11866
lt_prog_compiler_no_builtin_flag \
11867
lt_prog_compiler_wl \
11868
lt_prog_compiler_pic \
11869
lt_prog_compiler_static \
11870
lt_cv_prog_compiler_c_o \
11871
need_locks \
11872
DSYMUTIL \
11873
NMEDIT \
11874
LIPO \
11875
OTOOL \
11876
OTOOL64 \
11877
shrext_cmds \
11878
export_dynamic_flag_spec \
11879
whole_archive_flag_spec \
11880
compiler_needs_object \
11881
with_gnu_ld \
11882
allow_undefined_flag \
11883
no_undefined_flag \
11884
hardcode_libdir_flag_spec \
11885
hardcode_libdir_flag_spec_ld \
11886
hardcode_libdir_separator \
11887
fix_srcfile_path \
11888
exclude_expsyms \
11889
include_expsyms \
11890
file_list_spec \
11891
variables_saved_for_relink \
11892
libname_spec \
11893
library_names_spec \
11894
soname_spec \
11895
install_override_mode \
11896
finish_eval \
11897
old_striplib \
11898
striplib; do
11899
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11900
    *[\\\\\\\`\\"\\\$]*)
11901
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11902
      ;;
11903
    *)
11904
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11905
      ;;
11906
    esac
11907
done
11908
 
11909
# Double-quote double-evaled strings.
11910
for var in reload_cmds \
11911
old_postinstall_cmds \
11912
old_postuninstall_cmds \
11913
old_archive_cmds \
11914
extract_expsyms_cmds \
11915
old_archive_from_new_cmds \
11916
old_archive_from_expsyms_cmds \
11917
archive_cmds \
11918
archive_expsym_cmds \
11919
module_cmds \
11920
module_expsym_cmds \
11921
export_symbols_cmds \
11922
prelink_cmds \
11923
postinstall_cmds \
11924
postuninstall_cmds \
11925
finish_cmds \
11926
sys_lib_search_path_spec \
11927
sys_lib_dlsearch_path_spec; do
11928
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11929
    *[\\\\\\\`\\"\\\$]*)
11930
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11931
      ;;
11932
    *)
11933
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11934
      ;;
11935
    esac
11936
done
11937
 
11938
ac_aux_dir='$ac_aux_dir'
11939
xsi_shell='$xsi_shell'
11940
lt_shell_append='$lt_shell_append'
11941
 
11942
# See if we are running on zsh, and set the options which allow our
11943
# commands through without removal of \ escapes INIT.
11944
if test -n "\${ZSH_VERSION+set}" ; then
11945
   setopt NO_GLOB_SUBST
11946
fi
11947
 
11948
 
11949
    PACKAGE='$PACKAGE'
11950
    VERSION='$VERSION'
11951
    TIMESTAMP='$TIMESTAMP'
11952
    RM='$RM'
11953
    ofile='$ofile'
11954
 
11955
 
11956
 
11957
 
11958
_ACEOF
11959
 
11960
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11961
 
11962
# Handling of arguments.
11963
for ac_config_target in $ac_config_targets
11964
do
11965
  case $ac_config_target in
11966
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11967
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11968
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11969
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11970
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11971
    "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11972
 
11973
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11974
  esac
11975
done
11976
 
11977
 
11978
# If the user did not use the arguments to specify the items to instantiate,
11979
# then the envvar interface is used.  Set only those that are not.
11980
# We use the long form for the default assignment because of an extremely
11981
# bizarre bug on SunOS 4.1.3.
11982
if $ac_need_defaults; then
11983
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11984
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11985
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11986
fi
11987
 
11988
# Have a temporary directory for convenience.  Make it in the build tree
11989
# simply because there is no reason against having it here, and in addition,
11990
# creating and moving files from /tmp can sometimes cause problems.
11991
# Hook for its removal unless debugging.
11992
# Note that there is a small window in which the directory will not be cleaned:
11993
# after its creation but before its name has been assigned to `$tmp'.
11994
$debug ||
11995
{
11996
  tmp=
11997
  trap 'exit_status=$?
11998
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11999
' 0
12000
  trap 'as_fn_exit 1' 1 2 13 15
12001
}
12002
# Create a (secure) tmp directory for tmp files.
12003
 
12004
{
12005
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12006
  test -n "$tmp" && test -d "$tmp"
12007
}  ||
12008
{
12009
  tmp=./conf$$-$RANDOM
12010
  (umask 077 && mkdir "$tmp")
12011
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12012
 
12013
# Set up the scripts for CONFIG_FILES section.
12014
# No need to generate them if there are no CONFIG_FILES.
12015
# This happens for instance with `./config.status config.h'.
12016
if test -n "$CONFIG_FILES"; then
12017
 
12018
 
12019
ac_cr=`echo X | tr X '\015'`
12020
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12021
# But we know of no other shell where ac_cr would be empty at this
12022
# point, so we can use a bashism as a fallback.
12023
if test "x$ac_cr" = x; then
12024
  eval ac_cr=\$\'\\r\'
12025
fi
12026
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
12027
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12028
  ac_cs_awk_cr='\r'
12029
else
12030
  ac_cs_awk_cr=$ac_cr
12031
fi
12032
 
12033
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12034
_ACEOF
12035
 
12036
 
12037
{
12038
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12039
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12040
  echo "_ACEOF"
12041
} >conf$$subs.sh ||
12042
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12043
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12044
ac_delim='%!_!# '
12045
for ac_last_try in false false false false false :; do
12046
  . ./conf$$subs.sh ||
12047
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12048
 
12049
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12050
  if test $ac_delim_n = $ac_delim_num; then
12051
    break
12052
  elif $ac_last_try; then
12053
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12054
  else
12055
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12056
  fi
12057
done
12058
rm -f conf$$subs.sh
12059
 
12060
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12061
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12062
_ACEOF
12063
sed -n '
12064
h
12065
s/^/S["/; s/!.*/"]=/
12066
p
12067
g
12068
s/^[^!]*!//
12069
:repl
12070
t repl
12071
s/'"$ac_delim"'$//
12072
t delim
12073
:nl
12074
h
12075
s/\(.\{148\}\).*/\1/
12076
t more1
12077
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12078
p
12079
n
12080
b repl
12081
:more1
12082
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12083
p
12084
g
12085
s/.\{148\}//
12086
t nl
12087
:delim
12088
h
12089
s/\(.\{148\}\).*/\1/
12090
t more2
12091
s/["\\]/\\&/g; s/^/"/; s/$/"/
12092
p
12093
b
12094
:more2
12095
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12096
p
12097
g
12098
s/.\{148\}//
12099
t delim
12100
' 
12101
/^[^""]/{
12102
  N
12103
  s/\n//
12104
}
12105
' >>$CONFIG_STATUS || ac_write_fail=1
12106
rm -f conf$$subs.awk
12107
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12108
_ACAWK
12109
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12110
  for (key in S) S_is_set[key] = 1
12111
  FS = ""
12112
 
12113
}
12114
{
12115
  line = $ 0
12116
  nfields = split(line, field, "@")
12117
  substed = 0
12118
  len = length(field[1])
12119
  for (i = 2; i < nfields; i++) {
12120
    key = field[i]
12121
    keylen = length(key)
12122
    if (S_is_set[key]) {
12123
      value = S[key]
12124
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12125
      len += length(value) + length(field[++i])
12126
      substed = 1
12127
    } else
12128
      len += 1 + keylen
12129
  }
12130
 
12131
  print line
12132
}
12133
 
12134
_ACAWK
12135
_ACEOF
12136
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12137
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12138
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12139
else
12140
  cat
12141
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12142
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12143
_ACEOF
12144
 
12145
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12146
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12147
# trailing colons and then remove the whole line if VPATH becomes empty
12148
# (actually we leave an empty line to preserve line numbers).
12149
if test "x$srcdir" = x.; then
12150
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12151
s/:*\$(srcdir):*/:/
12152
s/:*\${srcdir}:*/:/
12153
s/:*@srcdir@:*/:/
12154
s/^\([^=]*=[     ]*\):*/\1/
12155
s/:*$//
12156
s/^[^=]*=[       ]*$//
12157
}'
12158
fi
12159
 
12160
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12161
fi # test -n "$CONFIG_FILES"
12162
 
12163
# Set up the scripts for CONFIG_HEADERS section.
12164
# No need to generate them if there are no CONFIG_HEADERS.
12165
# This happens for instance with `./config.status Makefile'.
12166
if test -n "$CONFIG_HEADERS"; then
12167
cat >"$tmp/defines.awk" <<\_ACAWK ||
12168
BEGIN {
12169
_ACEOF
12170
 
12171
# Transform confdefs.h into an awk script `defines.awk', embedded as
12172
# here-document in config.status, that substitutes the proper values into
12173
# config.h.in to produce config.h.
12174
 
12175
# Create a delimiter string that does not exist in confdefs.h, to ease
12176
# handling of long lines.
12177
ac_delim='%!_!# '
12178
for ac_last_try in false false :; do
12179
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12180
  if test -z "$ac_t"; then
12181
    break
12182
  elif $ac_last_try; then
12183
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12184
  else
12185
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12186
  fi
12187
done
12188
 
12189
# For the awk script, D is an array of macro values keyed by name,
12190
# likewise P contains macro parameters if any.  Preserve backslash
12191
# newline sequences.
12192
 
12193
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12194
sed -n '
12195
s/.\{148\}/&'"$ac_delim"'/g
12196
t rset
12197
:rset
12198
s/^[     ]*#[    ]*define[       ][      ]*/ /
12199
t def
12200
d
12201
:def
12202
s/\\$//
12203
t bsnl
12204
s/["\\]/\\&/g
12205
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12206
D["\1"]=" \3"/p
12207
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12208
d
12209
:bsnl
12210
s/["\\]/\\&/g
12211
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12212
D["\1"]=" \3\\\\\\n"\\/p
12213
t cont
12214
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12215
t cont
12216
d
12217
:cont
12218
n
12219
s/.\{148\}/&'"$ac_delim"'/g
12220
t clear
12221
:clear
12222
s/\\$//
12223
t bsnlc
12224
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12225
d
12226
:bsnlc
12227
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12228
b cont
12229
' 
12230
s/'"$ac_delim"'/"\\\
12231
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12232
 
12233
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12234
  for (key in D) D_is_set[key] = 1
12235
  FS = ""
12236
}
12237
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12238
  line = \$ 0
12239
  split(line, arg, " ")
12240
  if (arg[1] == "#") {
12241
    defundef = arg[2]
12242
    mac1 = arg[3]
12243
  } else {
12244
    defundef = substr(arg[1], 2)
12245
    mac1 = arg[2]
12246
  }
12247
  split(mac1, mac2, "(") #)
12248
  macro = mac2[1]
12249
  prefix = substr(line, 1, index(line, defundef) - 1)
12250
  if (D_is_set[macro]) {
12251
    # Preserve the white space surrounding the "#".
12252
    print prefix "define", macro P[macro] D[macro]
12253
    next
12254
  } else {
12255
    # Replace #undef with comments.  This is necessary, for example,
12256
    # in the case of _POSIX_SOURCE, which is predefined and required
12257
    # on some systems where configure will not decide to define it.
12258
    if (defundef == "undef") {
12259
      print "/*", prefix defundef, macro, "*/"
12260
      next
12261
    }
12262
  }
12263
}
12264
{ print }
12265
_ACAWK
12266
_ACEOF
12267
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12268
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12269
fi # test -n "$CONFIG_HEADERS"
12270
 
12271
 
12272
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12273
shift
12274
for ac_tag
12275
do
12276
  case $ac_tag in
12277
  :[FHLC]) ac_mode=$ac_tag; continue;;
12278
  esac
12279
  case $ac_mode$ac_tag in
12280
  :[FHL]*:*);;
12281
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12282
  :[FH]-) ac_tag=-:-;;
12283
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12284
  esac
12285
  ac_save_IFS=$IFS
12286
  IFS=:
12287
  set x $ac_tag
12288
  IFS=$ac_save_IFS
12289
  shift
12290
  ac_file=$1
12291
  shift
12292
 
12293
  case $ac_mode in
12294
  :L) ac_source=$1;;
12295
  :[FH])
12296
    ac_file_inputs=
12297
    for ac_f
12298
    do
12299
      case $ac_f in
12300
      -) ac_f="$tmp/stdin";;
12301
      *) # Look for the file first in the build tree, then in the source tree
12302
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12303
         # because $ac_f cannot contain `:'.
12304
         test -f "$ac_f" ||
12305
           case $ac_f in
12306
           [\\/$]*) false;;
12307
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12308
           esac ||
12309
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12310
      esac
12311
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12312
      as_fn_append ac_file_inputs " '$ac_f'"
12313
    done
12314
 
12315
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12316
    # use $as_me), people would be surprised to read:
12317
    #    /* config.h.  Generated by config.status.  */
12318
    configure_input='Generated from '`
12319
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12320
        `' by configure.'
12321
    if test x"$ac_file" != x-; then
12322
      configure_input="$ac_file.  $configure_input"
12323
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12324
$as_echo "$as_me: creating $ac_file" >&6;}
12325
    fi
12326
    # Neutralize special characters interpreted by sed in replacement strings.
12327
    case $configure_input in #(
12328
    *\&* | *\|* | *\\* )
12329
       ac_sed_conf_input=`$as_echo "$configure_input" |
12330
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12331
    *) ac_sed_conf_input=$configure_input;;
12332
    esac
12333
 
12334
    case $ac_tag in
12335
    *:-:* | *:-) cat >"$tmp/stdin" \
12336
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12337
    esac
12338
    ;;
12339
  esac
12340
 
12341
  ac_dir=`$as_dirname -- "$ac_file" ||
12342
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12343
         X"$ac_file" : 'X\(//\)[^/]' \| \
12344
         X"$ac_file" : 'X\(//\)$' \| \
12345
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12346
$as_echo X"$ac_file" |
12347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12348
            s//\1/
12349
            q
12350
          }
12351
          /^X\(\/\/\)[^/].*/{
12352
            s//\1/
12353
            q
12354
          }
12355
          /^X\(\/\/\)$/{
12356
            s//\1/
12357
            q
12358
          }
12359
          /^X\(\/\).*/{
12360
            s//\1/
12361
            q
12362
          }
12363
          s/.*/./; q'`
12364
  as_dir="$ac_dir"; as_fn_mkdir_p
12365
  ac_builddir=.
12366
 
12367
case "$ac_dir" in
12368
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12369
*)
12370
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12371
  # A ".." for each directory in $ac_dir_suffix.
12372
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12373
  case $ac_top_builddir_sub in
12374
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12375
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12376
  esac ;;
12377
esac
12378
ac_abs_top_builddir=$ac_pwd
12379
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12380
# for backward compatibility:
12381
ac_top_builddir=$ac_top_build_prefix
12382
 
12383
case $srcdir in
12384
  .)  # We are building in place.
12385
    ac_srcdir=.
12386
    ac_top_srcdir=$ac_top_builddir_sub
12387
    ac_abs_top_srcdir=$ac_pwd ;;
12388
  [\\/]* | ?:[\\/]* )  # Absolute name.
12389
    ac_srcdir=$srcdir$ac_dir_suffix;
12390
    ac_top_srcdir=$srcdir
12391
    ac_abs_top_srcdir=$srcdir ;;
12392
  *) # Relative name.
12393
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12394
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12395
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12396
esac
12397
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12398
 
12399
 
12400
  case $ac_mode in
12401
  :F)
12402
  #
12403
  # CONFIG_FILE
12404
  #
12405
 
12406
  case $INSTALL in
12407
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12408
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12409
  esac
12410
  ac_MKDIR_P=$MKDIR_P
12411
  case $MKDIR_P in
12412
  [\\/$]* | ?:[\\/]* ) ;;
12413
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12414
  esac
12415
_ACEOF
12416
 
12417
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12418
# If the template does not know about datarootdir, expand it.
12419
# FIXME: This hack should be removed a few years after 2.60.
12420
ac_datarootdir_hack=; ac_datarootdir_seen=
12421
ac_sed_dataroot='
12422
/datarootdir/ {
12423
  p
12424
  q
12425
}
12426
/@datadir@/p
12427
/@docdir@/p
12428
/@infodir@/p
12429
/@localedir@/p
12430
/@mandir@/p'
12431
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12432
*datarootdir*) ac_datarootdir_seen=yes;;
12433
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12434
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12435
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12436
_ACEOF
12437
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12438
  ac_datarootdir_hack='
12439
  s&@datadir@&$datadir&g
12440
  s&@docdir@&$docdir&g
12441
  s&@infodir@&$infodir&g
12442
  s&@localedir@&$localedir&g
12443
  s&@mandir@&$mandir&g
12444
  s&\\\${datarootdir}&$datarootdir&g' ;;
12445
esac
12446
_ACEOF
12447
 
12448
# Neutralize VPATH when `$srcdir' = `.'.
12449
# Shell code in configure.ac might set extrasub.
12450
# FIXME: do we really want to maintain this feature?
12451
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12452
ac_sed_extra="$ac_vpsub
12453
$extrasub
12454
_ACEOF
12455
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12456
:t
12457
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12458
s|@configure_input@|$ac_sed_conf_input|;t t
12459
s&@top_builddir@&$ac_top_builddir_sub&;t t
12460
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12461
s&@srcdir@&$ac_srcdir&;t t
12462
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12463
s&@top_srcdir@&$ac_top_srcdir&;t t
12464
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12465
s&@builddir@&$ac_builddir&;t t
12466
s&@abs_builddir@&$ac_abs_builddir&;t t
12467
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12468
s&@INSTALL@&$ac_INSTALL&;t t
12469
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12470
$ac_datarootdir_hack
12471
"
12472
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12473
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12474
 
12475
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12476
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12477
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12478
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12479
which seems to be undefined.  Please make sure it is defined." >&5
12480
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12481
which seems to be undefined.  Please make sure it is defined." >&2;}
12482
 
12483
  rm -f "$tmp/stdin"
12484
  case $ac_file in
12485
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12486
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12487
  esac \
12488
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12489
 ;;
12490
  :H)
12491
  #
12492
  # CONFIG_HEADER
12493
  #
12494
  if test x"$ac_file" != x-; then
12495
    {
12496
      $as_echo "/* $configure_input  */" \
12497
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12498
    } >"$tmp/config.h" \
12499
      || as_fn_error "could not create $ac_file" "$LINENO" 5
12500
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12501
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12502
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12503
    else
12504
      rm -f "$ac_file"
12505
      mv "$tmp/config.h" "$ac_file" \
12506
        || as_fn_error "could not create $ac_file" "$LINENO" 5
12507
    fi
12508
  else
12509
    $as_echo "/* $configure_input  */" \
12510
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12511
      || as_fn_error "could not create -" "$LINENO" 5
12512
  fi
12513
# Compute "$ac_file"'s index in $config_headers.
12514
_am_arg="$ac_file"
12515
_am_stamp_count=1
12516
for _am_header in $config_headers :; do
12517
  case $_am_header in
12518
    $_am_arg | $_am_arg:* )
12519
      break ;;
12520
    * )
12521
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12522
  esac
12523
done
12524
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12525
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12526
         X"$_am_arg" : 'X\(//\)[^/]' \| \
12527
         X"$_am_arg" : 'X\(//\)$' \| \
12528
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12529
$as_echo X"$_am_arg" |
12530
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12531
            s//\1/
12532
            q
12533
          }
12534
          /^X\(\/\/\)[^/].*/{
12535
            s//\1/
12536
            q
12537
          }
12538
          /^X\(\/\/\)$/{
12539
            s//\1/
12540
            q
12541
          }
12542
          /^X\(\/\).*/{
12543
            s//\1/
12544
            q
12545
          }
12546
          s/.*/./; q'`/stamp-h$_am_stamp_count
12547
 ;;
12548
 
12549
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12550
$as_echo "$as_me: executing $ac_file commands" >&6;}
12551
 ;;
12552
  esac
12553
 
12554
 
12555
  case $ac_file$ac_mode in
12556
    "default-1":C)
12557
# Only add multilib support code if we just rebuilt the top-level
12558
# Makefile.
12559
case " $CONFIG_FILES " in
12560
 *" Makefile "*)
12561
   ac_file=Makefile . ${multi_basedir}/config-ml.in
12562
   ;;
12563
esac ;;
12564
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12565
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12566
  # are listed without --file.  Let's play safe and only enable the eval
12567
  # if we detect the quoting.
12568
  case $CONFIG_FILES in
12569
  *\'*) eval set x "$CONFIG_FILES" ;;
12570
  *)   set x $CONFIG_FILES ;;
12571
  esac
12572
  shift
12573
  for mf
12574
  do
12575
    # Strip MF so we end up with the name of the file.
12576
    mf=`echo "$mf" | sed -e 's/:.*$//'`
12577
    # Check whether this is an Automake generated Makefile or not.
12578
    # We used to match only the files named `Makefile.in', but
12579
    # some people rename them; so instead we look at the file content.
12580
    # Grep'ing the first line is not enough: some people post-process
12581
    # each Makefile.in and add a new line on top of each file to say so.
12582
    # Grep'ing the whole file is not good either: AIX grep has a line
12583
    # limit of 2048, but all sed's we know have understand at least 4000.
12584
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12585
      dirpart=`$as_dirname -- "$mf" ||
12586
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12587
         X"$mf" : 'X\(//\)[^/]' \| \
12588
         X"$mf" : 'X\(//\)$' \| \
12589
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12590
$as_echo X"$mf" |
12591
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12592
            s//\1/
12593
            q
12594
          }
12595
          /^X\(\/\/\)[^/].*/{
12596
            s//\1/
12597
            q
12598
          }
12599
          /^X\(\/\/\)$/{
12600
            s//\1/
12601
            q
12602
          }
12603
          /^X\(\/\).*/{
12604
            s//\1/
12605
            q
12606
          }
12607
          s/.*/./; q'`
12608
    else
12609
      continue
12610
    fi
12611
    # Extract the definition of DEPDIR, am__include, and am__quote
12612
    # from the Makefile without running `make'.
12613
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12614
    test -z "$DEPDIR" && continue
12615
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12616
    test -z "am__include" && continue
12617
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12618
    # When using ansi2knr, U may be empty or an underscore; expand it
12619
    U=`sed -n 's/^U = //p' < "$mf"`
12620
    # Find all dependency output files, they are included files with
12621
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12622
    # simplest approach to changing $(DEPDIR) to its actual value in the
12623
    # expansion.
12624
    for file in `sed -n "
12625
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12626
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12627
      # Make sure the directory exists.
12628
      test -f "$dirpart/$file" && continue
12629
      fdir=`$as_dirname -- "$file" ||
12630
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12631
         X"$file" : 'X\(//\)[^/]' \| \
12632
         X"$file" : 'X\(//\)$' \| \
12633
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12634
$as_echo X"$file" |
12635
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12636
            s//\1/
12637
            q
12638
          }
12639
          /^X\(\/\/\)[^/].*/{
12640
            s//\1/
12641
            q
12642
          }
12643
          /^X\(\/\/\)$/{
12644
            s//\1/
12645
            q
12646
          }
12647
          /^X\(\/\).*/{
12648
            s//\1/
12649
            q
12650
          }
12651
          s/.*/./; q'`
12652
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12653
      # echo "creating $dirpart/$file"
12654
      echo '# dummy' > "$dirpart/$file"
12655
    done
12656
  done
12657
}
12658
 ;;
12659
    "libtool":C)
12660
 
12661
    # See if we are running on zsh, and set the options which allow our
12662
    # commands through without removal of \ escapes.
12663
    if test -n "${ZSH_VERSION+set}" ; then
12664
      setopt NO_GLOB_SUBST
12665
    fi
12666
 
12667
    cfgfile="${ofile}T"
12668
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12669
    $RM "$cfgfile"
12670
 
12671
    cat <<_LT_EOF >> "$cfgfile"
12672
#! $SHELL
12673
 
12674
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12675
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12676
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12677
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12678
#
12679
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12680
#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12681
#   Written by Gordon Matzigkeit, 1996
12682
#
12683
#   This file is part of GNU Libtool.
12684
#
12685
# GNU Libtool is free software; you can redistribute it and/or
12686
# modify it under the terms of the GNU General Public License as
12687
# published by the Free Software Foundation; either version 2 of
12688
# the License, or (at your option) any later version.
12689
#
12690
# As a special exception to the GNU General Public License,
12691
# if you distribute this file as part of a program or library that
12692
# is built using GNU Libtool, you may include this file under the
12693
# same distribution terms that you use for the rest of that program.
12694
#
12695
# GNU Libtool is distributed in the hope that it will be useful,
12696
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12697
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12698
# GNU General Public License for more details.
12699
#
12700
# You should have received a copy of the GNU General Public License
12701
# along with GNU Libtool; see the file COPYING.  If not, a copy
12702
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12703
# obtained by writing to the Free Software Foundation, Inc.,
12704
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12705
 
12706
 
12707
# The names of the tagged configurations supported by this script.
12708
available_tags=""
12709
 
12710
# ### BEGIN LIBTOOL CONFIG
12711
 
12712
# Which release of libtool.m4 was used?
12713
macro_version=$macro_version
12714
macro_revision=$macro_revision
12715
 
12716
# Whether or not to build shared libraries.
12717
build_libtool_libs=$enable_shared
12718
 
12719
# Whether or not to build static libraries.
12720
build_old_libs=$enable_static
12721
 
12722
# What type of objects to build.
12723
pic_mode=$pic_mode
12724
 
12725
# Whether or not to optimize for fast installation.
12726
fast_install=$enable_fast_install
12727
 
12728
# Shell to use when invoking shell scripts.
12729
SHELL=$lt_SHELL
12730
 
12731
# An echo program that protects backslashes.
12732
ECHO=$lt_ECHO
12733
 
12734
# The host system.
12735
host_alias=$host_alias
12736
host=$host
12737
host_os=$host_os
12738
 
12739
# The build system.
12740
build_alias=$build_alias
12741
build=$build
12742
build_os=$build_os
12743
 
12744
# A sed program that does not truncate output.
12745
SED=$lt_SED
12746
 
12747
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12748
Xsed="\$SED -e 1s/^X//"
12749
 
12750
# A grep program that handles long lines.
12751
GREP=$lt_GREP
12752
 
12753
# An ERE matcher.
12754
EGREP=$lt_EGREP
12755
 
12756
# A literal string matcher.
12757
FGREP=$lt_FGREP
12758
 
12759
# A BSD- or MS-compatible name lister.
12760
NM=$lt_NM
12761
 
12762
# Whether we need soft or hard links.
12763
LN_S=$lt_LN_S
12764
 
12765
# What is the maximum length of a command?
12766
max_cmd_len=$max_cmd_len
12767
 
12768
# Object file suffix (normally "o").
12769
objext=$ac_objext
12770
 
12771
# Executable file suffix (normally "").
12772
exeext=$exeext
12773
 
12774
# whether the shell understands "unset".
12775
lt_unset=$lt_unset
12776
 
12777
# turn spaces into newlines.
12778
SP2NL=$lt_lt_SP2NL
12779
 
12780
# turn newlines into spaces.
12781
NL2SP=$lt_lt_NL2SP
12782
 
12783
# An object symbol dumper.
12784
OBJDUMP=$lt_OBJDUMP
12785
 
12786
# Method to check whether dependent libraries are shared objects.
12787
deplibs_check_method=$lt_deplibs_check_method
12788
 
12789
# Command to use when deplibs_check_method == "file_magic".
12790
file_magic_cmd=$lt_file_magic_cmd
12791
 
12792
# The archiver.
12793
AR=$lt_AR
12794
AR_FLAGS=$lt_AR_FLAGS
12795
 
12796
# A symbol stripping program.
12797
STRIP=$lt_STRIP
12798
 
12799
# Commands used to install an old-style archive.
12800
RANLIB=$lt_RANLIB
12801
old_postinstall_cmds=$lt_old_postinstall_cmds
12802
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12803
 
12804
# Whether to use a lock for old archive extraction.
12805
lock_old_archive_extraction=$lock_old_archive_extraction
12806
 
12807
# A C compiler.
12808
LTCC=$lt_CC
12809
 
12810
# LTCC compiler flags.
12811
LTCFLAGS=$lt_CFLAGS
12812
 
12813
# Take the output of nm and produce a listing of raw symbols and C names.
12814
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12815
 
12816
# Transform the output of nm in a proper C declaration.
12817
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12818
 
12819
# Transform the output of nm in a C name address pair.
12820
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12821
 
12822
# Transform the output of nm in a C name address pair when lib prefix is needed.
12823
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12824
 
12825
# The name of the directory that contains temporary libtool files.
12826
objdir=$objdir
12827
 
12828
# Used to examine libraries when file_magic_cmd begins with "file".
12829
MAGIC_CMD=$MAGIC_CMD
12830
 
12831
# Must we lock files when doing compilation?
12832
need_locks=$lt_need_locks
12833
 
12834
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12835
DSYMUTIL=$lt_DSYMUTIL
12836
 
12837
# Tool to change global to local symbols on Mac OS X.
12838
NMEDIT=$lt_NMEDIT
12839
 
12840
# Tool to manipulate fat objects and archives on Mac OS X.
12841
LIPO=$lt_LIPO
12842
 
12843
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12844
OTOOL=$lt_OTOOL
12845
 
12846
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12847
OTOOL64=$lt_OTOOL64
12848
 
12849
# Old archive suffix (normally "a").
12850
libext=$libext
12851
 
12852
# Shared library suffix (normally ".so").
12853
shrext_cmds=$lt_shrext_cmds
12854
 
12855
# The commands to extract the exported symbol list from a shared archive.
12856
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12857
 
12858
# Variables whose values should be saved in libtool wrapper scripts and
12859
# restored at link time.
12860
variables_saved_for_relink=$lt_variables_saved_for_relink
12861
 
12862
# Do we need the "lib" prefix for modules?
12863
need_lib_prefix=$need_lib_prefix
12864
 
12865
# Do we need a version for libraries?
12866
need_version=$need_version
12867
 
12868
# Library versioning type.
12869
version_type=$version_type
12870
 
12871
# Shared library runtime path variable.
12872
runpath_var=$runpath_var
12873
 
12874
# Shared library path variable.
12875
shlibpath_var=$shlibpath_var
12876
 
12877
# Is shlibpath searched before the hard-coded library search path?
12878
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12879
 
12880
# Format of library name prefix.
12881
libname_spec=$lt_libname_spec
12882
 
12883
# List of archive names.  First name is the real one, the rest are links.
12884
# The last name is the one that the linker finds with -lNAME
12885
library_names_spec=$lt_library_names_spec
12886
 
12887
# The coded name of the library, if different from the real name.
12888
soname_spec=$lt_soname_spec
12889
 
12890
# Permission mode override for installation of shared libraries.
12891
install_override_mode=$lt_install_override_mode
12892
 
12893
# Command to use after installation of a shared archive.
12894
postinstall_cmds=$lt_postinstall_cmds
12895
 
12896
# Command to use after uninstallation of a shared archive.
12897
postuninstall_cmds=$lt_postuninstall_cmds
12898
 
12899
# Commands used to finish a libtool library installation in a directory.
12900
finish_cmds=$lt_finish_cmds
12901
 
12902
# As "finish_cmds", except a single script fragment to be evaled but
12903
# not shown.
12904
finish_eval=$lt_finish_eval
12905
 
12906
# Whether we should hardcode library paths into libraries.
12907
hardcode_into_libs=$hardcode_into_libs
12908
 
12909
# Compile-time system search path for libraries.
12910
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12911
 
12912
# Run-time system search path for libraries.
12913
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12914
 
12915
# Whether dlopen is supported.
12916
dlopen_support=$enable_dlopen
12917
 
12918
# Whether dlopen of programs is supported.
12919
dlopen_self=$enable_dlopen_self
12920
 
12921
# Whether dlopen of statically linked programs is supported.
12922
dlopen_self_static=$enable_dlopen_self_static
12923
 
12924
# Commands to strip libraries.
12925
old_striplib=$lt_old_striplib
12926
striplib=$lt_striplib
12927
 
12928
 
12929
# The linker used to build libraries.
12930
LD=$lt_LD
12931
 
12932
# How to create reloadable object files.
12933
reload_flag=$lt_reload_flag
12934
reload_cmds=$lt_reload_cmds
12935
 
12936
# Commands used to build an old-style archive.
12937
old_archive_cmds=$lt_old_archive_cmds
12938
 
12939
# A language specific compiler.
12940
CC=$lt_compiler
12941
 
12942
# Is the compiler the GNU compiler?
12943
with_gcc=$GCC
12944
 
12945
# Compiler flag to turn off builtin functions.
12946
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12947
 
12948
# How to pass a linker flag through the compiler.
12949
wl=$lt_lt_prog_compiler_wl
12950
 
12951
# Additional compiler flags for building library objects.
12952
pic_flag=$lt_lt_prog_compiler_pic
12953
 
12954
# Compiler flag to prevent dynamic linking.
12955
link_static_flag=$lt_lt_prog_compiler_static
12956
 
12957
# Does compiler simultaneously support -c and -o options?
12958
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12959
 
12960
# Whether or not to add -lc for building shared libraries.
12961
build_libtool_need_lc=$archive_cmds_need_lc
12962
 
12963
# Whether or not to disallow shared libs when runtime libs are static.
12964
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12965
 
12966
# Compiler flag to allow reflexive dlopens.
12967
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12968
 
12969
# Compiler flag to generate shared objects directly from archives.
12970
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12971
 
12972
# Whether the compiler copes with passing no objects directly.
12973
compiler_needs_object=$lt_compiler_needs_object
12974
 
12975
# Create an old-style archive from a shared archive.
12976
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12977
 
12978
# Create a temporary old-style archive to link instead of a shared archive.
12979
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12980
 
12981
# Commands used to build a shared archive.
12982
archive_cmds=$lt_archive_cmds
12983
archive_expsym_cmds=$lt_archive_expsym_cmds
12984
 
12985
# Commands used to build a loadable module if different from building
12986
# a shared archive.
12987
module_cmds=$lt_module_cmds
12988
module_expsym_cmds=$lt_module_expsym_cmds
12989
 
12990
# Whether we are building with GNU ld or not.
12991
with_gnu_ld=$lt_with_gnu_ld
12992
 
12993
# Flag that allows shared libraries with undefined symbols to be built.
12994
allow_undefined_flag=$lt_allow_undefined_flag
12995
 
12996
# Flag that enforces no undefined symbols.
12997
no_undefined_flag=$lt_no_undefined_flag
12998
 
12999
# Flag to hardcode \$libdir into a binary during linking.
13000
# This must work even if \$libdir does not exist
13001
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13002
 
13003
# If ld is used when linking, flag to hardcode \$libdir into a binary
13004
# during linking.  This must work even if \$libdir does not exist.
13005
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13006
 
13007
# Whether we need a single "-rpath" flag with a separated argument.
13008
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13009
 
13010
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13011
# DIR into the resulting binary.
13012
hardcode_direct=$hardcode_direct
13013
 
13014
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13015
# DIR into the resulting binary and the resulting library dependency is
13016
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13017
# library is relocated.
13018
hardcode_direct_absolute=$hardcode_direct_absolute
13019
 
13020
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13021
# into the resulting binary.
13022
hardcode_minus_L=$hardcode_minus_L
13023
 
13024
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13025
# into the resulting binary.
13026
hardcode_shlibpath_var=$hardcode_shlibpath_var
13027
 
13028
# Set to "yes" if building a shared library automatically hardcodes DIR
13029
# into the library and all subsequent libraries and executables linked
13030
# against it.
13031
hardcode_automatic=$hardcode_automatic
13032
 
13033
# Set to yes if linker adds runtime paths of dependent libraries
13034
# to runtime path list.
13035
inherit_rpath=$inherit_rpath
13036
 
13037
# Whether libtool must link a program against all its dependency libraries.
13038
link_all_deplibs=$link_all_deplibs
13039
 
13040
# Fix the shell variable \$srcfile for the compiler.
13041
fix_srcfile_path=$lt_fix_srcfile_path
13042
 
13043
# Set to "yes" if exported symbols are required.
13044
always_export_symbols=$always_export_symbols
13045
 
13046
# The commands to list exported symbols.
13047
export_symbols_cmds=$lt_export_symbols_cmds
13048
 
13049
# Symbols that should not be listed in the preloaded symbols.
13050
exclude_expsyms=$lt_exclude_expsyms
13051
 
13052
# Symbols that must always be exported.
13053
include_expsyms=$lt_include_expsyms
13054
 
13055
# Commands necessary for linking programs (against libraries) with templates.
13056
prelink_cmds=$lt_prelink_cmds
13057
 
13058
# Specify filename containing input files.
13059
file_list_spec=$lt_file_list_spec
13060
 
13061
# How to hardcode a shared library path into an executable.
13062
hardcode_action=$hardcode_action
13063
 
13064
# ### END LIBTOOL CONFIG
13065
 
13066
_LT_EOF
13067
 
13068
  case $host_os in
13069
  aix3*)
13070
    cat <<\_LT_EOF >> "$cfgfile"
13071
# AIX sometimes has problems with the GCC collect2 program.  For some
13072
# reason, if we set the COLLECT_NAMES environment variable, the problems
13073
# vanish in a puff of smoke.
13074
if test "X${COLLECT_NAMES+set}" != Xset; then
13075
  COLLECT_NAMES=
13076
  export COLLECT_NAMES
13077
fi
13078
_LT_EOF
13079
    ;;
13080
  esac
13081
 
13082
 
13083
ltmain="$ac_aux_dir/ltmain.sh"
13084
 
13085
 
13086
  # We use sed instead of cat because bash on DJGPP gets confused if
13087
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13088
  # text mode, it properly converts lines to CR/LF.  This bash problem
13089
  # is reportedly fixed, but why not run on old versions too?
13090
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13091
    || (rm -f "$cfgfile"; exit 1)
13092
 
13093
  case $xsi_shell in
13094
  yes)
13095
    cat << \_LT_EOF >> "$cfgfile"
13096
 
13097
# func_dirname file append nondir_replacement
13098
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13099
# otherwise set result to NONDIR_REPLACEMENT.
13100
func_dirname ()
13101
{
13102
  case ${1} in
13103
    */*) func_dirname_result="${1%/*}${2}" ;;
13104
    *  ) func_dirname_result="${3}" ;;
13105
  esac
13106
}
13107
 
13108
# func_basename file
13109
func_basename ()
13110
{
13111
  func_basename_result="${1##*/}"
13112
}
13113
 
13114
# func_dirname_and_basename file append nondir_replacement
13115
# perform func_basename and func_dirname in a single function
13116
# call:
13117
#   dirname:  Compute the dirname of FILE.  If nonempty,
13118
#             add APPEND to the result, otherwise set result
13119
#             to NONDIR_REPLACEMENT.
13120
#             value returned in "$func_dirname_result"
13121
#   basename: Compute filename of FILE.
13122
#             value retuned in "$func_basename_result"
13123
# Implementation must be kept synchronized with func_dirname
13124
# and func_basename. For efficiency, we do not delegate to
13125
# those functions but instead duplicate the functionality here.
13126
func_dirname_and_basename ()
13127
{
13128
  case ${1} in
13129
    */*) func_dirname_result="${1%/*}${2}" ;;
13130
    *  ) func_dirname_result="${3}" ;;
13131
  esac
13132
  func_basename_result="${1##*/}"
13133
}
13134
 
13135
# func_stripname prefix suffix name
13136
# strip PREFIX and SUFFIX off of NAME.
13137
# PREFIX and SUFFIX must not contain globbing or regex special
13138
# characters, hashes, percent signs, but SUFFIX may contain a leading
13139
# dot (in which case that matches only a dot).
13140
func_stripname ()
13141
{
13142
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13143
  # positional parameters, so assign one to ordinary parameter first.
13144
  func_stripname_result=${3}
13145
  func_stripname_result=${func_stripname_result#"${1}"}
13146
  func_stripname_result=${func_stripname_result%"${2}"}
13147
}
13148
 
13149
# func_opt_split
13150
func_opt_split ()
13151
{
13152
  func_opt_split_opt=${1%%=*}
13153
  func_opt_split_arg=${1#*=}
13154
}
13155
 
13156
# func_lo2o object
13157
func_lo2o ()
13158
{
13159
  case ${1} in
13160
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13161
    *)    func_lo2o_result=${1} ;;
13162
  esac
13163
}
13164
 
13165
# func_xform libobj-or-source
13166
func_xform ()
13167
{
13168
  func_xform_result=${1%.*}.lo
13169
}
13170
 
13171
# func_arith arithmetic-term...
13172
func_arith ()
13173
{
13174
  func_arith_result=$(( $* ))
13175
}
13176
 
13177
# func_len string
13178
# STRING may not start with a hyphen.
13179
func_len ()
13180
{
13181
  func_len_result=${#1}
13182
}
13183
 
13184
_LT_EOF
13185
    ;;
13186
  *) # Bourne compatible functions.
13187
    cat << \_LT_EOF >> "$cfgfile"
13188
 
13189
# func_dirname file append nondir_replacement
13190
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13191
# otherwise set result to NONDIR_REPLACEMENT.
13192
func_dirname ()
13193
{
13194
  # Extract subdirectory from the argument.
13195
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13196
  if test "X$func_dirname_result" = "X${1}"; then
13197
    func_dirname_result="${3}"
13198
  else
13199
    func_dirname_result="$func_dirname_result${2}"
13200
  fi
13201
}
13202
 
13203
# func_basename file
13204
func_basename ()
13205
{
13206
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13207
}
13208
 
13209
 
13210
# func_stripname prefix suffix name
13211
# strip PREFIX and SUFFIX off of NAME.
13212
# PREFIX and SUFFIX must not contain globbing or regex special
13213
# characters, hashes, percent signs, but SUFFIX may contain a leading
13214
# dot (in which case that matches only a dot).
13215
# func_strip_suffix prefix name
13216
func_stripname ()
13217
{
13218
  case ${2} in
13219
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13220
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13221
  esac
13222
}
13223
 
13224
# sed scripts:
13225
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13226
my_sed_long_arg='1s/^-[^=]*=//'
13227
 
13228
# func_opt_split
13229
func_opt_split ()
13230
{
13231
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13232
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13233
}
13234
 
13235
# func_lo2o object
13236
func_lo2o ()
13237
{
13238
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13239
}
13240
 
13241
# func_xform libobj-or-source
13242
func_xform ()
13243
{
13244
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13245
}
13246
 
13247
# func_arith arithmetic-term...
13248
func_arith ()
13249
{
13250
  func_arith_result=`expr "$@"`
13251
}
13252
 
13253
# func_len string
13254
# STRING may not start with a hyphen.
13255
func_len ()
13256
{
13257
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13258
}
13259
 
13260
_LT_EOF
13261
esac
13262
 
13263
case $lt_shell_append in
13264
  yes)
13265
    cat << \_LT_EOF >> "$cfgfile"
13266
 
13267
# func_append var value
13268
# Append VALUE to the end of shell variable VAR.
13269
func_append ()
13270
{
13271
  eval "$1+=\$2"
13272
}
13273
_LT_EOF
13274
    ;;
13275
  *)
13276
    cat << \_LT_EOF >> "$cfgfile"
13277
 
13278
# func_append var value
13279
# Append VALUE to the end of shell variable VAR.
13280
func_append ()
13281
{
13282
  eval "$1=\$$1\$2"
13283
}
13284
 
13285
_LT_EOF
13286
    ;;
13287
  esac
13288
 
13289
 
13290
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13291
    || (rm -f "$cfgfile"; exit 1)
13292
 
13293
  mv -f "$cfgfile" "$ofile" ||
13294
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13295
  chmod +x "$ofile"
13296
 
13297
 ;;
13298
 
13299
  esac
13300
done # for ac_tag
13301
 
13302
 
13303
as_fn_exit 0
13304
_ACEOF
13305
ac_clean_files=$ac_clean_files_save
13306
 
13307
test $ac_write_fail = 0 ||
13308
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13309
 
13310
 
13311
# configure is writing to config.log, and then calls config.status.
13312
# config.status does its own redirection, appending to config.log.
13313
# Unfortunately, on DOS this fails, as config.log is still kept open
13314
# by configure, so config.status won't be able to write to it; its
13315
# output is simply discarded.  So we exec the FD to /dev/null,
13316
# effectively closing config.log, so it can be properly (re)opened and
13317
# appended to by config.status.  When coming back to configure, we
13318
# need to make the FD available again.
13319
if test "$no_create" != yes; then
13320
  ac_cs_success=:
13321
  ac_config_status_args=
13322
  test "$silent" = yes &&
13323
    ac_config_status_args="$ac_config_status_args --quiet"
13324
  exec 5>/dev/null
13325
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13326
  exec 5>>config.log
13327
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13328
  # would make configure fail if this is the last instruction.
13329
  $ac_cs_success || as_fn_exit $?
13330
fi
13331
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13332
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13333
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13334
fi
13335
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.