OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [lto-plugin/] [configure] - Blame information for rev 471

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

Line No. Rev Author Line
1 277 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
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
 
173
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177
    PATH=/empty FPATH=/empty; export PATH FPATH
178
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180
test \$(( 1 + 1 )) = 2 || 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='LTO plugin for ld'
558
PACKAGE_TARNAME='lto-plugin'
559
PACKAGE_VERSION='0.1'
560
PACKAGE_STRING='LTO plugin for ld 0.1'
561
PACKAGE_BUGREPORT=''
562
PACKAGE_URL=''
563
 
564
# Factoring default headers for most tests.
565
ac_includes_default="\
566
#include 
567
#ifdef HAVE_SYS_TYPES_H
568
# include 
569
#endif
570
#ifdef HAVE_SYS_STAT_H
571
# include 
572
#endif
573
#ifdef STDC_HEADERS
574
# include 
575
# include 
576
#else
577
# ifdef HAVE_STDLIB_H
578
#  include 
579
# endif
580
#endif
581
#ifdef HAVE_STRING_H
582
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583
#  include 
584
# endif
585
# include 
586
#endif
587
#ifdef HAVE_STRINGS_H
588
# include 
589
#endif
590
#ifdef HAVE_INTTYPES_H
591
# include 
592
#endif
593
#ifdef HAVE_STDINT_H
594
# include 
595
#endif
596
#ifdef HAVE_UNISTD_H
597
# include 
598
#endif"
599
 
600
ac_subst_vars='am__EXEEXT_FALSE
601
am__EXEEXT_TRUE
602
LTLIBOBJS
603
LIBOBJS
604
target_noncanonical
605
CPP
606
OTOOL64
607
OTOOL
608
LIPO
609
NMEDIT
610
DSYMUTIL
611
RANLIB
612
AR
613
OBJDUMP
614
LN_S
615
NM
616
ac_ct_DUMPBIN
617
DUMPBIN
618
LD
619
FGREP
620
EGREP
621
GREP
622
SED
623
host_os
624
host_vendor
625
host_cpu
626
host
627
LIBTOOL
628
LIBELFINC
629
LIBELFLIBS
630
am__fastdepCC_FALSE
631
am__fastdepCC_TRUE
632
CCDEPMODE
633
AMDEPBACKSLASH
634
AMDEP_FALSE
635
AMDEP_TRUE
636
am__quote
637
am__include
638
DEPDIR
639
OBJEXT
640
EXEEXT
641
ac_ct_CC
642
CPPFLAGS
643
LDFLAGS
644
CFLAGS
645
CC
646
MAINT
647
MAINTAINER_MODE_FALSE
648
MAINTAINER_MODE_TRUE
649
am__untar
650
am__tar
651
AMTAR
652
am__leading_dot
653
SET_MAKE
654
AWK
655
mkdir_p
656
MKDIR_P
657
INSTALL_STRIP_PROGRAM
658
STRIP
659
install_sh
660
MAKEINFO
661
AUTOHEADER
662
AUTOMAKE
663
AUTOCONF
664
ACLOCAL
665
VERSION
666
PACKAGE
667
CYGPATH_W
668
am__isrc
669
INSTALL_DATA
670
INSTALL_SCRIPT
671
INSTALL_PROGRAM
672
target_subdir
673
host_subdir
674
build_subdir
675
build_libsubdir
676
build_os
677
build_vendor
678
build_cpu
679
build
680
target_alias
681
host_alias
682
build_alias
683
LIBS
684
ECHO_T
685
ECHO_N
686
ECHO_C
687
DEFS
688
mandir
689
localedir
690
libdir
691
psdir
692
pdfdir
693
dvidir
694
htmldir
695
infodir
696
docdir
697
oldincludedir
698
includedir
699
localstatedir
700
sharedstatedir
701
sysconfdir
702
datadir
703
datarootdir
704
libexecdir
705
sbindir
706
bindir
707
program_transform_name
708
prefix
709
exec_prefix
710
PACKAGE_URL
711
PACKAGE_BUGREPORT
712
PACKAGE_STRING
713
PACKAGE_VERSION
714
PACKAGE_TARNAME
715
PACKAGE_NAME
716
PATH_SEPARATOR
717
SHELL'
718
ac_subst_files=''
719
ac_user_opts='
720
enable_option_checking
721
with_build_libsubdir
722
enable_maintainer_mode
723
enable_dependency_tracking
724
enable_largefile
725
enable_shared
726
enable_static
727
with_pic
728
enable_fast_install
729
with_gnu_ld
730
enable_libtool_lock
731
'
732
      ac_precious_vars='build_alias
733
host_alias
734
target_alias
735
CC
736
CFLAGS
737
LDFLAGS
738
LIBS
739
CPPFLAGS
740
LIBELFLIBS
741
LIBELFINC
742
CPP'
743
 
744
 
745
# Initialize some variables set by options.
746
ac_init_help=
747
ac_init_version=false
748
ac_unrecognized_opts=
749
ac_unrecognized_sep=
750
# The variables have the same names as the options, with
751
# dashes changed to underlines.
752
cache_file=/dev/null
753
exec_prefix=NONE
754
no_create=
755
no_recursion=
756
prefix=NONE
757
program_prefix=NONE
758
program_suffix=NONE
759
program_transform_name=s,x,x,
760
silent=
761
site=
762
srcdir=
763
verbose=
764
x_includes=NONE
765
x_libraries=NONE
766
 
767
# Installation directory options.
768
# These are left unexpanded so users can "make install exec_prefix=/foo"
769
# and all the variables that are supposed to be based on exec_prefix
770
# by default will actually change.
771
# Use braces instead of parens because sh, perl, etc. also accept them.
772
# (The list follows the same order as the GNU Coding Standards.)
773
bindir='${exec_prefix}/bin'
774
sbindir='${exec_prefix}/sbin'
775
libexecdir='${exec_prefix}/libexec'
776
datarootdir='${prefix}/share'
777
datadir='${datarootdir}'
778
sysconfdir='${prefix}/etc'
779
sharedstatedir='${prefix}/com'
780
localstatedir='${prefix}/var'
781
includedir='${prefix}/include'
782
oldincludedir='/usr/include'
783
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784
infodir='${datarootdir}/info'
785
htmldir='${docdir}'
786
dvidir='${docdir}'
787
pdfdir='${docdir}'
788
psdir='${docdir}'
789
libdir='${exec_prefix}/lib'
790
localedir='${datarootdir}/locale'
791
mandir='${datarootdir}/man'
792
 
793
ac_prev=
794
ac_dashdash=
795
for ac_option
796
do
797
  # If the previous option needs an argument, assign it.
798
  if test -n "$ac_prev"; then
799
    eval $ac_prev=\$ac_option
800
    ac_prev=
801
    continue
802
  fi
803
 
804
  case $ac_option in
805
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806
  *)    ac_optarg=yes ;;
807
  esac
808
 
809
  # Accept the important Cygnus configure options, so we can diagnose typos.
810
 
811
  case $ac_dashdash$ac_option in
812
  --)
813
    ac_dashdash=yes ;;
814
 
815
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
816
    ac_prev=bindir ;;
817
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818
    bindir=$ac_optarg ;;
819
 
820
  -build | --build | --buil | --bui | --bu)
821
    ac_prev=build_alias ;;
822
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823
    build_alias=$ac_optarg ;;
824
 
825
  -cache-file | --cache-file | --cache-fil | --cache-fi \
826
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827
    ac_prev=cache_file ;;
828
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830
    cache_file=$ac_optarg ;;
831
 
832
  --config-cache | -C)
833
    cache_file=config.cache ;;
834
 
835
  -datadir | --datadir | --datadi | --datad)
836
    ac_prev=datadir ;;
837
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
838
    datadir=$ac_optarg ;;
839
 
840
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841
  | --dataroo | --dataro | --datar)
842
    ac_prev=datarootdir ;;
843
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845
    datarootdir=$ac_optarg ;;
846
 
847
  -disable-* | --disable-*)
848
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849
    # Reject names that are not valid shell variable names.
850
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851
      as_fn_error "invalid feature name: $ac_useropt"
852
    ac_useropt_orig=$ac_useropt
853
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854
    case $ac_user_opts in
855
      *"
856
"enable_$ac_useropt"
857
"*) ;;
858
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859
         ac_unrecognized_sep=', ';;
860
    esac
861
    eval enable_$ac_useropt=no ;;
862
 
863
  -docdir | --docdir | --docdi | --doc | --do)
864
    ac_prev=docdir ;;
865
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866
    docdir=$ac_optarg ;;
867
 
868
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869
    ac_prev=dvidir ;;
870
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871
    dvidir=$ac_optarg ;;
872
 
873
  -enable-* | --enable-*)
874
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875
    # Reject names that are not valid shell variable names.
876
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877
      as_fn_error "invalid feature name: $ac_useropt"
878
    ac_useropt_orig=$ac_useropt
879
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880
    case $ac_user_opts in
881
      *"
882
"enable_$ac_useropt"
883
"*) ;;
884
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885
         ac_unrecognized_sep=', ';;
886
    esac
887
    eval enable_$ac_useropt=\$ac_optarg ;;
888
 
889
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891
  | --exec | --exe | --ex)
892
    ac_prev=exec_prefix ;;
893
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895
  | --exec=* | --exe=* | --ex=*)
896
    exec_prefix=$ac_optarg ;;
897
 
898
  -gas | --gas | --ga | --g)
899
    # Obsolete; use --with-gas.
900
    with_gas=yes ;;
901
 
902
  -help | --help | --hel | --he | -h)
903
    ac_init_help=long ;;
904
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905
    ac_init_help=recursive ;;
906
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907
    ac_init_help=short ;;
908
 
909
  -host | --host | --hos | --ho)
910
    ac_prev=host_alias ;;
911
  -host=* | --host=* | --hos=* | --ho=*)
912
    host_alias=$ac_optarg ;;
913
 
914
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915
    ac_prev=htmldir ;;
916
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917
  | --ht=*)
918
    htmldir=$ac_optarg ;;
919
 
920
  -includedir | --includedir | --includedi | --included | --include \
921
  | --includ | --inclu | --incl | --inc)
922
    ac_prev=includedir ;;
923
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924
  | --includ=* | --inclu=* | --incl=* | --inc=*)
925
    includedir=$ac_optarg ;;
926
 
927
  -infodir | --infodir | --infodi | --infod | --info | --inf)
928
    ac_prev=infodir ;;
929
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930
    infodir=$ac_optarg ;;
931
 
932
  -libdir | --libdir | --libdi | --libd)
933
    ac_prev=libdir ;;
934
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
935
    libdir=$ac_optarg ;;
936
 
937
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938
  | --libexe | --libex | --libe)
939
    ac_prev=libexecdir ;;
940
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941
  | --libexe=* | --libex=* | --libe=*)
942
    libexecdir=$ac_optarg ;;
943
 
944
  -localedir | --localedir | --localedi | --localed | --locale)
945
    ac_prev=localedir ;;
946
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947
    localedir=$ac_optarg ;;
948
 
949
  -localstatedir | --localstatedir | --localstatedi | --localstated \
950
  | --localstate | --localstat | --localsta | --localst | --locals)
951
    ac_prev=localstatedir ;;
952
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954
    localstatedir=$ac_optarg ;;
955
 
956
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957
    ac_prev=mandir ;;
958
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959
    mandir=$ac_optarg ;;
960
 
961
  -nfp | --nfp | --nf)
962
    # Obsolete; use --without-fp.
963
    with_fp=no ;;
964
 
965
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966
  | --no-cr | --no-c | -n)
967
    no_create=yes ;;
968
 
969
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971
    no_recursion=yes ;;
972
 
973
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975
  | --oldin | --oldi | --old | --ol | --o)
976
    ac_prev=oldincludedir ;;
977
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980
    oldincludedir=$ac_optarg ;;
981
 
982
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983
    ac_prev=prefix ;;
984
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985
    prefix=$ac_optarg ;;
986
 
987
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
988
  | --program-pre | --program-pr | --program-p)
989
    ac_prev=program_prefix ;;
990
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
991
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992
    program_prefix=$ac_optarg ;;
993
 
994
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
995
  | --program-suf | --program-su | --program-s)
996
    ac_prev=program_suffix ;;
997
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
998
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999
    program_suffix=$ac_optarg ;;
1000
 
1001
  -program-transform-name | --program-transform-name \
1002
  | --program-transform-nam | --program-transform-na \
1003
  | --program-transform-n | --program-transform- \
1004
  | --program-transform | --program-transfor \
1005
  | --program-transfo | --program-transf \
1006
  | --program-trans | --program-tran \
1007
  | --progr-tra | --program-tr | --program-t)
1008
    ac_prev=program_transform_name ;;
1009
  -program-transform-name=* | --program-transform-name=* \
1010
  | --program-transform-nam=* | --program-transform-na=* \
1011
  | --program-transform-n=* | --program-transform-=* \
1012
  | --program-transform=* | --program-transfor=* \
1013
  | --program-transfo=* | --program-transf=* \
1014
  | --program-trans=* | --program-tran=* \
1015
  | --progr-tra=* | --program-tr=* | --program-t=*)
1016
    program_transform_name=$ac_optarg ;;
1017
 
1018
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019
    ac_prev=pdfdir ;;
1020
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021
    pdfdir=$ac_optarg ;;
1022
 
1023
  -psdir | --psdir | --psdi | --psd | --ps)
1024
    ac_prev=psdir ;;
1025
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026
    psdir=$ac_optarg ;;
1027
 
1028
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029
  | -silent | --silent | --silen | --sile | --sil)
1030
    silent=yes ;;
1031
 
1032
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033
    ac_prev=sbindir ;;
1034
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035
  | --sbi=* | --sb=*)
1036
    sbindir=$ac_optarg ;;
1037
 
1038
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040
  | --sharedst | --shareds | --shared | --share | --shar \
1041
  | --sha | --sh)
1042
    ac_prev=sharedstatedir ;;
1043
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046
  | --sha=* | --sh=*)
1047
    sharedstatedir=$ac_optarg ;;
1048
 
1049
  -site | --site | --sit)
1050
    ac_prev=site ;;
1051
  -site=* | --site=* | --sit=*)
1052
    site=$ac_optarg ;;
1053
 
1054
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055
    ac_prev=srcdir ;;
1056
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057
    srcdir=$ac_optarg ;;
1058
 
1059
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060
  | --syscon | --sysco | --sysc | --sys | --sy)
1061
    ac_prev=sysconfdir ;;
1062
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064
    sysconfdir=$ac_optarg ;;
1065
 
1066
  -target | --target | --targe | --targ | --tar | --ta | --t)
1067
    ac_prev=target_alias ;;
1068
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069
    target_alias=$ac_optarg ;;
1070
 
1071
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072
    verbose=yes ;;
1073
 
1074
  -version | --version | --versio | --versi | --vers | -V)
1075
    ac_init_version=: ;;
1076
 
1077
  -with-* | --with-*)
1078
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079
    # Reject names that are not valid shell variable names.
1080
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081
      as_fn_error "invalid package name: $ac_useropt"
1082
    ac_useropt_orig=$ac_useropt
1083
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084
    case $ac_user_opts in
1085
      *"
1086
"with_$ac_useropt"
1087
"*) ;;
1088
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089
         ac_unrecognized_sep=', ';;
1090
    esac
1091
    eval with_$ac_useropt=\$ac_optarg ;;
1092
 
1093
  -without-* | --without-*)
1094
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095
    # Reject names that are not valid shell variable names.
1096
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097
      as_fn_error "invalid package name: $ac_useropt"
1098
    ac_useropt_orig=$ac_useropt
1099
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100
    case $ac_user_opts in
1101
      *"
1102
"with_$ac_useropt"
1103
"*) ;;
1104
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105
         ac_unrecognized_sep=', ';;
1106
    esac
1107
    eval with_$ac_useropt=no ;;
1108
 
1109
  --x)
1110
    # Obsolete; use --with-x.
1111
    with_x=yes ;;
1112
 
1113
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114
  | --x-incl | --x-inc | --x-in | --x-i)
1115
    ac_prev=x_includes ;;
1116
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118
    x_includes=$ac_optarg ;;
1119
 
1120
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122
    ac_prev=x_libraries ;;
1123
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125
    x_libraries=$ac_optarg ;;
1126
 
1127
  -*) as_fn_error "unrecognized option: \`$ac_option'
1128
Try \`$0 --help' for more information."
1129
    ;;
1130
 
1131
  *=*)
1132
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133
    # Reject names that are not valid shell variable names.
1134
    case $ac_envvar in #(
1135
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1136
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137
    esac
1138
    eval $ac_envvar=\$ac_optarg
1139
    export $ac_envvar ;;
1140
 
1141
  *)
1142
    # FIXME: should be removed in autoconf 3.0.
1143
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147
    ;;
1148
 
1149
  esac
1150
done
1151
 
1152
if test -n "$ac_prev"; then
1153
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154
  as_fn_error "missing argument to $ac_option"
1155
fi
1156
 
1157
if test -n "$ac_unrecognized_opts"; then
1158
  case $enable_option_checking in
1159
    no) ;;
1160
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162
  esac
1163
fi
1164
 
1165
# Check all directory arguments for consistency.
1166
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167
                datadir sysconfdir sharedstatedir localstatedir includedir \
1168
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169
                libdir localedir mandir
1170
do
1171
  eval ac_val=\$$ac_var
1172
  # Remove trailing slashes.
1173
  case $ac_val in
1174
    */ )
1175
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176
      eval $ac_var=\$ac_val;;
1177
  esac
1178
  # Be sure to have absolute directory names.
1179
  case $ac_val in
1180
    [\\/$]* | ?:[\\/]* )  continue;;
1181
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182
  esac
1183
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184
done
1185
 
1186
# There might be people who depend on the old broken behavior: `$host'
1187
# used to hold the argument of --host etc.
1188
# FIXME: To remove some day.
1189
build=$build_alias
1190
host=$host_alias
1191
target=$target_alias
1192
 
1193
# FIXME: To remove some day.
1194
if test "x$host_alias" != x; then
1195
  if test "x$build_alias" = x; then
1196
    cross_compiling=maybe
1197
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198
    If a cross compiler is detected then cross compile mode will be used." >&2
1199
  elif test "x$build_alias" != "x$host_alias"; then
1200
    cross_compiling=yes
1201
  fi
1202
fi
1203
 
1204
ac_tool_prefix=
1205
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206
 
1207
test "$silent" = yes && exec 6>/dev/null
1208
 
1209
 
1210
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211
ac_ls_di=`ls -di .` &&
1212
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213
  as_fn_error "working directory cannot be determined"
1214
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215
  as_fn_error "pwd does not report name of working directory"
1216
 
1217
 
1218
# Find the source files, if location was not specified.
1219
if test -z "$srcdir"; then
1220
  ac_srcdir_defaulted=yes
1221
  # Try the directory containing this script, then the parent directory.
1222
  ac_confdir=`$as_dirname -- "$as_myself" ||
1223
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224
         X"$as_myself" : 'X\(//\)[^/]' \| \
1225
         X"$as_myself" : 'X\(//\)$' \| \
1226
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227
$as_echo X"$as_myself" |
1228
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229
            s//\1/
1230
            q
1231
          }
1232
          /^X\(\/\/\)[^/].*/{
1233
            s//\1/
1234
            q
1235
          }
1236
          /^X\(\/\/\)$/{
1237
            s//\1/
1238
            q
1239
          }
1240
          /^X\(\/\).*/{
1241
            s//\1/
1242
            q
1243
          }
1244
          s/.*/./; q'`
1245
  srcdir=$ac_confdir
1246
  if test ! -r "$srcdir/$ac_unique_file"; then
1247
    srcdir=..
1248
  fi
1249
else
1250
  ac_srcdir_defaulted=no
1251
fi
1252
if test ! -r "$srcdir/$ac_unique_file"; then
1253
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255
fi
1256
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257
ac_abs_confdir=`(
1258
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259
        pwd)`
1260
# When building in place, set srcdir=.
1261
if test "$ac_abs_confdir" = "$ac_pwd"; then
1262
  srcdir=.
1263
fi
1264
# Remove unnecessary trailing slashes from srcdir.
1265
# Double slashes in file names in object file debugging info
1266
# mess up M-x gdb in Emacs.
1267
case $srcdir in
1268
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269
esac
1270
for ac_var in $ac_precious_vars; do
1271
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272
  eval ac_env_${ac_var}_value=\$${ac_var}
1273
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275
done
1276
 
1277
#
1278
# Report the --help message.
1279
#
1280
if test "$ac_init_help" = "long"; then
1281
  # Omit some internal or obsolete options to make the list less imposing.
1282
  # This message is too long to be a string in the A/UX 3.1 sh.
1283
  cat <<_ACEOF
1284
\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1285
 
1286
Usage: $0 [OPTION]... [VAR=VALUE]...
1287
 
1288
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289
VAR=VALUE.  See below for descriptions of some of the useful variables.
1290
 
1291
Defaults for the options are specified in brackets.
1292
 
1293
Configuration:
1294
  -h, --help              display this help and exit
1295
      --help=short        display options specific to this package
1296
      --help=recursive    display the short help of all the included packages
1297
  -V, --version           display version information and exit
1298
  -q, --quiet, --silent   do not print \`checking...' messages
1299
      --cache-file=FILE   cache test results in FILE [disabled]
1300
  -C, --config-cache      alias for \`--cache-file=config.cache'
1301
  -n, --no-create         do not create output files
1302
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1303
 
1304
Installation directories:
1305
  --prefix=PREFIX         install architecture-independent files in PREFIX
1306
                          [$ac_default_prefix]
1307
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1308
                          [PREFIX]
1309
 
1310
By default, \`make install' will install all the files in
1311
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1312
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313
for instance \`--prefix=\$HOME'.
1314
 
1315
For better control, use the options below.
1316
 
1317
Fine tuning of the installation directories:
1318
  --bindir=DIR            user executables [EPREFIX/bin]
1319
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1320
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1321
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1322
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1323
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1324
  --libdir=DIR            object code libraries [EPREFIX/lib]
1325
  --includedir=DIR        C header files [PREFIX/include]
1326
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1327
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1328
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1329
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1330
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1331
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1332
  --docdir=DIR            documentation root [DATAROOTDIR/doc/lto-plugin]
1333
  --htmldir=DIR           html documentation [DOCDIR]
1334
  --dvidir=DIR            dvi documentation [DOCDIR]
1335
  --pdfdir=DIR            pdf documentation [DOCDIR]
1336
  --psdir=DIR             ps documentation [DOCDIR]
1337
_ACEOF
1338
 
1339
  cat <<\_ACEOF
1340
 
1341
Program names:
1342
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1343
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1344
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1345
 
1346
System types:
1347
  --build=BUILD     configure for building on BUILD [guessed]
1348
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1349
_ACEOF
1350
fi
1351
 
1352
if test -n "$ac_init_help"; then
1353
  case $ac_init_help in
1354
     short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1355
   esac
1356
  cat <<\_ACEOF
1357
 
1358
Optional Features:
1359
  --disable-option-checking  ignore unrecognized --enable/--with options
1360
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1361
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1362
  --enable-maintainer-mode  enable make rules and dependencies not useful
1363
                          (and sometimes confusing) to the casual installer
1364
  --disable-dependency-tracking  speeds up one-time build
1365
  --enable-dependency-tracking   do not reject slow dependency extractors
1366
  --disable-largefile     omit support for large files
1367
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1368
  --enable-static[=PKGS]  build static libraries [default=yes]
1369
  --enable-fast-install[=PKGS]
1370
                          optimize for fast installation [default=yes]
1371
  --disable-libtool-lock  avoid locking (might break parallel builds)
1372
 
1373
Optional Packages:
1374
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1375
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1376
  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1377
  --with-pic              try to use only PIC/non-PIC objects [default=use
1378
                          both]
1379
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1380
 
1381
Some influential environment variables:
1382
  CC          C compiler command
1383
  CFLAGS      C compiler flags
1384
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1385
              nonstandard directory 
1386
  LIBS        libraries to pass to the linker, e.g. -l
1387
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1388
              you have headers in a nonstandard directory 
1389
  LIBELFLIBS  How to link libelf
1390
  LIBELFINC   How to find libelf include files
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
LTO plugin for ld configure 0.1
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_link LINENO
1512
# -----------------------
1513
# Try to link conftest.$ac_ext, and return whether this succeeded.
1514
ac_fn_c_try_link ()
1515
{
1516
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517
  rm -f conftest.$ac_objext conftest$ac_exeext
1518
  if { { ac_try="$ac_link"
1519
case "(($ac_try" in
1520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521
  *) ac_try_echo=$ac_try;;
1522
esac
1523
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524
$as_echo "$ac_try_echo"; } >&5
1525
  (eval "$ac_link") 2>conftest.err
1526
  ac_status=$?
1527
  if test -s conftest.err; then
1528
    grep -v '^ *+' conftest.err >conftest.er1
1529
    cat conftest.er1 >&5
1530
    mv -f conftest.er1 conftest.err
1531
  fi
1532
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533
  test $ac_status = 0; } && {
1534
         test -z "$ac_c_werror_flag" ||
1535
         test ! -s conftest.err
1536
       } && test -s conftest$ac_exeext && {
1537
         test "$cross_compiling" = yes ||
1538
         $as_test_x conftest$ac_exeext
1539
       }; then :
1540
  ac_retval=0
1541
else
1542
  $as_echo "$as_me: failed program was:" >&5
1543
sed 's/^/| /' conftest.$ac_ext >&5
1544
 
1545
        ac_retval=1
1546
fi
1547
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1548
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1549
  # interfere with the next link command; also delete a directory that is
1550
  # left behind by Apple's compiler.  We do this before executing the actions.
1551
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1552
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553
  return $ac_retval
1554
 
1555
} # ac_fn_c_try_link
1556
 
1557
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1558
# -------------------------------------------------------
1559
# Tests whether HEADER exists and can be compiled using the include files in
1560
# INCLUDES, setting the cache variable VAR accordingly.
1561
ac_fn_c_check_header_compile ()
1562
{
1563
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565
$as_echo_n "checking for $2... " >&6; }
1566
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567
  $as_echo_n "(cached) " >&6
1568
else
1569
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570
/* end confdefs.h.  */
1571
$4
1572
#include <$2>
1573
_ACEOF
1574
if ac_fn_c_try_compile "$LINENO"; then :
1575
  eval "$3=yes"
1576
else
1577
  eval "$3=no"
1578
fi
1579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580
fi
1581
eval ac_res=\$$3
1582
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583
$as_echo "$ac_res" >&6; }
1584
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585
 
1586
} # ac_fn_c_check_header_compile
1587
 
1588
# ac_fn_c_try_cpp LINENO
1589
# ----------------------
1590
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591
ac_fn_c_try_cpp ()
1592
{
1593
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1595
case "(($ac_try" in
1596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597
  *) ac_try_echo=$ac_try;;
1598
esac
1599
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600
$as_echo "$ac_try_echo"; } >&5
1601
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602
  ac_status=$?
1603
  if test -s conftest.err; then
1604
    grep -v '^ *+' conftest.err >conftest.er1
1605
    cat conftest.er1 >&5
1606
    mv -f conftest.er1 conftest.err
1607
  fi
1608
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609
  test $ac_status = 0; } >/dev/null && {
1610
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1611
         test ! -s conftest.err
1612
       }; then :
1613
  ac_retval=0
1614
else
1615
  $as_echo "$as_me: failed program was:" >&5
1616
sed 's/^/| /' conftest.$ac_ext >&5
1617
 
1618
    ac_retval=1
1619
fi
1620
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621
  return $ac_retval
1622
 
1623
} # ac_fn_c_try_cpp
1624
 
1625
# ac_fn_c_try_run LINENO
1626
# ----------------------
1627
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1628
# that executables *can* be run.
1629
ac_fn_c_try_run ()
1630
{
1631
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632
  if { { ac_try="$ac_link"
1633
case "(($ac_try" in
1634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635
  *) ac_try_echo=$ac_try;;
1636
esac
1637
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638
$as_echo "$ac_try_echo"; } >&5
1639
  (eval "$ac_link") 2>&5
1640
  ac_status=$?
1641
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1643
  { { case "(($ac_try" in
1644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645
  *) ac_try_echo=$ac_try;;
1646
esac
1647
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648
$as_echo "$ac_try_echo"; } >&5
1649
  (eval "$ac_try") 2>&5
1650
  ac_status=$?
1651
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652
  test $ac_status = 0; }; }; then :
1653
  ac_retval=0
1654
else
1655
  $as_echo "$as_me: program exited with status $ac_status" >&5
1656
       $as_echo "$as_me: failed program was:" >&5
1657
sed 's/^/| /' conftest.$ac_ext >&5
1658
 
1659
       ac_retval=$ac_status
1660
fi
1661
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663
  return $ac_retval
1664
 
1665
} # ac_fn_c_try_run
1666
 
1667
# ac_fn_c_check_func LINENO FUNC VAR
1668
# ----------------------------------
1669
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1670
ac_fn_c_check_func ()
1671
{
1672
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674
$as_echo_n "checking for $2... " >&6; }
1675
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676
  $as_echo_n "(cached) " >&6
1677
else
1678
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679
/* end confdefs.h.  */
1680
/* Define $2 to an innocuous variant, in case  declares $2.
1681
   For example, HP-UX 11i  declares gettimeofday.  */
1682
#define $2 innocuous_$2
1683
 
1684
/* System header to define __stub macros and hopefully few prototypes,
1685
    which can conflict with char $2 (); below.
1686
    Prefer  to  if __STDC__ is defined, since
1687
     exists even on freestanding compilers.  */
1688
 
1689
#ifdef __STDC__
1690
# include 
1691
#else
1692
# include 
1693
#endif
1694
 
1695
#undef $2
1696
 
1697
/* Override any GCC internal prototype to avoid an error.
1698
   Use char because int might match the return type of a GCC
1699
   builtin and then its argument prototype would still apply.  */
1700
#ifdef __cplusplus
1701
extern "C"
1702
#endif
1703
char $2 ();
1704
/* The GNU C library defines this for functions which it implements
1705
    to always fail with ENOSYS.  Some functions are actually named
1706
    something starting with __ and the normal name is an alias.  */
1707
#if defined __stub_$2 || defined __stub___$2
1708
choke me
1709
#endif
1710
 
1711
int
1712
main ()
1713
{
1714
return $2 ();
1715
  ;
1716
  return 0;
1717
}
1718
_ACEOF
1719
if ac_fn_c_try_link "$LINENO"; then :
1720
  eval "$3=yes"
1721
else
1722
  eval "$3=no"
1723
fi
1724
rm -f core conftest.err conftest.$ac_objext \
1725
    conftest$ac_exeext conftest.$ac_ext
1726
fi
1727
eval ac_res=\$$3
1728
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729
$as_echo "$ac_res" >&6; }
1730
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
 
1732
} # ac_fn_c_check_func
1733
 
1734
# ac_fn_c_find_uintX_t LINENO BITS VAR
1735
# ------------------------------------
1736
# Finds an unsigned integer type with width BITS, setting cache variable VAR
1737
# accordingly.
1738
ac_fn_c_find_uintX_t ()
1739
{
1740
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1742
$as_echo_n "checking for uint$2_t... " >&6; }
1743
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744
  $as_echo_n "(cached) " >&6
1745
else
1746
  eval "$3=no"
1747
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1748
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1749
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750
/* end confdefs.h.  */
1751
$ac_includes_default
1752
int
1753
main ()
1754
{
1755
static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1756
test_array [0] = 0
1757
 
1758
  ;
1759
  return 0;
1760
}
1761
_ACEOF
1762
if ac_fn_c_try_compile "$LINENO"; then :
1763
  case $ac_type in #(
1764
  uint$2_t) :
1765
    eval "$3=yes" ;; #(
1766
  *) :
1767
    eval "$3=\$ac_type" ;;
1768
esac
1769
fi
1770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771
       eval as_val=\$$3
1772
   if test "x$as_val" = x""no; then :
1773
 
1774
else
1775
  break
1776
fi
1777
     done
1778
fi
1779
eval ac_res=\$$3
1780
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781
$as_echo "$ac_res" >&6; }
1782
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783
 
1784
} # ac_fn_c_find_uintX_t
1785
cat >config.log <<_ACEOF
1786
This file contains any messages produced by compilers while
1787
running configure, to aid debugging if configure makes a mistake.
1788
 
1789
It was created by LTO plugin for ld $as_me 0.1, which was
1790
generated by GNU Autoconf 2.64.  Invocation command line was
1791
 
1792
  $ $0 $@
1793
 
1794
_ACEOF
1795
exec 5>>config.log
1796
{
1797
cat <<_ASUNAME
1798
## --------- ##
1799
## Platform. ##
1800
## --------- ##
1801
 
1802
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807
 
1808
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1810
 
1811
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1812
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1813
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1815
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1816
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1817
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1818
 
1819
_ASUNAME
1820
 
1821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822
for as_dir in $PATH
1823
do
1824
  IFS=$as_save_IFS
1825
  test -z "$as_dir" && as_dir=.
1826
    $as_echo "PATH: $as_dir"
1827
  done
1828
IFS=$as_save_IFS
1829
 
1830
} >&5
1831
 
1832
cat >&5 <<_ACEOF
1833
 
1834
 
1835
## ----------- ##
1836
## Core tests. ##
1837
## ----------- ##
1838
 
1839
_ACEOF
1840
 
1841
 
1842
# Keep a trace of the command line.
1843
# Strip out --no-create and --no-recursion so they do not pile up.
1844
# Strip out --silent because we don't want to record it for future runs.
1845
# Also quote any args containing shell meta-characters.
1846
# Make two passes to allow for proper duplicate-argument suppression.
1847
ac_configure_args=
1848
ac_configure_args0=
1849
ac_configure_args1=
1850
ac_must_keep_next=false
1851
for ac_pass in 1 2
1852
do
1853
  for ac_arg
1854
  do
1855
    case $ac_arg in
1856
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858
    | -silent | --silent | --silen | --sile | --sil)
1859
      continue ;;
1860
    *\'*)
1861
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862
    esac
1863
    case $ac_pass in
1864
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1865
    2)
1866
      as_fn_append ac_configure_args1 " '$ac_arg'"
1867
      if test $ac_must_keep_next = true; then
1868
        ac_must_keep_next=false # Got value, back to normal.
1869
      else
1870
        case $ac_arg in
1871
          *=* | --config-cache | -C | -disable-* | --disable-* \
1872
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874
          | -with-* | --with-* | -without-* | --without-* | --x)
1875
            case "$ac_configure_args0 " in
1876
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1877
            esac
1878
            ;;
1879
          -* ) ac_must_keep_next=true ;;
1880
        esac
1881
      fi
1882
      as_fn_append ac_configure_args " '$ac_arg'"
1883
      ;;
1884
    esac
1885
  done
1886
done
1887
{ ac_configure_args0=; unset ac_configure_args0;}
1888
{ ac_configure_args1=; unset ac_configure_args1;}
1889
 
1890
# When interrupted or exit'd, cleanup temporary files, and complete
1891
# config.log.  We remove comments because anyway the quotes in there
1892
# would cause problems or look ugly.
1893
# WARNING: Use '\'' to represent an apostrophe within the trap.
1894
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895
trap 'exit_status=$?
1896
  # Save into config.log some information that might help in debugging.
1897
  {
1898
    echo
1899
 
1900
    cat <<\_ASBOX
1901
## ---------------- ##
1902
## Cache variables. ##
1903
## ---------------- ##
1904
_ASBOX
1905
    echo
1906
    # The following way of writing the cache mishandles newlines in values,
1907
(
1908
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909
    eval ac_val=\$$ac_var
1910
    case $ac_val in #(
1911
    *${as_nl}*)
1912
      case $ac_var in #(
1913
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1914
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1915
      esac
1916
      case $ac_var in #(
1917
      _ | IFS | as_nl) ;; #(
1918
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919
      *) { eval $ac_var=; unset $ac_var;} ;;
1920
      esac ;;
1921
    esac
1922
  done
1923
  (set) 2>&1 |
1924
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925
    *${as_nl}ac_space=\ *)
1926
      sed -n \
1927
        "s/'\''/'\''\\\\'\'''\''/g;
1928
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929
      ;; #(
1930
    *)
1931
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1932
      ;;
1933
    esac |
1934
    sort
1935
)
1936
    echo
1937
 
1938
    cat <<\_ASBOX
1939
## ----------------- ##
1940
## Output variables. ##
1941
## ----------------- ##
1942
_ASBOX
1943
    echo
1944
    for ac_var in $ac_subst_vars
1945
    do
1946
      eval ac_val=\$$ac_var
1947
      case $ac_val in
1948
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949
      esac
1950
      $as_echo "$ac_var='\''$ac_val'\''"
1951
    done | sort
1952
    echo
1953
 
1954
    if test -n "$ac_subst_files"; then
1955
      cat <<\_ASBOX
1956
## ------------------- ##
1957
## File substitutions. ##
1958
## ------------------- ##
1959
_ASBOX
1960
      echo
1961
      for ac_var in $ac_subst_files
1962
      do
1963
        eval ac_val=\$$ac_var
1964
        case $ac_val in
1965
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966
        esac
1967
        $as_echo "$ac_var='\''$ac_val'\''"
1968
      done | sort
1969
      echo
1970
    fi
1971
 
1972
    if test -s confdefs.h; then
1973
      cat <<\_ASBOX
1974
## ----------- ##
1975
## confdefs.h. ##
1976
## ----------- ##
1977
_ASBOX
1978
      echo
1979
      cat confdefs.h
1980
      echo
1981
    fi
1982
    test "$ac_signal" != 0 &&
1983
      $as_echo "$as_me: caught signal $ac_signal"
1984
    $as_echo "$as_me: exit $exit_status"
1985
  } >&5
1986
  rm -f core *.core core.conftest.* &&
1987
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988
    exit $exit_status
1989
' 0
1990
for ac_signal in 1 2 13 15; do
1991
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992
done
1993
ac_signal=0
1994
 
1995
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1996
rm -f -r conftest* confdefs.h
1997
 
1998
$as_echo "/* confdefs.h */" > confdefs.h
1999
 
2000
# Predefined preprocessor variables.
2001
 
2002
cat >>confdefs.h <<_ACEOF
2003
#define PACKAGE_NAME "$PACKAGE_NAME"
2004
_ACEOF
2005
 
2006
cat >>confdefs.h <<_ACEOF
2007
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008
_ACEOF
2009
 
2010
cat >>confdefs.h <<_ACEOF
2011
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2012
_ACEOF
2013
 
2014
cat >>confdefs.h <<_ACEOF
2015
#define PACKAGE_STRING "$PACKAGE_STRING"
2016
_ACEOF
2017
 
2018
cat >>confdefs.h <<_ACEOF
2019
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020
_ACEOF
2021
 
2022
cat >>confdefs.h <<_ACEOF
2023
#define PACKAGE_URL "$PACKAGE_URL"
2024
_ACEOF
2025
 
2026
 
2027
# Let the site file select an alternate cache file if it wants to.
2028
# Prefer an explicitly selected file to automatically selected ones.
2029
ac_site_file1=NONE
2030
ac_site_file2=NONE
2031
if test -n "$CONFIG_SITE"; then
2032
  ac_site_file1=$CONFIG_SITE
2033
elif test "x$prefix" != xNONE; then
2034
  ac_site_file1=$prefix/share/config.site
2035
  ac_site_file2=$prefix/etc/config.site
2036
else
2037
  ac_site_file1=$ac_default_prefix/share/config.site
2038
  ac_site_file2=$ac_default_prefix/etc/config.site
2039
fi
2040
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2041
do
2042
  test "x$ac_site_file" = xNONE && continue
2043
  if test -r "$ac_site_file"; then
2044
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046
    sed 's/^/| /' "$ac_site_file" >&5
2047
    . "$ac_site_file"
2048
  fi
2049
done
2050
 
2051
if test -r "$cache_file"; then
2052
  # Some versions of bash will fail to source /dev/null (special
2053
  # files actually), so we avoid doing that.
2054
  if test -f "$cache_file"; then
2055
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056
$as_echo "$as_me: loading cache $cache_file" >&6;}
2057
    case $cache_file in
2058
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059
      *)                      . "./$cache_file";;
2060
    esac
2061
  fi
2062
else
2063
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064
$as_echo "$as_me: creating cache $cache_file" >&6;}
2065
  >$cache_file
2066
fi
2067
 
2068
# Check that the precious variables saved in the cache have kept the same
2069
# value.
2070
ac_cache_corrupted=false
2071
for ac_var in $ac_precious_vars; do
2072
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073
  eval ac_new_set=\$ac_env_${ac_var}_set
2074
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075
  eval ac_new_val=\$ac_env_${ac_var}_value
2076
  case $ac_old_set,$ac_new_set in
2077
    set,)
2078
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2080
      ac_cache_corrupted=: ;;
2081
    ,set)
2082
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2084
      ac_cache_corrupted=: ;;
2085
    ,);;
2086
    *)
2087
      if test "x$ac_old_val" != "x$ac_new_val"; then
2088
        # differences in whitespace do not lead to failure.
2089
        ac_old_val_w=`echo x $ac_old_val`
2090
        ac_new_val_w=`echo x $ac_new_val`
2091
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094
          ac_cache_corrupted=:
2095
        else
2096
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098
          eval $ac_var=\$ac_old_val
2099
        fi
2100
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2101
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2102
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2103
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2104
      fi;;
2105
  esac
2106
  # Pass precious variables to config.status.
2107
  if test "$ac_new_set" = set; then
2108
    case $ac_new_val in
2109
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2110
    *) ac_arg=$ac_var=$ac_new_val ;;
2111
    esac
2112
    case " $ac_configure_args " in
2113
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2114
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2115
    esac
2116
  fi
2117
done
2118
if $ac_cache_corrupted; then
2119
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2123
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2124
fi
2125
## -------------------- ##
2126
## Main body of script. ##
2127
## -------------------- ##
2128
 
2129
ac_ext=c
2130
ac_cpp='$CPP $CPPFLAGS'
2131
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
 
2135
 
2136
 
2137
 
2138
 
2139
ac_aux_dir=
2140
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2141
  for ac_t in install-sh install.sh shtool; do
2142
    if test -f "$ac_dir/$ac_t"; then
2143
      ac_aux_dir=$ac_dir
2144
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2145
      break 2
2146
    fi
2147
  done
2148
done
2149
if test -z "$ac_aux_dir"; then
2150
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2151
fi
2152
 
2153
# These three variables are undocumented and unsupported,
2154
# and are intended to be withdrawn in a future Autoconf release.
2155
# They can cause serious problems if a builder's source tree is in a directory
2156
# whose full name contains unusual characters.
2157
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2158
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2159
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2160
 
2161
 
2162
# Make sure we can run config.sub.
2163
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2164
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2165
 
2166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2167
$as_echo_n "checking build system type... " >&6; }
2168
if test "${ac_cv_build+set}" = set; then :
2169
  $as_echo_n "(cached) " >&6
2170
else
2171
  ac_build_alias=$build_alias
2172
test "x$ac_build_alias" = x &&
2173
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2174
test "x$ac_build_alias" = x &&
2175
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2176
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2177
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2178
 
2179
fi
2180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2181
$as_echo "$ac_cv_build" >&6; }
2182
case $ac_cv_build in
2183
*-*-*) ;;
2184
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2185
esac
2186
build=$ac_cv_build
2187
ac_save_IFS=$IFS; IFS='-'
2188
set x $ac_cv_build
2189
shift
2190
build_cpu=$1
2191
build_vendor=$2
2192
shift; shift
2193
# Remember, the first character of IFS is used to create $*,
2194
# except with old shells:
2195
build_os=$*
2196
IFS=$ac_save_IFS
2197
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2198
 
2199
 
2200
 case ${build_alias} in
2201
  "") build_noncanonical=${build} ;;
2202
  *) build_noncanonical=${build_alias} ;;
2203
esac
2204
 
2205
 case ${host_alias} in
2206
  "") host_noncanonical=${build_noncanonical} ;;
2207
  *) host_noncanonical=${host_alias} ;;
2208
esac
2209
 
2210
 case ${target_alias} in
2211
  "") target_noncanonical=${host_noncanonical} ;;
2212
  *) target_noncanonical=${target_alias} ;;
2213
esac
2214
 
2215
 
2216
# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2217
# have matching libraries, they should use host libraries: Makefile.tpl
2218
# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2219
# However, they still use the build modules, because the corresponding
2220
# host modules (e.g. bison) are only built for the host when bootstrap
2221
# finishes. So:
2222
# - build_subdir is where we find build modules, and never changes.
2223
# - build_libsubdir is where we find build libraries, and can be overridden.
2224
 
2225
# Prefix 'build-' so this never conflicts with target_subdir.
2226
build_subdir="build-${build_noncanonical}"
2227
 
2228
# Check whether --with-build-libsubdir was given.
2229
if test "${with_build_libsubdir+set}" = set; then :
2230
  withval=$with_build_libsubdir; build_libsubdir="$withval"
2231
else
2232
  build_libsubdir="$build_subdir"
2233
fi
2234
 
2235
# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2236
if ( test $srcdir = . && test -d gcc ) \
2237
   || test -d $srcdir/../host-${host_noncanonical}; then
2238
  host_subdir="host-${host_noncanonical}"
2239
else
2240
  host_subdir=.
2241
fi
2242
# No prefix.
2243
target_subdir=${target_noncanonical}
2244
 
2245
am__api_version='1.11'
2246
 
2247
# Find a good install program.  We prefer a C program (faster),
2248
# so one script is as good as another.  But avoid the broken or
2249
# incompatible versions:
2250
# SysV /etc/install, /usr/sbin/install
2251
# SunOS /usr/etc/install
2252
# IRIX /sbin/install
2253
# AIX /bin/install
2254
# AmigaOS /C/install, which installs bootblocks on floppy discs
2255
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2256
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2257
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2258
# OS/2's system install, which has a completely different semantic
2259
# ./install, which can be erroneously created by make from ./install.sh.
2260
# Reject install programs that cannot install multiple files.
2261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2262
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2263
if test -z "$INSTALL"; then
2264
if test "${ac_cv_path_install+set}" = set; then :
2265
  $as_echo_n "(cached) " >&6
2266
else
2267
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
for as_dir in $PATH
2269
do
2270
  IFS=$as_save_IFS
2271
  test -z "$as_dir" && as_dir=.
2272
    # Account for people who put trailing slashes in PATH elements.
2273
case $as_dir/ in #((
2274
  ./ | .// | /[cC]/* | \
2275
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2276
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2277
  /usr/ucb/* ) ;;
2278
  *)
2279
    # OSF1 and SCO ODT 3.0 have their own names for install.
2280
    # Don't use installbsd from OSF since it installs stuff as root
2281
    # by default.
2282
    for ac_prog in ginstall scoinst install; do
2283
      for ac_exec_ext in '' $ac_executable_extensions; do
2284
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2285
          if test $ac_prog = install &&
2286
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2287
            # AIX install.  It has an incompatible calling convention.
2288
            :
2289
          elif test $ac_prog = install &&
2290
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291
            # program-specific install script used by HP pwplus--don't use.
2292
            :
2293
          else
2294
            rm -rf conftest.one conftest.two conftest.dir
2295
            echo one > conftest.one
2296
            echo two > conftest.two
2297
            mkdir conftest.dir
2298
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2299
              test -s conftest.one && test -s conftest.two &&
2300
              test -s conftest.dir/conftest.one &&
2301
              test -s conftest.dir/conftest.two
2302
            then
2303
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304
              break 3
2305
            fi
2306
          fi
2307
        fi
2308
      done
2309
    done
2310
    ;;
2311
esac
2312
 
2313
  done
2314
IFS=$as_save_IFS
2315
 
2316
rm -rf conftest.one conftest.two conftest.dir
2317
 
2318
fi
2319
  if test "${ac_cv_path_install+set}" = set; then
2320
    INSTALL=$ac_cv_path_install
2321
  else
2322
    # As a last resort, use the slow shell script.  Don't cache a
2323
    # value for INSTALL within a source directory, because that will
2324
    # break other packages using the cache if that directory is
2325
    # removed, or if the value is a relative name.
2326
    INSTALL=$ac_install_sh
2327
  fi
2328
fi
2329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2330
$as_echo "$INSTALL" >&6; }
2331
 
2332
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2333
# It thinks the first close brace ends the variable substitution.
2334
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335
 
2336
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337
 
2338
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339
 
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2341
$as_echo_n "checking whether build environment is sane... " >&6; }
2342
# Just in case
2343
sleep 1
2344
echo timestamp > conftest.file
2345
# Reject unsafe characters in $srcdir or the absolute working directory
2346
# name.  Accept space and tab only in the latter.
2347
am_lf='
2348
'
2349
case `pwd` in
2350
  *[\\\"\#\$\&\'\`$am_lf]*)
2351
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2352
esac
2353
case $srcdir in
2354
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2355
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2356
esac
2357
 
2358
# Do `set' in a subshell so we don't clobber the current shell's
2359
# arguments.  Must try -L first in case configure is actually a
2360
# symlink; some systems play weird games with the mod time of symlinks
2361
# (eg FreeBSD returns the mod time of the symlink's containing
2362
# directory).
2363
if (
2364
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2365
   if test "$*" = "X"; then
2366
      # -L didn't work.
2367
      set X `ls -t "$srcdir/configure" conftest.file`
2368
   fi
2369
   rm -f conftest.file
2370
   if test "$*" != "X $srcdir/configure conftest.file" \
2371
      && test "$*" != "X conftest.file $srcdir/configure"; then
2372
 
2373
      # If neither matched, then we have a broken ls.  This can happen
2374
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2375
      # broken ls alias from the environment.  This has actually
2376
      # happened.  Such a system could not be considered "sane".
2377
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2378
alias in your environment" "$LINENO" 5
2379
   fi
2380
 
2381
   test "$2" = conftest.file
2382
   )
2383
then
2384
   # Ok.
2385
   :
2386
else
2387
   as_fn_error "newly created file is older than distributed files!
2388
Check your system clock" "$LINENO" 5
2389
fi
2390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2391
$as_echo "yes" >&6; }
2392
test "$program_prefix" != NONE &&
2393
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2394
# Use a double $ so make ignores it.
2395
test "$program_suffix" != NONE &&
2396
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2397
# Double any \ or $.
2398
# By default was `s,x,x', remove it if useless.
2399
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2400
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2401
 
2402
# expand $ac_aux_dir to an absolute path
2403
am_aux_dir=`cd $ac_aux_dir && pwd`
2404
 
2405
if test x"${MISSING+set}" != xset; then
2406
  case $am_aux_dir in
2407
  *\ * | *\     *)
2408
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2409
  *)
2410
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2411
  esac
2412
fi
2413
# Use eval to expand $SHELL
2414
if eval "$MISSING --run true"; then
2415
  am_missing_run="$MISSING --run "
2416
else
2417
  am_missing_run=
2418
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2419
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420
fi
2421
 
2422
if test x"${install_sh}" != xset; then
2423
  case $am_aux_dir in
2424
  *\ * | *\     *)
2425
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2426
  *)
2427
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2428
  esac
2429
fi
2430
 
2431
# Installed binaries are usually stripped using `strip' when the user
2432
# run `make install-strip'.  However `strip' might not be the right
2433
# tool to use in cross-compilation environments, therefore Automake
2434
# will honor the `STRIP' environment variable to overrule this program.
2435
if test "$cross_compiling" != no; then
2436
  if test -n "$ac_tool_prefix"; then
2437
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2438
set dummy ${ac_tool_prefix}strip; ac_word=$2
2439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440
$as_echo_n "checking for $ac_word... " >&6; }
2441
if test "${ac_cv_prog_STRIP+set}" = set; then :
2442
  $as_echo_n "(cached) " >&6
2443
else
2444
  if test -n "$STRIP"; then
2445
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2446
else
2447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448
for as_dir in $PATH
2449
do
2450
  IFS=$as_save_IFS
2451
  test -z "$as_dir" && as_dir=.
2452
    for ac_exec_ext in '' $ac_executable_extensions; do
2453
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2455
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456
    break 2
2457
  fi
2458
done
2459
  done
2460
IFS=$as_save_IFS
2461
 
2462
fi
2463
fi
2464
STRIP=$ac_cv_prog_STRIP
2465
if test -n "$STRIP"; then
2466
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2467
$as_echo "$STRIP" >&6; }
2468
else
2469
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470
$as_echo "no" >&6; }
2471
fi
2472
 
2473
 
2474
fi
2475
if test -z "$ac_cv_prog_STRIP"; then
2476
  ac_ct_STRIP=$STRIP
2477
  # Extract the first word of "strip", so it can be a program name with args.
2478
set dummy strip; ac_word=$2
2479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480
$as_echo_n "checking for $ac_word... " >&6; }
2481
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2482
  $as_echo_n "(cached) " >&6
2483
else
2484
  if test -n "$ac_ct_STRIP"; then
2485
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2486
else
2487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488
for as_dir in $PATH
2489
do
2490
  IFS=$as_save_IFS
2491
  test -z "$as_dir" && as_dir=.
2492
    for ac_exec_ext in '' $ac_executable_extensions; do
2493
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494
    ac_cv_prog_ac_ct_STRIP="strip"
2495
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496
    break 2
2497
  fi
2498
done
2499
  done
2500
IFS=$as_save_IFS
2501
 
2502
fi
2503
fi
2504
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2505
if test -n "$ac_ct_STRIP"; then
2506
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2507
$as_echo "$ac_ct_STRIP" >&6; }
2508
else
2509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510
$as_echo "no" >&6; }
2511
fi
2512
 
2513
  if test "x$ac_ct_STRIP" = x; then
2514
    STRIP=":"
2515
  else
2516
    case $cross_compiling:$ac_tool_warned in
2517
yes:)
2518
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2519
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2520
ac_tool_warned=yes ;;
2521
esac
2522
    STRIP=$ac_ct_STRIP
2523
  fi
2524
else
2525
  STRIP="$ac_cv_prog_STRIP"
2526
fi
2527
 
2528
fi
2529
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2530
 
2531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2532
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2533
if test -z "$MKDIR_P"; then
2534
  if test "${ac_cv_path_mkdir+set}" = set; then :
2535
  $as_echo_n "(cached) " >&6
2536
else
2537
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2539
do
2540
  IFS=$as_save_IFS
2541
  test -z "$as_dir" && as_dir=.
2542
    for ac_prog in mkdir gmkdir; do
2543
         for ac_exec_ext in '' $ac_executable_extensions; do
2544
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2545
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2546
             'mkdir (GNU coreutils) '* | \
2547
             'mkdir (coreutils) '* | \
2548
             'mkdir (fileutils) '4.1*)
2549
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2550
               break 3;;
2551
           esac
2552
         done
2553
       done
2554
  done
2555
IFS=$as_save_IFS
2556
 
2557
fi
2558
 
2559
  if test "${ac_cv_path_mkdir+set}" = set; then
2560
    MKDIR_P="$ac_cv_path_mkdir -p"
2561
  else
2562
    # As a last resort, use the slow shell script.  Don't cache a
2563
    # value for MKDIR_P within a source directory, because that will
2564
    # break other packages using the cache if that directory is
2565
    # removed, or if the value is a relative name.
2566
    test -d ./--version && rmdir ./--version
2567
    MKDIR_P="$ac_install_sh -d"
2568
  fi
2569
fi
2570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2571
$as_echo "$MKDIR_P" >&6; }
2572
 
2573
mkdir_p="$MKDIR_P"
2574
case $mkdir_p in
2575
  [\\/$]* | ?:[\\/]*) ;;
2576
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2577
esac
2578
 
2579
for ac_prog in gawk mawk nawk awk
2580
do
2581
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2582
set dummy $ac_prog; ac_word=$2
2583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584
$as_echo_n "checking for $ac_word... " >&6; }
2585
if test "${ac_cv_prog_AWK+set}" = set; then :
2586
  $as_echo_n "(cached) " >&6
2587
else
2588
  if test -n "$AWK"; then
2589
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2590
else
2591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592
for as_dir in $PATH
2593
do
2594
  IFS=$as_save_IFS
2595
  test -z "$as_dir" && as_dir=.
2596
    for ac_exec_ext in '' $ac_executable_extensions; do
2597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598
    ac_cv_prog_AWK="$ac_prog"
2599
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600
    break 2
2601
  fi
2602
done
2603
  done
2604
IFS=$as_save_IFS
2605
 
2606
fi
2607
fi
2608
AWK=$ac_cv_prog_AWK
2609
if test -n "$AWK"; then
2610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2611
$as_echo "$AWK" >&6; }
2612
else
2613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614
$as_echo "no" >&6; }
2615
fi
2616
 
2617
 
2618
  test -n "$AWK" && break
2619
done
2620
 
2621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2622
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2623
set x ${MAKE-make}
2624
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2625
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2626
  $as_echo_n "(cached) " >&6
2627
else
2628
  cat >conftest.make <<\_ACEOF
2629
SHELL = /bin/sh
2630
all:
2631
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2632
_ACEOF
2633
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2634
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2635
  *@@@%%%=?*=@@@%%%*)
2636
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2637
  *)
2638
    eval ac_cv_prog_make_${ac_make}_set=no;;
2639
esac
2640
rm -f conftest.make
2641
fi
2642
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2643
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644
$as_echo "yes" >&6; }
2645
  SET_MAKE=
2646
else
2647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648
$as_echo "no" >&6; }
2649
  SET_MAKE="MAKE=${MAKE-make}"
2650
fi
2651
 
2652
rm -rf .tst 2>/dev/null
2653
mkdir .tst 2>/dev/null
2654
if test -d .tst; then
2655
  am__leading_dot=.
2656
else
2657
  am__leading_dot=_
2658
fi
2659
rmdir .tst 2>/dev/null
2660
 
2661
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2662
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2663
  # is not polluted with repeated "-I."
2664
  am__isrc=' -I$(srcdir)'
2665
  # test to see if srcdir already configured
2666
  if test -f $srcdir/config.status; then
2667
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2668
  fi
2669
fi
2670
 
2671
# test whether we have cygpath
2672
if test -z "$CYGPATH_W"; then
2673
  if (cygpath --version) >/dev/null 2>/dev/null; then
2674
    CYGPATH_W='cygpath -w'
2675
  else
2676
    CYGPATH_W=echo
2677
  fi
2678
fi
2679
 
2680
 
2681
# Define the identity of the package.
2682
 PACKAGE='lto-plugin'
2683
 VERSION='0.1'
2684
 
2685
 
2686
cat >>confdefs.h <<_ACEOF
2687
#define PACKAGE "$PACKAGE"
2688
_ACEOF
2689
 
2690
 
2691
cat >>confdefs.h <<_ACEOF
2692
#define VERSION "$VERSION"
2693
_ACEOF
2694
 
2695
# Some tools Automake needs.
2696
 
2697
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2698
 
2699
 
2700
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2701
 
2702
 
2703
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2704
 
2705
 
2706
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2707
 
2708
 
2709
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2710
 
2711
# We need awk for the "check" target.  The system "awk" is bad on
2712
# some platforms.
2713
# Always define AMTAR for backward compatibility.
2714
 
2715
AMTAR=${AMTAR-"${am_missing_run}tar"}
2716
 
2717
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2718
 
2719
 
2720
 
2721
 
2722
 
2723
 
2724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2725
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2726
    # Check whether --enable-maintainer-mode was given.
2727
if test "${enable_maintainer_mode+set}" = set; then :
2728
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2729
else
2730
  USE_MAINTAINER_MODE=no
2731
fi
2732
 
2733
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2734
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2735
   if test $USE_MAINTAINER_MODE = yes; then
2736
  MAINTAINER_MODE_TRUE=
2737
  MAINTAINER_MODE_FALSE='#'
2738
else
2739
  MAINTAINER_MODE_TRUE='#'
2740
  MAINTAINER_MODE_FALSE=
2741
fi
2742
 
2743
  MAINT=$MAINTAINER_MODE_TRUE
2744
 
2745
 
2746
ac_ext=c
2747
ac_cpp='$CPP $CPPFLAGS'
2748
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
if test -n "$ac_tool_prefix"; then
2752
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755
$as_echo_n "checking for $ac_word... " >&6; }
2756
if test "${ac_cv_prog_CC+set}" = set; then :
2757
  $as_echo_n "(cached) " >&6
2758
else
2759
  if test -n "$CC"; then
2760
  ac_cv_prog_CC="$CC" # Let the user override the test.
2761
else
2762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763
for as_dir in $PATH
2764
do
2765
  IFS=$as_save_IFS
2766
  test -z "$as_dir" && as_dir=.
2767
    for ac_exec_ext in '' $ac_executable_extensions; do
2768
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771
    break 2
2772
  fi
2773
done
2774
  done
2775
IFS=$as_save_IFS
2776
 
2777
fi
2778
fi
2779
CC=$ac_cv_prog_CC
2780
if test -n "$CC"; then
2781
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782
$as_echo "$CC" >&6; }
2783
else
2784
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785
$as_echo "no" >&6; }
2786
fi
2787
 
2788
 
2789
fi
2790
if test -z "$ac_cv_prog_CC"; then
2791
  ac_ct_CC=$CC
2792
  # Extract the first word of "gcc", so it can be a program name with args.
2793
set dummy gcc; ac_word=$2
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795
$as_echo_n "checking for $ac_word... " >&6; }
2796
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2797
  $as_echo_n "(cached) " >&6
2798
else
2799
  if test -n "$ac_ct_CC"; then
2800
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801
else
2802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803
for as_dir in $PATH
2804
do
2805
  IFS=$as_save_IFS
2806
  test -z "$as_dir" && as_dir=.
2807
    for ac_exec_ext in '' $ac_executable_extensions; do
2808
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809
    ac_cv_prog_ac_ct_CC="gcc"
2810
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811
    break 2
2812
  fi
2813
done
2814
  done
2815
IFS=$as_save_IFS
2816
 
2817
fi
2818
fi
2819
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820
if test -n "$ac_ct_CC"; then
2821
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822
$as_echo "$ac_ct_CC" >&6; }
2823
else
2824
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825
$as_echo "no" >&6; }
2826
fi
2827
 
2828
  if test "x$ac_ct_CC" = x; then
2829
    CC=""
2830
  else
2831
    case $cross_compiling:$ac_tool_warned in
2832
yes:)
2833
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835
ac_tool_warned=yes ;;
2836
esac
2837
    CC=$ac_ct_CC
2838
  fi
2839
else
2840
  CC="$ac_cv_prog_CC"
2841
fi
2842
 
2843
if test -z "$CC"; then
2844
          if test -n "$ac_tool_prefix"; then
2845
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846
set dummy ${ac_tool_prefix}cc; ac_word=$2
2847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848
$as_echo_n "checking for $ac_word... " >&6; }
2849
if test "${ac_cv_prog_CC+set}" = set; then :
2850
  $as_echo_n "(cached) " >&6
2851
else
2852
  if test -n "$CC"; then
2853
  ac_cv_prog_CC="$CC" # Let the user override the test.
2854
else
2855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856
for as_dir in $PATH
2857
do
2858
  IFS=$as_save_IFS
2859
  test -z "$as_dir" && as_dir=.
2860
    for ac_exec_ext in '' $ac_executable_extensions; do
2861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2863
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864
    break 2
2865
  fi
2866
done
2867
  done
2868
IFS=$as_save_IFS
2869
 
2870
fi
2871
fi
2872
CC=$ac_cv_prog_CC
2873
if test -n "$CC"; then
2874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875
$as_echo "$CC" >&6; }
2876
else
2877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878
$as_echo "no" >&6; }
2879
fi
2880
 
2881
 
2882
  fi
2883
fi
2884
if test -z "$CC"; then
2885
  # Extract the first word of "cc", so it can be a program name with args.
2886
set dummy cc; ac_word=$2
2887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888
$as_echo_n "checking for $ac_word... " >&6; }
2889
if test "${ac_cv_prog_CC+set}" = set; then :
2890
  $as_echo_n "(cached) " >&6
2891
else
2892
  if test -n "$CC"; then
2893
  ac_cv_prog_CC="$CC" # Let the user override the test.
2894
else
2895
  ac_prog_rejected=no
2896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897
for as_dir in $PATH
2898
do
2899
  IFS=$as_save_IFS
2900
  test -z "$as_dir" && as_dir=.
2901
    for ac_exec_ext in '' $ac_executable_extensions; do
2902
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904
       ac_prog_rejected=yes
2905
       continue
2906
     fi
2907
    ac_cv_prog_CC="cc"
2908
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909
    break 2
2910
  fi
2911
done
2912
  done
2913
IFS=$as_save_IFS
2914
 
2915
if test $ac_prog_rejected = yes; then
2916
  # We found a bogon in the path, so make sure we never use it.
2917
  set dummy $ac_cv_prog_CC
2918
  shift
2919
  if test $# != 0; then
2920
    # We chose a different compiler from the bogus one.
2921
    # However, it has the same basename, so the bogon will be chosen
2922
    # first if we set CC to just the basename; use the full file name.
2923
    shift
2924
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2925
  fi
2926
fi
2927
fi
2928
fi
2929
CC=$ac_cv_prog_CC
2930
if test -n "$CC"; then
2931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932
$as_echo "$CC" >&6; }
2933
else
2934
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935
$as_echo "no" >&6; }
2936
fi
2937
 
2938
 
2939
fi
2940
if test -z "$CC"; then
2941
  if test -n "$ac_tool_prefix"; then
2942
  for ac_prog in cl.exe
2943
  do
2944
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947
$as_echo_n "checking for $ac_word... " >&6; }
2948
if test "${ac_cv_prog_CC+set}" = set; then :
2949
  $as_echo_n "(cached) " >&6
2950
else
2951
  if test -n "$CC"; then
2952
  ac_cv_prog_CC="$CC" # Let the user override the test.
2953
else
2954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955
for as_dir in $PATH
2956
do
2957
  IFS=$as_save_IFS
2958
  test -z "$as_dir" && as_dir=.
2959
    for ac_exec_ext in '' $ac_executable_extensions; do
2960
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963
    break 2
2964
  fi
2965
done
2966
  done
2967
IFS=$as_save_IFS
2968
 
2969
fi
2970
fi
2971
CC=$ac_cv_prog_CC
2972
if test -n "$CC"; then
2973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974
$as_echo "$CC" >&6; }
2975
else
2976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977
$as_echo "no" >&6; }
2978
fi
2979
 
2980
 
2981
    test -n "$CC" && break
2982
  done
2983
fi
2984
if test -z "$CC"; then
2985
  ac_ct_CC=$CC
2986
  for ac_prog in cl.exe
2987
do
2988
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2989
set dummy $ac_prog; ac_word=$2
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991
$as_echo_n "checking for $ac_word... " >&6; }
2992
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2993
  $as_echo_n "(cached) " >&6
2994
else
2995
  if test -n "$ac_ct_CC"; then
2996
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997
else
2998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999
for as_dir in $PATH
3000
do
3001
  IFS=$as_save_IFS
3002
  test -z "$as_dir" && as_dir=.
3003
    for ac_exec_ext in '' $ac_executable_extensions; do
3004
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005
    ac_cv_prog_ac_ct_CC="$ac_prog"
3006
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007
    break 2
3008
  fi
3009
done
3010
  done
3011
IFS=$as_save_IFS
3012
 
3013
fi
3014
fi
3015
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016
if test -n "$ac_ct_CC"; then
3017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018
$as_echo "$ac_ct_CC" >&6; }
3019
else
3020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021
$as_echo "no" >&6; }
3022
fi
3023
 
3024
 
3025
  test -n "$ac_ct_CC" && break
3026
done
3027
 
3028
  if test "x$ac_ct_CC" = x; then
3029
    CC=""
3030
  else
3031
    case $cross_compiling:$ac_tool_warned in
3032
yes:)
3033
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035
ac_tool_warned=yes ;;
3036
esac
3037
    CC=$ac_ct_CC
3038
  fi
3039
fi
3040
 
3041
fi
3042
 
3043
 
3044
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046
as_fn_error "no acceptable C compiler found in \$PATH
3047
See \`config.log' for more details." "$LINENO" 5; }
3048
 
3049
# Provide some information about the compiler.
3050
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051
set X $ac_compile
3052
ac_compiler=$2
3053
for ac_option in --version -v -V -qversion; do
3054
  { { ac_try="$ac_compiler $ac_option >&5"
3055
case "(($ac_try" in
3056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057
  *) ac_try_echo=$ac_try;;
3058
esac
3059
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060
$as_echo "$ac_try_echo"; } >&5
3061
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3062
  ac_status=$?
3063
  if test -s conftest.err; then
3064
    sed '10a\
3065
... rest of stderr output deleted ...
3066
         10q' conftest.err >conftest.er1
3067
    cat conftest.er1 >&5
3068
    rm -f conftest.er1 conftest.err
3069
  fi
3070
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071
  test $ac_status = 0; }
3072
done
3073
 
3074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075
/* end confdefs.h.  */
3076
 
3077
int
3078
main ()
3079
{
3080
 
3081
  ;
3082
  return 0;
3083
}
3084
_ACEOF
3085
ac_clean_files_save=$ac_clean_files
3086
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3087
# Try to create an executable without -o first, disregard a.out.
3088
# It will help us diagnose broken compilers, and finding out an intuition
3089
# of exeext.
3090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3091
$as_echo_n "checking for C compiler default output file name... " >&6; }
3092
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3093
 
3094
# The possible output files:
3095
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096
 
3097
ac_rmfiles=
3098
for ac_file in $ac_files
3099
do
3100
  case $ac_file in
3101
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103
  esac
3104
done
3105
rm -f $ac_rmfiles
3106
 
3107
if { { ac_try="$ac_link_default"
3108
case "(($ac_try" in
3109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110
  *) ac_try_echo=$ac_try;;
3111
esac
3112
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113
$as_echo "$ac_try_echo"; } >&5
3114
  (eval "$ac_link_default") 2>&5
3115
  ac_status=$?
3116
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117
  test $ac_status = 0; }; then :
3118
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3119
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3120
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3121
# so that the user can short-circuit this test for compilers unknown to
3122
# Autoconf.
3123
for ac_file in $ac_files ''
3124
do
3125
  test -f "$ac_file" || continue
3126
  case $ac_file in
3127
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3128
        ;;
3129
    [ab].out )
3130
        # We found the default executable, but exeext='' is most
3131
        # certainly right.
3132
        break;;
3133
    *.* )
3134
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3135
        then :; else
3136
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3137
        fi
3138
        # We set ac_cv_exeext here because the later test for it is not
3139
        # safe: cross compilers may not add the suffix if given an `-o'
3140
        # argument, so we may need to know it at that point already.
3141
        # Even if this section looks crufty: it has the advantage of
3142
        # actually working.
3143
        break;;
3144
    * )
3145
        break;;
3146
  esac
3147
done
3148
test "$ac_cv_exeext" = no && ac_cv_exeext=
3149
 
3150
else
3151
  ac_file=''
3152
fi
3153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3154
$as_echo "$ac_file" >&6; }
3155
if test -z "$ac_file"; then :
3156
  $as_echo "$as_me: failed program was:" >&5
3157
sed 's/^/| /' conftest.$ac_ext >&5
3158
 
3159
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161
{ as_fn_set_status 77
3162
as_fn_error "C compiler cannot create executables
3163
See \`config.log' for more details." "$LINENO" 5; }; }
3164
fi
3165
ac_exeext=$ac_cv_exeext
3166
 
3167
# Check that the compiler produces executables we can run.  If not, either
3168
# the compiler is broken, or we cross compile.
3169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170
$as_echo_n "checking whether the C compiler works... " >&6; }
3171
# If not cross compiling, check that we can run a simple program.
3172
if test "$cross_compiling" != yes; then
3173
  if { ac_try='./$ac_file'
3174
  { { case "(($ac_try" in
3175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176
  *) ac_try_echo=$ac_try;;
3177
esac
3178
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179
$as_echo "$ac_try_echo"; } >&5
3180
  (eval "$ac_try") 2>&5
3181
  ac_status=$?
3182
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183
  test $ac_status = 0; }; }; then
3184
    cross_compiling=no
3185
  else
3186
    if test "$cross_compiling" = maybe; then
3187
        cross_compiling=yes
3188
    else
3189
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191
as_fn_error "cannot run C compiled programs.
3192
If you meant to cross compile, use \`--host'.
3193
See \`config.log' for more details." "$LINENO" 5; }
3194
    fi
3195
  fi
3196
fi
3197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198
$as_echo "yes" >&6; }
3199
 
3200
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3201
ac_clean_files=$ac_clean_files_save
3202
# Check that the compiler produces executables we can run.  If not, either
3203
# the compiler is broken, or we cross compile.
3204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205
$as_echo_n "checking whether we are cross compiling... " >&6; }
3206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3207
$as_echo "$cross_compiling" >&6; }
3208
 
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3210
$as_echo_n "checking for suffix of executables... " >&6; }
3211
if { { ac_try="$ac_link"
3212
case "(($ac_try" in
3213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214
  *) ac_try_echo=$ac_try;;
3215
esac
3216
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217
$as_echo "$ac_try_echo"; } >&5
3218
  (eval "$ac_link") 2>&5
3219
  ac_status=$?
3220
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221
  test $ac_status = 0; }; then :
3222
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3224
# work properly (i.e., refer to `conftest.exe'), while it won't with
3225
# `rm'.
3226
for ac_file in conftest.exe conftest conftest.*; do
3227
  test -f "$ac_file" || continue
3228
  case $ac_file in
3229
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231
          break;;
3232
    * ) break;;
3233
  esac
3234
done
3235
else
3236
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238
as_fn_error "cannot compute suffix of executables: cannot compile and link
3239
See \`config.log' for more details." "$LINENO" 5; }
3240
fi
3241
rm -f conftest$ac_cv_exeext
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3243
$as_echo "$ac_cv_exeext" >&6; }
3244
 
3245
rm -f conftest.$ac_ext
3246
EXEEXT=$ac_cv_exeext
3247
ac_exeext=$EXEEXT
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3249
$as_echo_n "checking for suffix of object files... " >&6; }
3250
if test "${ac_cv_objext+set}" = set; then :
3251
  $as_echo_n "(cached) " >&6
3252
else
3253
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254
/* end confdefs.h.  */
3255
 
3256
int
3257
main ()
3258
{
3259
 
3260
  ;
3261
  return 0;
3262
}
3263
_ACEOF
3264
rm -f conftest.o conftest.obj
3265
if { { ac_try="$ac_compile"
3266
case "(($ac_try" in
3267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268
  *) ac_try_echo=$ac_try;;
3269
esac
3270
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271
$as_echo "$ac_try_echo"; } >&5
3272
  (eval "$ac_compile") 2>&5
3273
  ac_status=$?
3274
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275
  test $ac_status = 0; }; then :
3276
  for ac_file in conftest.o conftest.obj conftest.*; do
3277
  test -f "$ac_file" || continue;
3278
  case $ac_file in
3279
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3280
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3281
       break;;
3282
  esac
3283
done
3284
else
3285
  $as_echo "$as_me: failed program was:" >&5
3286
sed 's/^/| /' conftest.$ac_ext >&5
3287
 
3288
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290
as_fn_error "cannot compute suffix of object files: cannot compile
3291
See \`config.log' for more details." "$LINENO" 5; }
3292
fi
3293
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294
fi
3295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3296
$as_echo "$ac_cv_objext" >&6; }
3297
OBJEXT=$ac_cv_objext
3298
ac_objext=$OBJEXT
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3300
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3301
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3302
  $as_echo_n "(cached) " >&6
3303
else
3304
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305
/* end confdefs.h.  */
3306
 
3307
int
3308
main ()
3309
{
3310
#ifndef __GNUC__
3311
       choke me
3312
#endif
3313
 
3314
  ;
3315
  return 0;
3316
}
3317
_ACEOF
3318
if ac_fn_c_try_compile "$LINENO"; then :
3319
  ac_compiler_gnu=yes
3320
else
3321
  ac_compiler_gnu=no
3322
fi
3323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3325
 
3326
fi
3327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3328
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3329
if test $ac_compiler_gnu = yes; then
3330
  GCC=yes
3331
else
3332
  GCC=
3333
fi
3334
ac_test_CFLAGS=${CFLAGS+set}
3335
ac_save_CFLAGS=$CFLAGS
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3337
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3338
if test "${ac_cv_prog_cc_g+set}" = set; then :
3339
  $as_echo_n "(cached) " >&6
3340
else
3341
  ac_save_c_werror_flag=$ac_c_werror_flag
3342
   ac_c_werror_flag=yes
3343
   ac_cv_prog_cc_g=no
3344
   CFLAGS="-g"
3345
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346
/* end confdefs.h.  */
3347
 
3348
int
3349
main ()
3350
{
3351
 
3352
  ;
3353
  return 0;
3354
}
3355
_ACEOF
3356
if ac_fn_c_try_compile "$LINENO"; then :
3357
  ac_cv_prog_cc_g=yes
3358
else
3359
  CFLAGS=""
3360
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361
/* end confdefs.h.  */
3362
 
3363
int
3364
main ()
3365
{
3366
 
3367
  ;
3368
  return 0;
3369
}
3370
_ACEOF
3371
if ac_fn_c_try_compile "$LINENO"; then :
3372
 
3373
else
3374
  ac_c_werror_flag=$ac_save_c_werror_flag
3375
         CFLAGS="-g"
3376
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377
/* end confdefs.h.  */
3378
 
3379
int
3380
main ()
3381
{
3382
 
3383
  ;
3384
  return 0;
3385
}
3386
_ACEOF
3387
if ac_fn_c_try_compile "$LINENO"; then :
3388
  ac_cv_prog_cc_g=yes
3389
fi
3390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391
fi
3392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393
fi
3394
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395
   ac_c_werror_flag=$ac_save_c_werror_flag
3396
fi
3397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3398
$as_echo "$ac_cv_prog_cc_g" >&6; }
3399
if test "$ac_test_CFLAGS" = set; then
3400
  CFLAGS=$ac_save_CFLAGS
3401
elif test $ac_cv_prog_cc_g = yes; then
3402
  if test "$GCC" = yes; then
3403
    CFLAGS="-g -O2"
3404
  else
3405
    CFLAGS="-g"
3406
  fi
3407
else
3408
  if test "$GCC" = yes; then
3409
    CFLAGS="-O2"
3410
  else
3411
    CFLAGS=
3412
  fi
3413
fi
3414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3415
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3416
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3417
  $as_echo_n "(cached) " >&6
3418
else
3419
  ac_cv_prog_cc_c89=no
3420
ac_save_CC=$CC
3421
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422
/* end confdefs.h.  */
3423
#include 
3424
#include 
3425
#include 
3426
#include 
3427
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3428
struct buf { int x; };
3429
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3430
static char *e (p, i)
3431
     char **p;
3432
     int i;
3433
{
3434
  return p[i];
3435
}
3436
static char *f (char * (*g) (char **, int), char **p, ...)
3437
{
3438
  char *s;
3439
  va_list v;
3440
  va_start (v,p);
3441
  s = g (p, va_arg (v,int));
3442
  va_end (v);
3443
  return s;
3444
}
3445
 
3446
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3447
   function prototypes and stuff, but not '\xHH' hex character constants.
3448
   These don't provoke an error unfortunately, instead are silently treated
3449
   as 'x'.  The following induces an error, until -std is added to get
3450
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3451
   array size at least.  It's necessary to write '\x00'==0 to get something
3452
   that's true only with -std.  */
3453
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3454
 
3455
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3456
   inside strings and character constants.  */
3457
#define FOO(x) 'x'
3458
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3459
 
3460
int test (int i, double x);
3461
struct s1 {int (*f) (int a);};
3462
struct s2 {int (*f) (double a);};
3463
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3464
int argc;
3465
char **argv;
3466
int
3467
main ()
3468
{
3469
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3470
  ;
3471
  return 0;
3472
}
3473
_ACEOF
3474
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3475
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3476
do
3477
  CC="$ac_save_CC $ac_arg"
3478
  if ac_fn_c_try_compile "$LINENO"; then :
3479
  ac_cv_prog_cc_c89=$ac_arg
3480
fi
3481
rm -f core conftest.err conftest.$ac_objext
3482
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3483
done
3484
rm -f conftest.$ac_ext
3485
CC=$ac_save_CC
3486
 
3487
fi
3488
# AC_CACHE_VAL
3489
case "x$ac_cv_prog_cc_c89" in
3490
  x)
3491
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3492
$as_echo "none needed" >&6; } ;;
3493
  xno)
3494
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3495
$as_echo "unsupported" >&6; } ;;
3496
  *)
3497
    CC="$CC $ac_cv_prog_cc_c89"
3498
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3499
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3500
esac
3501
if test "x$ac_cv_prog_cc_c89" != xno; then :
3502
 
3503
fi
3504
 
3505
ac_ext=c
3506
ac_cpp='$CPP $CPPFLAGS'
3507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510
DEPDIR="${am__leading_dot}deps"
3511
 
3512
ac_config_commands="$ac_config_commands depfiles"
3513
 
3514
 
3515
am_make=${MAKE-make}
3516
cat > confinc << 'END'
3517
am__doit:
3518
        @echo this is the am__doit target
3519
.PHONY: am__doit
3520
END
3521
# If we don't find an include directive, just comment out the code.
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3523
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3524
am__include="#"
3525
am__quote=
3526
_am_result=none
3527
# First try GNU make style include.
3528
echo "include confinc" > confmf
3529
# Ignore all kinds of additional output from `make'.
3530
case `$am_make -s -f confmf 2> /dev/null` in #(
3531
*the\ am__doit\ target*)
3532
  am__include=include
3533
  am__quote=
3534
  _am_result=GNU
3535
  ;;
3536
esac
3537
# Now try BSD make style include.
3538
if test "$am__include" = "#"; then
3539
   echo '.include "confinc"' > confmf
3540
   case `$am_make -s -f confmf 2> /dev/null` in #(
3541
   *the\ am__doit\ target*)
3542
     am__include=.include
3543
     am__quote="\""
3544
     _am_result=BSD
3545
     ;;
3546
   esac
3547
fi
3548
 
3549
 
3550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3551
$as_echo "$_am_result" >&6; }
3552
rm -f confinc confmf
3553
 
3554
# Check whether --enable-dependency-tracking was given.
3555
if test "${enable_dependency_tracking+set}" = set; then :
3556
  enableval=$enable_dependency_tracking;
3557
fi
3558
 
3559
if test "x$enable_dependency_tracking" != xno; then
3560
  am_depcomp="$ac_aux_dir/depcomp"
3561
  AMDEPBACKSLASH='\'
3562
fi
3563
 if test "x$enable_dependency_tracking" != xno; then
3564
  AMDEP_TRUE=
3565
  AMDEP_FALSE='#'
3566
else
3567
  AMDEP_TRUE='#'
3568
  AMDEP_FALSE=
3569
fi
3570
 
3571
 
3572
 
3573
depcc="$CC"   am_compiler_list=
3574
 
3575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3576
$as_echo_n "checking dependency style of $depcc... " >&6; }
3577
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3578
  $as_echo_n "(cached) " >&6
3579
else
3580
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581
  # We make a subdir and do the tests there.  Otherwise we can end up
3582
  # making bogus files that we don't know about and never remove.  For
3583
  # instance it was reported that on HP-UX the gcc test will end up
3584
  # making a dummy file named `D' -- because `-MD' means `put the output
3585
  # in D'.
3586
  mkdir conftest.dir
3587
  # Copy depcomp to subdir because otherwise we won't find it if we're
3588
  # using a relative directory.
3589
  cp "$am_depcomp" conftest.dir
3590
  cd conftest.dir
3591
  # We will build objects and dependencies in a subdirectory because
3592
  # it helps to detect inapplicable dependency modes.  For instance
3593
  # both Tru64's cc and ICC support -MD to output dependencies as a
3594
  # side effect of compilation, but ICC will put the dependencies in
3595
  # the current directory while Tru64 will put them in the object
3596
  # directory.
3597
  mkdir sub
3598
 
3599
  am_cv_CC_dependencies_compiler_type=none
3600
  if test "$am_compiler_list" = ""; then
3601
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3602
  fi
3603
  am__universal=false
3604
  case " $depcc " in #(
3605
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3606
     esac
3607
 
3608
  for depmode in $am_compiler_list; do
3609
    # Setup a source with many dependencies, because some compilers
3610
    # like to wrap large dependency lists on column 80 (with \), and
3611
    # we should not choose a depcomp mode which is confused by this.
3612
    #
3613
    # We need to recreate these files for each test, as the compiler may
3614
    # overwrite some of them when testing with obscure command lines.
3615
    # This happens at least with the AIX C compiler.
3616
    : > sub/conftest.c
3617
    for i in 1 2 3 4 5 6; do
3618
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620
      # Solaris 8's {/usr,}/bin/sh.
3621
      touch sub/conftst$i.h
3622
    done
3623
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3624
 
3625
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626
    # mode.  It turns out that the SunPro C++ compiler does not properly
3627
    # handle `-M -o', and we need to detect this.  Also, some Intel
3628
    # versions had trouble with output in subdirs
3629
    am__obj=sub/conftest.${OBJEXT-o}
3630
    am__minus_obj="-o $am__obj"
3631
    case $depmode in
3632
    gcc)
3633
      # This depmode causes a compiler race in universal mode.
3634
      test "$am__universal" = false || continue
3635
      ;;
3636
    nosideeffect)
3637
      # after this tag, mechanisms are not by side-effect, so they'll
3638
      # only be used when explicitly requested
3639
      if test "x$enable_dependency_tracking" = xyes; then
3640
        continue
3641
      else
3642
        break
3643
      fi
3644
      ;;
3645
    msvisualcpp | msvcmsys)
3646
      # This compiler won't grok `-c -o', but also, the minuso test has
3647
      # not run yet.  These depmodes are late enough in the game, and
3648
      # so weak that their functioning should not be impacted.
3649
      am__obj=conftest.${OBJEXT-o}
3650
      am__minus_obj=
3651
      ;;
3652
    none) break ;;
3653
    esac
3654
    if depmode=$depmode \
3655
       source=sub/conftest.c object=$am__obj \
3656
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3657
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3658
         >/dev/null 2>conftest.err &&
3659
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3660
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3661
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3662
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663
      # icc doesn't choke on unknown options, it will just issue warnings
3664
      # or remarks (even with -Werror).  So we grep stderr for any message
3665
      # that says an option was ignored or not supported.
3666
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3667
      #   icc: Command line warning: ignoring option '-M'; no argument required
3668
      # The diagnosis changed in icc 8.0:
3669
      #   icc: Command line remark: option '-MP' not supported
3670
      if (grep 'ignoring option' conftest.err ||
3671
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672
        am_cv_CC_dependencies_compiler_type=$depmode
3673
        break
3674
      fi
3675
    fi
3676
  done
3677
 
3678
  cd ..
3679
  rm -rf conftest.dir
3680
else
3681
  am_cv_CC_dependencies_compiler_type=none
3682
fi
3683
 
3684
fi
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3686
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3687
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3688
 
3689
 if
3690
  test "x$enable_dependency_tracking" != xno \
3691
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3692
  am__fastdepCC_TRUE=
3693
  am__fastdepCC_FALSE='#'
3694
else
3695
  am__fastdepCC_TRUE='#'
3696
  am__fastdepCC_FALSE=
3697
fi
3698
 
3699
 
3700
 
3701
# Check whether --enable-largefile was given.
3702
if test "${enable_largefile+set}" = set; then :
3703
  enableval=$enable_largefile;
3704
fi
3705
 
3706
if test "$enable_largefile" != no; then
3707
 
3708
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3709
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3710
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3711
  $as_echo_n "(cached) " >&6
3712
else
3713
  ac_cv_sys_largefile_CC=no
3714
     if test "$GCC" != yes; then
3715
       ac_save_CC=$CC
3716
       while :; do
3717
         # IRIX 6.2 and later do not support large files by default,
3718
         # so use the C compiler's -n32 option if that helps.
3719
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720
/* end confdefs.h.  */
3721
#include 
3722
 /* Check that off_t can represent 2**63 - 1 correctly.
3723
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3724
    since some C++ compilers masquerading as C compilers
3725
    incorrectly reject 9223372036854775807.  */
3726
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3727
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3728
                       && LARGE_OFF_T % 2147483647 == 1)
3729
                      ? 1 : -1];
3730
int
3731
main ()
3732
{
3733
 
3734
  ;
3735
  return 0;
3736
}
3737
_ACEOF
3738
         if ac_fn_c_try_compile "$LINENO"; then :
3739
  break
3740
fi
3741
rm -f core conftest.err conftest.$ac_objext
3742
         CC="$CC -n32"
3743
         if ac_fn_c_try_compile "$LINENO"; then :
3744
  ac_cv_sys_largefile_CC=' -n32'; break
3745
fi
3746
rm -f core conftest.err conftest.$ac_objext
3747
         break
3748
       done
3749
       CC=$ac_save_CC
3750
       rm -f conftest.$ac_ext
3751
    fi
3752
fi
3753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3754
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3755
  if test "$ac_cv_sys_largefile_CC" != no; then
3756
    CC=$CC$ac_cv_sys_largefile_CC
3757
  fi
3758
 
3759
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3760
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3761
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3762
  $as_echo_n "(cached) " >&6
3763
else
3764
  while :; do
3765
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766
/* end confdefs.h.  */
3767
#include 
3768
 /* Check that off_t can represent 2**63 - 1 correctly.
3769
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3770
    since some C++ compilers masquerading as C compilers
3771
    incorrectly reject 9223372036854775807.  */
3772
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3773
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3774
                       && LARGE_OFF_T % 2147483647 == 1)
3775
                      ? 1 : -1];
3776
int
3777
main ()
3778
{
3779
 
3780
  ;
3781
  return 0;
3782
}
3783
_ACEOF
3784
if ac_fn_c_try_compile "$LINENO"; then :
3785
  ac_cv_sys_file_offset_bits=no; break
3786
fi
3787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789
/* end confdefs.h.  */
3790
#define _FILE_OFFSET_BITS 64
3791
#include 
3792
 /* Check that off_t can represent 2**63 - 1 correctly.
3793
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3794
    since some C++ compilers masquerading as C compilers
3795
    incorrectly reject 9223372036854775807.  */
3796
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3797
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3798
                       && LARGE_OFF_T % 2147483647 == 1)
3799
                      ? 1 : -1];
3800
int
3801
main ()
3802
{
3803
 
3804
  ;
3805
  return 0;
3806
}
3807
_ACEOF
3808
if ac_fn_c_try_compile "$LINENO"; then :
3809
  ac_cv_sys_file_offset_bits=64; break
3810
fi
3811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812
  ac_cv_sys_file_offset_bits=unknown
3813
  break
3814
done
3815
fi
3816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3817
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3818
case $ac_cv_sys_file_offset_bits in #(
3819
  no | unknown) ;;
3820
  *)
3821
cat >>confdefs.h <<_ACEOF
3822
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3823
_ACEOF
3824
;;
3825
esac
3826
rm -rf conftest*
3827
  if test $ac_cv_sys_file_offset_bits = unknown; then
3828
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3829
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3830
if test "${ac_cv_sys_large_files+set}" = set; then :
3831
  $as_echo_n "(cached) " >&6
3832
else
3833
  while :; do
3834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835
/* end confdefs.h.  */
3836
#include 
3837
 /* Check that off_t can represent 2**63 - 1 correctly.
3838
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3839
    since some C++ compilers masquerading as C compilers
3840
    incorrectly reject 9223372036854775807.  */
3841
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3842
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3843
                       && LARGE_OFF_T % 2147483647 == 1)
3844
                      ? 1 : -1];
3845
int
3846
main ()
3847
{
3848
 
3849
  ;
3850
  return 0;
3851
}
3852
_ACEOF
3853
if ac_fn_c_try_compile "$LINENO"; then :
3854
  ac_cv_sys_large_files=no; break
3855
fi
3856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858
/* end confdefs.h.  */
3859
#define _LARGE_FILES 1
3860
#include 
3861
 /* Check that off_t can represent 2**63 - 1 correctly.
3862
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3863
    since some C++ compilers masquerading as C compilers
3864
    incorrectly reject 9223372036854775807.  */
3865
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3866
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3867
                       && LARGE_OFF_T % 2147483647 == 1)
3868
                      ? 1 : -1];
3869
int
3870
main ()
3871
{
3872
 
3873
  ;
3874
  return 0;
3875
}
3876
_ACEOF
3877
if ac_fn_c_try_compile "$LINENO"; then :
3878
  ac_cv_sys_large_files=1; break
3879
fi
3880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881
  ac_cv_sys_large_files=unknown
3882
  break
3883
done
3884
fi
3885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3886
$as_echo "$ac_cv_sys_large_files" >&6; }
3887
case $ac_cv_sys_large_files in #(
3888
  no | unknown) ;;
3889
  *)
3890
cat >>confdefs.h <<_ACEOF
3891
#define _LARGE_FILES $ac_cv_sys_large_files
3892
_ACEOF
3893
;;
3894
esac
3895
rm -rf conftest*
3896
  fi
3897
fi
3898
 
3899
 
3900
 
3901
case `pwd` in
3902
  *\ * | *\     *)
3903
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3904
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3905
esac
3906
 
3907
 
3908
 
3909
macro_version='2.2.7a'
3910
macro_revision='1.3134'
3911
 
3912
 
3913
 
3914
 
3915
 
3916
 
3917
 
3918
 
3919
 
3920
 
3921
 
3922
 
3923
 
3924
ltmain="$ac_aux_dir/ltmain.sh"
3925
 
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3927
$as_echo_n "checking host system type... " >&6; }
3928
if test "${ac_cv_host+set}" = set; then :
3929
  $as_echo_n "(cached) " >&6
3930
else
3931
  if test "x$host_alias" = x; then
3932
  ac_cv_host=$ac_cv_build
3933
else
3934
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3935
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3936
fi
3937
 
3938
fi
3939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3940
$as_echo "$ac_cv_host" >&6; }
3941
case $ac_cv_host in
3942
*-*-*) ;;
3943
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3944
esac
3945
host=$ac_cv_host
3946
ac_save_IFS=$IFS; IFS='-'
3947
set x $ac_cv_host
3948
shift
3949
host_cpu=$1
3950
host_vendor=$2
3951
shift; shift
3952
# Remember, the first character of IFS is used to create $*,
3953
# except with old shells:
3954
host_os=$*
3955
IFS=$ac_save_IFS
3956
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3957
 
3958
 
3959
# Backslashify metacharacters that are still active within
3960
# double-quoted strings.
3961
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3962
 
3963
# Same as above, but do not quote variable references.
3964
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3965
 
3966
# Sed substitution to delay expansion of an escaped shell variable in a
3967
# double_quote_subst'ed string.
3968
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3969
 
3970
# Sed substitution to delay expansion of an escaped single quote.
3971
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3972
 
3973
# Sed substitution to avoid accidental globbing in evaled expressions
3974
no_glob_subst='s/\*/\\\*/g'
3975
 
3976
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3977
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3978
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3979
 
3980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3981
$as_echo_n "checking how to print strings... " >&6; }
3982
# Test print first, because it will be a builtin if present.
3983
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3984
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3985
  ECHO='print -r --'
3986
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3987
  ECHO='printf %s\n'
3988
else
3989
  # Use this function as a fallback that always works.
3990
  func_fallback_echo ()
3991
  {
3992
    eval 'cat <<_LTECHO_EOF
3993
$1
3994
_LTECHO_EOF'
3995
  }
3996
  ECHO='func_fallback_echo'
3997
fi
3998
 
3999
# func_echo_all arg...
4000
# Invoke $ECHO with all args, space-separated.
4001
func_echo_all ()
4002
{
4003
    $ECHO ""
4004
}
4005
 
4006
case "$ECHO" in
4007
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4008
$as_echo "printf" >&6; } ;;
4009
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4010
$as_echo "print -r" >&6; } ;;
4011
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4012
$as_echo "cat" >&6; } ;;
4013
esac
4014
 
4015
 
4016
 
4017
 
4018
 
4019
 
4020
 
4021
 
4022
 
4023
 
4024
 
4025
 
4026
 
4027
 
4028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4029
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4030
if test "${ac_cv_path_SED+set}" = set; then :
4031
  $as_echo_n "(cached) " >&6
4032
else
4033
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4034
     for ac_i in 1 2 3 4 5 6 7; do
4035
       ac_script="$ac_script$as_nl$ac_script"
4036
     done
4037
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4038
     { ac_script=; unset ac_script;}
4039
     if test -z "$SED"; then
4040
  ac_path_SED_found=false
4041
  # Loop through the user's path and test for each of PROGNAME-LIST
4042
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043
for as_dir in $PATH
4044
do
4045
  IFS=$as_save_IFS
4046
  test -z "$as_dir" && as_dir=.
4047
    for ac_prog in sed gsed; do
4048
    for ac_exec_ext in '' $ac_executable_extensions; do
4049
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4050
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4051
# Check for GNU ac_path_SED and select it if it is found.
4052
  # Check for GNU $ac_path_SED
4053
case `"$ac_path_SED" --version 2>&1` in
4054
*GNU*)
4055
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4056
*)
4057
  ac_count=0
4058
  $as_echo_n 0123456789 >"conftest.in"
4059
  while :
4060
  do
4061
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062
    mv "conftest.tmp" "conftest.in"
4063
    cp "conftest.in" "conftest.nl"
4064
    $as_echo '' >> "conftest.nl"
4065
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4068
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4069
      # Best one so far, save it but keep looking for a better one
4070
      ac_cv_path_SED="$ac_path_SED"
4071
      ac_path_SED_max=$ac_count
4072
    fi
4073
    # 10*(2^10) chars as input seems more than enough
4074
    test $ac_count -gt 10 && break
4075
  done
4076
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077
esac
4078
 
4079
      $ac_path_SED_found && break 3
4080
    done
4081
  done
4082
  done
4083
IFS=$as_save_IFS
4084
  if test -z "$ac_cv_path_SED"; then
4085
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4086
  fi
4087
else
4088
  ac_cv_path_SED=$SED
4089
fi
4090
 
4091
fi
4092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4093
$as_echo "$ac_cv_path_SED" >&6; }
4094
 SED="$ac_cv_path_SED"
4095
  rm -f conftest.sed
4096
 
4097
test -z "$SED" && SED=sed
4098
Xsed="$SED -e 1s/^X//"
4099
 
4100
 
4101
 
4102
 
4103
 
4104
 
4105
 
4106
 
4107
 
4108
 
4109
 
4110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112
if test "${ac_cv_path_GREP+set}" = set; then :
4113
  $as_echo_n "(cached) " >&6
4114
else
4115
  if test -z "$GREP"; then
4116
  ac_path_GREP_found=false
4117
  # Loop through the user's path and test for each of PROGNAME-LIST
4118
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120
do
4121
  IFS=$as_save_IFS
4122
  test -z "$as_dir" && as_dir=.
4123
    for ac_prog in grep ggrep; do
4124
    for ac_exec_ext in '' $ac_executable_extensions; do
4125
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4127
# Check for GNU ac_path_GREP and select it if it is found.
4128
  # Check for GNU $ac_path_GREP
4129
case `"$ac_path_GREP" --version 2>&1` in
4130
*GNU*)
4131
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4132
*)
4133
  ac_count=0
4134
  $as_echo_n 0123456789 >"conftest.in"
4135
  while :
4136
  do
4137
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4138
    mv "conftest.tmp" "conftest.in"
4139
    cp "conftest.in" "conftest.nl"
4140
    $as_echo 'GREP' >> "conftest.nl"
4141
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4144
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145
      # Best one so far, save it but keep looking for a better one
4146
      ac_cv_path_GREP="$ac_path_GREP"
4147
      ac_path_GREP_max=$ac_count
4148
    fi
4149
    # 10*(2^10) chars as input seems more than enough
4150
    test $ac_count -gt 10 && break
4151
  done
4152
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153
esac
4154
 
4155
      $ac_path_GREP_found && break 3
4156
    done
4157
  done
4158
  done
4159
IFS=$as_save_IFS
4160
  if test -z "$ac_cv_path_GREP"; then
4161
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162
  fi
4163
else
4164
  ac_cv_path_GREP=$GREP
4165
fi
4166
 
4167
fi
4168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169
$as_echo "$ac_cv_path_GREP" >&6; }
4170
 GREP="$ac_cv_path_GREP"
4171
 
4172
 
4173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174
$as_echo_n "checking for egrep... " >&6; }
4175
if test "${ac_cv_path_EGREP+set}" = set; then :
4176
  $as_echo_n "(cached) " >&6
4177
else
4178
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179
   then ac_cv_path_EGREP="$GREP -E"
4180
   else
4181
     if test -z "$EGREP"; then
4182
  ac_path_EGREP_found=false
4183
  # Loop through the user's path and test for each of PROGNAME-LIST
4184
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186
do
4187
  IFS=$as_save_IFS
4188
  test -z "$as_dir" && as_dir=.
4189
    for ac_prog in egrep; do
4190
    for ac_exec_ext in '' $ac_executable_extensions; do
4191
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4193
# Check for GNU ac_path_EGREP and select it if it is found.
4194
  # Check for GNU $ac_path_EGREP
4195
case `"$ac_path_EGREP" --version 2>&1` in
4196
*GNU*)
4197
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198
*)
4199
  ac_count=0
4200
  $as_echo_n 0123456789 >"conftest.in"
4201
  while :
4202
  do
4203
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4204
    mv "conftest.tmp" "conftest.in"
4205
    cp "conftest.in" "conftest.nl"
4206
    $as_echo 'EGREP' >> "conftest.nl"
4207
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4210
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211
      # Best one so far, save it but keep looking for a better one
4212
      ac_cv_path_EGREP="$ac_path_EGREP"
4213
      ac_path_EGREP_max=$ac_count
4214
    fi
4215
    # 10*(2^10) chars as input seems more than enough
4216
    test $ac_count -gt 10 && break
4217
  done
4218
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219
esac
4220
 
4221
      $ac_path_EGREP_found && break 3
4222
    done
4223
  done
4224
  done
4225
IFS=$as_save_IFS
4226
  if test -z "$ac_cv_path_EGREP"; then
4227
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4228
  fi
4229
else
4230
  ac_cv_path_EGREP=$EGREP
4231
fi
4232
 
4233
   fi
4234
fi
4235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236
$as_echo "$ac_cv_path_EGREP" >&6; }
4237
 EGREP="$ac_cv_path_EGREP"
4238
 
4239
 
4240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4241
$as_echo_n "checking for fgrep... " >&6; }
4242
if test "${ac_cv_path_FGREP+set}" = set; then :
4243
  $as_echo_n "(cached) " >&6
4244
else
4245
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4246
   then ac_cv_path_FGREP="$GREP -F"
4247
   else
4248
     if test -z "$FGREP"; then
4249
  ac_path_FGREP_found=false
4250
  # Loop through the user's path and test for each of PROGNAME-LIST
4251
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253
do
4254
  IFS=$as_save_IFS
4255
  test -z "$as_dir" && as_dir=.
4256
    for ac_prog in fgrep; do
4257
    for ac_exec_ext in '' $ac_executable_extensions; do
4258
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4259
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4260
# Check for GNU ac_path_FGREP and select it if it is found.
4261
  # Check for GNU $ac_path_FGREP
4262
case `"$ac_path_FGREP" --version 2>&1` in
4263
*GNU*)
4264
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4265
*)
4266
  ac_count=0
4267
  $as_echo_n 0123456789 >"conftest.in"
4268
  while :
4269
  do
4270
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4271
    mv "conftest.tmp" "conftest.in"
4272
    cp "conftest.in" "conftest.nl"
4273
    $as_echo 'FGREP' >> "conftest.nl"
4274
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4277
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4278
      # Best one so far, save it but keep looking for a better one
4279
      ac_cv_path_FGREP="$ac_path_FGREP"
4280
      ac_path_FGREP_max=$ac_count
4281
    fi
4282
    # 10*(2^10) chars as input seems more than enough
4283
    test $ac_count -gt 10 && break
4284
  done
4285
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286
esac
4287
 
4288
      $ac_path_FGREP_found && break 3
4289
    done
4290
  done
4291
  done
4292
IFS=$as_save_IFS
4293
  if test -z "$ac_cv_path_FGREP"; then
4294
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295
  fi
4296
else
4297
  ac_cv_path_FGREP=$FGREP
4298
fi
4299
 
4300
   fi
4301
fi
4302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4303
$as_echo "$ac_cv_path_FGREP" >&6; }
4304
 FGREP="$ac_cv_path_FGREP"
4305
 
4306
 
4307
test -z "$GREP" && GREP=grep
4308
 
4309
 
4310
 
4311
 
4312
 
4313
 
4314
 
4315
 
4316
 
4317
 
4318
 
4319
 
4320
 
4321
 
4322
 
4323
 
4324
 
4325
 
4326
 
4327
# Check whether --with-gnu-ld was given.
4328
if test "${with_gnu_ld+set}" = set; then :
4329
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4330
else
4331
  with_gnu_ld=no
4332
fi
4333
 
4334
ac_prog=ld
4335
if test "$GCC" = yes; then
4336
  # Check if gcc -print-prog-name=ld gives a path.
4337
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4338
$as_echo_n "checking for ld used by $CC... " >&6; }
4339
  case $host in
4340
  *-*-mingw*)
4341
    # gcc leaves a trailing carriage return which upsets mingw
4342
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4343
  *)
4344
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4345
  esac
4346
  case $ac_prog in
4347
    # Accept absolute paths.
4348
    [\\/]* | ?:[\\/]*)
4349
      re_direlt='/[^/][^/]*/\.\./'
4350
      # Canonicalize the pathname of ld
4351
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4352
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4353
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4354
      done
4355
      test -z "$LD" && LD="$ac_prog"
4356
      ;;
4357
  "")
4358
    # If it fails, then pretend we aren't using GCC.
4359
    ac_prog=ld
4360
    ;;
4361
  *)
4362
    # If it is relative, then search for the first ld in PATH.
4363
    with_gnu_ld=unknown
4364
    ;;
4365
  esac
4366
elif test "$with_gnu_ld" = yes; then
4367
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4368
$as_echo_n "checking for GNU ld... " >&6; }
4369
else
4370
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4371
$as_echo_n "checking for non-GNU ld... " >&6; }
4372
fi
4373
if test "${lt_cv_path_LD+set}" = set; then :
4374
  $as_echo_n "(cached) " >&6
4375
else
4376
  if test -z "$LD"; then
4377
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378
  for ac_dir in $PATH; do
4379
    IFS="$lt_save_ifs"
4380
    test -z "$ac_dir" && ac_dir=.
4381
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4382
      lt_cv_path_LD="$ac_dir/$ac_prog"
4383
      # Check to see if the program is GNU ld.  I'd rather use --version,
4384
      # but apparently some variants of GNU ld only accept -v.
4385
      # Break only if it was the GNU/non-GNU ld that we prefer.
4386
      case `"$lt_cv_path_LD" -v 2>&1 
4387
      *GNU* | *'with BFD'*)
4388
        test "$with_gnu_ld" != no && break
4389
        ;;
4390
      *)
4391
        test "$with_gnu_ld" != yes && break
4392
        ;;
4393
      esac
4394
    fi
4395
  done
4396
  IFS="$lt_save_ifs"
4397
else
4398
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4399
fi
4400
fi
4401
 
4402
LD="$lt_cv_path_LD"
4403
if test -n "$LD"; then
4404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4405
$as_echo "$LD" >&6; }
4406
else
4407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408
$as_echo "no" >&6; }
4409
fi
4410
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4412
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4413
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4414
  $as_echo_n "(cached) " >&6
4415
else
4416
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4417
case `$LD -v 2>&1 
4418
*GNU* | *'with BFD'*)
4419
  lt_cv_prog_gnu_ld=yes
4420
  ;;
4421
*)
4422
  lt_cv_prog_gnu_ld=no
4423
  ;;
4424
esac
4425
fi
4426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4427
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4428
with_gnu_ld=$lt_cv_prog_gnu_ld
4429
 
4430
 
4431
 
4432
 
4433
 
4434
 
4435
 
4436
 
4437
 
4438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4439
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4440
if test "${lt_cv_path_NM+set}" = set; then :
4441
  $as_echo_n "(cached) " >&6
4442
else
4443
  if test -n "$NM"; then
4444
  # Let the user override the test.
4445
  lt_cv_path_NM="$NM"
4446
else
4447
  lt_nm_to_check="${ac_tool_prefix}nm"
4448
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4449
    lt_nm_to_check="$lt_nm_to_check nm"
4450
  fi
4451
  for lt_tmp_nm in $lt_nm_to_check; do
4452
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4454
      IFS="$lt_save_ifs"
4455
      test -z "$ac_dir" && ac_dir=.
4456
      tmp_nm="$ac_dir/$lt_tmp_nm"
4457
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4458
        # Check to see if the nm accepts a BSD-compat flag.
4459
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4460
        #   nm: unknown option "B" ignored
4461
        # Tru64's nm complains that /dev/null is an invalid object file
4462
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4463
        */dev/null* | *'Invalid file or object type'*)
4464
          lt_cv_path_NM="$tmp_nm -B"
4465
          break
4466
          ;;
4467
        *)
4468
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4469
          */dev/null*)
4470
            lt_cv_path_NM="$tmp_nm -p"
4471
            break
4472
            ;;
4473
          *)
4474
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4475
            continue # so that we can try to find one that supports BSD flags
4476
            ;;
4477
          esac
4478
          ;;
4479
        esac
4480
      fi
4481
    done
4482
    IFS="$lt_save_ifs"
4483
  done
4484
  : ${lt_cv_path_NM=no}
4485
fi
4486
fi
4487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4488
$as_echo "$lt_cv_path_NM" >&6; }
4489
if test "$lt_cv_path_NM" != "no"; then
4490
  NM="$lt_cv_path_NM"
4491
else
4492
  # Didn't find any BSD compatible name lister, look for dumpbin.
4493
  if test -n "$DUMPBIN"; then :
4494
    # Let the user override the test.
4495
  else
4496
    if test -n "$ac_tool_prefix"; then
4497
  for ac_prog in dumpbin "link -dump"
4498
  do
4499
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502
$as_echo_n "checking for $ac_word... " >&6; }
4503
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4504
  $as_echo_n "(cached) " >&6
4505
else
4506
  if test -n "$DUMPBIN"; then
4507
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4508
else
4509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510
for as_dir in $PATH
4511
do
4512
  IFS=$as_save_IFS
4513
  test -z "$as_dir" && as_dir=.
4514
    for ac_exec_ext in '' $ac_executable_extensions; do
4515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4517
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518
    break 2
4519
  fi
4520
done
4521
  done
4522
IFS=$as_save_IFS
4523
 
4524
fi
4525
fi
4526
DUMPBIN=$ac_cv_prog_DUMPBIN
4527
if test -n "$DUMPBIN"; then
4528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4529
$as_echo "$DUMPBIN" >&6; }
4530
else
4531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532
$as_echo "no" >&6; }
4533
fi
4534
 
4535
 
4536
    test -n "$DUMPBIN" && break
4537
  done
4538
fi
4539
if test -z "$DUMPBIN"; then
4540
  ac_ct_DUMPBIN=$DUMPBIN
4541
  for ac_prog in dumpbin "link -dump"
4542
do
4543
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4544
set dummy $ac_prog; ac_word=$2
4545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546
$as_echo_n "checking for $ac_word... " >&6; }
4547
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4548
  $as_echo_n "(cached) " >&6
4549
else
4550
  if test -n "$ac_ct_DUMPBIN"; then
4551
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4552
else
4553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554
for as_dir in $PATH
4555
do
4556
  IFS=$as_save_IFS
4557
  test -z "$as_dir" && as_dir=.
4558
    for ac_exec_ext in '' $ac_executable_extensions; do
4559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4561
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562
    break 2
4563
  fi
4564
done
4565
  done
4566
IFS=$as_save_IFS
4567
 
4568
fi
4569
fi
4570
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4571
if test -n "$ac_ct_DUMPBIN"; then
4572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4573
$as_echo "$ac_ct_DUMPBIN" >&6; }
4574
else
4575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576
$as_echo "no" >&6; }
4577
fi
4578
 
4579
 
4580
  test -n "$ac_ct_DUMPBIN" && break
4581
done
4582
 
4583
  if test "x$ac_ct_DUMPBIN" = x; then
4584
    DUMPBIN=":"
4585
  else
4586
    case $cross_compiling:$ac_tool_warned in
4587
yes:)
4588
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590
ac_tool_warned=yes ;;
4591
esac
4592
    DUMPBIN=$ac_ct_DUMPBIN
4593
  fi
4594
fi
4595
 
4596
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4597
    *COFF*)
4598
      DUMPBIN="$DUMPBIN -symbols"
4599
      ;;
4600
    *)
4601
      DUMPBIN=:
4602
      ;;
4603
    esac
4604
  fi
4605
 
4606
  if test "$DUMPBIN" != ":"; then
4607
    NM="$DUMPBIN"
4608
  fi
4609
fi
4610
test -z "$NM" && NM=nm
4611
 
4612
 
4613
 
4614
 
4615
 
4616
 
4617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4618
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4619
if test "${lt_cv_nm_interface+set}" = set; then :
4620
  $as_echo_n "(cached) " >&6
4621
else
4622
  lt_cv_nm_interface="BSD nm"
4623
  echo "int some_variable = 0;" > conftest.$ac_ext
4624
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4625
  (eval "$ac_compile" 2>conftest.err)
4626
  cat conftest.err >&5
4627
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4628
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4629
  cat conftest.err >&5
4630
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4631
  cat conftest.out >&5
4632
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4633
    lt_cv_nm_interface="MS dumpbin"
4634
  fi
4635
  rm -f conftest*
4636
fi
4637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4638
$as_echo "$lt_cv_nm_interface" >&6; }
4639
 
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4641
$as_echo_n "checking whether ln -s works... " >&6; }
4642
LN_S=$as_ln_s
4643
if test "$LN_S" = "ln -s"; then
4644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645
$as_echo "yes" >&6; }
4646
else
4647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4648
$as_echo "no, using $LN_S" >&6; }
4649
fi
4650
 
4651
# find the maximum length of command line arguments
4652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4653
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4654
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4655
  $as_echo_n "(cached) " >&6
4656
else
4657
    i=0
4658
  teststring="ABCD"
4659
 
4660
  case $build_os in
4661
  msdosdjgpp*)
4662
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4663
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4664
    # during glob expansion).  Even if it were fixed, the result of this
4665
    # check would be larger than it should be.
4666
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4667
    ;;
4668
 
4669
  gnu*)
4670
    # Under GNU Hurd, this test is not required because there is
4671
    # no limit to the length of command line arguments.
4672
    # Libtool will interpret -1 as no limit whatsoever
4673
    lt_cv_sys_max_cmd_len=-1;
4674
    ;;
4675
 
4676
  cygwin* | mingw* | cegcc*)
4677
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4678
    # about 5 minutes as the teststring grows exponentially.
4679
    # Worse, since 9x/ME are not pre-emptively multitasking,
4680
    # you end up with a "frozen" computer, even though with patience
4681
    # the test eventually succeeds (with a max line length of 256k).
4682
    # Instead, let's just punt: use the minimum linelength reported by
4683
    # all of the supported platforms: 8192 (on NT/2K/XP).
4684
    lt_cv_sys_max_cmd_len=8192;
4685
    ;;
4686
 
4687
  mint*)
4688
    # On MiNT this can take a long time and run out of memory.
4689
    lt_cv_sys_max_cmd_len=8192;
4690
    ;;
4691
 
4692
  amigaos*)
4693
    # On AmigaOS with pdksh, this test takes hours, literally.
4694
    # So we just punt and use a minimum line length of 8192.
4695
    lt_cv_sys_max_cmd_len=8192;
4696
    ;;
4697
 
4698
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4699
    # This has been around since 386BSD, at least.  Likely further.
4700
    if test -x /sbin/sysctl; then
4701
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4702
    elif test -x /usr/sbin/sysctl; then
4703
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4704
    else
4705
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4706
    fi
4707
    # And add a safety zone
4708
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4709
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4710
    ;;
4711
 
4712
  interix*)
4713
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4714
    lt_cv_sys_max_cmd_len=196608
4715
    ;;
4716
 
4717
  osf*)
4718
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4719
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4720
    # nice to cause kernel panics so lets avoid the loop below.
4721
    # First set a reasonable default.
4722
    lt_cv_sys_max_cmd_len=16384
4723
    #
4724
    if test -x /sbin/sysconfig; then
4725
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4726
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4727
      esac
4728
    fi
4729
    ;;
4730
  sco3.2v5*)
4731
    lt_cv_sys_max_cmd_len=102400
4732
    ;;
4733
  sysv5* | sco5v6* | sysv4.2uw2*)
4734
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4735
    if test -n "$kargmax"; then
4736
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4737
    else
4738
      lt_cv_sys_max_cmd_len=32768
4739
    fi
4740
    ;;
4741
  *)
4742
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4743
    if test -n "$lt_cv_sys_max_cmd_len"; then
4744
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746
    else
4747
      # Make teststring a little bigger before we do anything with it.
4748
      # a 1K string should be a reasonable start.
4749
      for i in 1 2 3 4 5 6 7 8 ; do
4750
        teststring=$teststring$teststring
4751
      done
4752
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4753
      # If test is not a shell built-in, we'll probably end up computing a
4754
      # maximum length that is only half of the actual maximum length, but
4755
      # we can't tell.
4756
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4757
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4758
              test $i != 17 # 1/2 MB should be enough
4759
      do
4760
        i=`expr $i + 1`
4761
        teststring=$teststring$teststring
4762
      done
4763
      # Only check the string length outside the loop.
4764
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4765
      teststring=
4766
      # Add a significant safety factor because C++ compilers can tack on
4767
      # massive amounts of additional arguments before passing them to the
4768
      # linker.  It appears as though 1/2 is a usable value.
4769
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4770
    fi
4771
    ;;
4772
  esac
4773
 
4774
fi
4775
 
4776
if test -n $lt_cv_sys_max_cmd_len ; then
4777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4778
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4779
else
4780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4781
$as_echo "none" >&6; }
4782
fi
4783
max_cmd_len=$lt_cv_sys_max_cmd_len
4784
 
4785
 
4786
 
4787
 
4788
 
4789
 
4790
: ${CP="cp -f"}
4791
: ${MV="mv -f"}
4792
: ${RM="rm -f"}
4793
 
4794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4795
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4796
# Try some XSI features
4797
xsi_shell=no
4798
( _lt_dummy="a/b/c"
4799
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4800
      = c,a/b,, \
4801
    && eval 'test $(( 1 + 1 )) -eq 2 \
4802
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4803
  && xsi_shell=yes
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4805
$as_echo "$xsi_shell" >&6; }
4806
 
4807
 
4808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4809
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4810
lt_shell_append=no
4811
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4812
    >/dev/null 2>&1 \
4813
  && lt_shell_append=yes
4814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4815
$as_echo "$lt_shell_append" >&6; }
4816
 
4817
 
4818
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4819
  lt_unset=unset
4820
else
4821
  lt_unset=false
4822
fi
4823
 
4824
 
4825
 
4826
 
4827
 
4828
# test EBCDIC or ASCII
4829
case `echo X|tr X '\101'` in
4830
 A) # ASCII based system
4831
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4832
  lt_SP2NL='tr \040 \012'
4833
  lt_NL2SP='tr \015\012 \040\040'
4834
  ;;
4835
 *) # EBCDIC based system
4836
  lt_SP2NL='tr \100 \n'
4837
  lt_NL2SP='tr \r\n \100\100'
4838
  ;;
4839
esac
4840
 
4841
 
4842
 
4843
 
4844
 
4845
 
4846
 
4847
 
4848
 
4849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4850
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4851
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4852
  $as_echo_n "(cached) " >&6
4853
else
4854
  lt_cv_ld_reload_flag='-r'
4855
fi
4856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4857
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4858
reload_flag=$lt_cv_ld_reload_flag
4859
case $reload_flag in
4860
"" | " "*) ;;
4861
*) reload_flag=" $reload_flag" ;;
4862
esac
4863
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4864
case $host_os in
4865
  darwin*)
4866
    if test "$GCC" = yes; then
4867
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4868
    else
4869
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4870
    fi
4871
    ;;
4872
esac
4873
 
4874
 
4875
 
4876
 
4877
 
4878
 
4879
 
4880
 
4881
 
4882
if test -n "$ac_tool_prefix"; then
4883
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4884
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886
$as_echo_n "checking for $ac_word... " >&6; }
4887
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4888
  $as_echo_n "(cached) " >&6
4889
else
4890
  if test -n "$OBJDUMP"; then
4891
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4892
else
4893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894
for as_dir in $PATH
4895
do
4896
  IFS=$as_save_IFS
4897
  test -z "$as_dir" && as_dir=.
4898
    for ac_exec_ext in '' $ac_executable_extensions; do
4899
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4901
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902
    break 2
4903
  fi
4904
done
4905
  done
4906
IFS=$as_save_IFS
4907
 
4908
fi
4909
fi
4910
OBJDUMP=$ac_cv_prog_OBJDUMP
4911
if test -n "$OBJDUMP"; then
4912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4913
$as_echo "$OBJDUMP" >&6; }
4914
else
4915
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916
$as_echo "no" >&6; }
4917
fi
4918
 
4919
 
4920
fi
4921
if test -z "$ac_cv_prog_OBJDUMP"; then
4922
  ac_ct_OBJDUMP=$OBJDUMP
4923
  # Extract the first word of "objdump", so it can be a program name with args.
4924
set dummy objdump; ac_word=$2
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926
$as_echo_n "checking for $ac_word... " >&6; }
4927
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4928
  $as_echo_n "(cached) " >&6
4929
else
4930
  if test -n "$ac_ct_OBJDUMP"; then
4931
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4932
else
4933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934
for as_dir in $PATH
4935
do
4936
  IFS=$as_save_IFS
4937
  test -z "$as_dir" && as_dir=.
4938
    for ac_exec_ext in '' $ac_executable_extensions; do
4939
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4941
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942
    break 2
4943
  fi
4944
done
4945
  done
4946
IFS=$as_save_IFS
4947
 
4948
fi
4949
fi
4950
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4951
if test -n "$ac_ct_OBJDUMP"; then
4952
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4953
$as_echo "$ac_ct_OBJDUMP" >&6; }
4954
else
4955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956
$as_echo "no" >&6; }
4957
fi
4958
 
4959
  if test "x$ac_ct_OBJDUMP" = x; then
4960
    OBJDUMP="false"
4961
  else
4962
    case $cross_compiling:$ac_tool_warned in
4963
yes:)
4964
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966
ac_tool_warned=yes ;;
4967
esac
4968
    OBJDUMP=$ac_ct_OBJDUMP
4969
  fi
4970
else
4971
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4972
fi
4973
 
4974
test -z "$OBJDUMP" && OBJDUMP=objdump
4975
 
4976
 
4977
 
4978
 
4979
 
4980
 
4981
 
4982
 
4983
 
4984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4985
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4986
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4987
  $as_echo_n "(cached) " >&6
4988
else
4989
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4990
lt_cv_file_magic_test_file=
4991
lt_cv_deplibs_check_method='unknown'
4992
# Need to set the preceding variable on all platforms that support
4993
# interlibrary dependencies.
4994
# 'none' -- dependencies not supported.
4995
# `unknown' -- same as none, but documents that we really don't know.
4996
# 'pass_all' -- all dependencies passed with no checks.
4997
# 'test_compile' -- check by making test program.
4998
# 'file_magic [[regex]]' -- check by looking for files in library path
4999
# which responds to the $file_magic_cmd with a given extended regex.
5000
# If you have `file' or equivalent on your system and you're not sure
5001
# whether `pass_all' will *always* work, you probably want this one.
5002
 
5003
case $host_os in
5004
aix[4-9]*)
5005
  lt_cv_deplibs_check_method=pass_all
5006
  ;;
5007
 
5008
beos*)
5009
  lt_cv_deplibs_check_method=pass_all
5010
  ;;
5011
 
5012
bsdi[45]*)
5013
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5014
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5015
  lt_cv_file_magic_test_file=/shlib/libc.so
5016
  ;;
5017
 
5018
cygwin*)
5019
  # func_win32_libid is a shell function defined in ltmain.sh
5020
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5021
  lt_cv_file_magic_cmd='func_win32_libid'
5022
  ;;
5023
 
5024
mingw* | pw32*)
5025
  # Base MSYS/MinGW do not provide the 'file' command needed by
5026
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5027
  # unless we find 'file', for example because we are cross-compiling.
5028
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5029
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5030
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5031
    lt_cv_file_magic_cmd='func_win32_libid'
5032
  else
5033
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5034
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5035
  fi
5036
  ;;
5037
 
5038
cegcc*)
5039
  # use the weaker test based on 'objdump'. See mingw*.
5040
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5041
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5042
  ;;
5043
 
5044
darwin* | rhapsody*)
5045
  lt_cv_deplibs_check_method=pass_all
5046
  ;;
5047
 
5048
freebsd* | dragonfly*)
5049
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5050
    case $host_cpu in
5051
    i*86 )
5052
      # Not sure whether the presence of OpenBSD here was a mistake.
5053
      # Let's accept both of them until this is cleared up.
5054
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5055
      lt_cv_file_magic_cmd=/usr/bin/file
5056
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5057
      ;;
5058
    esac
5059
  else
5060
    lt_cv_deplibs_check_method=pass_all
5061
  fi
5062
  ;;
5063
 
5064
gnu*)
5065
  lt_cv_deplibs_check_method=pass_all
5066
  ;;
5067
 
5068
haiku*)
5069
  lt_cv_deplibs_check_method=pass_all
5070
  ;;
5071
 
5072
hpux10.20* | hpux11*)
5073
  lt_cv_file_magic_cmd=/usr/bin/file
5074
  case $host_cpu in
5075
  ia64*)
5076
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5077
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5078
    ;;
5079
  hppa*64*)
5080
    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]'
5081
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5082
    ;;
5083
  *)
5084
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5085
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5086
    ;;
5087
  esac
5088
  ;;
5089
 
5090
interix[3-9]*)
5091
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5092
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5093
  ;;
5094
 
5095
irix5* | irix6* | nonstopux*)
5096
  case $LD in
5097
  *-32|*"-32 ") libmagic=32-bit;;
5098
  *-n32|*"-n32 ") libmagic=N32;;
5099
  *-64|*"-64 ") libmagic=64-bit;;
5100
  *) libmagic=never-match;;
5101
  esac
5102
  lt_cv_deplibs_check_method=pass_all
5103
  ;;
5104
 
5105
# This must be Linux ELF.
5106
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5107
  lt_cv_deplibs_check_method=pass_all
5108
  ;;
5109
 
5110
netbsd*)
5111
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5112
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5113
  else
5114
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5115
  fi
5116
  ;;
5117
 
5118
newos6*)
5119
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5120
  lt_cv_file_magic_cmd=/usr/bin/file
5121
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5122
  ;;
5123
 
5124
*nto* | *qnx*)
5125
  lt_cv_deplibs_check_method=pass_all
5126
  ;;
5127
 
5128
openbsd*)
5129
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5130
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5131
  else
5132
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5133
  fi
5134
  ;;
5135
 
5136
osf3* | osf4* | osf5*)
5137
  lt_cv_deplibs_check_method=pass_all
5138
  ;;
5139
 
5140
rdos*)
5141
  lt_cv_deplibs_check_method=pass_all
5142
  ;;
5143
 
5144
solaris*)
5145
  lt_cv_deplibs_check_method=pass_all
5146
  ;;
5147
 
5148
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5149
  lt_cv_deplibs_check_method=pass_all
5150
  ;;
5151
 
5152
sysv4 | sysv4.3*)
5153
  case $host_vendor in
5154
  motorola)
5155
    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]'
5156
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5157
    ;;
5158
  ncr)
5159
    lt_cv_deplibs_check_method=pass_all
5160
    ;;
5161
  sequent)
5162
    lt_cv_file_magic_cmd='/bin/file'
5163
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5164
    ;;
5165
  sni)
5166
    lt_cv_file_magic_cmd='/bin/file'
5167
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5168
    lt_cv_file_magic_test_file=/lib/libc.so
5169
    ;;
5170
  siemens)
5171
    lt_cv_deplibs_check_method=pass_all
5172
    ;;
5173
  pc)
5174
    lt_cv_deplibs_check_method=pass_all
5175
    ;;
5176
  esac
5177
  ;;
5178
 
5179
tpf*)
5180
  lt_cv_deplibs_check_method=pass_all
5181
  ;;
5182
esac
5183
 
5184
fi
5185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5186
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5187
file_magic_cmd=$lt_cv_file_magic_cmd
5188
deplibs_check_method=$lt_cv_deplibs_check_method
5189
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5190
 
5191
 
5192
 
5193
 
5194
 
5195
 
5196
 
5197
 
5198
 
5199
 
5200
 
5201
 
5202
if test -n "$ac_tool_prefix"; then
5203
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5204
set dummy ${ac_tool_prefix}ar; ac_word=$2
5205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206
$as_echo_n "checking for $ac_word... " >&6; }
5207
if test "${ac_cv_prog_AR+set}" = set; then :
5208
  $as_echo_n "(cached) " >&6
5209
else
5210
  if test -n "$AR"; then
5211
  ac_cv_prog_AR="$AR" # Let the user override the test.
5212
else
5213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214
for as_dir in $PATH
5215
do
5216
  IFS=$as_save_IFS
5217
  test -z "$as_dir" && as_dir=.
5218
    for ac_exec_ext in '' $ac_executable_extensions; do
5219
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5221
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222
    break 2
5223
  fi
5224
done
5225
  done
5226
IFS=$as_save_IFS
5227
 
5228
fi
5229
fi
5230
AR=$ac_cv_prog_AR
5231
if test -n "$AR"; then
5232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5233
$as_echo "$AR" >&6; }
5234
else
5235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236
$as_echo "no" >&6; }
5237
fi
5238
 
5239
 
5240
fi
5241
if test -z "$ac_cv_prog_AR"; then
5242
  ac_ct_AR=$AR
5243
  # Extract the first word of "ar", so it can be a program name with args.
5244
set dummy ar; ac_word=$2
5245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246
$as_echo_n "checking for $ac_word... " >&6; }
5247
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5248
  $as_echo_n "(cached) " >&6
5249
else
5250
  if test -n "$ac_ct_AR"; then
5251
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5252
else
5253
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254
for as_dir in $PATH
5255
do
5256
  IFS=$as_save_IFS
5257
  test -z "$as_dir" && as_dir=.
5258
    for ac_exec_ext in '' $ac_executable_extensions; do
5259
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260
    ac_cv_prog_ac_ct_AR="ar"
5261
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262
    break 2
5263
  fi
5264
done
5265
  done
5266
IFS=$as_save_IFS
5267
 
5268
fi
5269
fi
5270
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5271
if test -n "$ac_ct_AR"; then
5272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5273
$as_echo "$ac_ct_AR" >&6; }
5274
else
5275
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276
$as_echo "no" >&6; }
5277
fi
5278
 
5279
  if test "x$ac_ct_AR" = x; then
5280
    AR="false"
5281
  else
5282
    case $cross_compiling:$ac_tool_warned in
5283
yes:)
5284
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286
ac_tool_warned=yes ;;
5287
esac
5288
    AR=$ac_ct_AR
5289
  fi
5290
else
5291
  AR="$ac_cv_prog_AR"
5292
fi
5293
 
5294
test -z "$AR" && AR=ar
5295
test -z "$AR_FLAGS" && AR_FLAGS=cru
5296
 
5297
 
5298
 
5299
 
5300
 
5301
 
5302
 
5303
 
5304
 
5305
 
5306
 
5307
if test -n "$ac_tool_prefix"; then
5308
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5309
set dummy ${ac_tool_prefix}strip; ac_word=$2
5310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311
$as_echo_n "checking for $ac_word... " >&6; }
5312
if test "${ac_cv_prog_STRIP+set}" = set; then :
5313
  $as_echo_n "(cached) " >&6
5314
else
5315
  if test -n "$STRIP"; then
5316
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5317
else
5318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319
for as_dir in $PATH
5320
do
5321
  IFS=$as_save_IFS
5322
  test -z "$as_dir" && as_dir=.
5323
    for ac_exec_ext in '' $ac_executable_extensions; do
5324
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5326
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327
    break 2
5328
  fi
5329
done
5330
  done
5331
IFS=$as_save_IFS
5332
 
5333
fi
5334
fi
5335
STRIP=$ac_cv_prog_STRIP
5336
if test -n "$STRIP"; then
5337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5338
$as_echo "$STRIP" >&6; }
5339
else
5340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341
$as_echo "no" >&6; }
5342
fi
5343
 
5344
 
5345
fi
5346
if test -z "$ac_cv_prog_STRIP"; then
5347
  ac_ct_STRIP=$STRIP
5348
  # Extract the first word of "strip", so it can be a program name with args.
5349
set dummy strip; ac_word=$2
5350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351
$as_echo_n "checking for $ac_word... " >&6; }
5352
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5353
  $as_echo_n "(cached) " >&6
5354
else
5355
  if test -n "$ac_ct_STRIP"; then
5356
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5357
else
5358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359
for as_dir in $PATH
5360
do
5361
  IFS=$as_save_IFS
5362
  test -z "$as_dir" && as_dir=.
5363
    for ac_exec_ext in '' $ac_executable_extensions; do
5364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365
    ac_cv_prog_ac_ct_STRIP="strip"
5366
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367
    break 2
5368
  fi
5369
done
5370
  done
5371
IFS=$as_save_IFS
5372
 
5373
fi
5374
fi
5375
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5376
if test -n "$ac_ct_STRIP"; then
5377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5378
$as_echo "$ac_ct_STRIP" >&6; }
5379
else
5380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381
$as_echo "no" >&6; }
5382
fi
5383
 
5384
  if test "x$ac_ct_STRIP" = x; then
5385
    STRIP=":"
5386
  else
5387
    case $cross_compiling:$ac_tool_warned in
5388
yes:)
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5391
ac_tool_warned=yes ;;
5392
esac
5393
    STRIP=$ac_ct_STRIP
5394
  fi
5395
else
5396
  STRIP="$ac_cv_prog_STRIP"
5397
fi
5398
 
5399
test -z "$STRIP" && STRIP=:
5400
 
5401
 
5402
 
5403
 
5404
 
5405
 
5406
if test -n "$ac_tool_prefix"; then
5407
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5408
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410
$as_echo_n "checking for $ac_word... " >&6; }
5411
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5412
  $as_echo_n "(cached) " >&6
5413
else
5414
  if test -n "$RANLIB"; then
5415
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5416
else
5417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418
for as_dir in $PATH
5419
do
5420
  IFS=$as_save_IFS
5421
  test -z "$as_dir" && as_dir=.
5422
    for ac_exec_ext in '' $ac_executable_extensions; do
5423
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5425
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426
    break 2
5427
  fi
5428
done
5429
  done
5430
IFS=$as_save_IFS
5431
 
5432
fi
5433
fi
5434
RANLIB=$ac_cv_prog_RANLIB
5435
if test -n "$RANLIB"; then
5436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5437
$as_echo "$RANLIB" >&6; }
5438
else
5439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440
$as_echo "no" >&6; }
5441
fi
5442
 
5443
 
5444
fi
5445
if test -z "$ac_cv_prog_RANLIB"; then
5446
  ac_ct_RANLIB=$RANLIB
5447
  # Extract the first word of "ranlib", so it can be a program name with args.
5448
set dummy ranlib; ac_word=$2
5449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450
$as_echo_n "checking for $ac_word... " >&6; }
5451
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5452
  $as_echo_n "(cached) " >&6
5453
else
5454
  if test -n "$ac_ct_RANLIB"; then
5455
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5456
else
5457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458
for as_dir in $PATH
5459
do
5460
  IFS=$as_save_IFS
5461
  test -z "$as_dir" && as_dir=.
5462
    for ac_exec_ext in '' $ac_executable_extensions; do
5463
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5465
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466
    break 2
5467
  fi
5468
done
5469
  done
5470
IFS=$as_save_IFS
5471
 
5472
fi
5473
fi
5474
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5475
if test -n "$ac_ct_RANLIB"; then
5476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5477
$as_echo "$ac_ct_RANLIB" >&6; }
5478
else
5479
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480
$as_echo "no" >&6; }
5481
fi
5482
 
5483
  if test "x$ac_ct_RANLIB" = x; then
5484
    RANLIB=":"
5485
  else
5486
    case $cross_compiling:$ac_tool_warned in
5487
yes:)
5488
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490
ac_tool_warned=yes ;;
5491
esac
5492
    RANLIB=$ac_ct_RANLIB
5493
  fi
5494
else
5495
  RANLIB="$ac_cv_prog_RANLIB"
5496
fi
5497
 
5498
test -z "$RANLIB" && RANLIB=:
5499
 
5500
 
5501
 
5502
 
5503
 
5504
 
5505
# Determine commands to create old-style static archives.
5506
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5507
old_postinstall_cmds='chmod 644 $oldlib'
5508
old_postuninstall_cmds=
5509
 
5510
if test -n "$RANLIB"; then
5511
  case $host_os in
5512
  openbsd*)
5513
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5514
    ;;
5515
  *)
5516
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5517
    ;;
5518
  esac
5519
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5520
fi
5521
 
5522
case $host_os in
5523
  darwin*)
5524
    lock_old_archive_extraction=yes ;;
5525
  *)
5526
    lock_old_archive_extraction=no ;;
5527
esac
5528
 
5529
 
5530
 
5531
 
5532
 
5533
 
5534
 
5535
 
5536
 
5537
 
5538
 
5539
 
5540
 
5541
 
5542
 
5543
 
5544
 
5545
 
5546
 
5547
 
5548
 
5549
 
5550
 
5551
 
5552
 
5553
 
5554
 
5555
 
5556
 
5557
 
5558
 
5559
 
5560
 
5561
 
5562
 
5563
 
5564
 
5565
 
5566
 
5567
# If no C compiler was specified, use CC.
5568
LTCC=${LTCC-"$CC"}
5569
 
5570
# If no C compiler flags were specified, use CFLAGS.
5571
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5572
 
5573
# Allow CC to be a program name with arguments.
5574
compiler=$CC
5575
 
5576
 
5577
# Check for command to grab the raw symbol name followed by C symbol from nm.
5578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5579
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5580
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5581
  $as_echo_n "(cached) " >&6
5582
else
5583
 
5584
# These are sane defaults that work on at least a few old systems.
5585
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5586
 
5587
# Character class describing NM global symbol codes.
5588
symcode='[BCDEGRST]'
5589
 
5590
# Regexp to match symbols that can be accessed directly from C.
5591
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5592
 
5593
# Define system-specific variables.
5594
case $host_os in
5595
aix*)
5596
  symcode='[BCDT]'
5597
  ;;
5598
cygwin* | mingw* | pw32* | cegcc*)
5599
  symcode='[ABCDGISTW]'
5600
  ;;
5601
hpux*)
5602
  if test "$host_cpu" = ia64; then
5603
    symcode='[ABCDEGRST]'
5604
  fi
5605
  ;;
5606
irix* | nonstopux*)
5607
  symcode='[BCDEGRST]'
5608
  ;;
5609
osf*)
5610
  symcode='[BCDEGQRST]'
5611
  ;;
5612
solaris*)
5613
  symcode='[BDRT]'
5614
  ;;
5615
sco3.2v5*)
5616
  symcode='[DT]'
5617
  ;;
5618
sysv4.2uw2*)
5619
  symcode='[DT]'
5620
  ;;
5621
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5622
  symcode='[ABDT]'
5623
  ;;
5624
sysv4)
5625
  symcode='[DFNSTU]'
5626
  ;;
5627
esac
5628
 
5629
# If we're using GNU nm, then use its standard symbol codes.
5630
case `$NM -V 2>&1` in
5631
*GNU* | *'with BFD'*)
5632
  symcode='[ABCDGIRSTW]' ;;
5633
esac
5634
 
5635
# Transform an extracted symbol line into a proper C declaration.
5636
# Some systems (esp. on ia64) link data and code symbols differently,
5637
# so use this general approach.
5638
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5639
 
5640
# Transform an extracted symbol line into symbol name and symbol address
5641
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5642
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'"
5643
 
5644
# Handle CRLF in mingw tool chain
5645
opt_cr=
5646
case $build_os in
5647
mingw*)
5648
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5649
  ;;
5650
esac
5651
 
5652
# Try without a prefix underscore, then with it.
5653
for ac_symprfx in "" "_"; do
5654
 
5655
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5656
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5657
 
5658
  # Write the raw and C identifiers.
5659
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5660
    # Fake it for dumpbin and say T for any non-static function
5661
    # and D for any global variable.
5662
    # Also find C++ and __fastcall symbols from MSVC++,
5663
    # which start with @ or ?.
5664
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5665
"     {last_section=section; section=\$ 3};"\
5666
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5667
"     \$ 0!~/External *\|/{next};"\
5668
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5669
"     {if(hide[section]) next};"\
5670
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5671
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5672
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5673
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5674
"     ' prfx=^$ac_symprfx"
5675
  else
5676
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5677
  fi
5678
 
5679
  # Check to see that the pipe works correctly.
5680
  pipe_works=no
5681
 
5682
  rm -f conftest*
5683
  cat > conftest.$ac_ext <<_LT_EOF
5684
#ifdef __cplusplus
5685
extern "C" {
5686
#endif
5687
char nm_test_var;
5688
void nm_test_func(void);
5689
void nm_test_func(void){}
5690
#ifdef __cplusplus
5691
}
5692
#endif
5693
int main(){nm_test_var='a';nm_test_func();return(0);}
5694
_LT_EOF
5695
 
5696
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5697
  (eval $ac_compile) 2>&5
5698
  ac_status=$?
5699
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700
  test $ac_status = 0; }; then
5701
    # Now try to grab the symbols.
5702
    nlist=conftest.nm
5703
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5704
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5705
  ac_status=$?
5706
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707
  test $ac_status = 0; } && test -s "$nlist"; then
5708
      # Try sorting and uniquifying the output.
5709
      if sort "$nlist" | uniq > "$nlist"T; then
5710
        mv -f "$nlist"T "$nlist"
5711
      else
5712
        rm -f "$nlist"T
5713
      fi
5714
 
5715
      # Make sure that we snagged all the symbols we need.
5716
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5717
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5718
          cat <<_LT_EOF > conftest.$ac_ext
5719
#ifdef __cplusplus
5720
extern "C" {
5721
#endif
5722
 
5723
_LT_EOF
5724
          # Now generate the symbol file.
5725
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5726
 
5727
          cat <<_LT_EOF >> conftest.$ac_ext
5728
 
5729
/* The mapping between symbol names and symbols.  */
5730
const struct {
5731
  const char *name;
5732
  void       *address;
5733
}
5734
lt__PROGRAM__LTX_preloaded_symbols[] =
5735
{
5736
  { "@PROGRAM@", (void *) 0 },
5737
_LT_EOF
5738
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5739
          cat <<\_LT_EOF >> conftest.$ac_ext
5740
  {0, (void *) 0}
5741
};
5742
 
5743
/* This works around a problem in FreeBSD linker */
5744
#ifdef FREEBSD_WORKAROUND
5745
static const void *lt_preloaded_setup() {
5746
  return lt__PROGRAM__LTX_preloaded_symbols;
5747
}
5748
#endif
5749
 
5750
#ifdef __cplusplus
5751
}
5752
#endif
5753
_LT_EOF
5754
          # Now try linking the two files.
5755
          mv conftest.$ac_objext conftstm.$ac_objext
5756
          lt_save_LIBS="$LIBS"
5757
          lt_save_CFLAGS="$CFLAGS"
5758
          LIBS="conftstm.$ac_objext"
5759
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5760
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5761
  (eval $ac_link) 2>&5
5762
  ac_status=$?
5763
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5765
            pipe_works=yes
5766
          fi
5767
          LIBS="$lt_save_LIBS"
5768
          CFLAGS="$lt_save_CFLAGS"
5769
        else
5770
          echo "cannot find nm_test_func in $nlist" >&5
5771
        fi
5772
      else
5773
        echo "cannot find nm_test_var in $nlist" >&5
5774
      fi
5775
    else
5776
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5777
    fi
5778
  else
5779
    echo "$progname: failed program was:" >&5
5780
    cat conftest.$ac_ext >&5
5781
  fi
5782
  rm -rf conftest* conftst*
5783
 
5784
  # Do not use the global_symbol_pipe unless it works.
5785
  if test "$pipe_works" = yes; then
5786
    break
5787
  else
5788
    lt_cv_sys_global_symbol_pipe=
5789
  fi
5790
done
5791
 
5792
fi
5793
 
5794
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5795
  lt_cv_sys_global_symbol_to_cdecl=
5796
fi
5797
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5799
$as_echo "failed" >&6; }
5800
else
5801
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5802
$as_echo "ok" >&6; }
5803
fi
5804
 
5805
 
5806
 
5807
 
5808
 
5809
 
5810
 
5811
 
5812
 
5813
 
5814
 
5815
 
5816
 
5817
 
5818
 
5819
 
5820
 
5821
 
5822
 
5823
 
5824
 
5825
 
5826
# Check whether --enable-libtool-lock was given.
5827
if test "${enable_libtool_lock+set}" = set; then :
5828
  enableval=$enable_libtool_lock;
5829
fi
5830
 
5831
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5832
 
5833
# Some flags need to be propagated to the compiler or linker for good
5834
# libtool support.
5835
case $host in
5836
ia64-*-hpux*)
5837
  # Find out which ABI we are using.
5838
  echo 'int i;' > conftest.$ac_ext
5839
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5840
  (eval $ac_compile) 2>&5
5841
  ac_status=$?
5842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843
  test $ac_status = 0; }; then
5844
    case `/usr/bin/file conftest.$ac_objext` in
5845
      *ELF-32*)
5846
        HPUX_IA64_MODE="32"
5847
        ;;
5848
      *ELF-64*)
5849
        HPUX_IA64_MODE="64"
5850
        ;;
5851
    esac
5852
  fi
5853
  rm -rf conftest*
5854
  ;;
5855
*-*-irix6*)
5856
  # Find out which ABI we are using.
5857
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5858
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5859
  (eval $ac_compile) 2>&5
5860
  ac_status=$?
5861
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862
  test $ac_status = 0; }; then
5863
    if test "$lt_cv_prog_gnu_ld" = yes; then
5864
      case `/usr/bin/file conftest.$ac_objext` in
5865
        *32-bit*)
5866
          LD="${LD-ld} -melf32bsmip"
5867
          ;;
5868
        *N32*)
5869
          LD="${LD-ld} -melf32bmipn32"
5870
          ;;
5871
        *64-bit*)
5872
          LD="${LD-ld} -melf64bmip"
5873
        ;;
5874
      esac
5875
    else
5876
      case `/usr/bin/file conftest.$ac_objext` in
5877
        *32-bit*)
5878
          LD="${LD-ld} -32"
5879
          ;;
5880
        *N32*)
5881
          LD="${LD-ld} -n32"
5882
          ;;
5883
        *64-bit*)
5884
          LD="${LD-ld} -64"
5885
          ;;
5886
      esac
5887
    fi
5888
  fi
5889
  rm -rf conftest*
5890
  ;;
5891
 
5892
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5893
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5894
  # Find out which ABI we are using.
5895
  echo 'int i;' > conftest.$ac_ext
5896
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5897
  (eval $ac_compile) 2>&5
5898
  ac_status=$?
5899
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900
  test $ac_status = 0; }; then
5901
    case `/usr/bin/file conftest.o` in
5902
      *32-bit*)
5903
        case $host in
5904
          x86_64-*kfreebsd*-gnu)
5905
            LD="${LD-ld} -m elf_i386_fbsd"
5906
            ;;
5907
          x86_64-*linux*)
5908
            LD="${LD-ld} -m elf_i386"
5909
            ;;
5910
          ppc64-*linux*|powerpc64-*linux*)
5911
            LD="${LD-ld} -m elf32ppclinux"
5912
            ;;
5913
          s390x-*linux*)
5914
            LD="${LD-ld} -m elf_s390"
5915
            ;;
5916
          sparc64-*linux*)
5917
            LD="${LD-ld} -m elf32_sparc"
5918
            ;;
5919
        esac
5920
        ;;
5921
      *64-bit*)
5922
        case $host in
5923
          x86_64-*kfreebsd*-gnu)
5924
            LD="${LD-ld} -m elf_x86_64_fbsd"
5925
            ;;
5926
          x86_64-*linux*)
5927
            LD="${LD-ld} -m elf_x86_64"
5928
            ;;
5929
          ppc*-*linux*|powerpc*-*linux*)
5930
            LD="${LD-ld} -m elf64ppc"
5931
            ;;
5932
          s390*-*linux*|s390*-*tpf*)
5933
            LD="${LD-ld} -m elf64_s390"
5934
            ;;
5935
          sparc*-*linux*)
5936
            LD="${LD-ld} -m elf64_sparc"
5937
            ;;
5938
        esac
5939
        ;;
5940
    esac
5941
  fi
5942
  rm -rf conftest*
5943
  ;;
5944
 
5945
*-*-sco3.2v5*)
5946
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5947
  SAVE_CFLAGS="$CFLAGS"
5948
  CFLAGS="$CFLAGS -belf"
5949
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5950
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5951
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5952
  $as_echo_n "(cached) " >&6
5953
else
5954
  ac_ext=c
5955
ac_cpp='$CPP $CPPFLAGS'
5956
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
 
5960
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961
/* end confdefs.h.  */
5962
 
5963
int
5964
main ()
5965
{
5966
 
5967
  ;
5968
  return 0;
5969
}
5970
_ACEOF
5971
if ac_fn_c_try_link "$LINENO"; then :
5972
  lt_cv_cc_needs_belf=yes
5973
else
5974
  lt_cv_cc_needs_belf=no
5975
fi
5976
rm -f core conftest.err conftest.$ac_objext \
5977
    conftest$ac_exeext conftest.$ac_ext
5978
     ac_ext=c
5979
ac_cpp='$CPP $CPPFLAGS'
5980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
 
5984
fi
5985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5986
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5987
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5988
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5989
    CFLAGS="$SAVE_CFLAGS"
5990
  fi
5991
  ;;
5992
sparc*-*solaris*)
5993
  # Find out which ABI we are using.
5994
  echo 'int i;' > conftest.$ac_ext
5995
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996
  (eval $ac_compile) 2>&5
5997
  ac_status=$?
5998
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999
  test $ac_status = 0; }; then
6000
    case `/usr/bin/file conftest.o` in
6001
    *64-bit*)
6002
      case $lt_cv_prog_gnu_ld in
6003
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6004
      *)
6005
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6006
          LD="${LD-ld} -64"
6007
        fi
6008
        ;;
6009
      esac
6010
      ;;
6011
    esac
6012
  fi
6013
  rm -rf conftest*
6014
  ;;
6015
esac
6016
 
6017
need_locks="$enable_libtool_lock"
6018
 
6019
 
6020
  case $host_os in
6021
    rhapsody* | darwin*)
6022
    if test -n "$ac_tool_prefix"; then
6023
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6024
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026
$as_echo_n "checking for $ac_word... " >&6; }
6027
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6028
  $as_echo_n "(cached) " >&6
6029
else
6030
  if test -n "$DSYMUTIL"; then
6031
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6032
else
6033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034
for as_dir in $PATH
6035
do
6036
  IFS=$as_save_IFS
6037
  test -z "$as_dir" && as_dir=.
6038
    for ac_exec_ext in '' $ac_executable_extensions; do
6039
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6041
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042
    break 2
6043
  fi
6044
done
6045
  done
6046
IFS=$as_save_IFS
6047
 
6048
fi
6049
fi
6050
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6051
if test -n "$DSYMUTIL"; then
6052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6053
$as_echo "$DSYMUTIL" >&6; }
6054
else
6055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056
$as_echo "no" >&6; }
6057
fi
6058
 
6059
 
6060
fi
6061
if test -z "$ac_cv_prog_DSYMUTIL"; then
6062
  ac_ct_DSYMUTIL=$DSYMUTIL
6063
  # Extract the first word of "dsymutil", so it can be a program name with args.
6064
set dummy dsymutil; ac_word=$2
6065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066
$as_echo_n "checking for $ac_word... " >&6; }
6067
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6068
  $as_echo_n "(cached) " >&6
6069
else
6070
  if test -n "$ac_ct_DSYMUTIL"; then
6071
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6072
else
6073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074
for as_dir in $PATH
6075
do
6076
  IFS=$as_save_IFS
6077
  test -z "$as_dir" && as_dir=.
6078
    for ac_exec_ext in '' $ac_executable_extensions; do
6079
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6081
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082
    break 2
6083
  fi
6084
done
6085
  done
6086
IFS=$as_save_IFS
6087
 
6088
fi
6089
fi
6090
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6091
if test -n "$ac_ct_DSYMUTIL"; then
6092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6093
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6094
else
6095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096
$as_echo "no" >&6; }
6097
fi
6098
 
6099
  if test "x$ac_ct_DSYMUTIL" = x; then
6100
    DSYMUTIL=":"
6101
  else
6102
    case $cross_compiling:$ac_tool_warned in
6103
yes:)
6104
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106
ac_tool_warned=yes ;;
6107
esac
6108
    DSYMUTIL=$ac_ct_DSYMUTIL
6109
  fi
6110
else
6111
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6112
fi
6113
 
6114
    if test -n "$ac_tool_prefix"; then
6115
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6116
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118
$as_echo_n "checking for $ac_word... " >&6; }
6119
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6120
  $as_echo_n "(cached) " >&6
6121
else
6122
  if test -n "$NMEDIT"; then
6123
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6124
else
6125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126
for as_dir in $PATH
6127
do
6128
  IFS=$as_save_IFS
6129
  test -z "$as_dir" && as_dir=.
6130
    for ac_exec_ext in '' $ac_executable_extensions; do
6131
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6133
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134
    break 2
6135
  fi
6136
done
6137
  done
6138
IFS=$as_save_IFS
6139
 
6140
fi
6141
fi
6142
NMEDIT=$ac_cv_prog_NMEDIT
6143
if test -n "$NMEDIT"; then
6144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6145
$as_echo "$NMEDIT" >&6; }
6146
else
6147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148
$as_echo "no" >&6; }
6149
fi
6150
 
6151
 
6152
fi
6153
if test -z "$ac_cv_prog_NMEDIT"; then
6154
  ac_ct_NMEDIT=$NMEDIT
6155
  # Extract the first word of "nmedit", so it can be a program name with args.
6156
set dummy nmedit; ac_word=$2
6157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158
$as_echo_n "checking for $ac_word... " >&6; }
6159
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6160
  $as_echo_n "(cached) " >&6
6161
else
6162
  if test -n "$ac_ct_NMEDIT"; then
6163
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6164
else
6165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166
for as_dir in $PATH
6167
do
6168
  IFS=$as_save_IFS
6169
  test -z "$as_dir" && as_dir=.
6170
    for ac_exec_ext in '' $ac_executable_extensions; do
6171
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6173
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174
    break 2
6175
  fi
6176
done
6177
  done
6178
IFS=$as_save_IFS
6179
 
6180
fi
6181
fi
6182
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6183
if test -n "$ac_ct_NMEDIT"; then
6184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6185
$as_echo "$ac_ct_NMEDIT" >&6; }
6186
else
6187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188
$as_echo "no" >&6; }
6189
fi
6190
 
6191
  if test "x$ac_ct_NMEDIT" = x; then
6192
    NMEDIT=":"
6193
  else
6194
    case $cross_compiling:$ac_tool_warned in
6195
yes:)
6196
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198
ac_tool_warned=yes ;;
6199
esac
6200
    NMEDIT=$ac_ct_NMEDIT
6201
  fi
6202
else
6203
  NMEDIT="$ac_cv_prog_NMEDIT"
6204
fi
6205
 
6206
    if test -n "$ac_tool_prefix"; then
6207
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6208
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210
$as_echo_n "checking for $ac_word... " >&6; }
6211
if test "${ac_cv_prog_LIPO+set}" = set; then :
6212
  $as_echo_n "(cached) " >&6
6213
else
6214
  if test -n "$LIPO"; then
6215
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6216
else
6217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218
for as_dir in $PATH
6219
do
6220
  IFS=$as_save_IFS
6221
  test -z "$as_dir" && as_dir=.
6222
    for ac_exec_ext in '' $ac_executable_extensions; do
6223
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6225
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226
    break 2
6227
  fi
6228
done
6229
  done
6230
IFS=$as_save_IFS
6231
 
6232
fi
6233
fi
6234
LIPO=$ac_cv_prog_LIPO
6235
if test -n "$LIPO"; then
6236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6237
$as_echo "$LIPO" >&6; }
6238
else
6239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240
$as_echo "no" >&6; }
6241
fi
6242
 
6243
 
6244
fi
6245
if test -z "$ac_cv_prog_LIPO"; then
6246
  ac_ct_LIPO=$LIPO
6247
  # Extract the first word of "lipo", so it can be a program name with args.
6248
set dummy lipo; ac_word=$2
6249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250
$as_echo_n "checking for $ac_word... " >&6; }
6251
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6252
  $as_echo_n "(cached) " >&6
6253
else
6254
  if test -n "$ac_ct_LIPO"; then
6255
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6256
else
6257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258
for as_dir in $PATH
6259
do
6260
  IFS=$as_save_IFS
6261
  test -z "$as_dir" && as_dir=.
6262
    for ac_exec_ext in '' $ac_executable_extensions; do
6263
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264
    ac_cv_prog_ac_ct_LIPO="lipo"
6265
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266
    break 2
6267
  fi
6268
done
6269
  done
6270
IFS=$as_save_IFS
6271
 
6272
fi
6273
fi
6274
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6275
if test -n "$ac_ct_LIPO"; then
6276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6277
$as_echo "$ac_ct_LIPO" >&6; }
6278
else
6279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280
$as_echo "no" >&6; }
6281
fi
6282
 
6283
  if test "x$ac_ct_LIPO" = x; then
6284
    LIPO=":"
6285
  else
6286
    case $cross_compiling:$ac_tool_warned in
6287
yes:)
6288
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290
ac_tool_warned=yes ;;
6291
esac
6292
    LIPO=$ac_ct_LIPO
6293
  fi
6294
else
6295
  LIPO="$ac_cv_prog_LIPO"
6296
fi
6297
 
6298
    if test -n "$ac_tool_prefix"; then
6299
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6300
set dummy ${ac_tool_prefix}otool; ac_word=$2
6301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302
$as_echo_n "checking for $ac_word... " >&6; }
6303
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6304
  $as_echo_n "(cached) " >&6
6305
else
6306
  if test -n "$OTOOL"; then
6307
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6308
else
6309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310
for as_dir in $PATH
6311
do
6312
  IFS=$as_save_IFS
6313
  test -z "$as_dir" && as_dir=.
6314
    for ac_exec_ext in '' $ac_executable_extensions; do
6315
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6317
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318
    break 2
6319
  fi
6320
done
6321
  done
6322
IFS=$as_save_IFS
6323
 
6324
fi
6325
fi
6326
OTOOL=$ac_cv_prog_OTOOL
6327
if test -n "$OTOOL"; then
6328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6329
$as_echo "$OTOOL" >&6; }
6330
else
6331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332
$as_echo "no" >&6; }
6333
fi
6334
 
6335
 
6336
fi
6337
if test -z "$ac_cv_prog_OTOOL"; then
6338
  ac_ct_OTOOL=$OTOOL
6339
  # Extract the first word of "otool", so it can be a program name with args.
6340
set dummy otool; ac_word=$2
6341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342
$as_echo_n "checking for $ac_word... " >&6; }
6343
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6344
  $as_echo_n "(cached) " >&6
6345
else
6346
  if test -n "$ac_ct_OTOOL"; then
6347
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6348
else
6349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350
for as_dir in $PATH
6351
do
6352
  IFS=$as_save_IFS
6353
  test -z "$as_dir" && as_dir=.
6354
    for ac_exec_ext in '' $ac_executable_extensions; do
6355
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356
    ac_cv_prog_ac_ct_OTOOL="otool"
6357
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358
    break 2
6359
  fi
6360
done
6361
  done
6362
IFS=$as_save_IFS
6363
 
6364
fi
6365
fi
6366
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6367
if test -n "$ac_ct_OTOOL"; then
6368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6369
$as_echo "$ac_ct_OTOOL" >&6; }
6370
else
6371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372
$as_echo "no" >&6; }
6373
fi
6374
 
6375
  if test "x$ac_ct_OTOOL" = x; then
6376
    OTOOL=":"
6377
  else
6378
    case $cross_compiling:$ac_tool_warned in
6379
yes:)
6380
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382
ac_tool_warned=yes ;;
6383
esac
6384
    OTOOL=$ac_ct_OTOOL
6385
  fi
6386
else
6387
  OTOOL="$ac_cv_prog_OTOOL"
6388
fi
6389
 
6390
    if test -n "$ac_tool_prefix"; then
6391
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6392
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394
$as_echo_n "checking for $ac_word... " >&6; }
6395
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6396
  $as_echo_n "(cached) " >&6
6397
else
6398
  if test -n "$OTOOL64"; then
6399
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6400
else
6401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402
for as_dir in $PATH
6403
do
6404
  IFS=$as_save_IFS
6405
  test -z "$as_dir" && as_dir=.
6406
    for ac_exec_ext in '' $ac_executable_extensions; do
6407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6409
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410
    break 2
6411
  fi
6412
done
6413
  done
6414
IFS=$as_save_IFS
6415
 
6416
fi
6417
fi
6418
OTOOL64=$ac_cv_prog_OTOOL64
6419
if test -n "$OTOOL64"; then
6420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6421
$as_echo "$OTOOL64" >&6; }
6422
else
6423
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424
$as_echo "no" >&6; }
6425
fi
6426
 
6427
 
6428
fi
6429
if test -z "$ac_cv_prog_OTOOL64"; then
6430
  ac_ct_OTOOL64=$OTOOL64
6431
  # Extract the first word of "otool64", so it can be a program name with args.
6432
set dummy otool64; ac_word=$2
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434
$as_echo_n "checking for $ac_word... " >&6; }
6435
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6436
  $as_echo_n "(cached) " >&6
6437
else
6438
  if test -n "$ac_ct_OTOOL64"; then
6439
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6440
else
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442
for as_dir in $PATH
6443
do
6444
  IFS=$as_save_IFS
6445
  test -z "$as_dir" && as_dir=.
6446
    for ac_exec_ext in '' $ac_executable_extensions; do
6447
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6449
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450
    break 2
6451
  fi
6452
done
6453
  done
6454
IFS=$as_save_IFS
6455
 
6456
fi
6457
fi
6458
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6459
if test -n "$ac_ct_OTOOL64"; then
6460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6461
$as_echo "$ac_ct_OTOOL64" >&6; }
6462
else
6463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464
$as_echo "no" >&6; }
6465
fi
6466
 
6467
  if test "x$ac_ct_OTOOL64" = x; then
6468
    OTOOL64=":"
6469
  else
6470
    case $cross_compiling:$ac_tool_warned in
6471
yes:)
6472
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474
ac_tool_warned=yes ;;
6475
esac
6476
    OTOOL64=$ac_ct_OTOOL64
6477
  fi
6478
else
6479
  OTOOL64="$ac_cv_prog_OTOOL64"
6480
fi
6481
 
6482
 
6483
 
6484
 
6485
 
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493
 
6494
 
6495
 
6496
 
6497
 
6498
 
6499
 
6500
 
6501
 
6502
 
6503
 
6504
 
6505
 
6506
 
6507
 
6508
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6509
$as_echo_n "checking for -single_module linker flag... " >&6; }
6510
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6511
  $as_echo_n "(cached) " >&6
6512
else
6513
  lt_cv_apple_cc_single_mod=no
6514
      if test -z "${LT_MULTI_MODULE}"; then
6515
        # By default we will add the -single_module flag. You can override
6516
        # by either setting the environment variable LT_MULTI_MODULE
6517
        # non-empty at configure time, or by adding -multi_module to the
6518
        # link flags.
6519
        rm -rf libconftest.dylib*
6520
        echo "int foo(void){return 1;}" > conftest.c
6521
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6522
-dynamiclib -Wl,-single_module conftest.c" >&5
6523
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6524
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6525
        _lt_result=$?
6526
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6527
          lt_cv_apple_cc_single_mod=yes
6528
        else
6529
          cat conftest.err >&5
6530
        fi
6531
        rm -rf libconftest.dylib*
6532
        rm -f conftest.*
6533
      fi
6534
fi
6535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6536
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6537
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6538
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6539
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6540
  $as_echo_n "(cached) " >&6
6541
else
6542
  lt_cv_ld_exported_symbols_list=no
6543
      save_LDFLAGS=$LDFLAGS
6544
      echo "_main" > conftest.sym
6545
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6546
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547
/* end confdefs.h.  */
6548
 
6549
int
6550
main ()
6551
{
6552
 
6553
  ;
6554
  return 0;
6555
}
6556
_ACEOF
6557
if ac_fn_c_try_link "$LINENO"; then :
6558
  lt_cv_ld_exported_symbols_list=yes
6559
else
6560
  lt_cv_ld_exported_symbols_list=no
6561
fi
6562
rm -f core conftest.err conftest.$ac_objext \
6563
    conftest$ac_exeext conftest.$ac_ext
6564
        LDFLAGS="$save_LDFLAGS"
6565
 
6566
fi
6567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6568
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6569
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6570
$as_echo_n "checking for -force_load linker flag... " >&6; }
6571
if test "${lt_cv_ld_force_load+set}" = set; then :
6572
  $as_echo_n "(cached) " >&6
6573
else
6574
  lt_cv_ld_force_load=no
6575
      cat > conftest.c << _LT_EOF
6576
int forced_loaded() { return 2;}
6577
_LT_EOF
6578
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6579
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6580
      echo "$AR cru libconftest.a conftest.o" >&5
6581
      $AR cru libconftest.a conftest.o 2>&5
6582
      cat > conftest.c << _LT_EOF
6583
int main() { return 0;}
6584
_LT_EOF
6585
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6586
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6587
      _lt_result=$?
6588
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6589
        lt_cv_ld_force_load=yes
6590
      else
6591
        cat conftest.err >&5
6592
      fi
6593
        rm -f conftest.err libconftest.a conftest conftest.c
6594
        rm -rf conftest.dSYM
6595
 
6596
fi
6597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6598
$as_echo "$lt_cv_ld_force_load" >&6; }
6599
    case $host_os in
6600
    rhapsody* | darwin1.[012])
6601
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6602
    darwin1.*)
6603
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6604
    darwin*) # darwin 5.x on
6605
      # if running on 10.5 or later, the deployment target defaults
6606
      # to the OS version, if on x86, and 10.4, the deployment
6607
      # target defaults to 10.4. Don't you love it?
6608
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6609
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6610
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6611
        10.[012]*)
6612
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6613
        10.*)
6614
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6615
      esac
6616
    ;;
6617
  esac
6618
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6619
      _lt_dar_single_mod='$single_module'
6620
    fi
6621
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6622
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6623
    else
6624
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6625
    fi
6626
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6627
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6628
    else
6629
      _lt_dsymutil=
6630
    fi
6631
    ;;
6632
  esac
6633
 
6634
ac_ext=c
6635
ac_cpp='$CPP $CPPFLAGS'
6636
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6640
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6641
# On Suns, sometimes $CPP names a directory.
6642
if test -n "$CPP" && test -d "$CPP"; then
6643
  CPP=
6644
fi
6645
if test -z "$CPP"; then
6646
  if test "${ac_cv_prog_CPP+set}" = set; then :
6647
  $as_echo_n "(cached) " >&6
6648
else
6649
      # Double quotes because CPP needs to be expanded
6650
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6651
    do
6652
      ac_preproc_ok=false
6653
for ac_c_preproc_warn_flag in '' yes
6654
do
6655
  # Use a header file that comes with gcc, so configuring glibc
6656
  # with a fresh cross-compiler works.
6657
  # Prefer  to  if __STDC__ is defined, since
6658
  #  exists even on freestanding compilers.
6659
  # On the NeXT, cc -E runs the code through the compiler's parser,
6660
  # not just through cpp. "Syntax error" is here to catch this case.
6661
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662
/* end confdefs.h.  */
6663
#ifdef __STDC__
6664
# include 
6665
#else
6666
# include 
6667
#endif
6668
                     Syntax error
6669
_ACEOF
6670
if ac_fn_c_try_cpp "$LINENO"; then :
6671
 
6672
else
6673
  # Broken: fails on valid input.
6674
continue
6675
fi
6676
rm -f conftest.err conftest.$ac_ext
6677
 
6678
  # OK, works on sane cases.  Now check whether nonexistent headers
6679
  # can be detected and how.
6680
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681
/* end confdefs.h.  */
6682
#include 
6683
_ACEOF
6684
if ac_fn_c_try_cpp "$LINENO"; then :
6685
  # Broken: success on invalid input.
6686
continue
6687
else
6688
  # Passes both tests.
6689
ac_preproc_ok=:
6690
break
6691
fi
6692
rm -f conftest.err conftest.$ac_ext
6693
 
6694
done
6695
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6696
rm -f conftest.err conftest.$ac_ext
6697
if $ac_preproc_ok; then :
6698
  break
6699
fi
6700
 
6701
    done
6702
    ac_cv_prog_CPP=$CPP
6703
 
6704
fi
6705
  CPP=$ac_cv_prog_CPP
6706
else
6707
  ac_cv_prog_CPP=$CPP
6708
fi
6709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6710
$as_echo "$CPP" >&6; }
6711
ac_preproc_ok=false
6712
for ac_c_preproc_warn_flag in '' yes
6713
do
6714
  # Use a header file that comes with gcc, so configuring glibc
6715
  # with a fresh cross-compiler works.
6716
  # Prefer  to  if __STDC__ is defined, since
6717
  #  exists even on freestanding compilers.
6718
  # On the NeXT, cc -E runs the code through the compiler's parser,
6719
  # not just through cpp. "Syntax error" is here to catch this case.
6720
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721
/* end confdefs.h.  */
6722
#ifdef __STDC__
6723
# include 
6724
#else
6725
# include 
6726
#endif
6727
                     Syntax error
6728
_ACEOF
6729
if ac_fn_c_try_cpp "$LINENO"; then :
6730
 
6731
else
6732
  # Broken: fails on valid input.
6733
continue
6734
fi
6735
rm -f conftest.err conftest.$ac_ext
6736
 
6737
  # OK, works on sane cases.  Now check whether nonexistent headers
6738
  # can be detected and how.
6739
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740
/* end confdefs.h.  */
6741
#include 
6742
_ACEOF
6743
if ac_fn_c_try_cpp "$LINENO"; then :
6744
  # Broken: success on invalid input.
6745
continue
6746
else
6747
  # Passes both tests.
6748
ac_preproc_ok=:
6749
break
6750
fi
6751
rm -f conftest.err conftest.$ac_ext
6752
 
6753
done
6754
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6755
rm -f conftest.err conftest.$ac_ext
6756
if $ac_preproc_ok; then :
6757
 
6758
else
6759
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6760
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6761
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6762
See \`config.log' for more details." "$LINENO" 5; }
6763
fi
6764
 
6765
ac_ext=c
6766
ac_cpp='$CPP $CPPFLAGS'
6767
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
 
6771
 
6772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6773
$as_echo_n "checking for ANSI C header files... " >&6; }
6774
if test "${ac_cv_header_stdc+set}" = set; then :
6775
  $as_echo_n "(cached) " >&6
6776
else
6777
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778
/* end confdefs.h.  */
6779
#include 
6780
#include 
6781
#include 
6782
#include 
6783
 
6784
int
6785
main ()
6786
{
6787
 
6788
  ;
6789
  return 0;
6790
}
6791
_ACEOF
6792
if ac_fn_c_try_compile "$LINENO"; then :
6793
  ac_cv_header_stdc=yes
6794
else
6795
  ac_cv_header_stdc=no
6796
fi
6797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798
 
6799
if test $ac_cv_header_stdc = yes; then
6800
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6801
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802
/* end confdefs.h.  */
6803
#include 
6804
 
6805
_ACEOF
6806
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807
  $EGREP "memchr" >/dev/null 2>&1; then :
6808
 
6809
else
6810
  ac_cv_header_stdc=no
6811
fi
6812
rm -f conftest*
6813
 
6814
fi
6815
 
6816
if test $ac_cv_header_stdc = yes; then
6817
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6818
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819
/* end confdefs.h.  */
6820
#include 
6821
 
6822
_ACEOF
6823
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6824
  $EGREP "free" >/dev/null 2>&1; then :
6825
 
6826
else
6827
  ac_cv_header_stdc=no
6828
fi
6829
rm -f conftest*
6830
 
6831
fi
6832
 
6833
if test $ac_cv_header_stdc = yes; then
6834
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6835
  if test "$cross_compiling" = yes; then :
6836
  :
6837
else
6838
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839
/* end confdefs.h.  */
6840
#include 
6841
#include 
6842
#if ((' ' & 0x0FF) == 0x020)
6843
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6844
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6845
#else
6846
# define ISLOWER(c) \
6847
                   (('a' <= (c) && (c) <= 'i') \
6848
                     || ('j' <= (c) && (c) <= 'r') \
6849
                     || ('s' <= (c) && (c) <= 'z'))
6850
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6851
#endif
6852
 
6853
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6854
int
6855
main ()
6856
{
6857
  int i;
6858
  for (i = 0; i < 256; i++)
6859
    if (XOR (islower (i), ISLOWER (i))
6860
        || toupper (i) != TOUPPER (i))
6861
      return 2;
6862
  return 0;
6863
}
6864
_ACEOF
6865
if ac_fn_c_try_run "$LINENO"; then :
6866
 
6867
else
6868
  ac_cv_header_stdc=no
6869
fi
6870
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6871
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6872
fi
6873
 
6874
fi
6875
fi
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6877
$as_echo "$ac_cv_header_stdc" >&6; }
6878
if test $ac_cv_header_stdc = yes; then
6879
 
6880
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6881
 
6882
fi
6883
 
6884
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6885
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6886
                  inttypes.h stdint.h unistd.h
6887
do :
6888
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6889
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6890
"
6891
eval as_val=\$$as_ac_Header
6892
   if test "x$as_val" = x""yes; then :
6893
  cat >>confdefs.h <<_ACEOF
6894
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895
_ACEOF
6896
 
6897
fi
6898
 
6899
done
6900
 
6901
 
6902
for ac_header in dlfcn.h
6903
do :
6904
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6905
"
6906
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6907
  cat >>confdefs.h <<_ACEOF
6908
#define HAVE_DLFCN_H 1
6909
_ACEOF
6910
 
6911
fi
6912
 
6913
done
6914
 
6915
 
6916
 
6917
 
6918
 
6919
# Set options
6920
 
6921
 
6922
 
6923
        enable_dlopen=no
6924
 
6925
 
6926
  enable_win32_dll=no
6927
 
6928
 
6929
            # Check whether --enable-shared was given.
6930
if test "${enable_shared+set}" = set; then :
6931
  enableval=$enable_shared; p=${PACKAGE-default}
6932
    case $enableval in
6933
    yes) enable_shared=yes ;;
6934
    no) enable_shared=no ;;
6935
    *)
6936
      enable_shared=no
6937
      # Look at the argument we got.  We use all the common list separators.
6938
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939
      for pkg in $enableval; do
6940
        IFS="$lt_save_ifs"
6941
        if test "X$pkg" = "X$p"; then
6942
          enable_shared=yes
6943
        fi
6944
      done
6945
      IFS="$lt_save_ifs"
6946
      ;;
6947
    esac
6948
else
6949
  enable_shared=yes
6950
fi
6951
 
6952
 
6953
 
6954
 
6955
 
6956
 
6957
 
6958
 
6959
 
6960
  # Check whether --enable-static was given.
6961
if test "${enable_static+set}" = set; then :
6962
  enableval=$enable_static; p=${PACKAGE-default}
6963
    case $enableval in
6964
    yes) enable_static=yes ;;
6965
    no) enable_static=no ;;
6966
    *)
6967
     enable_static=no
6968
      # Look at the argument we got.  We use all the common list separators.
6969
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6970
      for pkg in $enableval; do
6971
        IFS="$lt_save_ifs"
6972
        if test "X$pkg" = "X$p"; then
6973
          enable_static=yes
6974
        fi
6975
      done
6976
      IFS="$lt_save_ifs"
6977
      ;;
6978
    esac
6979
else
6980
  enable_static=yes
6981
fi
6982
 
6983
 
6984
 
6985
 
6986
 
6987
 
6988
 
6989
 
6990
 
6991
 
6992
# Check whether --with-pic was given.
6993
if test "${with_pic+set}" = set; then :
6994
  withval=$with_pic; pic_mode="$withval"
6995
else
6996
  pic_mode=default
6997
fi
6998
 
6999
 
7000
test -z "$pic_mode" && pic_mode=default
7001
 
7002
 
7003
 
7004
 
7005
 
7006
 
7007
 
7008
  # Check whether --enable-fast-install was given.
7009
if test "${enable_fast_install+set}" = set; then :
7010
  enableval=$enable_fast_install; p=${PACKAGE-default}
7011
    case $enableval in
7012
    yes) enable_fast_install=yes ;;
7013
    no) enable_fast_install=no ;;
7014
    *)
7015
      enable_fast_install=no
7016
      # Look at the argument we got.  We use all the common list separators.
7017
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7018
      for pkg in $enableval; do
7019
        IFS="$lt_save_ifs"
7020
        if test "X$pkg" = "X$p"; then
7021
          enable_fast_install=yes
7022
        fi
7023
      done
7024
      IFS="$lt_save_ifs"
7025
      ;;
7026
    esac
7027
else
7028
  enable_fast_install=yes
7029
fi
7030
 
7031
 
7032
 
7033
 
7034
 
7035
 
7036
 
7037
 
7038
 
7039
 
7040
 
7041
# This can be used to rebuild libtool when needed
7042
LIBTOOL_DEPS="$ltmain"
7043
 
7044
# Always use our own libtool.
7045
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7046
 
7047
 
7048
 
7049
 
7050
 
7051
 
7052
 
7053
 
7054
 
7055
 
7056
 
7057
 
7058
 
7059
 
7060
 
7061
 
7062
 
7063
 
7064
 
7065
 
7066
 
7067
 
7068
 
7069
 
7070
 
7071
 
7072
test -z "$LN_S" && LN_S="ln -s"
7073
 
7074
 
7075
 
7076
 
7077
 
7078
 
7079
 
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
if test -n "${ZSH_VERSION+set}" ; then
7088
   setopt NO_GLOB_SUBST
7089
fi
7090
 
7091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7092
$as_echo_n "checking for objdir... " >&6; }
7093
if test "${lt_cv_objdir+set}" = set; then :
7094
  $as_echo_n "(cached) " >&6
7095
else
7096
  rm -f .libs 2>/dev/null
7097
mkdir .libs 2>/dev/null
7098
if test -d .libs; then
7099
  lt_cv_objdir=.libs
7100
else
7101
  # MS-DOS does not allow filenames that begin with a dot.
7102
  lt_cv_objdir=_libs
7103
fi
7104
rmdir .libs 2>/dev/null
7105
fi
7106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7107
$as_echo "$lt_cv_objdir" >&6; }
7108
objdir=$lt_cv_objdir
7109
 
7110
 
7111
 
7112
 
7113
 
7114
cat >>confdefs.h <<_ACEOF
7115
#define LT_OBJDIR "$lt_cv_objdir/"
7116
_ACEOF
7117
 
7118
 
7119
 
7120
 
7121
case $host_os in
7122
aix3*)
7123
  # AIX sometimes has problems with the GCC collect2 program.  For some
7124
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7125
  # vanish in a puff of smoke.
7126
  if test "X${COLLECT_NAMES+set}" != Xset; then
7127
    COLLECT_NAMES=
7128
    export COLLECT_NAMES
7129
  fi
7130
  ;;
7131
esac
7132
 
7133
# Global variables:
7134
ofile=libtool
7135
can_build_shared=yes
7136
 
7137
# All known linkers require a `.a' archive for static linking (except MSVC,
7138
# which needs '.lib').
7139
libext=a
7140
 
7141
with_gnu_ld="$lt_cv_prog_gnu_ld"
7142
 
7143
old_CC="$CC"
7144
old_CFLAGS="$CFLAGS"
7145
 
7146
# Set sane defaults for various variables
7147
test -z "$CC" && CC=cc
7148
test -z "$LTCC" && LTCC=$CC
7149
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7150
test -z "$LD" && LD=ld
7151
test -z "$ac_objext" && ac_objext=o
7152
 
7153
for cc_temp in $compiler""; do
7154
  case $cc_temp in
7155
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7156
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7157
    \-*) ;;
7158
    *) break;;
7159
  esac
7160
done
7161
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7162
 
7163
 
7164
# Only perform the check for file, if the check method requires it
7165
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7166
case $deplibs_check_method in
7167
file_magic*)
7168
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7169
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7170
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7171
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7172
  $as_echo_n "(cached) " >&6
7173
else
7174
  case $MAGIC_CMD in
7175
[\\/*] |  ?:[\\/]*)
7176
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7177
  ;;
7178
*)
7179
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7180
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7181
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7182
  for ac_dir in $ac_dummy; do
7183
    IFS="$lt_save_ifs"
7184
    test -z "$ac_dir" && ac_dir=.
7185
    if test -f $ac_dir/${ac_tool_prefix}file; then
7186
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7187
      if test -n "$file_magic_test_file"; then
7188
        case $deplibs_check_method in
7189
        "file_magic "*)
7190
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7191
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7192
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7193
            $EGREP "$file_magic_regex" > /dev/null; then
7194
            :
7195
          else
7196
            cat <<_LT_EOF 1>&2
7197
 
7198
*** Warning: the command libtool uses to detect shared libraries,
7199
*** $file_magic_cmd, produces output that libtool cannot recognize.
7200
*** The result is that libtool may fail to recognize shared libraries
7201
*** as such.  This will affect the creation of libtool libraries that
7202
*** depend on shared libraries, but programs linked with such libtool
7203
*** libraries will work regardless of this problem.  Nevertheless, you
7204
*** may want to report the problem to your system manager and/or to
7205
*** bug-libtool@gnu.org
7206
 
7207
_LT_EOF
7208
          fi ;;
7209
        esac
7210
      fi
7211
      break
7212
    fi
7213
  done
7214
  IFS="$lt_save_ifs"
7215
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7216
  ;;
7217
esac
7218
fi
7219
 
7220
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7221
if test -n "$MAGIC_CMD"; then
7222
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7223
$as_echo "$MAGIC_CMD" >&6; }
7224
else
7225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226
$as_echo "no" >&6; }
7227
fi
7228
 
7229
 
7230
 
7231
 
7232
 
7233
if test -z "$lt_cv_path_MAGIC_CMD"; then
7234
  if test -n "$ac_tool_prefix"; then
7235
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7236
$as_echo_n "checking for file... " >&6; }
7237
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7238
  $as_echo_n "(cached) " >&6
7239
else
7240
  case $MAGIC_CMD in
7241
[\\/*] |  ?:[\\/]*)
7242
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7243
  ;;
7244
*)
7245
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7246
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7247
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7248
  for ac_dir in $ac_dummy; do
7249
    IFS="$lt_save_ifs"
7250
    test -z "$ac_dir" && ac_dir=.
7251
    if test -f $ac_dir/file; then
7252
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7253
      if test -n "$file_magic_test_file"; then
7254
        case $deplibs_check_method in
7255
        "file_magic "*)
7256
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7257
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7258
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7259
            $EGREP "$file_magic_regex" > /dev/null; then
7260
            :
7261
          else
7262
            cat <<_LT_EOF 1>&2
7263
 
7264
*** Warning: the command libtool uses to detect shared libraries,
7265
*** $file_magic_cmd, produces output that libtool cannot recognize.
7266
*** The result is that libtool may fail to recognize shared libraries
7267
*** as such.  This will affect the creation of libtool libraries that
7268
*** depend on shared libraries, but programs linked with such libtool
7269
*** libraries will work regardless of this problem.  Nevertheless, you
7270
*** may want to report the problem to your system manager and/or to
7271
*** bug-libtool@gnu.org
7272
 
7273
_LT_EOF
7274
          fi ;;
7275
        esac
7276
      fi
7277
      break
7278
    fi
7279
  done
7280
  IFS="$lt_save_ifs"
7281
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7282
  ;;
7283
esac
7284
fi
7285
 
7286
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287
if test -n "$MAGIC_CMD"; then
7288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7289
$as_echo "$MAGIC_CMD" >&6; }
7290
else
7291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292
$as_echo "no" >&6; }
7293
fi
7294
 
7295
 
7296
  else
7297
    MAGIC_CMD=:
7298
  fi
7299
fi
7300
 
7301
  fi
7302
  ;;
7303
esac
7304
 
7305
# Use C for the default configuration in the libtool script
7306
 
7307
lt_save_CC="$CC"
7308
ac_ext=c
7309
ac_cpp='$CPP $CPPFLAGS'
7310
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313
 
7314
 
7315
# Source file extension for C test sources.
7316
ac_ext=c
7317
 
7318
# Object file extension for compiled C test sources.
7319
objext=o
7320
objext=$objext
7321
 
7322
# Code to be used in simple compile tests
7323
lt_simple_compile_test_code="int some_variable = 0;"
7324
 
7325
# Code to be used in simple link tests
7326
lt_simple_link_test_code='int main(){return(0);}'
7327
 
7328
 
7329
 
7330
 
7331
 
7332
 
7333
 
7334
# If no C compiler was specified, use CC.
7335
LTCC=${LTCC-"$CC"}
7336
 
7337
# If no C compiler flags were specified, use CFLAGS.
7338
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7339
 
7340
# Allow CC to be a program name with arguments.
7341
compiler=$CC
7342
 
7343
# Save the default compiler, since it gets overwritten when the other
7344
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7345
compiler_DEFAULT=$CC
7346
 
7347
# save warnings/boilerplate of simple test code
7348
ac_outfile=conftest.$ac_objext
7349
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7350
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7351
_lt_compiler_boilerplate=`cat conftest.err`
7352
$RM conftest*
7353
 
7354
ac_outfile=conftest.$ac_objext
7355
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7356
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7357
_lt_linker_boilerplate=`cat conftest.err`
7358
$RM -r conftest*
7359
 
7360
 
7361
## CAVEAT EMPTOR:
7362
## There is no encapsulation within the following macros, do not change
7363
## the running order or otherwise move them around unless you know exactly
7364
## what you are doing...
7365
if test -n "$compiler"; then
7366
 
7367
lt_prog_compiler_no_builtin_flag=
7368
 
7369
if test "$GCC" = yes; then
7370
  case $cc_basename in
7371
  nvcc*)
7372
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7373
  *)
7374
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7375
  esac
7376
 
7377
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7378
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7379
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7380
  $as_echo_n "(cached) " >&6
7381
else
7382
  lt_cv_prog_compiler_rtti_exceptions=no
7383
   ac_outfile=conftest.$ac_objext
7384
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7385
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7386
   # Insert the option either (1) after the last *FLAGS variable, or
7387
   # (2) before a word containing "conftest.", or (3) at the end.
7388
   # Note that $ac_compile itself does not contain backslashes and begins
7389
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7390
   # The option is referenced via a variable to avoid confusing sed.
7391
   lt_compile=`echo "$ac_compile" | $SED \
7392
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7393
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7394
   -e 's:$: $lt_compiler_flag:'`
7395
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7396
   (eval "$lt_compile" 2>conftest.err)
7397
   ac_status=$?
7398
   cat conftest.err >&5
7399
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400
   if (exit $ac_status) && test -s "$ac_outfile"; then
7401
     # The compiler can only warn and ignore the option if not recognized
7402
     # So say no if there are warnings other than the usual output.
7403
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7404
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7405
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7406
       lt_cv_prog_compiler_rtti_exceptions=yes
7407
     fi
7408
   fi
7409
   $RM conftest*
7410
 
7411
fi
7412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7413
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7414
 
7415
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7416
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7417
else
7418
    :
7419
fi
7420
 
7421
fi
7422
 
7423
 
7424
 
7425
 
7426
 
7427
 
7428
  lt_prog_compiler_wl=
7429
lt_prog_compiler_pic=
7430
lt_prog_compiler_static=
7431
 
7432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7433
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7434
 
7435
  if test "$GCC" = yes; then
7436
    lt_prog_compiler_wl='-Wl,'
7437
    lt_prog_compiler_static='-static'
7438
 
7439
    case $host_os in
7440
      aix*)
7441
      # All AIX code is PIC.
7442
      if test "$host_cpu" = ia64; then
7443
        # AIX 5 now supports IA64 processor
7444
        lt_prog_compiler_static='-Bstatic'
7445
      fi
7446
      ;;
7447
 
7448
    amigaos*)
7449
      case $host_cpu in
7450
      powerpc)
7451
            # see comment about AmigaOS4 .so support
7452
            lt_prog_compiler_pic='-fPIC'
7453
        ;;
7454
      m68k)
7455
            # FIXME: we need at least 68020 code to build shared libraries, but
7456
            # adding the `-m68020' flag to GCC prevents building anything better,
7457
            # like `-m68040'.
7458
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7459
        ;;
7460
      esac
7461
      ;;
7462
 
7463
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7464
      # PIC is the default for these OSes.
7465
      ;;
7466
 
7467
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7468
      # This hack is so that the source file can tell whether it is being
7469
      # built for inclusion in a dll (and should export symbols for example).
7470
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7471
      # (--disable-auto-import) libraries
7472
      lt_prog_compiler_pic='-DDLL_EXPORT'
7473
      ;;
7474
 
7475
    darwin* | rhapsody*)
7476
      # PIC is the default on this platform
7477
      # Common symbols not allowed in MH_DYLIB files
7478
      lt_prog_compiler_pic='-fno-common'
7479
      ;;
7480
 
7481
    haiku*)
7482
      # PIC is the default for Haiku.
7483
      # The "-static" flag exists, but is broken.
7484
      lt_prog_compiler_static=
7485
      ;;
7486
 
7487
    hpux*)
7488
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7489
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7490
      # sets the default TLS model and affects inlining.
7491
      case $host_cpu in
7492
      hppa*64*)
7493
        # +Z the default
7494
        ;;
7495
      *)
7496
        lt_prog_compiler_pic='-fPIC'
7497
        ;;
7498
      esac
7499
      ;;
7500
 
7501
    interix[3-9]*)
7502
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7503
      # Instead, we relocate shared libraries at runtime.
7504
      ;;
7505
 
7506
    msdosdjgpp*)
7507
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7508
      # on systems that don't support them.
7509
      lt_prog_compiler_can_build_shared=no
7510
      enable_shared=no
7511
      ;;
7512
 
7513
    *nto* | *qnx*)
7514
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7515
      # it will coredump.
7516
      lt_prog_compiler_pic='-fPIC -shared'
7517
      ;;
7518
 
7519
    sysv4*MP*)
7520
      if test -d /usr/nec; then
7521
        lt_prog_compiler_pic=-Kconform_pic
7522
      fi
7523
      ;;
7524
 
7525
    *)
7526
      lt_prog_compiler_pic='-fPIC'
7527
      ;;
7528
    esac
7529
 
7530
    case $cc_basename in
7531
    nvcc*) # Cuda Compiler Driver 2.2
7532
      lt_prog_compiler_wl='-Xlinker '
7533
      lt_prog_compiler_pic='-Xcompiler -fPIC'
7534
      ;;
7535
    esac
7536
  else
7537
    # PORTME Check for flag to pass linker flags through the system compiler.
7538
    case $host_os in
7539
    aix*)
7540
      lt_prog_compiler_wl='-Wl,'
7541
      if test "$host_cpu" = ia64; then
7542
        # AIX 5 now supports IA64 processor
7543
        lt_prog_compiler_static='-Bstatic'
7544
      else
7545
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7546
      fi
7547
      ;;
7548
 
7549
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7550
      # This hack is so that the source file can tell whether it is being
7551
      # built for inclusion in a dll (and should export symbols for example).
7552
      lt_prog_compiler_pic='-DDLL_EXPORT'
7553
      ;;
7554
 
7555
    hpux9* | hpux10* | hpux11*)
7556
      lt_prog_compiler_wl='-Wl,'
7557
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7558
      # not for PA HP-UX.
7559
      case $host_cpu in
7560
      hppa*64*|ia64*)
7561
        # +Z the default
7562
        ;;
7563
      *)
7564
        lt_prog_compiler_pic='+Z'
7565
        ;;
7566
      esac
7567
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7568
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7569
      ;;
7570
 
7571
    irix5* | irix6* | nonstopux*)
7572
      lt_prog_compiler_wl='-Wl,'
7573
      # PIC (with -KPIC) is the default.
7574
      lt_prog_compiler_static='-non_shared'
7575
      ;;
7576
 
7577
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7578
      case $cc_basename in
7579
      # old Intel for x86_64 which still supported -KPIC.
7580
      ecc*)
7581
        lt_prog_compiler_wl='-Wl,'
7582
        lt_prog_compiler_pic='-KPIC'
7583
        lt_prog_compiler_static='-static'
7584
        ;;
7585
      # icc used to be incompatible with GCC.
7586
      # ICC 10 doesn't accept -KPIC any more.
7587
      icc* | ifort*)
7588
        lt_prog_compiler_wl='-Wl,'
7589
        lt_prog_compiler_pic='-fPIC'
7590
        lt_prog_compiler_static='-static'
7591
        ;;
7592
      # Lahey Fortran 8.1.
7593
      lf95*)
7594
        lt_prog_compiler_wl='-Wl,'
7595
        lt_prog_compiler_pic='--shared'
7596
        lt_prog_compiler_static='--static'
7597
        ;;
7598
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7599
        # Portland Group compilers (*not* the Pentium gcc compiler,
7600
        # which looks to be a dead project)
7601
        lt_prog_compiler_wl='-Wl,'
7602
        lt_prog_compiler_pic='-fpic'
7603
        lt_prog_compiler_static='-Bstatic'
7604
        ;;
7605
      ccc*)
7606
        lt_prog_compiler_wl='-Wl,'
7607
        # All Alpha code is PIC.
7608
        lt_prog_compiler_static='-non_shared'
7609
        ;;
7610
      xl* | bgxl* | bgf* | mpixl*)
7611
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7612
        lt_prog_compiler_wl='-Wl,'
7613
        lt_prog_compiler_pic='-qpic'
7614
        lt_prog_compiler_static='-qstaticlink'
7615
        ;;
7616
      *)
7617
        case `$CC -V 2>&1 | sed 5q` in
7618
        *Sun\ F* | *Sun*Fortran*)
7619
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7620
          lt_prog_compiler_pic='-KPIC'
7621
          lt_prog_compiler_static='-Bstatic'
7622
          lt_prog_compiler_wl=''
7623
          ;;
7624
        *Sun\ C*)
7625
          # Sun C 5.9
7626
          lt_prog_compiler_pic='-KPIC'
7627
          lt_prog_compiler_static='-Bstatic'
7628
          lt_prog_compiler_wl='-Wl,'
7629
          ;;
7630
        esac
7631
        ;;
7632
      esac
7633
      ;;
7634
 
7635
    newsos6)
7636
      lt_prog_compiler_pic='-KPIC'
7637
      lt_prog_compiler_static='-Bstatic'
7638
      ;;
7639
 
7640
    *nto* | *qnx*)
7641
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7642
      # it will coredump.
7643
      lt_prog_compiler_pic='-fPIC -shared'
7644
      ;;
7645
 
7646
    osf3* | osf4* | osf5*)
7647
      lt_prog_compiler_wl='-Wl,'
7648
      # All OSF/1 code is PIC.
7649
      lt_prog_compiler_static='-non_shared'
7650
      ;;
7651
 
7652
    rdos*)
7653
      lt_prog_compiler_static='-non_shared'
7654
      ;;
7655
 
7656
    solaris*)
7657
      lt_prog_compiler_pic='-KPIC'
7658
      lt_prog_compiler_static='-Bstatic'
7659
      case $cc_basename in
7660
      f77* | f90* | f95*)
7661
        lt_prog_compiler_wl='-Qoption ld ';;
7662
      *)
7663
        lt_prog_compiler_wl='-Wl,';;
7664
      esac
7665
      ;;
7666
 
7667
    sunos4*)
7668
      lt_prog_compiler_wl='-Qoption ld '
7669
      lt_prog_compiler_pic='-PIC'
7670
      lt_prog_compiler_static='-Bstatic'
7671
      ;;
7672
 
7673
    sysv4 | sysv4.2uw2* | sysv4.3*)
7674
      lt_prog_compiler_wl='-Wl,'
7675
      lt_prog_compiler_pic='-KPIC'
7676
      lt_prog_compiler_static='-Bstatic'
7677
      ;;
7678
 
7679
    sysv4*MP*)
7680
      if test -d /usr/nec ;then
7681
        lt_prog_compiler_pic='-Kconform_pic'
7682
        lt_prog_compiler_static='-Bstatic'
7683
      fi
7684
      ;;
7685
 
7686
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7687
      lt_prog_compiler_wl='-Wl,'
7688
      lt_prog_compiler_pic='-KPIC'
7689
      lt_prog_compiler_static='-Bstatic'
7690
      ;;
7691
 
7692
    unicos*)
7693
      lt_prog_compiler_wl='-Wl,'
7694
      lt_prog_compiler_can_build_shared=no
7695
      ;;
7696
 
7697
    uts4*)
7698
      lt_prog_compiler_pic='-pic'
7699
      lt_prog_compiler_static='-Bstatic'
7700
      ;;
7701
 
7702
    *)
7703
      lt_prog_compiler_can_build_shared=no
7704
      ;;
7705
    esac
7706
  fi
7707
 
7708
case $host_os in
7709
  # For platforms which do not support PIC, -DPIC is meaningless:
7710
  *djgpp*)
7711
    lt_prog_compiler_pic=
7712
    ;;
7713
  *)
7714
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7715
    ;;
7716
esac
7717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7718
$as_echo "$lt_prog_compiler_pic" >&6; }
7719
 
7720
 
7721
 
7722
 
7723
 
7724
 
7725
#
7726
# Check to make sure the PIC flag actually works.
7727
#
7728
if test -n "$lt_prog_compiler_pic"; then
7729
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7730
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7731
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7732
  $as_echo_n "(cached) " >&6
7733
else
7734
  lt_cv_prog_compiler_pic_works=no
7735
   ac_outfile=conftest.$ac_objext
7736
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7737
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7738
   # Insert the option either (1) after the last *FLAGS variable, or
7739
   # (2) before a word containing "conftest.", or (3) at the end.
7740
   # Note that $ac_compile itself does not contain backslashes and begins
7741
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7742
   # The option is referenced via a variable to avoid confusing sed.
7743
   lt_compile=`echo "$ac_compile" | $SED \
7744
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7745
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7746
   -e 's:$: $lt_compiler_flag:'`
7747
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7748
   (eval "$lt_compile" 2>conftest.err)
7749
   ac_status=$?
7750
   cat conftest.err >&5
7751
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752
   if (exit $ac_status) && test -s "$ac_outfile"; then
7753
     # The compiler can only warn and ignore the option if not recognized
7754
     # So say no if there are warnings other than the usual output.
7755
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7756
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7757
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7758
       lt_cv_prog_compiler_pic_works=yes
7759
     fi
7760
   fi
7761
   $RM conftest*
7762
 
7763
fi
7764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7765
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7766
 
7767
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7768
    case $lt_prog_compiler_pic in
7769
     "" | " "*) ;;
7770
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7771
     esac
7772
else
7773
    lt_prog_compiler_pic=
7774
     lt_prog_compiler_can_build_shared=no
7775
fi
7776
 
7777
fi
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
#
7785
# Check to make sure the static flag actually works.
7786
#
7787
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7789
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7790
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7791
  $as_echo_n "(cached) " >&6
7792
else
7793
  lt_cv_prog_compiler_static_works=no
7794
   save_LDFLAGS="$LDFLAGS"
7795
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7796
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7797
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7798
     # The linker can only warn and ignore the option if not recognized
7799
     # So say no if there are warnings
7800
     if test -s conftest.err; then
7801
       # Append any errors to the config.log.
7802
       cat conftest.err 1>&5
7803
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7804
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7805
       if diff conftest.exp conftest.er2 >/dev/null; then
7806
         lt_cv_prog_compiler_static_works=yes
7807
       fi
7808
     else
7809
       lt_cv_prog_compiler_static_works=yes
7810
     fi
7811
   fi
7812
   $RM -r conftest*
7813
   LDFLAGS="$save_LDFLAGS"
7814
 
7815
fi
7816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7817
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7818
 
7819
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7820
    :
7821
else
7822
    lt_prog_compiler_static=
7823
fi
7824
 
7825
 
7826
 
7827
 
7828
 
7829
 
7830
 
7831
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7832
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7833
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7834
  $as_echo_n "(cached) " >&6
7835
else
7836
  lt_cv_prog_compiler_c_o=no
7837
   $RM -r conftest 2>/dev/null
7838
   mkdir conftest
7839
   cd conftest
7840
   mkdir out
7841
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7842
 
7843
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7844
   # Insert the option either (1) after the last *FLAGS variable, or
7845
   # (2) before a word containing "conftest.", or (3) at the end.
7846
   # Note that $ac_compile itself does not contain backslashes and begins
7847
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7848
   lt_compile=`echo "$ac_compile" | $SED \
7849
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851
   -e 's:$: $lt_compiler_flag:'`
7852
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7853
   (eval "$lt_compile" 2>out/conftest.err)
7854
   ac_status=$?
7855
   cat out/conftest.err >&5
7856
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7858
   then
7859
     # The compiler can only warn and ignore the option if not recognized
7860
     # So say no if there are warnings
7861
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7862
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7863
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7864
       lt_cv_prog_compiler_c_o=yes
7865
     fi
7866
   fi
7867
   chmod u+w . 2>&5
7868
   $RM conftest*
7869
   # SGI C++ compiler will create directory out/ii_files/ for
7870
   # template instantiation
7871
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7872
   $RM out/* && rmdir out
7873
   cd ..
7874
   $RM -r conftest
7875
   $RM conftest*
7876
 
7877
fi
7878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7879
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7880
 
7881
 
7882
 
7883
 
7884
 
7885
 
7886
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7887
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7888
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7889
  $as_echo_n "(cached) " >&6
7890
else
7891
  lt_cv_prog_compiler_c_o=no
7892
   $RM -r conftest 2>/dev/null
7893
   mkdir conftest
7894
   cd conftest
7895
   mkdir out
7896
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897
 
7898
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7899
   # Insert the option either (1) after the last *FLAGS variable, or
7900
   # (2) before a word containing "conftest.", or (3) at the end.
7901
   # Note that $ac_compile itself does not contain backslashes and begins
7902
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7903
   lt_compile=`echo "$ac_compile" | $SED \
7904
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906
   -e 's:$: $lt_compiler_flag:'`
7907
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7908
   (eval "$lt_compile" 2>out/conftest.err)
7909
   ac_status=$?
7910
   cat out/conftest.err >&5
7911
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7913
   then
7914
     # The compiler can only warn and ignore the option if not recognized
7915
     # So say no if there are warnings
7916
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7917
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7918
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7919
       lt_cv_prog_compiler_c_o=yes
7920
     fi
7921
   fi
7922
   chmod u+w . 2>&5
7923
   $RM conftest*
7924
   # SGI C++ compiler will create directory out/ii_files/ for
7925
   # template instantiation
7926
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7927
   $RM out/* && rmdir out
7928
   cd ..
7929
   $RM -r conftest
7930
   $RM conftest*
7931
 
7932
fi
7933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7934
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7935
 
7936
 
7937
 
7938
 
7939
hard_links="nottested"
7940
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7941
  # do not overwrite the value of need_locks provided by the user
7942
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7943
$as_echo_n "checking if we can lock with hard links... " >&6; }
7944
  hard_links=yes
7945
  $RM conftest*
7946
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7947
  touch conftest.a
7948
  ln conftest.a conftest.b 2>&5 || hard_links=no
7949
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7951
$as_echo "$hard_links" >&6; }
7952
  if test "$hard_links" = no; then
7953
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7954
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7955
    need_locks=warn
7956
  fi
7957
else
7958
  need_locks=no
7959
fi
7960
 
7961
 
7962
 
7963
 
7964
 
7965
 
7966
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7967
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7968
 
7969
  runpath_var=
7970
  allow_undefined_flag=
7971
  always_export_symbols=no
7972
  archive_cmds=
7973
  archive_expsym_cmds=
7974
  compiler_needs_object=no
7975
  enable_shared_with_static_runtimes=no
7976
  export_dynamic_flag_spec=
7977
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7978
  hardcode_automatic=no
7979
  hardcode_direct=no
7980
  hardcode_direct_absolute=no
7981
  hardcode_libdir_flag_spec=
7982
  hardcode_libdir_flag_spec_ld=
7983
  hardcode_libdir_separator=
7984
  hardcode_minus_L=no
7985
  hardcode_shlibpath_var=unsupported
7986
  inherit_rpath=no
7987
  link_all_deplibs=unknown
7988
  module_cmds=
7989
  module_expsym_cmds=
7990
  old_archive_from_new_cmds=
7991
  old_archive_from_expsyms_cmds=
7992
  thread_safe_flag_spec=
7993
  whole_archive_flag_spec=
7994
  # include_expsyms should be a list of space-separated symbols to be *always*
7995
  # included in the symbol list
7996
  include_expsyms=
7997
  # exclude_expsyms can be an extended regexp of symbols to exclude
7998
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7999
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8000
  # as well as any symbol that contains `d'.
8001
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8002
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8003
  # platforms (ab)use it in PIC code, but their linkers get confused if
8004
  # the symbol is explicitly referenced.  Since portable code cannot
8005
  # rely on this symbol name, it's probably fine to never include it in
8006
  # preloaded symbol tables.
8007
  # Exclude shared library initialization/finalization symbols.
8008
  extract_expsyms_cmds=
8009
 
8010
  case $host_os in
8011
  cygwin* | mingw* | pw32* | cegcc*)
8012
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8013
    # When not using gcc, we currently assume that we are using
8014
    # Microsoft Visual C++.
8015
    if test "$GCC" != yes; then
8016
      with_gnu_ld=no
8017
    fi
8018
    ;;
8019
  interix*)
8020
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8021
    with_gnu_ld=yes
8022
    ;;
8023
  openbsd*)
8024
    with_gnu_ld=no
8025
    ;;
8026
  esac
8027
 
8028
  ld_shlibs=yes
8029
 
8030
  # On some targets, GNU ld is compatible enough with the native linker
8031
  # that we're better off using the native interface for both.
8032
  lt_use_gnu_ld_interface=no
8033
  if test "$with_gnu_ld" = yes; then
8034
    case $host_os in
8035
      aix*)
8036
        # The AIX port of GNU ld has always aspired to compatibility
8037
        # with the native linker.  However, as the warning in the GNU ld
8038
        # block says, versions before 2.19.5* couldn't really create working
8039
        # shared libraries, regardless of the interface used.
8040
        case `$LD -v 2>&1` in
8041
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8042
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8043
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8044
          *)
8045
            lt_use_gnu_ld_interface=yes
8046
            ;;
8047
        esac
8048
        ;;
8049
      *)
8050
        lt_use_gnu_ld_interface=yes
8051
        ;;
8052
    esac
8053
  fi
8054
 
8055
  if test "$lt_use_gnu_ld_interface" = yes; then
8056
    # If archive_cmds runs LD, not CC, wlarc should be empty
8057
    wlarc='${wl}'
8058
 
8059
    # Set some defaults for GNU ld with shared library support. These
8060
    # are reset later if shared libraries are not supported. Putting them
8061
    # here allows them to be overridden if necessary.
8062
    runpath_var=LD_RUN_PATH
8063
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8064
    export_dynamic_flag_spec='${wl}--export-dynamic'
8065
    # ancient GNU ld didn't support --whole-archive et. al.
8066
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8067
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8068
    else
8069
      whole_archive_flag_spec=
8070
    fi
8071
    supports_anon_versioning=no
8072
    case `$LD -v 2>&1` in
8073
      *GNU\ gold*) supports_anon_versioning=yes ;;
8074
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8075
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8076
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8077
      *\ 2.11.*) ;; # other 2.11 versions
8078
      *) supports_anon_versioning=yes ;;
8079
    esac
8080
 
8081
    # See if GNU ld supports shared libraries.
8082
    case $host_os in
8083
    aix[3-9]*)
8084
      # On AIX/PPC, the GNU linker is very broken
8085
      if test "$host_cpu" != ia64; then
8086
        ld_shlibs=no
8087
        cat <<_LT_EOF 1>&2
8088
 
8089
*** Warning: the GNU linker, at least up to release 2.19, is reported
8090
*** to be unable to reliably create shared libraries on AIX.
8091
*** Therefore, libtool is disabling shared libraries support.  If you
8092
*** really care for shared libraries, you may want to install binutils
8093
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8094
*** You will then need to restart the configuration process.
8095
 
8096
_LT_EOF
8097
      fi
8098
      ;;
8099
 
8100
    amigaos*)
8101
      case $host_cpu in
8102
      powerpc)
8103
            # see comment about AmigaOS4 .so support
8104
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105
            archive_expsym_cmds=''
8106
        ;;
8107
      m68k)
8108
            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)'
8109
            hardcode_libdir_flag_spec='-L$libdir'
8110
            hardcode_minus_L=yes
8111
        ;;
8112
      esac
8113
      ;;
8114
 
8115
    beos*)
8116
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8117
        allow_undefined_flag=unsupported
8118
        # Joseph Beckenbach  says some releases of gcc
8119
        # support --undefined.  This deserves some investigation.  FIXME
8120
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121
      else
8122
        ld_shlibs=no
8123
      fi
8124
      ;;
8125
 
8126
    cygwin* | mingw* | pw32* | cegcc*)
8127
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8128
      # as there is no search path for DLLs.
8129
      hardcode_libdir_flag_spec='-L$libdir'
8130
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8131
      allow_undefined_flag=unsupported
8132
      always_export_symbols=no
8133
      enable_shared_with_static_runtimes=yes
8134
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8135
 
8136
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8137
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8138
        # If the export-symbols file already is a .def file (1st line
8139
        # is EXPORTS), use it as is; otherwise, prepend...
8140
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8141
          cp $export_symbols $output_objdir/$soname.def;
8142
        else
8143
          echo EXPORTS > $output_objdir/$soname.def;
8144
          cat $export_symbols >> $output_objdir/$soname.def;
8145
        fi~
8146
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8147
      else
8148
        ld_shlibs=no
8149
      fi
8150
      ;;
8151
 
8152
    haiku*)
8153
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154
      link_all_deplibs=yes
8155
      ;;
8156
 
8157
    interix[3-9]*)
8158
      hardcode_direct=no
8159
      hardcode_shlibpath_var=no
8160
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8161
      export_dynamic_flag_spec='${wl}-E'
8162
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8163
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8164
      # default) and relocated if they conflict, which is a slow very memory
8165
      # consuming and fragmenting process.  To avoid this, we pick a random,
8166
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8167
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8168
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8169
      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'
8170
      ;;
8171
 
8172
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8173
      tmp_diet=no
8174
      if test "$host_os" = linux-dietlibc; then
8175
        case $cc_basename in
8176
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8177
        esac
8178
      fi
8179
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8180
         && test "$tmp_diet" = no
8181
      then
8182
        tmp_addflag=
8183
        tmp_sharedflag='-shared'
8184
        case $cc_basename,$host_cpu in
8185
        pgcc*)                          # Portland Group C compiler
8186
          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'
8187
          tmp_addflag=' $pic_flag'
8188
          ;;
8189
        pgf77* | pgf90* | pgf95* | pgfortran*)
8190
                                        # Portland Group f77 and f90 compilers
8191
          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'
8192
          tmp_addflag=' $pic_flag -Mnomain' ;;
8193
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8194
          tmp_addflag=' -i_dynamic' ;;
8195
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8196
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8197
        ifc* | ifort*)                  # Intel Fortran compiler
8198
          tmp_addflag=' -nofor_main' ;;
8199
        lf95*)                          # Lahey Fortran 8.1
8200
          whole_archive_flag_spec=
8201
          tmp_sharedflag='--shared' ;;
8202
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8203
          tmp_sharedflag='-qmkshrobj'
8204
          tmp_addflag= ;;
8205
        nvcc*)  # Cuda Compiler Driver 2.2
8206
          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'
8207
          compiler_needs_object=yes
8208
          ;;
8209
        esac
8210
        case `$CC -V 2>&1 | sed 5q` in
8211
        *Sun\ C*)                       # Sun C 5.9
8212
          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'
8213
          compiler_needs_object=yes
8214
          tmp_sharedflag='-G' ;;
8215
        *Sun\ F*)                       # Sun Fortran 8.3
8216
          tmp_sharedflag='-G' ;;
8217
        esac
8218
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219
 
8220
        if test "x$supports_anon_versioning" = xyes; then
8221
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8222
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8223
            echo "local: *; };" >> $output_objdir/$libname.ver~
8224
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8225
        fi
8226
 
8227
        case $cc_basename in
8228
        xlf* | bgf* | bgxlf* | mpixlf*)
8229
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8230
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8231
          hardcode_libdir_flag_spec=
8232
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8233
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8234
          if test "x$supports_anon_versioning" = xyes; then
8235
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8236
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8237
              echo "local: *; };" >> $output_objdir/$libname.ver~
8238
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8239
          fi
8240
          ;;
8241
        esac
8242
      else
8243
        ld_shlibs=no
8244
      fi
8245
      ;;
8246
 
8247
    netbsd*)
8248
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8249
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8250
        wlarc=
8251
      else
8252
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8254
      fi
8255
      ;;
8256
 
8257
    solaris*)
8258
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8259
        ld_shlibs=no
8260
        cat <<_LT_EOF 1>&2
8261
 
8262
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8263
*** create shared libraries on Solaris systems.  Therefore, libtool
8264
*** is disabling shared libraries support.  We urge you to upgrade GNU
8265
*** binutils to release 2.9.1 or newer.  Another option is to modify
8266
*** your PATH or compiler configuration so that the native linker is
8267
*** used, and then restart.
8268
 
8269
_LT_EOF
8270
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8271
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273
      else
8274
        ld_shlibs=no
8275
      fi
8276
      ;;
8277
 
8278
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8279
      case `$LD -v 2>&1` in
8280
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8281
        ld_shlibs=no
8282
        cat <<_LT_EOF 1>&2
8283
 
8284
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8285
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8286
*** is disabling shared libraries support.  We urge you to upgrade GNU
8287
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8288
*** your PATH or compiler configuration so that the native linker is
8289
*** used, and then restart.
8290
 
8291
_LT_EOF
8292
        ;;
8293
        *)
8294
          # For security reasons, it is highly recommended that you always
8295
          # use absolute paths for naming shared libraries, and exclude the
8296
          # DT_RUNPATH tag from executables and libraries.  But doing so
8297
          # requires that you compile everything twice, which is a pain.
8298
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8299
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302
          else
8303
            ld_shlibs=no
8304
          fi
8305
        ;;
8306
      esac
8307
      ;;
8308
 
8309
    sunos4*)
8310
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311
      wlarc=
8312
      hardcode_direct=yes
8313
      hardcode_shlibpath_var=no
8314
      ;;
8315
 
8316
    *)
8317
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8318
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320
      else
8321
        ld_shlibs=no
8322
      fi
8323
      ;;
8324
    esac
8325
 
8326
    if test "$ld_shlibs" = no; then
8327
      runpath_var=
8328
      hardcode_libdir_flag_spec=
8329
      export_dynamic_flag_spec=
8330
      whole_archive_flag_spec=
8331
    fi
8332
  else
8333
    # PORTME fill in a description of your system's linker (not GNU ld)
8334
    case $host_os in
8335
    aix3*)
8336
      allow_undefined_flag=unsupported
8337
      always_export_symbols=yes
8338
      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'
8339
      # Note: this linker hardcodes the directories in LIBPATH if there
8340
      # are no directories specified by -L.
8341
      hardcode_minus_L=yes
8342
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8343
        # Neither direct hardcoding nor static linking is supported with a
8344
        # broken collect2.
8345
        hardcode_direct=unsupported
8346
      fi
8347
      ;;
8348
 
8349
    aix[4-9]*)
8350
      if test "$host_cpu" = ia64; then
8351
        # On IA64, the linker does run time linking by default, so we don't
8352
        # have to do anything special.
8353
        aix_use_runtimelinking=no
8354
        exp_sym_flag='-Bexport'
8355
        no_entry_flag=""
8356
      else
8357
        # If we're using GNU nm, then we don't want the "-C" option.
8358
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8359
        # Also, AIX nm treats weak defined symbols like other global
8360
        # defined symbols, whereas GNU nm marks them as "W".
8361
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8362
          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'
8363
        else
8364
          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'
8365
        fi
8366
        aix_use_runtimelinking=no
8367
 
8368
        # Test if we are trying to use run time linking or normal
8369
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8370
        # need to do runtime linking.
8371
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8372
          for ld_flag in $LDFLAGS; do
8373
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8374
            aix_use_runtimelinking=yes
8375
            break
8376
          fi
8377
          done
8378
          ;;
8379
        esac
8380
 
8381
        exp_sym_flag='-bexport'
8382
        no_entry_flag='-bnoentry'
8383
      fi
8384
 
8385
      # When large executables or shared objects are built, AIX ld can
8386
      # have problems creating the table of contents.  If linking a library
8387
      # or program results in "error TOC overflow" add -mminimal-toc to
8388
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8389
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8390
 
8391
      archive_cmds=''
8392
      hardcode_direct=yes
8393
      hardcode_direct_absolute=yes
8394
      hardcode_libdir_separator=':'
8395
      link_all_deplibs=yes
8396
      file_list_spec='${wl}-f,'
8397
 
8398
      if test "$GCC" = yes; then
8399
        case $host_os in aix4.[012]|aix4.[012].*)
8400
        # We only want to do this on AIX 4.2 and lower, the check
8401
        # below for broken collect2 doesn't work under 4.3+
8402
          collect2name=`${CC} -print-prog-name=collect2`
8403
          if test -f "$collect2name" &&
8404
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8405
          then
8406
          # We have reworked collect2
8407
          :
8408
          else
8409
          # We have old collect2
8410
          hardcode_direct=unsupported
8411
          # It fails to find uninstalled libraries when the uninstalled
8412
          # path is not listed in the libpath.  Setting hardcode_minus_L
8413
          # to unsupported forces relinking
8414
          hardcode_minus_L=yes
8415
          hardcode_libdir_flag_spec='-L$libdir'
8416
          hardcode_libdir_separator=
8417
          fi
8418
          ;;
8419
        esac
8420
        shared_flag='-shared'
8421
        if test "$aix_use_runtimelinking" = yes; then
8422
          shared_flag="$shared_flag "'${wl}-G'
8423
        fi
8424
      else
8425
        # not using gcc
8426
        if test "$host_cpu" = ia64; then
8427
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8428
        # chokes on -Wl,-G. The following line is correct:
8429
          shared_flag='-G'
8430
        else
8431
          if test "$aix_use_runtimelinking" = yes; then
8432
            shared_flag='${wl}-G'
8433
          else
8434
            shared_flag='${wl}-bM:SRE'
8435
          fi
8436
        fi
8437
      fi
8438
 
8439
      export_dynamic_flag_spec='${wl}-bexpall'
8440
      # It seems that -bexpall does not export symbols beginning with
8441
      # underscore (_), so it is better to generate a list of symbols to export.
8442
      always_export_symbols=yes
8443
      if test "$aix_use_runtimelinking" = yes; then
8444
        # Warning - without using the other runtime loading flags (-brtl),
8445
        # -berok will link without error, but may produce a broken library.
8446
        allow_undefined_flag='-berok'
8447
        # Determine the default libpath from the value encoded in an
8448
        # empty executable.
8449
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450
/* end confdefs.h.  */
8451
 
8452
int
8453
main ()
8454
{
8455
 
8456
  ;
8457
  return 0;
8458
}
8459
_ACEOF
8460
if ac_fn_c_try_link "$LINENO"; then :
8461
 
8462
lt_aix_libpath_sed='
8463
    /Import File Strings/,/^$/ {
8464
        /^0/ {
8465
            s/^0  *\(.*\)$/\1/
8466
            p
8467
        }
8468
    }'
8469
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8470
# Check for a 64-bit object if we didn't find anything.
8471
if test -z "$aix_libpath"; then
8472
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8473
fi
8474
fi
8475
rm -f core conftest.err conftest.$ac_objext \
8476
    conftest$ac_exeext conftest.$ac_ext
8477
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8478
 
8479
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480
        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"
8481
      else
8482
        if test "$host_cpu" = ia64; then
8483
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484
          allow_undefined_flag="-z nodefs"
8485
          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"
8486
        else
8487
         # Determine the default libpath from the value encoded in an
8488
         # empty executable.
8489
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490
/* end confdefs.h.  */
8491
 
8492
int
8493
main ()
8494
{
8495
 
8496
  ;
8497
  return 0;
8498
}
8499
_ACEOF
8500
if ac_fn_c_try_link "$LINENO"; then :
8501
 
8502
lt_aix_libpath_sed='
8503
    /Import File Strings/,/^$/ {
8504
        /^0/ {
8505
            s/^0  *\(.*\)$/\1/
8506
            p
8507
        }
8508
    }'
8509
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510
# Check for a 64-bit object if we didn't find anything.
8511
if test -z "$aix_libpath"; then
8512
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513
fi
8514
fi
8515
rm -f core conftest.err conftest.$ac_objext \
8516
    conftest$ac_exeext conftest.$ac_ext
8517
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518
 
8519
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520
          # Warning - without using the other run time loading flags,
8521
          # -berok will link without error, but may produce a broken library.
8522
          no_undefined_flag=' ${wl}-bernotok'
8523
          allow_undefined_flag=' ${wl}-berok'
8524
          if test "$with_gnu_ld" = yes; then
8525
            # We only use this code for GNU lds that support --whole-archive.
8526
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8527
          else
8528
            # Exported symbols can be pulled into shared objects from archives
8529
            whole_archive_flag_spec='$convenience'
8530
          fi
8531
          archive_cmds_need_lc=yes
8532
          # This is similar to how AIX traditionally builds its shared libraries.
8533
          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'
8534
        fi
8535
      fi
8536
      ;;
8537
 
8538
    amigaos*)
8539
      case $host_cpu in
8540
      powerpc)
8541
            # see comment about AmigaOS4 .so support
8542
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543
            archive_expsym_cmds=''
8544
        ;;
8545
      m68k)
8546
            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)'
8547
            hardcode_libdir_flag_spec='-L$libdir'
8548
            hardcode_minus_L=yes
8549
        ;;
8550
      esac
8551
      ;;
8552
 
8553
    bsdi[45]*)
8554
      export_dynamic_flag_spec=-rdynamic
8555
      ;;
8556
 
8557
    cygwin* | mingw* | pw32* | cegcc*)
8558
      # When not using gcc, we currently assume that we are using
8559
      # Microsoft Visual C++.
8560
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8561
      # no search path for DLLs.
8562
      hardcode_libdir_flag_spec=' '
8563
      allow_undefined_flag=unsupported
8564
      # Tell ltmain to make .lib files, not .a files.
8565
      libext=lib
8566
      # Tell ltmain to make .dll files, not .so files.
8567
      shrext_cmds=".dll"
8568
      # FIXME: Setting linknames here is a bad hack.
8569
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8570
      # The linker will automatically build a .lib file if we build a DLL.
8571
      old_archive_from_new_cmds='true'
8572
      # FIXME: Should let the user specify the lib program.
8573
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8574
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8575
      enable_shared_with_static_runtimes=yes
8576
      ;;
8577
 
8578
    darwin* | rhapsody*)
8579
 
8580
 
8581
  archive_cmds_need_lc=no
8582
  hardcode_direct=no
8583
  hardcode_automatic=yes
8584
  hardcode_shlibpath_var=unsupported
8585
  if test "$lt_cv_ld_force_load" = "yes"; then
8586
    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\"`'
8587
  else
8588
    whole_archive_flag_spec=''
8589
  fi
8590
  link_all_deplibs=yes
8591
  allow_undefined_flag="$_lt_dar_allow_undefined"
8592
  case $cc_basename in
8593
     ifort*) _lt_dar_can_shared=yes ;;
8594
     *) _lt_dar_can_shared=$GCC ;;
8595
  esac
8596
  if test "$_lt_dar_can_shared" = "yes"; then
8597
    output_verbose_link_cmd=func_echo_all
8598
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8599
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8600
    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}"
8601
    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}"
8602
 
8603
  else
8604
  ld_shlibs=no
8605
  fi
8606
 
8607
      ;;
8608
 
8609
    dgux*)
8610
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611
      hardcode_libdir_flag_spec='-L$libdir'
8612
      hardcode_shlibpath_var=no
8613
      ;;
8614
 
8615
    freebsd1*)
8616
      ld_shlibs=no
8617
      ;;
8618
 
8619
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8621
    # does not break anything, and helps significantly (at the cost of a little
8622
    # extra space).
8623
    freebsd2.2*)
8624
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625
      hardcode_libdir_flag_spec='-R$libdir'
8626
      hardcode_direct=yes
8627
      hardcode_shlibpath_var=no
8628
      ;;
8629
 
8630
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631
    freebsd2*)
8632
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633
      hardcode_direct=yes
8634
      hardcode_minus_L=yes
8635
      hardcode_shlibpath_var=no
8636
      ;;
8637
 
8638
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639
    freebsd* | dragonfly*)
8640
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641
      hardcode_libdir_flag_spec='-R$libdir'
8642
      hardcode_direct=yes
8643
      hardcode_shlibpath_var=no
8644
      ;;
8645
 
8646
    hpux9*)
8647
      if test "$GCC" = yes; then
8648
        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'
8649
      else
8650
        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'
8651
      fi
8652
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653
      hardcode_libdir_separator=:
8654
      hardcode_direct=yes
8655
 
8656
      # hardcode_minus_L: Not really in the search PATH,
8657
      # but as the default location of the library.
8658
      hardcode_minus_L=yes
8659
      export_dynamic_flag_spec='${wl}-E'
8660
      ;;
8661
 
8662
    hpux10*)
8663
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8664
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8665
      else
8666
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8667
      fi
8668
      if test "$with_gnu_ld" = no; then
8669
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8670
        hardcode_libdir_flag_spec_ld='+b $libdir'
8671
        hardcode_libdir_separator=:
8672
        hardcode_direct=yes
8673
        hardcode_direct_absolute=yes
8674
        export_dynamic_flag_spec='${wl}-E'
8675
        # hardcode_minus_L: Not really in the search PATH,
8676
        # but as the default location of the library.
8677
        hardcode_minus_L=yes
8678
      fi
8679
      ;;
8680
 
8681
    hpux11*)
8682
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8683
        case $host_cpu in
8684
        hppa*64*)
8685
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686
          ;;
8687
        ia64*)
8688
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8689
          ;;
8690
        *)
8691
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8692
          ;;
8693
        esac
8694
      else
8695
        case $host_cpu in
8696
        hppa*64*)
8697
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698
          ;;
8699
        ia64*)
8700
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8701
          ;;
8702
        *)
8703
 
8704
          # Older versions of the 11.00 compiler do not understand -b yet
8705
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8706
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8707
$as_echo_n "checking if $CC understands -b... " >&6; }
8708
if test "${lt_cv_prog_compiler__b+set}" = set; then :
8709
  $as_echo_n "(cached) " >&6
8710
else
8711
  lt_cv_prog_compiler__b=no
8712
   save_LDFLAGS="$LDFLAGS"
8713
   LDFLAGS="$LDFLAGS -b"
8714
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8715
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8716
     # The linker can only warn and ignore the option if not recognized
8717
     # So say no if there are warnings
8718
     if test -s conftest.err; then
8719
       # Append any errors to the config.log.
8720
       cat conftest.err 1>&5
8721
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8722
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8723
       if diff conftest.exp conftest.er2 >/dev/null; then
8724
         lt_cv_prog_compiler__b=yes
8725
       fi
8726
     else
8727
       lt_cv_prog_compiler__b=yes
8728
     fi
8729
   fi
8730
   $RM -r conftest*
8731
   LDFLAGS="$save_LDFLAGS"
8732
 
8733
fi
8734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8735
$as_echo "$lt_cv_prog_compiler__b" >&6; }
8736
 
8737
if test x"$lt_cv_prog_compiler__b" = xyes; then
8738
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739
else
8740
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8741
fi
8742
 
8743
          ;;
8744
        esac
8745
      fi
8746
      if test "$with_gnu_ld" = no; then
8747
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8748
        hardcode_libdir_separator=:
8749
 
8750
        case $host_cpu in
8751
        hppa*64*|ia64*)
8752
          hardcode_direct=no
8753
          hardcode_shlibpath_var=no
8754
          ;;
8755
        *)
8756
          hardcode_direct=yes
8757
          hardcode_direct_absolute=yes
8758
          export_dynamic_flag_spec='${wl}-E'
8759
 
8760
          # hardcode_minus_L: Not really in the search PATH,
8761
          # but as the default location of the library.
8762
          hardcode_minus_L=yes
8763
          ;;
8764
        esac
8765
      fi
8766
      ;;
8767
 
8768
    irix5* | irix6* | nonstopux*)
8769
      if test "$GCC" = yes; then
8770
        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'
8771
        # Try to use the -exported_symbol ld option, if it does not
8772
        # work, assume that -exports_file does not work either and
8773
        # implicitly export all symbols.
8774
        save_LDFLAGS="$LDFLAGS"
8775
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8776
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777
/* end confdefs.h.  */
8778
int foo(void) {}
8779
_ACEOF
8780
if ac_fn_c_try_link "$LINENO"; then :
8781
  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'
8782
 
8783
fi
8784
rm -f core conftest.err conftest.$ac_objext \
8785
    conftest$ac_exeext conftest.$ac_ext
8786
        LDFLAGS="$save_LDFLAGS"
8787
      else
8788
        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'
8789
        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'
8790
      fi
8791
      archive_cmds_need_lc='no'
8792
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793
      hardcode_libdir_separator=:
8794
      inherit_rpath=yes
8795
      link_all_deplibs=yes
8796
      ;;
8797
 
8798
    netbsd*)
8799
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8800
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8801
      else
8802
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8803
      fi
8804
      hardcode_libdir_flag_spec='-R$libdir'
8805
      hardcode_direct=yes
8806
      hardcode_shlibpath_var=no
8807
      ;;
8808
 
8809
    newsos6)
8810
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811
      hardcode_direct=yes
8812
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8813
      hardcode_libdir_separator=:
8814
      hardcode_shlibpath_var=no
8815
      ;;
8816
 
8817
    *nto* | *qnx*)
8818
      ;;
8819
 
8820
    openbsd*)
8821
      if test -f /usr/libexec/ld.so; then
8822
        hardcode_direct=yes
8823
        hardcode_shlibpath_var=no
8824
        hardcode_direct_absolute=yes
8825
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8826
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8827
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8828
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8829
          export_dynamic_flag_spec='${wl}-E'
8830
        else
8831
          case $host_os in
8832
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8833
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8834
             hardcode_libdir_flag_spec='-R$libdir'
8835
             ;;
8836
           *)
8837
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8838
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8839
             ;;
8840
          esac
8841
        fi
8842
      else
8843
        ld_shlibs=no
8844
      fi
8845
      ;;
8846
 
8847
    os2*)
8848
      hardcode_libdir_flag_spec='-L$libdir'
8849
      hardcode_minus_L=yes
8850
      allow_undefined_flag=unsupported
8851
      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'
8852
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8853
      ;;
8854
 
8855
    osf3*)
8856
      if test "$GCC" = yes; then
8857
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858
        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'
8859
      else
8860
        allow_undefined_flag=' -expect_unresolved \*'
8861
        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'
8862
      fi
8863
      archive_cmds_need_lc='no'
8864
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865
      hardcode_libdir_separator=:
8866
      ;;
8867
 
8868
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8869
      if test "$GCC" = yes; then
8870
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8871
        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'
8872
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873
      else
8874
        allow_undefined_flag=' -expect_unresolved \*'
8875
        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'
8876
        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~
8877
        $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'
8878
 
8879
        # Both c and cxx compiler support -rpath directly
8880
        hardcode_libdir_flag_spec='-rpath $libdir'
8881
      fi
8882
      archive_cmds_need_lc='no'
8883
      hardcode_libdir_separator=:
8884
      ;;
8885
 
8886
    solaris*)
8887
      no_undefined_flag=' -z defs'
8888
      if test "$GCC" = yes; then
8889
        wlarc='${wl}'
8890
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8893
      else
8894
        case `$CC -V 2>&1` in
8895
        *"Compilers 5.0"*)
8896
          wlarc=''
8897
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8899
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8900
          ;;
8901
        *)
8902
          wlarc='${wl}'
8903
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8904
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8905
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8906
          ;;
8907
        esac
8908
      fi
8909
      hardcode_libdir_flag_spec='-R$libdir'
8910
      hardcode_shlibpath_var=no
8911
      case $host_os in
8912
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8913
      *)
8914
        # The compiler driver will combine and reorder linker options,
8915
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8916
        # but is careful enough not to reorder.
8917
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8918
        if test "$GCC" = yes; then
8919
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8920
        else
8921
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8922
        fi
8923
        ;;
8924
      esac
8925
      link_all_deplibs=yes
8926
      ;;
8927
 
8928
    sunos4*)
8929
      if test "x$host_vendor" = xsequent; then
8930
        # Use $CC to link under sequent, because it throws in some extra .o
8931
        # files that make .init and .fini sections work.
8932
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8933
      else
8934
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8935
      fi
8936
      hardcode_libdir_flag_spec='-L$libdir'
8937
      hardcode_direct=yes
8938
      hardcode_minus_L=yes
8939
      hardcode_shlibpath_var=no
8940
      ;;
8941
 
8942
    sysv4)
8943
      case $host_vendor in
8944
        sni)
8945
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946
          hardcode_direct=yes # is this really true???
8947
        ;;
8948
        siemens)
8949
          ## LD is ld it makes a PLAMLIB
8950
          ## CC just makes a GrossModule.
8951
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8952
          reload_cmds='$CC -r -o $output$reload_objs'
8953
          hardcode_direct=no
8954
        ;;
8955
        motorola)
8956
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8958
        ;;
8959
      esac
8960
      runpath_var='LD_RUN_PATH'
8961
      hardcode_shlibpath_var=no
8962
      ;;
8963
 
8964
    sysv4.3*)
8965
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966
      hardcode_shlibpath_var=no
8967
      export_dynamic_flag_spec='-Bexport'
8968
      ;;
8969
 
8970
    sysv4*MP*)
8971
      if test -d /usr/nec; then
8972
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973
        hardcode_shlibpath_var=no
8974
        runpath_var=LD_RUN_PATH
8975
        hardcode_runpath_var=yes
8976
        ld_shlibs=yes
8977
      fi
8978
      ;;
8979
 
8980
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8981
      no_undefined_flag='${wl}-z,text'
8982
      archive_cmds_need_lc=no
8983
      hardcode_shlibpath_var=no
8984
      runpath_var='LD_RUN_PATH'
8985
 
8986
      if test "$GCC" = yes; then
8987
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8988
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989
      else
8990
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992
      fi
8993
      ;;
8994
 
8995
    sysv5* | sco3.2v5* | sco5v6*)
8996
      # Note: We can NOT use -z defs as we might desire, because we do not
8997
      # link with -lc, and that would cause any symbols used from libc to
8998
      # always be unresolved, which means just about no library would
8999
      # ever link correctly.  If we're not using GNU ld we use -z text
9000
      # though, which does catch some bad symbols but isn't as heavy-handed
9001
      # as -z defs.
9002
      no_undefined_flag='${wl}-z,text'
9003
      allow_undefined_flag='${wl}-z,nodefs'
9004
      archive_cmds_need_lc=no
9005
      hardcode_shlibpath_var=no
9006
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9007
      hardcode_libdir_separator=':'
9008
      link_all_deplibs=yes
9009
      export_dynamic_flag_spec='${wl}-Bexport'
9010
      runpath_var='LD_RUN_PATH'
9011
 
9012
      if test "$GCC" = yes; then
9013
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015
      else
9016
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018
      fi
9019
      ;;
9020
 
9021
    uts4*)
9022
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023
      hardcode_libdir_flag_spec='-L$libdir'
9024
      hardcode_shlibpath_var=no
9025
      ;;
9026
 
9027
    *)
9028
      ld_shlibs=no
9029
      ;;
9030
    esac
9031
 
9032
    if test x$host_vendor = xsni; then
9033
      case $host in
9034
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9035
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9036
        ;;
9037
      esac
9038
    fi
9039
  fi
9040
 
9041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9042
$as_echo "$ld_shlibs" >&6; }
9043
test "$ld_shlibs" = no && can_build_shared=no
9044
 
9045
with_gnu_ld=$with_gnu_ld
9046
 
9047
 
9048
 
9049
 
9050
 
9051
 
9052
 
9053
 
9054
 
9055
 
9056
 
9057
 
9058
 
9059
 
9060
 
9061
#
9062
# Do we need to explicitly link libc?
9063
#
9064
case "x$archive_cmds_need_lc" in
9065
x|xyes)
9066
  # Assume -lc should be added
9067
  archive_cmds_need_lc=yes
9068
 
9069
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9070
    case $archive_cmds in
9071
    *'~'*)
9072
      # FIXME: we may have to deal with multi-command sequences.
9073
      ;;
9074
    '$CC '*)
9075
      # Test whether the compiler implicitly links with -lc since on some
9076
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9077
      # to ld, don't add -lc before -lgcc.
9078
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9079
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9080
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9081
  $as_echo_n "(cached) " >&6
9082
else
9083
  $RM conftest*
9084
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9085
 
9086
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9087
  (eval $ac_compile) 2>&5
9088
  ac_status=$?
9089
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9090
  test $ac_status = 0; } 2>conftest.err; then
9091
          soname=conftest
9092
          lib=conftest
9093
          libobjs=conftest.$ac_objext
9094
          deplibs=
9095
          wl=$lt_prog_compiler_wl
9096
          pic_flag=$lt_prog_compiler_pic
9097
          compiler_flags=-v
9098
          linker_flags=-v
9099
          verstring=
9100
          output_objdir=.
9101
          libname=conftest
9102
          lt_save_allow_undefined_flag=$allow_undefined_flag
9103
          allow_undefined_flag=
9104
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9105
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9106
  ac_status=$?
9107
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9108
  test $ac_status = 0; }
9109
          then
9110
            lt_cv_archive_cmds_need_lc=no
9111
          else
9112
            lt_cv_archive_cmds_need_lc=yes
9113
          fi
9114
          allow_undefined_flag=$lt_save_allow_undefined_flag
9115
        else
9116
          cat conftest.err 1>&5
9117
        fi
9118
        $RM conftest*
9119
 
9120
fi
9121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9122
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9123
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9124
      ;;
9125
    esac
9126
  fi
9127
  ;;
9128
esac
9129
 
9130
 
9131
 
9132
 
9133
 
9134
 
9135
 
9136
 
9137
 
9138
 
9139
 
9140
 
9141
 
9142
 
9143
 
9144
 
9145
 
9146
 
9147
 
9148
 
9149
 
9150
 
9151
 
9152
 
9153
 
9154
 
9155
 
9156
 
9157
 
9158
 
9159
 
9160
 
9161
 
9162
 
9163
 
9164
 
9165
 
9166
 
9167
 
9168
 
9169
 
9170
 
9171
 
9172
 
9173
 
9174
 
9175
 
9176
 
9177
 
9178
 
9179
 
9180
 
9181
 
9182
 
9183
 
9184
 
9185
 
9186
 
9187
 
9188
 
9189
 
9190
 
9191
 
9192
 
9193
 
9194
 
9195
 
9196
 
9197
 
9198
 
9199
 
9200
 
9201
 
9202
 
9203
 
9204
 
9205
 
9206
 
9207
 
9208
 
9209
 
9210
 
9211
 
9212
 
9213
 
9214
 
9215
 
9216
 
9217
 
9218
 
9219
 
9220
 
9221
 
9222
 
9223
 
9224
 
9225
 
9226
 
9227
 
9228
 
9229
 
9230
 
9231
 
9232
 
9233
 
9234
 
9235
 
9236
 
9237
 
9238
 
9239
 
9240
 
9241
 
9242
 
9243
 
9244
 
9245
 
9246
 
9247
 
9248
 
9249
 
9250
 
9251
 
9252
 
9253
 
9254
 
9255
 
9256
 
9257
 
9258
 
9259
 
9260
 
9261
 
9262
 
9263
 
9264
 
9265
 
9266
 
9267
 
9268
 
9269
 
9270
 
9271
 
9272
 
9273
 
9274
 
9275
 
9276
 
9277
 
9278
 
9279
 
9280
 
9281
 
9282
 
9283
 
9284
 
9285
 
9286
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9287
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9288
 
9289
if test "$GCC" = yes; then
9290
  case $host_os in
9291
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9292
    *) lt_awk_arg="/^libraries:/" ;;
9293
  esac
9294
  case $host_os in
9295
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9296
    *) lt_sed_strip_eq="s,=/,/,g" ;;
9297
  esac
9298
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9299
  case $lt_search_path_spec in
9300
  *\;*)
9301
    # if the path contains ";" then we assume it to be the separator
9302
    # otherwise default to the standard path separator (i.e. ":") - it is
9303
    # assumed that no part of a normal pathname contains ";" but that should
9304
    # okay in the real world where ";" in dirpaths is itself problematic.
9305
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9306
    ;;
9307
  *)
9308
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9309
    ;;
9310
  esac
9311
  # Ok, now we have the path, separated by spaces, we can step through it
9312
  # and add multilib dir if necessary.
9313
  lt_tmp_lt_search_path_spec=
9314
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9315
  for lt_sys_path in $lt_search_path_spec; do
9316
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9317
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9318
    else
9319
      test -d "$lt_sys_path" && \
9320
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9321
    fi
9322
  done
9323
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9324
BEGIN {RS=" "; FS="/|\n";} {
9325
  lt_foo="";
9326
  lt_count=0;
9327
  for (lt_i = NF; lt_i > 0; lt_i--) {
9328
    if ($lt_i != "" && $lt_i != ".") {
9329
      if ($lt_i == "..") {
9330
        lt_count++;
9331
      } else {
9332
        if (lt_count == 0) {
9333
          lt_foo="/" $lt_i lt_foo;
9334
        } else {
9335
          lt_count--;
9336
        }
9337
      }
9338
    }
9339
  }
9340
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9341
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9342
}'`
9343
  # AWK program above erroneously prepends '/' to C:/dos/paths
9344
  # for these hosts.
9345
  case $host_os in
9346
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9347
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9348
  esac
9349
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9350
else
9351
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9352
fi
9353
library_names_spec=
9354
libname_spec='lib$name'
9355
soname_spec=
9356
shrext_cmds=".so"
9357
postinstall_cmds=
9358
postuninstall_cmds=
9359
finish_cmds=
9360
finish_eval=
9361
shlibpath_var=
9362
shlibpath_overrides_runpath=unknown
9363
version_type=none
9364
dynamic_linker="$host_os ld.so"
9365
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9366
need_lib_prefix=unknown
9367
hardcode_into_libs=no
9368
 
9369
# when you set need_version to no, make sure it does not cause -set_version
9370
# flags to be left without arguments
9371
need_version=unknown
9372
 
9373
case $host_os in
9374
aix3*)
9375
  version_type=linux
9376
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9377
  shlibpath_var=LIBPATH
9378
 
9379
  # AIX 3 has no versioning support, so we append a major version to the name.
9380
  soname_spec='${libname}${release}${shared_ext}$major'
9381
  ;;
9382
 
9383
aix[4-9]*)
9384
  version_type=linux
9385
  need_lib_prefix=no
9386
  need_version=no
9387
  hardcode_into_libs=yes
9388
  if test "$host_cpu" = ia64; then
9389
    # AIX 5 supports IA64
9390
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9391
    shlibpath_var=LD_LIBRARY_PATH
9392
  else
9393
    # With GCC up to 2.95.x, collect2 would create an import file
9394
    # for dependence libraries.  The import file would start with
9395
    # the line `#! .'.  This would cause the generated library to
9396
    # depend on `.', always an invalid library.  This was fixed in
9397
    # development snapshots of GCC prior to 3.0.
9398
    case $host_os in
9399
      aix4 | aix4.[01] | aix4.[01].*)
9400
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9401
           echo ' yes '
9402
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9403
        :
9404
      else
9405
        can_build_shared=no
9406
      fi
9407
      ;;
9408
    esac
9409
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9410
    # soname into executable. Probably we can add versioning support to
9411
    # collect2, so additional links can be useful in future.
9412
    if test "$aix_use_runtimelinking" = yes; then
9413
      # If using run time linking (on AIX 4.2 or later) use lib.so
9414
      # instead of lib.a to let people know that these are not
9415
      # typical AIX shared libraries.
9416
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417
    else
9418
      # We preserve .a as extension for shared libraries through AIX4.2
9419
      # and later when we are not doing run time linking.
9420
      library_names_spec='${libname}${release}.a $libname.a'
9421
      soname_spec='${libname}${release}${shared_ext}$major'
9422
    fi
9423
    shlibpath_var=LIBPATH
9424
  fi
9425
  ;;
9426
 
9427
amigaos*)
9428
  case $host_cpu in
9429
  powerpc)
9430
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9431
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9432
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433
    ;;
9434
  m68k)
9435
    library_names_spec='$libname.ixlibrary $libname.a'
9436
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9437
    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'
9438
    ;;
9439
  esac
9440
  ;;
9441
 
9442
beos*)
9443
  library_names_spec='${libname}${shared_ext}'
9444
  dynamic_linker="$host_os ld.so"
9445
  shlibpath_var=LIBRARY_PATH
9446
  ;;
9447
 
9448
bsdi[45]*)
9449
  version_type=linux
9450
  need_version=no
9451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452
  soname_spec='${libname}${release}${shared_ext}$major'
9453
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9454
  shlibpath_var=LD_LIBRARY_PATH
9455
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9456
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9457
  # the default ld.so.conf also contains /usr/contrib/lib and
9458
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9459
  # libtool to hard-code these into programs
9460
  ;;
9461
 
9462
cygwin* | mingw* | pw32* | cegcc*)
9463
  version_type=windows
9464
  shrext_cmds=".dll"
9465
  need_version=no
9466
  need_lib_prefix=no
9467
 
9468
  case $GCC,$host_os in
9469
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9470
    library_names_spec='$libname.dll.a'
9471
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9472
    postinstall_cmds='base_file=`basename \${file}`~
9473
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9474
      dldir=$destdir/`dirname \$dlpath`~
9475
      test -d \$dldir || mkdir -p \$dldir~
9476
      $install_prog $dir/$dlname \$dldir/$dlname~
9477
      chmod a+x \$dldir/$dlname~
9478
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9479
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9480
      fi'
9481
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9482
      dlpath=$dir/\$dldll~
9483
       $RM \$dlpath'
9484
    shlibpath_overrides_runpath=yes
9485
 
9486
    case $host_os in
9487
    cygwin*)
9488
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9489
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9490
 
9491
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9492
      ;;
9493
    mingw* | cegcc*)
9494
      # MinGW DLLs use traditional 'lib' prefix
9495
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496
      ;;
9497
    pw32*)
9498
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9499
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9500
      ;;
9501
    esac
9502
    ;;
9503
 
9504
  *)
9505
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9506
    ;;
9507
  esac
9508
  dynamic_linker='Win32 ld.exe'
9509
  # FIXME: first we should search . and the directory the executable is in
9510
  shlibpath_var=PATH
9511
  ;;
9512
 
9513
darwin* | rhapsody*)
9514
  dynamic_linker="$host_os dyld"
9515
  version_type=darwin
9516
  need_lib_prefix=no
9517
  need_version=no
9518
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9519
  soname_spec='${libname}${release}${major}$shared_ext'
9520
  shlibpath_overrides_runpath=yes
9521
  shlibpath_var=DYLD_LIBRARY_PATH
9522
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9523
 
9524
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9525
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9526
  ;;
9527
 
9528
dgux*)
9529
  version_type=linux
9530
  need_lib_prefix=no
9531
  need_version=no
9532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9533
  soname_spec='${libname}${release}${shared_ext}$major'
9534
  shlibpath_var=LD_LIBRARY_PATH
9535
  ;;
9536
 
9537
freebsd1*)
9538
  dynamic_linker=no
9539
  ;;
9540
 
9541
freebsd* | dragonfly*)
9542
  # DragonFly does not have aout.  When/if they implement a new
9543
  # versioning mechanism, adjust this.
9544
  if test -x /usr/bin/objformat; then
9545
    objformat=`/usr/bin/objformat`
9546
  else
9547
    case $host_os in
9548
    freebsd[123]*) objformat=aout ;;
9549
    *) objformat=elf ;;
9550
    esac
9551
  fi
9552
  version_type=freebsd-$objformat
9553
  case $version_type in
9554
    freebsd-elf*)
9555
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9556
      need_version=no
9557
      need_lib_prefix=no
9558
      ;;
9559
    freebsd-*)
9560
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9561
      need_version=yes
9562
      ;;
9563
  esac
9564
  shlibpath_var=LD_LIBRARY_PATH
9565
  case $host_os in
9566
  freebsd2*)
9567
    shlibpath_overrides_runpath=yes
9568
    ;;
9569
  freebsd3.[01]* | freebsdelf3.[01]*)
9570
    shlibpath_overrides_runpath=yes
9571
    hardcode_into_libs=yes
9572
    ;;
9573
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9574
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9575
    shlibpath_overrides_runpath=no
9576
    hardcode_into_libs=yes
9577
    ;;
9578
  *) # from 4.6 on, and DragonFly
9579
    shlibpath_overrides_runpath=yes
9580
    hardcode_into_libs=yes
9581
    ;;
9582
  esac
9583
  ;;
9584
 
9585
gnu*)
9586
  version_type=linux
9587
  need_lib_prefix=no
9588
  need_version=no
9589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9590
  soname_spec='${libname}${release}${shared_ext}$major'
9591
  shlibpath_var=LD_LIBRARY_PATH
9592
  hardcode_into_libs=yes
9593
  ;;
9594
 
9595
haiku*)
9596
  version_type=linux
9597
  need_lib_prefix=no
9598
  need_version=no
9599
  dynamic_linker="$host_os runtime_loader"
9600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9601
  soname_spec='${libname}${release}${shared_ext}$major'
9602
  shlibpath_var=LIBRARY_PATH
9603
  shlibpath_overrides_runpath=yes
9604
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9605
  hardcode_into_libs=yes
9606
  ;;
9607
 
9608
hpux9* | hpux10* | hpux11*)
9609
  # Give a soname corresponding to the major version so that dld.sl refuses to
9610
  # link against other versions.
9611
  version_type=sunos
9612
  need_lib_prefix=no
9613
  need_version=no
9614
  case $host_cpu in
9615
  ia64*)
9616
    shrext_cmds='.so'
9617
    hardcode_into_libs=yes
9618
    dynamic_linker="$host_os dld.so"
9619
    shlibpath_var=LD_LIBRARY_PATH
9620
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9621
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622
    soname_spec='${libname}${release}${shared_ext}$major'
9623
    if test "X$HPUX_IA64_MODE" = X32; then
9624
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9625
    else
9626
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9627
    fi
9628
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9629
    ;;
9630
  hppa*64*)
9631
    shrext_cmds='.sl'
9632
    hardcode_into_libs=yes
9633
    dynamic_linker="$host_os dld.sl"
9634
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9635
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9636
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637
    soname_spec='${libname}${release}${shared_ext}$major'
9638
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9639
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9640
    ;;
9641
  *)
9642
    shrext_cmds='.sl'
9643
    dynamic_linker="$host_os dld.sl"
9644
    shlibpath_var=SHLIB_PATH
9645
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9646
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9647
    soname_spec='${libname}${release}${shared_ext}$major'
9648
    ;;
9649
  esac
9650
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9651
  postinstall_cmds='chmod 555 $lib'
9652
  # or fails outright, so override atomically:
9653
  install_override_mode=555
9654
  ;;
9655
 
9656
interix[3-9]*)
9657
  version_type=linux
9658
  need_lib_prefix=no
9659
  need_version=no
9660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9661
  soname_spec='${libname}${release}${shared_ext}$major'
9662
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9663
  shlibpath_var=LD_LIBRARY_PATH
9664
  shlibpath_overrides_runpath=no
9665
  hardcode_into_libs=yes
9666
  ;;
9667
 
9668
irix5* | irix6* | nonstopux*)
9669
  case $host_os in
9670
    nonstopux*) version_type=nonstopux ;;
9671
    *)
9672
        if test "$lt_cv_prog_gnu_ld" = yes; then
9673
                version_type=linux
9674
        else
9675
                version_type=irix
9676
        fi ;;
9677
  esac
9678
  need_lib_prefix=no
9679
  need_version=no
9680
  soname_spec='${libname}${release}${shared_ext}$major'
9681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9682
  case $host_os in
9683
  irix5* | nonstopux*)
9684
    libsuff= shlibsuff=
9685
    ;;
9686
  *)
9687
    case $LD in # libtool.m4 will add one of these switches to LD
9688
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9689
      libsuff= shlibsuff= libmagic=32-bit;;
9690
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9691
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9692
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9693
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9694
    *) libsuff= shlibsuff= libmagic=never-match;;
9695
    esac
9696
    ;;
9697
  esac
9698
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9699
  shlibpath_overrides_runpath=no
9700
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9701
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9702
  hardcode_into_libs=yes
9703
  ;;
9704
 
9705
# No shared lib support for Linux oldld, aout, or coff.
9706
linux*oldld* | linux*aout* | linux*coff*)
9707
  dynamic_linker=no
9708
  ;;
9709
 
9710
# This must be Linux ELF.
9711
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9712
  version_type=linux
9713
  need_lib_prefix=no
9714
  need_version=no
9715
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716
  soname_spec='${libname}${release}${shared_ext}$major'
9717
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9718
  shlibpath_var=LD_LIBRARY_PATH
9719
  shlibpath_overrides_runpath=no
9720
 
9721
  # Some binutils ld are patched to set DT_RUNPATH
9722
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9723
  $as_echo_n "(cached) " >&6
9724
else
9725
  lt_cv_shlibpath_overrides_runpath=no
9726
    save_LDFLAGS=$LDFLAGS
9727
    save_libdir=$libdir
9728
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9729
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9730
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731
/* end confdefs.h.  */
9732
 
9733
int
9734
main ()
9735
{
9736
 
9737
  ;
9738
  return 0;
9739
}
9740
_ACEOF
9741
if ac_fn_c_try_link "$LINENO"; then :
9742
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9743
  lt_cv_shlibpath_overrides_runpath=yes
9744
fi
9745
fi
9746
rm -f core conftest.err conftest.$ac_objext \
9747
    conftest$ac_exeext conftest.$ac_ext
9748
    LDFLAGS=$save_LDFLAGS
9749
    libdir=$save_libdir
9750
 
9751
fi
9752
 
9753
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9754
 
9755
  # This implies no fast_install, which is unacceptable.
9756
  # Some rework will be needed to allow for fast_install
9757
  # before this can be enabled.
9758
  hardcode_into_libs=yes
9759
 
9760
  # Append ld.so.conf contents to the search path
9761
  if test -f /etc/ld.so.conf; then
9762
    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' ' '`
9763
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9764
  fi
9765
 
9766
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9767
  # powerpc, because MkLinux only supported shared libraries with the
9768
  # GNU dynamic linker.  Since this was broken with cross compilers,
9769
  # most powerpc-linux boxes support dynamic linking these days and
9770
  # people can always --disable-shared, the test was removed, and we
9771
  # assume the GNU/Linux dynamic linker is in use.
9772
  dynamic_linker='GNU/Linux ld.so'
9773
  ;;
9774
 
9775
netbsd*)
9776
  version_type=sunos
9777
  need_lib_prefix=no
9778
  need_version=no
9779
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9780
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9781
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9782
    dynamic_linker='NetBSD (a.out) ld.so'
9783
  else
9784
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785
    soname_spec='${libname}${release}${shared_ext}$major'
9786
    dynamic_linker='NetBSD ld.elf_so'
9787
  fi
9788
  shlibpath_var=LD_LIBRARY_PATH
9789
  shlibpath_overrides_runpath=yes
9790
  hardcode_into_libs=yes
9791
  ;;
9792
 
9793
newsos6)
9794
  version_type=linux
9795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796
  shlibpath_var=LD_LIBRARY_PATH
9797
  shlibpath_overrides_runpath=yes
9798
  ;;
9799
 
9800
*nto* | *qnx*)
9801
  version_type=qnx
9802
  need_lib_prefix=no
9803
  need_version=no
9804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805
  soname_spec='${libname}${release}${shared_ext}$major'
9806
  shlibpath_var=LD_LIBRARY_PATH
9807
  shlibpath_overrides_runpath=no
9808
  hardcode_into_libs=yes
9809
  dynamic_linker='ldqnx.so'
9810
  ;;
9811
 
9812
openbsd*)
9813
  version_type=sunos
9814
  sys_lib_dlsearch_path_spec="/usr/lib"
9815
  need_lib_prefix=no
9816
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9817
  case $host_os in
9818
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9819
    *)                          need_version=no  ;;
9820
  esac
9821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9823
  shlibpath_var=LD_LIBRARY_PATH
9824
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9825
    case $host_os in
9826
      openbsd2.[89] | openbsd2.[89].*)
9827
        shlibpath_overrides_runpath=no
9828
        ;;
9829
      *)
9830
        shlibpath_overrides_runpath=yes
9831
        ;;
9832
      esac
9833
  else
9834
    shlibpath_overrides_runpath=yes
9835
  fi
9836
  ;;
9837
 
9838
os2*)
9839
  libname_spec='$name'
9840
  shrext_cmds=".dll"
9841
  need_lib_prefix=no
9842
  library_names_spec='$libname${shared_ext} $libname.a'
9843
  dynamic_linker='OS/2 ld.exe'
9844
  shlibpath_var=LIBPATH
9845
  ;;
9846
 
9847
osf3* | osf4* | osf5*)
9848
  version_type=osf
9849
  need_lib_prefix=no
9850
  need_version=no
9851
  soname_spec='${libname}${release}${shared_ext}$major'
9852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853
  shlibpath_var=LD_LIBRARY_PATH
9854
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9855
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9856
  ;;
9857
 
9858
rdos*)
9859
  dynamic_linker=no
9860
  ;;
9861
 
9862
solaris*)
9863
  version_type=linux
9864
  need_lib_prefix=no
9865
  need_version=no
9866
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867
  soname_spec='${libname}${release}${shared_ext}$major'
9868
  shlibpath_var=LD_LIBRARY_PATH
9869
  shlibpath_overrides_runpath=yes
9870
  hardcode_into_libs=yes
9871
  # ldd complains unless libraries are executable
9872
  postinstall_cmds='chmod +x $lib'
9873
  ;;
9874
 
9875
sunos4*)
9876
  version_type=sunos
9877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9878
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9879
  shlibpath_var=LD_LIBRARY_PATH
9880
  shlibpath_overrides_runpath=yes
9881
  if test "$with_gnu_ld" = yes; then
9882
    need_lib_prefix=no
9883
  fi
9884
  need_version=yes
9885
  ;;
9886
 
9887
sysv4 | sysv4.3*)
9888
  version_type=linux
9889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890
  soname_spec='${libname}${release}${shared_ext}$major'
9891
  shlibpath_var=LD_LIBRARY_PATH
9892
  case $host_vendor in
9893
    sni)
9894
      shlibpath_overrides_runpath=no
9895
      need_lib_prefix=no
9896
      runpath_var=LD_RUN_PATH
9897
      ;;
9898
    siemens)
9899
      need_lib_prefix=no
9900
      ;;
9901
    motorola)
9902
      need_lib_prefix=no
9903
      need_version=no
9904
      shlibpath_overrides_runpath=no
9905
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9906
      ;;
9907
  esac
9908
  ;;
9909
 
9910
sysv4*MP*)
9911
  if test -d /usr/nec ;then
9912
    version_type=linux
9913
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9914
    soname_spec='$libname${shared_ext}.$major'
9915
    shlibpath_var=LD_LIBRARY_PATH
9916
  fi
9917
  ;;
9918
 
9919
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9920
  version_type=freebsd-elf
9921
  need_lib_prefix=no
9922
  need_version=no
9923
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924
  soname_spec='${libname}${release}${shared_ext}$major'
9925
  shlibpath_var=LD_LIBRARY_PATH
9926
  shlibpath_overrides_runpath=yes
9927
  hardcode_into_libs=yes
9928
  if test "$with_gnu_ld" = yes; then
9929
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9930
  else
9931
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9932
    case $host_os in
9933
      sco3.2v5*)
9934
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9935
        ;;
9936
    esac
9937
  fi
9938
  sys_lib_dlsearch_path_spec='/usr/lib'
9939
  ;;
9940
 
9941
tpf*)
9942
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9943
  version_type=linux
9944
  need_lib_prefix=no
9945
  need_version=no
9946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947
  shlibpath_var=LD_LIBRARY_PATH
9948
  shlibpath_overrides_runpath=no
9949
  hardcode_into_libs=yes
9950
  ;;
9951
 
9952
uts4*)
9953
  version_type=linux
9954
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955
  soname_spec='${libname}${release}${shared_ext}$major'
9956
  shlibpath_var=LD_LIBRARY_PATH
9957
  ;;
9958
 
9959
*)
9960
  dynamic_linker=no
9961
  ;;
9962
esac
9963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9964
$as_echo "$dynamic_linker" >&6; }
9965
test "$dynamic_linker" = no && can_build_shared=no
9966
 
9967
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9968
if test "$GCC" = yes; then
9969
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9970
fi
9971
 
9972
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9973
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9974
fi
9975
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9976
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9977
fi
9978
 
9979
 
9980
 
9981
 
9982
 
9983
 
9984
 
9985
 
9986
 
9987
 
9988
 
9989
 
9990
 
9991
 
9992
 
9993
 
9994
 
9995
 
9996
 
9997
 
9998
 
9999
 
10000
 
10001
 
10002
 
10003
 
10004
 
10005
 
10006
 
10007
 
10008
 
10009
 
10010
 
10011
 
10012
 
10013
 
10014
 
10015
 
10016
 
10017
 
10018
 
10019
 
10020
 
10021
 
10022
 
10023
 
10024
 
10025
 
10026
 
10027
 
10028
 
10029
 
10030
 
10031
 
10032
 
10033
 
10034
 
10035
 
10036
 
10037
 
10038
 
10039
 
10040
 
10041
 
10042
 
10043
 
10044
 
10045
 
10046
 
10047
 
10048
 
10049
 
10050
 
10051
 
10052
 
10053
 
10054
 
10055
 
10056
 
10057
 
10058
 
10059
 
10060
 
10061
 
10062
 
10063
 
10064
 
10065
 
10066
 
10067
 
10068
 
10069
 
10070
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10071
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10072
hardcode_action=
10073
if test -n "$hardcode_libdir_flag_spec" ||
10074
   test -n "$runpath_var" ||
10075
   test "X$hardcode_automatic" = "Xyes" ; then
10076
 
10077
  # We can hardcode non-existent directories.
10078
  if test "$hardcode_direct" != no &&
10079
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10080
     # have to relink, otherwise we might link with an installed library
10081
     # when we should be linking with a yet-to-be-installed one
10082
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10083
     test "$hardcode_minus_L" != no; then
10084
    # Linking always hardcodes the temporary library directory.
10085
    hardcode_action=relink
10086
  else
10087
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10088
    hardcode_action=immediate
10089
  fi
10090
else
10091
  # We cannot hardcode anything, or else we can only hardcode existing
10092
  # directories.
10093
  hardcode_action=unsupported
10094
fi
10095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10096
$as_echo "$hardcode_action" >&6; }
10097
 
10098
if test "$hardcode_action" = relink ||
10099
   test "$inherit_rpath" = yes; then
10100
  # Fast installation is not supported
10101
  enable_fast_install=no
10102
elif test "$shlibpath_overrides_runpath" = yes ||
10103
     test "$enable_shared" = no; then
10104
  # Fast installation is not necessary
10105
  enable_fast_install=needless
10106
fi
10107
 
10108
 
10109
 
10110
 
10111
 
10112
 
10113
  if test "x$enable_dlopen" != xyes; then
10114
  enable_dlopen=unknown
10115
  enable_dlopen_self=unknown
10116
  enable_dlopen_self_static=unknown
10117
else
10118
  lt_cv_dlopen=no
10119
  lt_cv_dlopen_libs=
10120
 
10121
  case $host_os in
10122
  beos*)
10123
    lt_cv_dlopen="load_add_on"
10124
    lt_cv_dlopen_libs=
10125
    lt_cv_dlopen_self=yes
10126
    ;;
10127
 
10128
  mingw* | pw32* | cegcc*)
10129
    lt_cv_dlopen="LoadLibrary"
10130
    lt_cv_dlopen_libs=
10131
    ;;
10132
 
10133
  cygwin*)
10134
    lt_cv_dlopen="dlopen"
10135
    lt_cv_dlopen_libs=
10136
    ;;
10137
 
10138
  darwin*)
10139
  # if libdl is installed we need to link against it
10140
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10141
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10142
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10143
  $as_echo_n "(cached) " >&6
10144
else
10145
  ac_check_lib_save_LIBS=$LIBS
10146
LIBS="-ldl  $LIBS"
10147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148
/* end confdefs.h.  */
10149
 
10150
/* Override any GCC internal prototype to avoid an error.
10151
   Use char because int might match the return type of a GCC
10152
   builtin and then its argument prototype would still apply.  */
10153
#ifdef __cplusplus
10154
extern "C"
10155
#endif
10156
char dlopen ();
10157
int
10158
main ()
10159
{
10160
return dlopen ();
10161
  ;
10162
  return 0;
10163
}
10164
_ACEOF
10165
if ac_fn_c_try_link "$LINENO"; then :
10166
  ac_cv_lib_dl_dlopen=yes
10167
else
10168
  ac_cv_lib_dl_dlopen=no
10169
fi
10170
rm -f core conftest.err conftest.$ac_objext \
10171
    conftest$ac_exeext conftest.$ac_ext
10172
LIBS=$ac_check_lib_save_LIBS
10173
fi
10174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10175
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10176
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10177
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10178
else
10179
 
10180
    lt_cv_dlopen="dyld"
10181
    lt_cv_dlopen_libs=
10182
    lt_cv_dlopen_self=yes
10183
 
10184
fi
10185
 
10186
    ;;
10187
 
10188
  *)
10189
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10190
if test "x$ac_cv_func_shl_load" = x""yes; then :
10191
  lt_cv_dlopen="shl_load"
10192
else
10193
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10194
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10195
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10196
  $as_echo_n "(cached) " >&6
10197
else
10198
  ac_check_lib_save_LIBS=$LIBS
10199
LIBS="-ldld  $LIBS"
10200
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201
/* end confdefs.h.  */
10202
 
10203
/* Override any GCC internal prototype to avoid an error.
10204
   Use char because int might match the return type of a GCC
10205
   builtin and then its argument prototype would still apply.  */
10206
#ifdef __cplusplus
10207
extern "C"
10208
#endif
10209
char shl_load ();
10210
int
10211
main ()
10212
{
10213
return shl_load ();
10214
  ;
10215
  return 0;
10216
}
10217
_ACEOF
10218
if ac_fn_c_try_link "$LINENO"; then :
10219
  ac_cv_lib_dld_shl_load=yes
10220
else
10221
  ac_cv_lib_dld_shl_load=no
10222
fi
10223
rm -f core conftest.err conftest.$ac_objext \
10224
    conftest$ac_exeext conftest.$ac_ext
10225
LIBS=$ac_check_lib_save_LIBS
10226
fi
10227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10228
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10229
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10230
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10231
else
10232
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10233
if test "x$ac_cv_func_dlopen" = x""yes; then :
10234
  lt_cv_dlopen="dlopen"
10235
else
10236
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10237
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10238
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10239
  $as_echo_n "(cached) " >&6
10240
else
10241
  ac_check_lib_save_LIBS=$LIBS
10242
LIBS="-ldl  $LIBS"
10243
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244
/* end confdefs.h.  */
10245
 
10246
/* Override any GCC internal prototype to avoid an error.
10247
   Use char because int might match the return type of a GCC
10248
   builtin and then its argument prototype would still apply.  */
10249
#ifdef __cplusplus
10250
extern "C"
10251
#endif
10252
char dlopen ();
10253
int
10254
main ()
10255
{
10256
return dlopen ();
10257
  ;
10258
  return 0;
10259
}
10260
_ACEOF
10261
if ac_fn_c_try_link "$LINENO"; then :
10262
  ac_cv_lib_dl_dlopen=yes
10263
else
10264
  ac_cv_lib_dl_dlopen=no
10265
fi
10266
rm -f core conftest.err conftest.$ac_objext \
10267
    conftest$ac_exeext conftest.$ac_ext
10268
LIBS=$ac_check_lib_save_LIBS
10269
fi
10270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10271
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10272
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10273
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10274
else
10275
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10276
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10277
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10278
  $as_echo_n "(cached) " >&6
10279
else
10280
  ac_check_lib_save_LIBS=$LIBS
10281
LIBS="-lsvld  $LIBS"
10282
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283
/* end confdefs.h.  */
10284
 
10285
/* Override any GCC internal prototype to avoid an error.
10286
   Use char because int might match the return type of a GCC
10287
   builtin and then its argument prototype would still apply.  */
10288
#ifdef __cplusplus
10289
extern "C"
10290
#endif
10291
char dlopen ();
10292
int
10293
main ()
10294
{
10295
return dlopen ();
10296
  ;
10297
  return 0;
10298
}
10299
_ACEOF
10300
if ac_fn_c_try_link "$LINENO"; then :
10301
  ac_cv_lib_svld_dlopen=yes
10302
else
10303
  ac_cv_lib_svld_dlopen=no
10304
fi
10305
rm -f core conftest.err conftest.$ac_objext \
10306
    conftest$ac_exeext conftest.$ac_ext
10307
LIBS=$ac_check_lib_save_LIBS
10308
fi
10309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10310
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10311
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10312
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10313
else
10314
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10315
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10316
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10317
  $as_echo_n "(cached) " >&6
10318
else
10319
  ac_check_lib_save_LIBS=$LIBS
10320
LIBS="-ldld  $LIBS"
10321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322
/* end confdefs.h.  */
10323
 
10324
/* Override any GCC internal prototype to avoid an error.
10325
   Use char because int might match the return type of a GCC
10326
   builtin and then its argument prototype would still apply.  */
10327
#ifdef __cplusplus
10328
extern "C"
10329
#endif
10330
char dld_link ();
10331
int
10332
main ()
10333
{
10334
return dld_link ();
10335
  ;
10336
  return 0;
10337
}
10338
_ACEOF
10339
if ac_fn_c_try_link "$LINENO"; then :
10340
  ac_cv_lib_dld_dld_link=yes
10341
else
10342
  ac_cv_lib_dld_dld_link=no
10343
fi
10344
rm -f core conftest.err conftest.$ac_objext \
10345
    conftest$ac_exeext conftest.$ac_ext
10346
LIBS=$ac_check_lib_save_LIBS
10347
fi
10348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10349
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10350
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10351
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10352
fi
10353
 
10354
 
10355
fi
10356
 
10357
 
10358
fi
10359
 
10360
 
10361
fi
10362
 
10363
 
10364
fi
10365
 
10366
 
10367
fi
10368
 
10369
    ;;
10370
  esac
10371
 
10372
  if test "x$lt_cv_dlopen" != xno; then
10373
    enable_dlopen=yes
10374
  else
10375
    enable_dlopen=no
10376
  fi
10377
 
10378
  case $lt_cv_dlopen in
10379
  dlopen)
10380
    save_CPPFLAGS="$CPPFLAGS"
10381
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10382
 
10383
    save_LDFLAGS="$LDFLAGS"
10384
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10385
 
10386
    save_LIBS="$LIBS"
10387
    LIBS="$lt_cv_dlopen_libs $LIBS"
10388
 
10389
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10390
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10391
if test "${lt_cv_dlopen_self+set}" = set; then :
10392
  $as_echo_n "(cached) " >&6
10393
else
10394
          if test "$cross_compiling" = yes; then :
10395
  lt_cv_dlopen_self=cross
10396
else
10397
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10398
  lt_status=$lt_dlunknown
10399
  cat > conftest.$ac_ext <<_LT_EOF
10400
#line 10400 "configure"
10401
#include "confdefs.h"
10402
 
10403
#if HAVE_DLFCN_H
10404
#include 
10405
#endif
10406
 
10407
#include 
10408
 
10409
#ifdef RTLD_GLOBAL
10410
#  define LT_DLGLOBAL           RTLD_GLOBAL
10411
#else
10412
#  ifdef DL_GLOBAL
10413
#    define LT_DLGLOBAL         DL_GLOBAL
10414
#  else
10415
#    define LT_DLGLOBAL         0
10416
#  endif
10417
#endif
10418
 
10419
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10420
   find out it does not work in some platform. */
10421
#ifndef LT_DLLAZY_OR_NOW
10422
#  ifdef RTLD_LAZY
10423
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10424
#  else
10425
#    ifdef DL_LAZY
10426
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10427
#    else
10428
#      ifdef RTLD_NOW
10429
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10430
#      else
10431
#        ifdef DL_NOW
10432
#          define LT_DLLAZY_OR_NOW      DL_NOW
10433
#        else
10434
#          define LT_DLLAZY_OR_NOW      0
10435
#        endif
10436
#      endif
10437
#    endif
10438
#  endif
10439
#endif
10440
 
10441
/* When -fvisbility=hidden is used, assume the code has been annotated
10442
   correspondingly for the symbols needed.  */
10443
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10444
void fnord () __attribute__((visibility("default")));
10445
#endif
10446
 
10447
void fnord () { int i=42; }
10448
int main ()
10449
{
10450
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10451
  int status = $lt_dlunknown;
10452
 
10453
  if (self)
10454
    {
10455
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10456
      else
10457
        {
10458
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10459
          else puts (dlerror ());
10460
        }
10461
      /* dlclose (self); */
10462
    }
10463
  else
10464
    puts (dlerror ());
10465
 
10466
  return status;
10467
}
10468
_LT_EOF
10469
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10470
  (eval $ac_link) 2>&5
10471
  ac_status=$?
10472
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10473
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10474
    (./conftest; exit; ) >&5 2>/dev/null
10475
    lt_status=$?
10476
    case x$lt_status in
10477
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10478
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10479
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10480
    esac
10481
  else :
10482
    # compilation failed
10483
    lt_cv_dlopen_self=no
10484
  fi
10485
fi
10486
rm -fr conftest*
10487
 
10488
 
10489
fi
10490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10491
$as_echo "$lt_cv_dlopen_self" >&6; }
10492
 
10493
    if test "x$lt_cv_dlopen_self" = xyes; then
10494
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10495
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10496
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10497
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10498
  $as_echo_n "(cached) " >&6
10499
else
10500
          if test "$cross_compiling" = yes; then :
10501
  lt_cv_dlopen_self_static=cross
10502
else
10503
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10504
  lt_status=$lt_dlunknown
10505
  cat > conftest.$ac_ext <<_LT_EOF
10506
#line 10506 "configure"
10507
#include "confdefs.h"
10508
 
10509
#if HAVE_DLFCN_H
10510
#include 
10511
#endif
10512
 
10513
#include 
10514
 
10515
#ifdef RTLD_GLOBAL
10516
#  define LT_DLGLOBAL           RTLD_GLOBAL
10517
#else
10518
#  ifdef DL_GLOBAL
10519
#    define LT_DLGLOBAL         DL_GLOBAL
10520
#  else
10521
#    define LT_DLGLOBAL         0
10522
#  endif
10523
#endif
10524
 
10525
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10526
   find out it does not work in some platform. */
10527
#ifndef LT_DLLAZY_OR_NOW
10528
#  ifdef RTLD_LAZY
10529
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10530
#  else
10531
#    ifdef DL_LAZY
10532
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10533
#    else
10534
#      ifdef RTLD_NOW
10535
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10536
#      else
10537
#        ifdef DL_NOW
10538
#          define LT_DLLAZY_OR_NOW      DL_NOW
10539
#        else
10540
#          define LT_DLLAZY_OR_NOW      0
10541
#        endif
10542
#      endif
10543
#    endif
10544
#  endif
10545
#endif
10546
 
10547
/* When -fvisbility=hidden is used, assume the code has been annotated
10548
   correspondingly for the symbols needed.  */
10549
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10550
void fnord () __attribute__((visibility("default")));
10551
#endif
10552
 
10553
void fnord () { int i=42; }
10554
int main ()
10555
{
10556
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10557
  int status = $lt_dlunknown;
10558
 
10559
  if (self)
10560
    {
10561
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10562
      else
10563
        {
10564
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10565
          else puts (dlerror ());
10566
        }
10567
      /* dlclose (self); */
10568
    }
10569
  else
10570
    puts (dlerror ());
10571
 
10572
  return status;
10573
}
10574
_LT_EOF
10575
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10576
  (eval $ac_link) 2>&5
10577
  ac_status=$?
10578
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10579
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10580
    (./conftest; exit; ) >&5 2>/dev/null
10581
    lt_status=$?
10582
    case x$lt_status in
10583
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10584
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10585
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10586
    esac
10587
  else :
10588
    # compilation failed
10589
    lt_cv_dlopen_self_static=no
10590
  fi
10591
fi
10592
rm -fr conftest*
10593
 
10594
 
10595
fi
10596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10597
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10598
    fi
10599
 
10600
    CPPFLAGS="$save_CPPFLAGS"
10601
    LDFLAGS="$save_LDFLAGS"
10602
    LIBS="$save_LIBS"
10603
    ;;
10604
  esac
10605
 
10606
  case $lt_cv_dlopen_self in
10607
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10608
  *) enable_dlopen_self=unknown ;;
10609
  esac
10610
 
10611
  case $lt_cv_dlopen_self_static in
10612
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10613
  *) enable_dlopen_self_static=unknown ;;
10614
  esac
10615
fi
10616
 
10617
 
10618
 
10619
 
10620
 
10621
 
10622
 
10623
 
10624
 
10625
 
10626
 
10627
 
10628
 
10629
 
10630
 
10631
 
10632
 
10633
striplib=
10634
old_striplib=
10635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10636
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10637
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10638
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10639
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10640
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641
$as_echo "yes" >&6; }
10642
else
10643
# FIXME - insert some real tests, host_os isn't really good enough
10644
  case $host_os in
10645
  darwin*)
10646
    if test -n "$STRIP" ; then
10647
      striplib="$STRIP -x"
10648
      old_striplib="$STRIP -S"
10649
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650
$as_echo "yes" >&6; }
10651
    else
10652
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653
$as_echo "no" >&6; }
10654
    fi
10655
    ;;
10656
  *)
10657
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658
$as_echo "no" >&6; }
10659
    ;;
10660
  esac
10661
fi
10662
 
10663
 
10664
 
10665
 
10666
 
10667
 
10668
 
10669
 
10670
 
10671
 
10672
 
10673
 
10674
  # Report which library types will actually be built
10675
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10676
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10678
$as_echo "$can_build_shared" >&6; }
10679
 
10680
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10681
$as_echo_n "checking whether to build shared libraries... " >&6; }
10682
  test "$can_build_shared" = "no" && enable_shared=no
10683
 
10684
  # On AIX, shared libraries and static libraries use the same namespace, and
10685
  # are all built from PIC.
10686
  case $host_os in
10687
  aix3*)
10688
    test "$enable_shared" = yes && enable_static=no
10689
    if test -n "$RANLIB"; then
10690
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10691
      postinstall_cmds='$RANLIB $lib'
10692
    fi
10693
    ;;
10694
 
10695
  aix[4-9]*)
10696
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10697
      test "$enable_shared" = yes && enable_static=no
10698
    fi
10699
    ;;
10700
  esac
10701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10702
$as_echo "$enable_shared" >&6; }
10703
 
10704
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10705
$as_echo_n "checking whether to build static libraries... " >&6; }
10706
  # Make sure either enable_shared or enable_static is yes.
10707
  test "$enable_shared" = yes || enable_static=yes
10708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10709
$as_echo "$enable_static" >&6; }
10710
 
10711
 
10712
 
10713
 
10714
fi
10715
ac_ext=c
10716
ac_cpp='$CPP $CPPFLAGS'
10717
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10718
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10719
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10720
 
10721
CC="$lt_save_CC"
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
        ac_config_commands="$ac_config_commands libtool"
10736
 
10737
 
10738
 
10739
 
10740
# Only expand once:
10741
 
10742
 
10743
 
10744
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10745
case $ac_cv_c_uint64_t in #(
10746
  no|yes) ;; #(
10747
  *)
10748
 
10749
$as_echo "#define _UINT64_T 1" >>confdefs.h
10750
 
10751
 
10752
cat >>confdefs.h <<_ACEOF
10753
#define uint64_t $ac_cv_c_uint64_t
10754
_ACEOF
10755
;;
10756
  esac
10757
 
10758
ac_config_files="$ac_config_files Makefile"
10759
 
10760
cat >confcache <<\_ACEOF
10761
# This file is a shell script that caches the results of configure
10762
# tests run on this system so they can be shared between configure
10763
# scripts and configure runs, see configure's option --config-cache.
10764
# It is not useful on other systems.  If it contains results you don't
10765
# want to keep, you may remove or edit it.
10766
#
10767
# config.status only pays attention to the cache file if you give it
10768
# the --recheck option to rerun configure.
10769
#
10770
# `ac_cv_env_foo' variables (set or unset) will be overridden when
10771
# loading this file, other *unset* `ac_cv_foo' will be assigned the
10772
# following values.
10773
 
10774
_ACEOF
10775
 
10776
# The following way of writing the cache mishandles newlines in values,
10777
# but we know of no workaround that is simple, portable, and efficient.
10778
# So, we kill variables containing newlines.
10779
# Ultrix sh set writes to stderr and can't be redirected directly,
10780
# and sets the high bit in the cache file unless we assign to the vars.
10781
(
10782
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10783
    eval ac_val=\$$ac_var
10784
    case $ac_val in #(
10785
    *${as_nl}*)
10786
      case $ac_var in #(
10787
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10788
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10789
      esac
10790
      case $ac_var in #(
10791
      _ | IFS | as_nl) ;; #(
10792
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10793
      *) { eval $ac_var=; unset $ac_var;} ;;
10794
      esac ;;
10795
    esac
10796
  done
10797
 
10798
  (set) 2>&1 |
10799
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10800
    *${as_nl}ac_space=\ *)
10801
      # `set' does not quote correctly, so add quotes: double-quote
10802
      # substitution turns \\\\ into \\, and sed turns \\ into \.
10803
      sed -n \
10804
        "s/'/'\\\\''/g;
10805
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10806
      ;; #(
10807
    *)
10808
      # `set' quotes correctly as required by POSIX, so do not add quotes.
10809
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10810
      ;;
10811
    esac |
10812
    sort
10813
) |
10814
  sed '
10815
     /^ac_cv_env_/b end
10816
     t clear
10817
     :clear
10818
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10819
     t end
10820
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10821
     :end' >>confcache
10822
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10823
  if test -w "$cache_file"; then
10824
    test "x$cache_file" != "x/dev/null" &&
10825
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10826
$as_echo "$as_me: updating cache $cache_file" >&6;}
10827
    cat confcache >$cache_file
10828
  else
10829
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10830
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10831
  fi
10832
fi
10833
rm -f confcache
10834
 
10835
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10836
# Let make expand exec_prefix.
10837
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10838
 
10839
# Transform confdefs.h into DEFS.
10840
# Protect against shell expansion while executing Makefile rules.
10841
# Protect against Makefile macro expansion.
10842
#
10843
# If the first sed substitution is executed (which looks for macros that
10844
# take arguments), then branch to the quote section.  Otherwise,
10845
# look for a macro that doesn't take arguments.
10846
ac_script='
10847
:mline
10848
/\\$/{
10849
 N
10850
 s,\\\n,,
10851
 b mline
10852
}
10853
t clear
10854
:clear
10855
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
10856
t quote
10857
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
10858
t quote
10859
b any
10860
:quote
10861
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10862
s/\[/\\&/g
10863
s/\]/\\&/g
10864
s/\$/$$/g
10865
H
10866
:any
10867
${
10868
        g
10869
        s/^\n//
10870
        s/\n/ /g
10871
        p
10872
}
10873
'
10874
DEFS=`sed -n "$ac_script" confdefs.h`
10875
 
10876
 
10877
ac_libobjs=
10878
ac_ltlibobjs=
10879
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10880
  # 1. Remove the extension, and $U if already installed.
10881
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10882
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10883
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10884
  #    will be set to the directory where LIBOBJS objects are built.
10885
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10886
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10887
done
10888
LIBOBJS=$ac_libobjs
10889
 
10890
LTLIBOBJS=$ac_ltlibobjs
10891
 
10892
 
10893
 if test -n "$EXEEXT"; then
10894
  am__EXEEXT_TRUE=
10895
  am__EXEEXT_FALSE='#'
10896
else
10897
  am__EXEEXT_TRUE='#'
10898
  am__EXEEXT_FALSE=
10899
fi
10900
 
10901
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10902
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10903
Usually this means the macro was only invoked conditionally." "$LINENO" 5
10904
fi
10905
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10906
  as_fn_error "conditional \"AMDEP\" was never defined.
10907
Usually this means the macro was only invoked conditionally." "$LINENO" 5
10908
fi
10909
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10910
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
10911
Usually this means the macro was only invoked conditionally." "$LINENO" 5
10912
fi
10913
 
10914
: ${CONFIG_STATUS=./config.status}
10915
ac_write_fail=0
10916
ac_clean_files_save=$ac_clean_files
10917
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10918
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10919
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10920
as_write_fail=0
10921
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10922
#! $SHELL
10923
# Generated by $as_me.
10924
# Run this file to recreate the current configuration.
10925
# Compiler output produced by configure, useful for debugging
10926
# configure, is in config.log if it exists.
10927
 
10928
debug=false
10929
ac_cs_recheck=false
10930
ac_cs_silent=false
10931
 
10932
SHELL=\${CONFIG_SHELL-$SHELL}
10933
export SHELL
10934
_ASEOF
10935
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10936
## -------------------- ##
10937
## M4sh Initialization. ##
10938
## -------------------- ##
10939
 
10940
# Be more Bourne compatible
10941
DUALCASE=1; export DUALCASE # for MKS sh
10942
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10943
  emulate sh
10944
  NULLCMD=:
10945
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10946
  # is contrary to our usage.  Disable this feature.
10947
  alias -g '${1+"$@"}'='"$@"'
10948
  setopt NO_GLOB_SUBST
10949
else
10950
  case `(set -o) 2>/dev/null` in #(
10951
  *posix*) :
10952
    set -o posix ;; #(
10953
  *) :
10954
     ;;
10955
esac
10956
fi
10957
 
10958
 
10959
as_nl='
10960
'
10961
export as_nl
10962
# Printing a long string crashes Solaris 7 /usr/bin/printf.
10963
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10964
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10965
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10966
# Prefer a ksh shell builtin over an external printf program on Solaris,
10967
# but without wasting forks for bash or zsh.
10968
if test -z "$BASH_VERSION$ZSH_VERSION" \
10969
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10970
  as_echo='print -r --'
10971
  as_echo_n='print -rn --'
10972
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10973
  as_echo='printf %s\n'
10974
  as_echo_n='printf %s'
10975
else
10976
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10977
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10978
    as_echo_n='/usr/ucb/echo -n'
10979
  else
10980
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10981
    as_echo_n_body='eval
10982
      arg=$1;
10983
      case $arg in #(
10984
      *"$as_nl"*)
10985
        expr "X$arg" : "X\\(.*\\)$as_nl";
10986
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10987
      esac;
10988
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10989
    '
10990
    export as_echo_n_body
10991
    as_echo_n='sh -c $as_echo_n_body as_echo'
10992
  fi
10993
  export as_echo_body
10994
  as_echo='sh -c $as_echo_body as_echo'
10995
fi
10996
 
10997
# The user is always right.
10998
if test "${PATH_SEPARATOR+set}" != set; then
10999
  PATH_SEPARATOR=:
11000
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11001
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11002
      PATH_SEPARATOR=';'
11003
  }
11004
fi
11005
 
11006
 
11007
# IFS
11008
# We need space, tab and new line, in precisely that order.  Quoting is
11009
# there to prevent editors from complaining about space-tab.
11010
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11011
# splitting by setting IFS to empty value.)
11012
IFS=" ""        $as_nl"
11013
 
11014
# Find who we are.  Look in the path if we contain no directory separator.
11015
case $0 in #((
11016
  *[\\/]* ) as_myself=$0 ;;
11017
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018
for as_dir in $PATH
11019
do
11020
  IFS=$as_save_IFS
11021
  test -z "$as_dir" && as_dir=.
11022
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11023
  done
11024
IFS=$as_save_IFS
11025
 
11026
     ;;
11027
esac
11028
# We did not find ourselves, most probably we were run as `sh COMMAND'
11029
# in which case we are not to be found in the path.
11030
if test "x$as_myself" = x; then
11031
  as_myself=$0
11032
fi
11033
if test ! -f "$as_myself"; then
11034
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11035
  exit 1
11036
fi
11037
 
11038
# Unset variables that we do not need and which cause bugs (e.g. in
11039
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11040
# suppresses any "Segmentation fault" message there.  '((' could
11041
# trigger a bug in pdksh 5.2.14.
11042
for as_var in BASH_ENV ENV MAIL MAILPATH
11043
do eval test x\${$as_var+set} = xset \
11044
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11045
done
11046
PS1='$ '
11047
PS2='> '
11048
PS4='+ '
11049
 
11050
# NLS nuisances.
11051
LC_ALL=C
11052
export LC_ALL
11053
LANGUAGE=C
11054
export LANGUAGE
11055
 
11056
# CDPATH.
11057
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11058
 
11059
 
11060
# as_fn_error ERROR [LINENO LOG_FD]
11061
# ---------------------------------
11062
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11063
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11064
# script with status $?, using 1 if that was 0.
11065
as_fn_error ()
11066
{
11067
  as_status=$?; test $as_status -eq 0 && as_status=1
11068
  if test "$3"; then
11069
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11070
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11071
  fi
11072
  $as_echo "$as_me: error: $1" >&2
11073
  as_fn_exit $as_status
11074
} # as_fn_error
11075
 
11076
 
11077
# as_fn_set_status STATUS
11078
# -----------------------
11079
# Set $? to STATUS, without forking.
11080
as_fn_set_status ()
11081
{
11082
  return $1
11083
} # as_fn_set_status
11084
 
11085
# as_fn_exit STATUS
11086
# -----------------
11087
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11088
as_fn_exit ()
11089
{
11090
  set +e
11091
  as_fn_set_status $1
11092
  exit $1
11093
} # as_fn_exit
11094
 
11095
# as_fn_unset VAR
11096
# ---------------
11097
# Portably unset VAR.
11098
as_fn_unset ()
11099
{
11100
  { eval $1=; unset $1;}
11101
}
11102
as_unset=as_fn_unset
11103
# as_fn_append VAR VALUE
11104
# ----------------------
11105
# Append the text in VALUE to the end of the definition contained in VAR. Take
11106
# advantage of any shell optimizations that allow amortized linear growth over
11107
# repeated appends, instead of the typical quadratic growth present in naive
11108
# implementations.
11109
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11110
  eval 'as_fn_append ()
11111
  {
11112
    eval $1+=\$2
11113
  }'
11114
else
11115
  as_fn_append ()
11116
  {
11117
    eval $1=\$$1\$2
11118
  }
11119
fi # as_fn_append
11120
 
11121
# as_fn_arith ARG...
11122
# ------------------
11123
# Perform arithmetic evaluation on the ARGs, and store the result in the
11124
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11125
# must be portable across $(()) and expr.
11126
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11127
  eval 'as_fn_arith ()
11128
  {
11129
    as_val=$(( $* ))
11130
  }'
11131
else
11132
  as_fn_arith ()
11133
  {
11134
    as_val=`expr "$@" || test $? -eq 1`
11135
  }
11136
fi # as_fn_arith
11137
 
11138
 
11139
if expr a : '\(a\)' >/dev/null 2>&1 &&
11140
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11141
  as_expr=expr
11142
else
11143
  as_expr=false
11144
fi
11145
 
11146
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11147
  as_basename=basename
11148
else
11149
  as_basename=false
11150
fi
11151
 
11152
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11153
  as_dirname=dirname
11154
else
11155
  as_dirname=false
11156
fi
11157
 
11158
as_me=`$as_basename -- "$0" ||
11159
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11160
         X"$0" : 'X\(//\)$' \| \
11161
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11162
$as_echo X/"$0" |
11163
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11164
            s//\1/
11165
            q
11166
          }
11167
          /^X\/\(\/\/\)$/{
11168
            s//\1/
11169
            q
11170
          }
11171
          /^X\/\(\/\).*/{
11172
            s//\1/
11173
            q
11174
          }
11175
          s/.*/./; q'`
11176
 
11177
# Avoid depending upon Character Ranges.
11178
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11179
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11180
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11181
as_cr_digits='0123456789'
11182
as_cr_alnum=$as_cr_Letters$as_cr_digits
11183
 
11184
ECHO_C= ECHO_N= ECHO_T=
11185
case `echo -n x` in #(((((
11186
-n*)
11187
  case `echo 'xy\c'` in
11188
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11189
  xy)  ECHO_C='\c';;
11190
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11191
       ECHO_T=' ';;
11192
  esac;;
11193
*)
11194
  ECHO_N='-n';;
11195
esac
11196
 
11197
rm -f conf$$ conf$$.exe conf$$.file
11198
if test -d conf$$.dir; then
11199
  rm -f conf$$.dir/conf$$.file
11200
else
11201
  rm -f conf$$.dir
11202
  mkdir conf$$.dir 2>/dev/null
11203
fi
11204
if (echo >conf$$.file) 2>/dev/null; then
11205
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11206
    as_ln_s='ln -s'
11207
    # ... but there are two gotchas:
11208
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11209
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11210
    # In both cases, we have to default to `cp -p'.
11211
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11212
      as_ln_s='cp -p'
11213
  elif ln conf$$.file conf$$ 2>/dev/null; then
11214
    as_ln_s=ln
11215
  else
11216
    as_ln_s='cp -p'
11217
  fi
11218
else
11219
  as_ln_s='cp -p'
11220
fi
11221
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11222
rmdir conf$$.dir 2>/dev/null
11223
 
11224
 
11225
# as_fn_mkdir_p
11226
# -------------
11227
# Create "$as_dir" as a directory, including parents if necessary.
11228
as_fn_mkdir_p ()
11229
{
11230
 
11231
  case $as_dir in #(
11232
  -*) as_dir=./$as_dir;;
11233
  esac
11234
  test -d "$as_dir" || eval $as_mkdir_p || {
11235
    as_dirs=
11236
    while :; do
11237
      case $as_dir in #(
11238
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11239
      *) as_qdir=$as_dir;;
11240
      esac
11241
      as_dirs="'$as_qdir' $as_dirs"
11242
      as_dir=`$as_dirname -- "$as_dir" ||
11243
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11244
         X"$as_dir" : 'X\(//\)[^/]' \| \
11245
         X"$as_dir" : 'X\(//\)$' \| \
11246
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11247
$as_echo X"$as_dir" |
11248
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11249
            s//\1/
11250
            q
11251
          }
11252
          /^X\(\/\/\)[^/].*/{
11253
            s//\1/
11254
            q
11255
          }
11256
          /^X\(\/\/\)$/{
11257
            s//\1/
11258
            q
11259
          }
11260
          /^X\(\/\).*/{
11261
            s//\1/
11262
            q
11263
          }
11264
          s/.*/./; q'`
11265
      test -d "$as_dir" && break
11266
    done
11267
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11268
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11269
 
11270
 
11271
} # as_fn_mkdir_p
11272
if mkdir -p . 2>/dev/null; then
11273
  as_mkdir_p='mkdir -p "$as_dir"'
11274
else
11275
  test -d ./-p && rmdir ./-p
11276
  as_mkdir_p=false
11277
fi
11278
 
11279
if test -x / >/dev/null 2>&1; then
11280
  as_test_x='test -x'
11281
else
11282
  if ls -dL / >/dev/null 2>&1; then
11283
    as_ls_L_option=L
11284
  else
11285
    as_ls_L_option=
11286
  fi
11287
  as_test_x='
11288
    eval sh -c '\''
11289
      if test -d "$1"; then
11290
        test -d "$1/.";
11291
      else
11292
        case $1 in #(
11293
        -*)set "./$1";;
11294
        esac;
11295
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11296
        ???[sx]*):;;*)false;;esac;fi
11297
    '\'' sh
11298
  '
11299
fi
11300
as_executable_p=$as_test_x
11301
 
11302
# Sed expression to map a string onto a valid CPP name.
11303
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11304
 
11305
# Sed expression to map a string onto a valid variable name.
11306
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11307
 
11308
 
11309
exec 6>&1
11310
## ----------------------------------- ##
11311
## Main body of $CONFIG_STATUS script. ##
11312
## ----------------------------------- ##
11313
_ASEOF
11314
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11315
 
11316
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11317
# Save the log message, to keep $0 and so on meaningful, and to
11318
# report actual input values of CONFIG_FILES etc. instead of their
11319
# values after options handling.
11320
ac_log="
11321
This file was extended by LTO plugin for ld $as_me 0.1, which was
11322
generated by GNU Autoconf 2.64.  Invocation command line was
11323
 
11324
  CONFIG_FILES    = $CONFIG_FILES
11325
  CONFIG_HEADERS  = $CONFIG_HEADERS
11326
  CONFIG_LINKS    = $CONFIG_LINKS
11327
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11328
  $ $0 $@
11329
 
11330
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11331
"
11332
 
11333
_ACEOF
11334
 
11335
case $ac_config_files in *"
11336
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11337
esac
11338
 
11339
 
11340
 
11341
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11342
# Files that config.status was made for.
11343
config_files="$ac_config_files"
11344
config_commands="$ac_config_commands"
11345
 
11346
_ACEOF
11347
 
11348
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11349
ac_cs_usage="\
11350
\`$as_me' instantiates files and other configuration actions
11351
from templates according to the current configuration.  Unless the files
11352
and actions are specified as TAGs, all are instantiated by default.
11353
 
11354
Usage: $0 [OPTION]... [TAG]...
11355
 
11356
  -h, --help       print this help, then exit
11357
  -V, --version    print version number and configuration settings, then exit
11358
  -q, --quiet, --silent
11359
                   do not print progress messages
11360
  -d, --debug      don't remove temporary files
11361
      --recheck    update $as_me by reconfiguring in the same conditions
11362
      --file=FILE[:TEMPLATE]
11363
                   instantiate the configuration file FILE
11364
 
11365
Configuration files:
11366
$config_files
11367
 
11368
Configuration commands:
11369
$config_commands
11370
 
11371
Report bugs to the package provider."
11372
 
11373
_ACEOF
11374
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11375
ac_cs_version="\\
11376
LTO plugin for ld config.status 0.1
11377
configured by $0, generated by GNU Autoconf 2.64,
11378
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11379
 
11380
Copyright (C) 2009 Free Software Foundation, Inc.
11381
This config.status script is free software; the Free Software Foundation
11382
gives unlimited permission to copy, distribute and modify it."
11383
 
11384
ac_pwd='$ac_pwd'
11385
srcdir='$srcdir'
11386
INSTALL='$INSTALL'
11387
MKDIR_P='$MKDIR_P'
11388
AWK='$AWK'
11389
test -n "\$AWK" || AWK=awk
11390
_ACEOF
11391
 
11392
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11393
# The default lists apply if the user does not specify any file.
11394
ac_need_defaults=:
11395
while test $# != 0
11396
do
11397
  case $1 in
11398
  --*=*)
11399
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11400
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11401
    ac_shift=:
11402
    ;;
11403
  *)
11404
    ac_option=$1
11405
    ac_optarg=$2
11406
    ac_shift=shift
11407
    ;;
11408
  esac
11409
 
11410
  case $ac_option in
11411
  # Handling of the options.
11412
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11413
    ac_cs_recheck=: ;;
11414
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11415
    $as_echo "$ac_cs_version"; exit ;;
11416
  --debug | --debu | --deb | --de | --d | -d )
11417
    debug=: ;;
11418
  --file | --fil | --fi | --f )
11419
    $ac_shift
11420
    case $ac_optarg in
11421
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11422
    esac
11423
    as_fn_append CONFIG_FILES " '$ac_optarg'"
11424
    ac_need_defaults=false;;
11425
  --he | --h |  --help | --hel | -h )
11426
    $as_echo "$ac_cs_usage"; exit ;;
11427
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11428
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11429
    ac_cs_silent=: ;;
11430
 
11431
  # This is an error.
11432
  -*) as_fn_error "unrecognized option: \`$1'
11433
Try \`$0 --help' for more information." ;;
11434
 
11435
  *) as_fn_append ac_config_targets " $1"
11436
     ac_need_defaults=false ;;
11437
 
11438
  esac
11439
  shift
11440
done
11441
 
11442
ac_configure_extra_args=
11443
 
11444
if $ac_cs_silent; then
11445
  exec 6>/dev/null
11446
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11447
fi
11448
 
11449
_ACEOF
11450
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11451
if \$ac_cs_recheck; then
11452
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11453
  shift
11454
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11455
  CONFIG_SHELL='$SHELL'
11456
  export CONFIG_SHELL
11457
  exec "\$@"
11458
fi
11459
 
11460
_ACEOF
11461
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11462
exec 5>>config.log
11463
{
11464
  echo
11465
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11466
## Running $as_me. ##
11467
_ASBOX
11468
  $as_echo "$ac_log"
11469
} >&5
11470
 
11471
_ACEOF
11472
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11473
#
11474
# INIT-COMMANDS
11475
#
11476
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11477
 
11478
 
11479
# The HP-UX ksh and POSIX shell print the target directory to stdout
11480
# if CDPATH is set.
11481
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11482
 
11483
sed_quote_subst='$sed_quote_subst'
11484
double_quote_subst='$double_quote_subst'
11485
delay_variable_subst='$delay_variable_subst'
11486
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11487
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11488
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11489
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11490
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11491
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11492
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11493
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11494
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11495
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11496
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11497
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11498
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11499
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11500
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11501
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11502
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11503
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11504
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11505
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11506
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11507
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11508
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11509
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11510
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11511
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11512
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11513
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11514
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11515
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11516
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11517
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11518
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11519
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11520
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11521
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11522
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11523
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11524
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11525
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11526
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11527
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11528
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11529
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11530
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11531
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11532
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11533
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11534
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"`'
11535
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11536
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11537
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11538
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11539
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11540
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11541
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11542
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11543
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11544
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11545
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11546
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11547
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11548
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11549
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11550
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11551
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11552
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11553
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11554
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11555
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11556
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11557
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11558
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11559
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11560
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11561
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11562
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11563
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11564
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11565
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11566
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11567
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11568
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11569
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11570
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11571
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11572
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11573
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11574
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11575
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11576
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11577
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11578
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11579
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11580
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11581
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11582
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11583
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11584
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11585
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11586
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11587
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11588
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11589
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11590
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11591
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11592
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11593
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11594
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11595
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11596
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11597
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11598
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11599
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11600
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11601
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11602
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11603
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11604
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11605
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11606
 
11607
LTCC='$LTCC'
11608
LTCFLAGS='$LTCFLAGS'
11609
compiler='$compiler_DEFAULT'
11610
 
11611
# A function that is used when there is no print builtin or printf.
11612
func_fallback_echo ()
11613
{
11614
  eval 'cat <<_LTECHO_EOF
11615
\$1
11616
_LTECHO_EOF'
11617
}
11618
 
11619
# Quote evaled strings.
11620
for var in SHELL \
11621
ECHO \
11622
SED \
11623
GREP \
11624
EGREP \
11625
FGREP \
11626
LD \
11627
NM \
11628
LN_S \
11629
lt_SP2NL \
11630
lt_NL2SP \
11631
reload_flag \
11632
OBJDUMP \
11633
deplibs_check_method \
11634
file_magic_cmd \
11635
AR \
11636
AR_FLAGS \
11637
STRIP \
11638
RANLIB \
11639
CC \
11640
CFLAGS \
11641
compiler \
11642
lt_cv_sys_global_symbol_pipe \
11643
lt_cv_sys_global_symbol_to_cdecl \
11644
lt_cv_sys_global_symbol_to_c_name_address \
11645
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11646
lt_prog_compiler_no_builtin_flag \
11647
lt_prog_compiler_wl \
11648
lt_prog_compiler_pic \
11649
lt_prog_compiler_static \
11650
lt_cv_prog_compiler_c_o \
11651
need_locks \
11652
DSYMUTIL \
11653
NMEDIT \
11654
LIPO \
11655
OTOOL \
11656
OTOOL64 \
11657
shrext_cmds \
11658
export_dynamic_flag_spec \
11659
whole_archive_flag_spec \
11660
compiler_needs_object \
11661
with_gnu_ld \
11662
allow_undefined_flag \
11663
no_undefined_flag \
11664
hardcode_libdir_flag_spec \
11665
hardcode_libdir_flag_spec_ld \
11666
hardcode_libdir_separator \
11667
fix_srcfile_path \
11668
exclude_expsyms \
11669
include_expsyms \
11670
file_list_spec \
11671
variables_saved_for_relink \
11672
libname_spec \
11673
library_names_spec \
11674
soname_spec \
11675
install_override_mode \
11676
finish_eval \
11677
old_striplib \
11678
striplib; do
11679
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11680
    *[\\\\\\\`\\"\\\$]*)
11681
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11682
      ;;
11683
    *)
11684
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11685
      ;;
11686
    esac
11687
done
11688
 
11689
# Double-quote double-evaled strings.
11690
for var in reload_cmds \
11691
old_postinstall_cmds \
11692
old_postuninstall_cmds \
11693
old_archive_cmds \
11694
extract_expsyms_cmds \
11695
old_archive_from_new_cmds \
11696
old_archive_from_expsyms_cmds \
11697
archive_cmds \
11698
archive_expsym_cmds \
11699
module_cmds \
11700
module_expsym_cmds \
11701
export_symbols_cmds \
11702
prelink_cmds \
11703
postinstall_cmds \
11704
postuninstall_cmds \
11705
finish_cmds \
11706
sys_lib_search_path_spec \
11707
sys_lib_dlsearch_path_spec; do
11708
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11709
    *[\\\\\\\`\\"\\\$]*)
11710
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11711
      ;;
11712
    *)
11713
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11714
      ;;
11715
    esac
11716
done
11717
 
11718
ac_aux_dir='$ac_aux_dir'
11719
xsi_shell='$xsi_shell'
11720
lt_shell_append='$lt_shell_append'
11721
 
11722
# See if we are running on zsh, and set the options which allow our
11723
# commands through without removal of \ escapes INIT.
11724
if test -n "\${ZSH_VERSION+set}" ; then
11725
   setopt NO_GLOB_SUBST
11726
fi
11727
 
11728
 
11729
    PACKAGE='$PACKAGE'
11730
    VERSION='$VERSION'
11731
    TIMESTAMP='$TIMESTAMP'
11732
    RM='$RM'
11733
    ofile='$ofile'
11734
 
11735
 
11736
 
11737
 
11738
_ACEOF
11739
 
11740
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741
 
11742
# Handling of arguments.
11743
for ac_config_target in $ac_config_targets
11744
do
11745
  case $ac_config_target in
11746
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11747
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11748
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11749
 
11750
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11751
  esac
11752
done
11753
 
11754
 
11755
# If the user did not use the arguments to specify the items to instantiate,
11756
# then the envvar interface is used.  Set only those that are not.
11757
# We use the long form for the default assignment because of an extremely
11758
# bizarre bug on SunOS 4.1.3.
11759
if $ac_need_defaults; then
11760
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11761
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11762
fi
11763
 
11764
# Have a temporary directory for convenience.  Make it in the build tree
11765
# simply because there is no reason against having it here, and in addition,
11766
# creating and moving files from /tmp can sometimes cause problems.
11767
# Hook for its removal unless debugging.
11768
# Note that there is a small window in which the directory will not be cleaned:
11769
# after its creation but before its name has been assigned to `$tmp'.
11770
$debug ||
11771
{
11772
  tmp=
11773
  trap 'exit_status=$?
11774
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11775
' 0
11776
  trap 'as_fn_exit 1' 1 2 13 15
11777
}
11778
# Create a (secure) tmp directory for tmp files.
11779
 
11780
{
11781
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11782
  test -n "$tmp" && test -d "$tmp"
11783
}  ||
11784
{
11785
  tmp=./conf$$-$RANDOM
11786
  (umask 077 && mkdir "$tmp")
11787
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11788
 
11789
# Set up the scripts for CONFIG_FILES section.
11790
# No need to generate them if there are no CONFIG_FILES.
11791
# This happens for instance with `./config.status config.h'.
11792
if test -n "$CONFIG_FILES"; then
11793
 
11794
 
11795
ac_cr=`echo X | tr X '\015'`
11796
# On cygwin, bash can eat \r inside `` if the user requested igncr.
11797
# But we know of no other shell where ac_cr would be empty at this
11798
# point, so we can use a bashism as a fallback.
11799
if test "x$ac_cr" = x; then
11800
  eval ac_cr=\$\'\\r\'
11801
fi
11802
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
11803
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11804
  ac_cs_awk_cr='\r'
11805
else
11806
  ac_cs_awk_cr=$ac_cr
11807
fi
11808
 
11809
echo 'BEGIN {' >"$tmp/subs1.awk" &&
11810
_ACEOF
11811
 
11812
 
11813
{
11814
  echo "cat >conf$$subs.awk <<_ACEOF" &&
11815
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11816
  echo "_ACEOF"
11817
} >conf$$subs.sh ||
11818
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11819
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11820
ac_delim='%!_!# '
11821
for ac_last_try in false false false false false :; do
11822
  . ./conf$$subs.sh ||
11823
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11824
 
11825
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11826
  if test $ac_delim_n = $ac_delim_num; then
11827
    break
11828
  elif $ac_last_try; then
11829
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11830
  else
11831
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11832
  fi
11833
done
11834
rm -f conf$$subs.sh
11835
 
11836
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11837
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11838
_ACEOF
11839
sed -n '
11840
h
11841
s/^/S["/; s/!.*/"]=/
11842
p
11843
g
11844
s/^[^!]*!//
11845
:repl
11846
t repl
11847
s/'"$ac_delim"'$//
11848
t delim
11849
:nl
11850
h
11851
s/\(.\{148\}\).*/\1/
11852
t more1
11853
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11854
p
11855
n
11856
b repl
11857
:more1
11858
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11859
p
11860
g
11861
s/.\{148\}//
11862
t nl
11863
:delim
11864
h
11865
s/\(.\{148\}\).*/\1/
11866
t more2
11867
s/["\\]/\\&/g; s/^/"/; s/$/"/
11868
p
11869
b
11870
:more2
11871
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11872
p
11873
g
11874
s/.\{148\}//
11875
t delim
11876
' 
11877
/^[^""]/{
11878
  N
11879
  s/\n//
11880
}
11881
' >>$CONFIG_STATUS || ac_write_fail=1
11882
rm -f conf$$subs.awk
11883
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11884
_ACAWK
11885
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11886
  for (key in S) S_is_set[key] = 1
11887
  FS = ""
11888
 
11889
}
11890
{
11891
  line = $ 0
11892
  nfields = split(line, field, "@")
11893
  substed = 0
11894
  len = length(field[1])
11895
  for (i = 2; i < nfields; i++) {
11896
    key = field[i]
11897
    keylen = length(key)
11898
    if (S_is_set[key]) {
11899
      value = S[key]
11900
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11901
      len += length(value) + length(field[++i])
11902
      substed = 1
11903
    } else
11904
      len += 1 + keylen
11905
  }
11906
 
11907
  print line
11908
}
11909
 
11910
_ACAWK
11911
_ACEOF
11912
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11913
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11914
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11915
else
11916
  cat
11917
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11918
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
11919
_ACEOF
11920
 
11921
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11922
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11923
# trailing colons and then remove the whole line if VPATH becomes empty
11924
# (actually we leave an empty line to preserve line numbers).
11925
if test "x$srcdir" = x.; then
11926
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11927
s/:*\$(srcdir):*/:/
11928
s/:*\${srcdir}:*/:/
11929
s/:*@srcdir@:*/:/
11930
s/^\([^=]*=[     ]*\):*/\1/
11931
s/:*$//
11932
s/^[^=]*=[       ]*$//
11933
}'
11934
fi
11935
 
11936
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11937
fi # test -n "$CONFIG_FILES"
11938
 
11939
 
11940
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11941
shift
11942
for ac_tag
11943
do
11944
  case $ac_tag in
11945
  :[FHLC]) ac_mode=$ac_tag; continue;;
11946
  esac
11947
  case $ac_mode$ac_tag in
11948
  :[FHL]*:*);;
11949
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11950
  :[FH]-) ac_tag=-:-;;
11951
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11952
  esac
11953
  ac_save_IFS=$IFS
11954
  IFS=:
11955
  set x $ac_tag
11956
  IFS=$ac_save_IFS
11957
  shift
11958
  ac_file=$1
11959
  shift
11960
 
11961
  case $ac_mode in
11962
  :L) ac_source=$1;;
11963
  :[FH])
11964
    ac_file_inputs=
11965
    for ac_f
11966
    do
11967
      case $ac_f in
11968
      -) ac_f="$tmp/stdin";;
11969
      *) # Look for the file first in the build tree, then in the source tree
11970
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
11971
         # because $ac_f cannot contain `:'.
11972
         test -f "$ac_f" ||
11973
           case $ac_f in
11974
           [\\/$]*) false;;
11975
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11976
           esac ||
11977
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11978
      esac
11979
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11980
      as_fn_append ac_file_inputs " '$ac_f'"
11981
    done
11982
 
11983
    # Let's still pretend it is `configure' which instantiates (i.e., don't
11984
    # use $as_me), people would be surprised to read:
11985
    #    /* config.h.  Generated by config.status.  */
11986
    configure_input='Generated from '`
11987
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11988
        `' by configure.'
11989
    if test x"$ac_file" != x-; then
11990
      configure_input="$ac_file.  $configure_input"
11991
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11992
$as_echo "$as_me: creating $ac_file" >&6;}
11993
    fi
11994
    # Neutralize special characters interpreted by sed in replacement strings.
11995
    case $configure_input in #(
11996
    *\&* | *\|* | *\\* )
11997
       ac_sed_conf_input=`$as_echo "$configure_input" |
11998
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11999
    *) ac_sed_conf_input=$configure_input;;
12000
    esac
12001
 
12002
    case $ac_tag in
12003
    *:-:* | *:-) cat >"$tmp/stdin" \
12004
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12005
    esac
12006
    ;;
12007
  esac
12008
 
12009
  ac_dir=`$as_dirname -- "$ac_file" ||
12010
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12011
         X"$ac_file" : 'X\(//\)[^/]' \| \
12012
         X"$ac_file" : 'X\(//\)$' \| \
12013
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12014
$as_echo X"$ac_file" |
12015
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12016
            s//\1/
12017
            q
12018
          }
12019
          /^X\(\/\/\)[^/].*/{
12020
            s//\1/
12021
            q
12022
          }
12023
          /^X\(\/\/\)$/{
12024
            s//\1/
12025
            q
12026
          }
12027
          /^X\(\/\).*/{
12028
            s//\1/
12029
            q
12030
          }
12031
          s/.*/./; q'`
12032
  as_dir="$ac_dir"; as_fn_mkdir_p
12033
  ac_builddir=.
12034
 
12035
case "$ac_dir" in
12036
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12037
*)
12038
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12039
  # A ".." for each directory in $ac_dir_suffix.
12040
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12041
  case $ac_top_builddir_sub in
12042
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12043
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12044
  esac ;;
12045
esac
12046
ac_abs_top_builddir=$ac_pwd
12047
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12048
# for backward compatibility:
12049
ac_top_builddir=$ac_top_build_prefix
12050
 
12051
case $srcdir in
12052
  .)  # We are building in place.
12053
    ac_srcdir=.
12054
    ac_top_srcdir=$ac_top_builddir_sub
12055
    ac_abs_top_srcdir=$ac_pwd ;;
12056
  [\\/]* | ?:[\\/]* )  # Absolute name.
12057
    ac_srcdir=$srcdir$ac_dir_suffix;
12058
    ac_top_srcdir=$srcdir
12059
    ac_abs_top_srcdir=$srcdir ;;
12060
  *) # Relative name.
12061
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12062
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12063
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12064
esac
12065
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12066
 
12067
 
12068
  case $ac_mode in
12069
  :F)
12070
  #
12071
  # CONFIG_FILE
12072
  #
12073
 
12074
  case $INSTALL in
12075
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12076
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12077
  esac
12078
  ac_MKDIR_P=$MKDIR_P
12079
  case $MKDIR_P in
12080
  [\\/$]* | ?:[\\/]* ) ;;
12081
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12082
  esac
12083
_ACEOF
12084
 
12085
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12086
# If the template does not know about datarootdir, expand it.
12087
# FIXME: This hack should be removed a few years after 2.60.
12088
ac_datarootdir_hack=; ac_datarootdir_seen=
12089
ac_sed_dataroot='
12090
/datarootdir/ {
12091
  p
12092
  q
12093
}
12094
/@datadir@/p
12095
/@docdir@/p
12096
/@infodir@/p
12097
/@localedir@/p
12098
/@mandir@/p'
12099
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12100
*datarootdir*) ac_datarootdir_seen=yes;;
12101
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12102
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12103
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12104
_ACEOF
12105
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106
  ac_datarootdir_hack='
12107
  s&@datadir@&$datadir&g
12108
  s&@docdir@&$docdir&g
12109
  s&@infodir@&$infodir&g
12110
  s&@localedir@&$localedir&g
12111
  s&@mandir@&$mandir&g
12112
  s&\\\${datarootdir}&$datarootdir&g' ;;
12113
esac
12114
_ACEOF
12115
 
12116
# Neutralize VPATH when `$srcdir' = `.'.
12117
# Shell code in configure.ac might set extrasub.
12118
# FIXME: do we really want to maintain this feature?
12119
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12120
ac_sed_extra="$ac_vpsub
12121
$extrasub
12122
_ACEOF
12123
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12124
:t
12125
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12126
s|@configure_input@|$ac_sed_conf_input|;t t
12127
s&@top_builddir@&$ac_top_builddir_sub&;t t
12128
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12129
s&@srcdir@&$ac_srcdir&;t t
12130
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12131
s&@top_srcdir@&$ac_top_srcdir&;t t
12132
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12133
s&@builddir@&$ac_builddir&;t t
12134
s&@abs_builddir@&$ac_abs_builddir&;t t
12135
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12136
s&@INSTALL@&$ac_INSTALL&;t t
12137
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12138
$ac_datarootdir_hack
12139
"
12140
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12141
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12142
 
12143
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12144
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12145
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12146
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12147
which seems to be undefined.  Please make sure it is defined." >&5
12148
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12149
which seems to be undefined.  Please make sure it is defined." >&2;}
12150
 
12151
  rm -f "$tmp/stdin"
12152
  case $ac_file in
12153
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12154
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12155
  esac \
12156
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12157
 ;;
12158
 
12159
 
12160
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12161
$as_echo "$as_me: executing $ac_file commands" >&6;}
12162
 ;;
12163
  esac
12164
 
12165
 
12166
  case $ac_file$ac_mode in
12167
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12168
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12169
  # are listed without --file.  Let's play safe and only enable the eval
12170
  # if we detect the quoting.
12171
  case $CONFIG_FILES in
12172
  *\'*) eval set x "$CONFIG_FILES" ;;
12173
  *)   set x $CONFIG_FILES ;;
12174
  esac
12175
  shift
12176
  for mf
12177
  do
12178
    # Strip MF so we end up with the name of the file.
12179
    mf=`echo "$mf" | sed -e 's/:.*$//'`
12180
    # Check whether this is an Automake generated Makefile or not.
12181
    # We used to match only the files named `Makefile.in', but
12182
    # some people rename them; so instead we look at the file content.
12183
    # Grep'ing the first line is not enough: some people post-process
12184
    # each Makefile.in and add a new line on top of each file to say so.
12185
    # Grep'ing the whole file is not good either: AIX grep has a line
12186
    # limit of 2048, but all sed's we know have understand at least 4000.
12187
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12188
      dirpart=`$as_dirname -- "$mf" ||
12189
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12190
         X"$mf" : 'X\(//\)[^/]' \| \
12191
         X"$mf" : 'X\(//\)$' \| \
12192
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12193
$as_echo X"$mf" |
12194
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12195
            s//\1/
12196
            q
12197
          }
12198
          /^X\(\/\/\)[^/].*/{
12199
            s//\1/
12200
            q
12201
          }
12202
          /^X\(\/\/\)$/{
12203
            s//\1/
12204
            q
12205
          }
12206
          /^X\(\/\).*/{
12207
            s//\1/
12208
            q
12209
          }
12210
          s/.*/./; q'`
12211
    else
12212
      continue
12213
    fi
12214
    # Extract the definition of DEPDIR, am__include, and am__quote
12215
    # from the Makefile without running `make'.
12216
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12217
    test -z "$DEPDIR" && continue
12218
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12219
    test -z "am__include" && continue
12220
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12221
    # When using ansi2knr, U may be empty or an underscore; expand it
12222
    U=`sed -n 's/^U = //p' < "$mf"`
12223
    # Find all dependency output files, they are included files with
12224
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12225
    # simplest approach to changing $(DEPDIR) to its actual value in the
12226
    # expansion.
12227
    for file in `sed -n "
12228
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12229
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12230
      # Make sure the directory exists.
12231
      test -f "$dirpart/$file" && continue
12232
      fdir=`$as_dirname -- "$file" ||
12233
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12234
         X"$file" : 'X\(//\)[^/]' \| \
12235
         X"$file" : 'X\(//\)$' \| \
12236
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12237
$as_echo X"$file" |
12238
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12239
            s//\1/
12240
            q
12241
          }
12242
          /^X\(\/\/\)[^/].*/{
12243
            s//\1/
12244
            q
12245
          }
12246
          /^X\(\/\/\)$/{
12247
            s//\1/
12248
            q
12249
          }
12250
          /^X\(\/\).*/{
12251
            s//\1/
12252
            q
12253
          }
12254
          s/.*/./; q'`
12255
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12256
      # echo "creating $dirpart/$file"
12257
      echo '# dummy' > "$dirpart/$file"
12258
    done
12259
  done
12260
}
12261
 ;;
12262
    "libtool":C)
12263
 
12264
    # See if we are running on zsh, and set the options which allow our
12265
    # commands through without removal of \ escapes.
12266
    if test -n "${ZSH_VERSION+set}" ; then
12267
      setopt NO_GLOB_SUBST
12268
    fi
12269
 
12270
    cfgfile="${ofile}T"
12271
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12272
    $RM "$cfgfile"
12273
 
12274
    cat <<_LT_EOF >> "$cfgfile"
12275
#! $SHELL
12276
 
12277
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12278
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12279
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12280
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12281
#
12282
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12283
#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12284
#   Written by Gordon Matzigkeit, 1996
12285
#
12286
#   This file is part of GNU Libtool.
12287
#
12288
# GNU Libtool is free software; you can redistribute it and/or
12289
# modify it under the terms of the GNU General Public License as
12290
# published by the Free Software Foundation; either version 2 of
12291
# the License, or (at your option) any later version.
12292
#
12293
# As a special exception to the GNU General Public License,
12294
# if you distribute this file as part of a program or library that
12295
# is built using GNU Libtool, you may include this file under the
12296
# same distribution terms that you use for the rest of that program.
12297
#
12298
# GNU Libtool is distributed in the hope that it will be useful,
12299
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12300
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12301
# GNU General Public License for more details.
12302
#
12303
# You should have received a copy of the GNU General Public License
12304
# along with GNU Libtool; see the file COPYING.  If not, a copy
12305
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12306
# obtained by writing to the Free Software Foundation, Inc.,
12307
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12308
 
12309
 
12310
# The names of the tagged configurations supported by this script.
12311
available_tags=""
12312
 
12313
# ### BEGIN LIBTOOL CONFIG
12314
 
12315
# Which release of libtool.m4 was used?
12316
macro_version=$macro_version
12317
macro_revision=$macro_revision
12318
 
12319
# Whether or not to build shared libraries.
12320
build_libtool_libs=$enable_shared
12321
 
12322
# Whether or not to build static libraries.
12323
build_old_libs=$enable_static
12324
 
12325
# What type of objects to build.
12326
pic_mode=$pic_mode
12327
 
12328
# Whether or not to optimize for fast installation.
12329
fast_install=$enable_fast_install
12330
 
12331
# Shell to use when invoking shell scripts.
12332
SHELL=$lt_SHELL
12333
 
12334
# An echo program that protects backslashes.
12335
ECHO=$lt_ECHO
12336
 
12337
# The host system.
12338
host_alias=$host_alias
12339
host=$host
12340
host_os=$host_os
12341
 
12342
# The build system.
12343
build_alias=$build_alias
12344
build=$build
12345
build_os=$build_os
12346
 
12347
# A sed program that does not truncate output.
12348
SED=$lt_SED
12349
 
12350
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12351
Xsed="\$SED -e 1s/^X//"
12352
 
12353
# A grep program that handles long lines.
12354
GREP=$lt_GREP
12355
 
12356
# An ERE matcher.
12357
EGREP=$lt_EGREP
12358
 
12359
# A literal string matcher.
12360
FGREP=$lt_FGREP
12361
 
12362
# A BSD- or MS-compatible name lister.
12363
NM=$lt_NM
12364
 
12365
# Whether we need soft or hard links.
12366
LN_S=$lt_LN_S
12367
 
12368
# What is the maximum length of a command?
12369
max_cmd_len=$max_cmd_len
12370
 
12371
# Object file suffix (normally "o").
12372
objext=$ac_objext
12373
 
12374
# Executable file suffix (normally "").
12375
exeext=$exeext
12376
 
12377
# whether the shell understands "unset".
12378
lt_unset=$lt_unset
12379
 
12380
# turn spaces into newlines.
12381
SP2NL=$lt_lt_SP2NL
12382
 
12383
# turn newlines into spaces.
12384
NL2SP=$lt_lt_NL2SP
12385
 
12386
# An object symbol dumper.
12387
OBJDUMP=$lt_OBJDUMP
12388
 
12389
# Method to check whether dependent libraries are shared objects.
12390
deplibs_check_method=$lt_deplibs_check_method
12391
 
12392
# Command to use when deplibs_check_method == "file_magic".
12393
file_magic_cmd=$lt_file_magic_cmd
12394
 
12395
# The archiver.
12396
AR=$lt_AR
12397
AR_FLAGS=$lt_AR_FLAGS
12398
 
12399
# A symbol stripping program.
12400
STRIP=$lt_STRIP
12401
 
12402
# Commands used to install an old-style archive.
12403
RANLIB=$lt_RANLIB
12404
old_postinstall_cmds=$lt_old_postinstall_cmds
12405
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12406
 
12407
# Whether to use a lock for old archive extraction.
12408
lock_old_archive_extraction=$lock_old_archive_extraction
12409
 
12410
# A C compiler.
12411
LTCC=$lt_CC
12412
 
12413
# LTCC compiler flags.
12414
LTCFLAGS=$lt_CFLAGS
12415
 
12416
# Take the output of nm and produce a listing of raw symbols and C names.
12417
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12418
 
12419
# Transform the output of nm in a proper C declaration.
12420
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12421
 
12422
# Transform the output of nm in a C name address pair.
12423
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12424
 
12425
# Transform the output of nm in a C name address pair when lib prefix is needed.
12426
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12427
 
12428
# The name of the directory that contains temporary libtool files.
12429
objdir=$objdir
12430
 
12431
# Used to examine libraries when file_magic_cmd begins with "file".
12432
MAGIC_CMD=$MAGIC_CMD
12433
 
12434
# Must we lock files when doing compilation?
12435
need_locks=$lt_need_locks
12436
 
12437
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12438
DSYMUTIL=$lt_DSYMUTIL
12439
 
12440
# Tool to change global to local symbols on Mac OS X.
12441
NMEDIT=$lt_NMEDIT
12442
 
12443
# Tool to manipulate fat objects and archives on Mac OS X.
12444
LIPO=$lt_LIPO
12445
 
12446
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12447
OTOOL=$lt_OTOOL
12448
 
12449
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12450
OTOOL64=$lt_OTOOL64
12451
 
12452
# Old archive suffix (normally "a").
12453
libext=$libext
12454
 
12455
# Shared library suffix (normally ".so").
12456
shrext_cmds=$lt_shrext_cmds
12457
 
12458
# The commands to extract the exported symbol list from a shared archive.
12459
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12460
 
12461
# Variables whose values should be saved in libtool wrapper scripts and
12462
# restored at link time.
12463
variables_saved_for_relink=$lt_variables_saved_for_relink
12464
 
12465
# Do we need the "lib" prefix for modules?
12466
need_lib_prefix=$need_lib_prefix
12467
 
12468
# Do we need a version for libraries?
12469
need_version=$need_version
12470
 
12471
# Library versioning type.
12472
version_type=$version_type
12473
 
12474
# Shared library runtime path variable.
12475
runpath_var=$runpath_var
12476
 
12477
# Shared library path variable.
12478
shlibpath_var=$shlibpath_var
12479
 
12480
# Is shlibpath searched before the hard-coded library search path?
12481
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12482
 
12483
# Format of library name prefix.
12484
libname_spec=$lt_libname_spec
12485
 
12486
# List of archive names.  First name is the real one, the rest are links.
12487
# The last name is the one that the linker finds with -lNAME
12488
library_names_spec=$lt_library_names_spec
12489
 
12490
# The coded name of the library, if different from the real name.
12491
soname_spec=$lt_soname_spec
12492
 
12493
# Permission mode override for installation of shared libraries.
12494
install_override_mode=$lt_install_override_mode
12495
 
12496
# Command to use after installation of a shared archive.
12497
postinstall_cmds=$lt_postinstall_cmds
12498
 
12499
# Command to use after uninstallation of a shared archive.
12500
postuninstall_cmds=$lt_postuninstall_cmds
12501
 
12502
# Commands used to finish a libtool library installation in a directory.
12503
finish_cmds=$lt_finish_cmds
12504
 
12505
# As "finish_cmds", except a single script fragment to be evaled but
12506
# not shown.
12507
finish_eval=$lt_finish_eval
12508
 
12509
# Whether we should hardcode library paths into libraries.
12510
hardcode_into_libs=$hardcode_into_libs
12511
 
12512
# Compile-time system search path for libraries.
12513
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12514
 
12515
# Run-time system search path for libraries.
12516
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12517
 
12518
# Whether dlopen is supported.
12519
dlopen_support=$enable_dlopen
12520
 
12521
# Whether dlopen of programs is supported.
12522
dlopen_self=$enable_dlopen_self
12523
 
12524
# Whether dlopen of statically linked programs is supported.
12525
dlopen_self_static=$enable_dlopen_self_static
12526
 
12527
# Commands to strip libraries.
12528
old_striplib=$lt_old_striplib
12529
striplib=$lt_striplib
12530
 
12531
 
12532
# The linker used to build libraries.
12533
LD=$lt_LD
12534
 
12535
# How to create reloadable object files.
12536
reload_flag=$lt_reload_flag
12537
reload_cmds=$lt_reload_cmds
12538
 
12539
# Commands used to build an old-style archive.
12540
old_archive_cmds=$lt_old_archive_cmds
12541
 
12542
# A language specific compiler.
12543
CC=$lt_compiler
12544
 
12545
# Is the compiler the GNU compiler?
12546
with_gcc=$GCC
12547
 
12548
# Compiler flag to turn off builtin functions.
12549
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12550
 
12551
# How to pass a linker flag through the compiler.
12552
wl=$lt_lt_prog_compiler_wl
12553
 
12554
# Additional compiler flags for building library objects.
12555
pic_flag=$lt_lt_prog_compiler_pic
12556
 
12557
# Compiler flag to prevent dynamic linking.
12558
link_static_flag=$lt_lt_prog_compiler_static
12559
 
12560
# Does compiler simultaneously support -c and -o options?
12561
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12562
 
12563
# Whether or not to add -lc for building shared libraries.
12564
build_libtool_need_lc=$archive_cmds_need_lc
12565
 
12566
# Whether or not to disallow shared libs when runtime libs are static.
12567
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12568
 
12569
# Compiler flag to allow reflexive dlopens.
12570
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12571
 
12572
# Compiler flag to generate shared objects directly from archives.
12573
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12574
 
12575
# Whether the compiler copes with passing no objects directly.
12576
compiler_needs_object=$lt_compiler_needs_object
12577
 
12578
# Create an old-style archive from a shared archive.
12579
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12580
 
12581
# Create a temporary old-style archive to link instead of a shared archive.
12582
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12583
 
12584
# Commands used to build a shared archive.
12585
archive_cmds=$lt_archive_cmds
12586
archive_expsym_cmds=$lt_archive_expsym_cmds
12587
 
12588
# Commands used to build a loadable module if different from building
12589
# a shared archive.
12590
module_cmds=$lt_module_cmds
12591
module_expsym_cmds=$lt_module_expsym_cmds
12592
 
12593
# Whether we are building with GNU ld or not.
12594
with_gnu_ld=$lt_with_gnu_ld
12595
 
12596
# Flag that allows shared libraries with undefined symbols to be built.
12597
allow_undefined_flag=$lt_allow_undefined_flag
12598
 
12599
# Flag that enforces no undefined symbols.
12600
no_undefined_flag=$lt_no_undefined_flag
12601
 
12602
# Flag to hardcode \$libdir into a binary during linking.
12603
# This must work even if \$libdir does not exist
12604
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12605
 
12606
# If ld is used when linking, flag to hardcode \$libdir into a binary
12607
# during linking.  This must work even if \$libdir does not exist.
12608
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12609
 
12610
# Whether we need a single "-rpath" flag with a separated argument.
12611
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12612
 
12613
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12614
# DIR into the resulting binary.
12615
hardcode_direct=$hardcode_direct
12616
 
12617
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12618
# DIR into the resulting binary and the resulting library dependency is
12619
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12620
# library is relocated.
12621
hardcode_direct_absolute=$hardcode_direct_absolute
12622
 
12623
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12624
# into the resulting binary.
12625
hardcode_minus_L=$hardcode_minus_L
12626
 
12627
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12628
# into the resulting binary.
12629
hardcode_shlibpath_var=$hardcode_shlibpath_var
12630
 
12631
# Set to "yes" if building a shared library automatically hardcodes DIR
12632
# into the library and all subsequent libraries and executables linked
12633
# against it.
12634
hardcode_automatic=$hardcode_automatic
12635
 
12636
# Set to yes if linker adds runtime paths of dependent libraries
12637
# to runtime path list.
12638
inherit_rpath=$inherit_rpath
12639
 
12640
# Whether libtool must link a program against all its dependency libraries.
12641
link_all_deplibs=$link_all_deplibs
12642
 
12643
# Fix the shell variable \$srcfile for the compiler.
12644
fix_srcfile_path=$lt_fix_srcfile_path
12645
 
12646
# Set to "yes" if exported symbols are required.
12647
always_export_symbols=$always_export_symbols
12648
 
12649
# The commands to list exported symbols.
12650
export_symbols_cmds=$lt_export_symbols_cmds
12651
 
12652
# Symbols that should not be listed in the preloaded symbols.
12653
exclude_expsyms=$lt_exclude_expsyms
12654
 
12655
# Symbols that must always be exported.
12656
include_expsyms=$lt_include_expsyms
12657
 
12658
# Commands necessary for linking programs (against libraries) with templates.
12659
prelink_cmds=$lt_prelink_cmds
12660
 
12661
# Specify filename containing input files.
12662
file_list_spec=$lt_file_list_spec
12663
 
12664
# How to hardcode a shared library path into an executable.
12665
hardcode_action=$hardcode_action
12666
 
12667
# ### END LIBTOOL CONFIG
12668
 
12669
_LT_EOF
12670
 
12671
  case $host_os in
12672
  aix3*)
12673
    cat <<\_LT_EOF >> "$cfgfile"
12674
# AIX sometimes has problems with the GCC collect2 program.  For some
12675
# reason, if we set the COLLECT_NAMES environment variable, the problems
12676
# vanish in a puff of smoke.
12677
if test "X${COLLECT_NAMES+set}" != Xset; then
12678
  COLLECT_NAMES=
12679
  export COLLECT_NAMES
12680
fi
12681
_LT_EOF
12682
    ;;
12683
  esac
12684
 
12685
 
12686
ltmain="$ac_aux_dir/ltmain.sh"
12687
 
12688
 
12689
  # We use sed instead of cat because bash on DJGPP gets confused if
12690
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12691
  # text mode, it properly converts lines to CR/LF.  This bash problem
12692
  # is reportedly fixed, but why not run on old versions too?
12693
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12694
    || (rm -f "$cfgfile"; exit 1)
12695
 
12696
  case $xsi_shell in
12697
  yes)
12698
    cat << \_LT_EOF >> "$cfgfile"
12699
 
12700
# func_dirname file append nondir_replacement
12701
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12702
# otherwise set result to NONDIR_REPLACEMENT.
12703
func_dirname ()
12704
{
12705
  case ${1} in
12706
    */*) func_dirname_result="${1%/*}${2}" ;;
12707
    *  ) func_dirname_result="${3}" ;;
12708
  esac
12709
}
12710
 
12711
# func_basename file
12712
func_basename ()
12713
{
12714
  func_basename_result="${1##*/}"
12715
}
12716
 
12717
# func_dirname_and_basename file append nondir_replacement
12718
# perform func_basename and func_dirname in a single function
12719
# call:
12720
#   dirname:  Compute the dirname of FILE.  If nonempty,
12721
#             add APPEND to the result, otherwise set result
12722
#             to NONDIR_REPLACEMENT.
12723
#             value returned in "$func_dirname_result"
12724
#   basename: Compute filename of FILE.
12725
#             value retuned in "$func_basename_result"
12726
# Implementation must be kept synchronized with func_dirname
12727
# and func_basename. For efficiency, we do not delegate to
12728
# those functions but instead duplicate the functionality here.
12729
func_dirname_and_basename ()
12730
{
12731
  case ${1} in
12732
    */*) func_dirname_result="${1%/*}${2}" ;;
12733
    *  ) func_dirname_result="${3}" ;;
12734
  esac
12735
  func_basename_result="${1##*/}"
12736
}
12737
 
12738
# func_stripname prefix suffix name
12739
# strip PREFIX and SUFFIX off of NAME.
12740
# PREFIX and SUFFIX must not contain globbing or regex special
12741
# characters, hashes, percent signs, but SUFFIX may contain a leading
12742
# dot (in which case that matches only a dot).
12743
func_stripname ()
12744
{
12745
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12746
  # positional parameters, so assign one to ordinary parameter first.
12747
  func_stripname_result=${3}
12748
  func_stripname_result=${func_stripname_result#"${1}"}
12749
  func_stripname_result=${func_stripname_result%"${2}"}
12750
}
12751
 
12752
# func_opt_split
12753
func_opt_split ()
12754
{
12755
  func_opt_split_opt=${1%%=*}
12756
  func_opt_split_arg=${1#*=}
12757
}
12758
 
12759
# func_lo2o object
12760
func_lo2o ()
12761
{
12762
  case ${1} in
12763
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12764
    *)    func_lo2o_result=${1} ;;
12765
  esac
12766
}
12767
 
12768
# func_xform libobj-or-source
12769
func_xform ()
12770
{
12771
  func_xform_result=${1%.*}.lo
12772
}
12773
 
12774
# func_arith arithmetic-term...
12775
func_arith ()
12776
{
12777
  func_arith_result=$(( $* ))
12778
}
12779
 
12780
# func_len string
12781
# STRING may not start with a hyphen.
12782
func_len ()
12783
{
12784
  func_len_result=${#1}
12785
}
12786
 
12787
_LT_EOF
12788
    ;;
12789
  *) # Bourne compatible functions.
12790
    cat << \_LT_EOF >> "$cfgfile"
12791
 
12792
# func_dirname file append nondir_replacement
12793
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12794
# otherwise set result to NONDIR_REPLACEMENT.
12795
func_dirname ()
12796
{
12797
  # Extract subdirectory from the argument.
12798
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
12799
  if test "X$func_dirname_result" = "X${1}"; then
12800
    func_dirname_result="${3}"
12801
  else
12802
    func_dirname_result="$func_dirname_result${2}"
12803
  fi
12804
}
12805
 
12806
# func_basename file
12807
func_basename ()
12808
{
12809
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
12810
}
12811
 
12812
 
12813
# func_stripname prefix suffix name
12814
# strip PREFIX and SUFFIX off of NAME.
12815
# PREFIX and SUFFIX must not contain globbing or regex special
12816
# characters, hashes, percent signs, but SUFFIX may contain a leading
12817
# dot (in which case that matches only a dot).
12818
# func_strip_suffix prefix name
12819
func_stripname ()
12820
{
12821
  case ${2} in
12822
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12823
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12824
  esac
12825
}
12826
 
12827
# sed scripts:
12828
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12829
my_sed_long_arg='1s/^-[^=]*=//'
12830
 
12831
# func_opt_split
12832
func_opt_split ()
12833
{
12834
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12835
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
12836
}
12837
 
12838
# func_lo2o object
12839
func_lo2o ()
12840
{
12841
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
12842
}
12843
 
12844
# func_xform libobj-or-source
12845
func_xform ()
12846
{
12847
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
12848
}
12849
 
12850
# func_arith arithmetic-term...
12851
func_arith ()
12852
{
12853
  func_arith_result=`expr "$@"`
12854
}
12855
 
12856
# func_len string
12857
# STRING may not start with a hyphen.
12858
func_len ()
12859
{
12860
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12861
}
12862
 
12863
_LT_EOF
12864
esac
12865
 
12866
case $lt_shell_append in
12867
  yes)
12868
    cat << \_LT_EOF >> "$cfgfile"
12869
 
12870
# func_append var value
12871
# Append VALUE to the end of shell variable VAR.
12872
func_append ()
12873
{
12874
  eval "$1+=\$2"
12875
}
12876
_LT_EOF
12877
    ;;
12878
  *)
12879
    cat << \_LT_EOF >> "$cfgfile"
12880
 
12881
# func_append var value
12882
# Append VALUE to the end of shell variable VAR.
12883
func_append ()
12884
{
12885
  eval "$1=\$$1\$2"
12886
}
12887
 
12888
_LT_EOF
12889
    ;;
12890
  esac
12891
 
12892
 
12893
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12894
    || (rm -f "$cfgfile"; exit 1)
12895
 
12896
  mv -f "$cfgfile" "$ofile" ||
12897
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12898
  chmod +x "$ofile"
12899
 
12900
 ;;
12901
 
12902
  esac
12903
done # for ac_tag
12904
 
12905
 
12906
as_fn_exit 0
12907
_ACEOF
12908
ac_clean_files=$ac_clean_files_save
12909
 
12910
test $ac_write_fail = 0 ||
12911
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12912
 
12913
 
12914
# configure is writing to config.log, and then calls config.status.
12915
# config.status does its own redirection, appending to config.log.
12916
# Unfortunately, on DOS this fails, as config.log is still kept open
12917
# by configure, so config.status won't be able to write to it; its
12918
# output is simply discarded.  So we exec the FD to /dev/null,
12919
# effectively closing config.log, so it can be properly (re)opened and
12920
# appended to by config.status.  When coming back to configure, we
12921
# need to make the FD available again.
12922
if test "$no_create" != yes; then
12923
  ac_cs_success=:
12924
  ac_config_status_args=
12925
  test "$silent" = yes &&
12926
    ac_config_status_args="$ac_config_status_args --quiet"
12927
  exec 5>/dev/null
12928
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12929
  exec 5>>config.log
12930
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12931
  # would make configure fail if this is the last instruction.
12932
  $ac_cs_success || as_fn_exit $?
12933
fi
12934
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12935
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12936
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12937
fi
12938
 

powered by: WebSVN 2.1.0

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