~ubuntu-branches/ubuntu/wily/cloog/wily-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2015-04-24 15:07:57 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20150424150757-wumy8mdonvtgf29j
Tags: 0.18.3-1
* New upstream version.
* Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for cloog 0.18.2.
 
3
# Generated by GNU Autoconf 2.69 for cloog 0.18.3.
4
4
#
5
5
# Report bugs to <cloog-development@googlegroups.com>.
6
6
#
7
7
#
8
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
 
# Foundation, Inc.
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
9
#
12
10
#
13
11
# This configure script is free software; the Free Software Foundation
136
134
# CDPATH.
137
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
139
162
if test "x$CONFIG_SHELL" = x; then
140
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
164
  emulate sh
169
192
else
170
193
  exitcode=1; echo positional parameters were not saved.
171
194
fi
172
 
test x\$exitcode = x0 || exit 1"
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
173
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
222
246
 
223
247
 
224
248
      if test "x$CONFIG_SHELL" != x; then :
225
 
  # We cannot yet assume a decent shell, so we have to provide a
226
 
        # neutralization value for shells without unset; and this also
227
 
        # works around shells that cannot unset nonexistent variables.
228
 
        # Preserve -v and -x to the replacement shell.
229
 
        BASH_ENV=/dev/null
230
 
        ENV=/dev/null
231
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
 
        export CONFIG_SHELL
233
 
        case $- in # ((((
234
 
          *v*x* | *x*v* ) as_opts=-vx ;;
235
 
          *v* ) as_opts=-v ;;
236
 
          *x* ) as_opts=-x ;;
237
 
          * ) as_opts= ;;
238
 
        esac
239
 
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
240
268
fi
241
269
 
242
270
    if test x$as_have_required = xno; then :
339
367
 
340
368
 
341
369
} # as_fn_mkdir_p
 
370
 
 
371
# as_fn_executable_p FILE
 
372
# -----------------------
 
373
# Test if FILE is an executable regular file.
 
374
as_fn_executable_p ()
 
375
{
 
376
  test -f "$1" && test -x "$1"
 
377
} # as_fn_executable_p
342
378
# as_fn_append VAR VALUE
343
379
# ----------------------
344
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
460
496
  chmod +x "$as_me.lineno" ||
461
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
498
 
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
500
  # already done that, so ensure we don't try to do so again and fall
 
501
  # in an infinite loop.  This has already happened in practice.
 
502
  _as_can_reexec=no; export _as_can_reexec
463
503
  # Don't try to exec as it changes $[0], causing all sort of problems
464
504
  # (the dirname of $[0] is not the place where we might find the
465
505
  # original and so on.  Autoconf is especially sensitive to this).
494
534
    # ... but there are two gotchas:
495
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
 
    # In both cases, we have to default to `cp -p'.
 
537
    # In both cases, we have to default to `cp -pR'.
498
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499
 
      as_ln_s='cp -p'
 
539
      as_ln_s='cp -pR'
500
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
501
541
    as_ln_s=ln
502
542
  else
503
 
    as_ln_s='cp -p'
 
543
    as_ln_s='cp -pR'
504
544
  fi
505
545
else
506
 
  as_ln_s='cp -p'
 
546
  as_ln_s='cp -pR'
507
547
fi
508
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
549
rmdir conf$$.dir 2>/dev/null
515
555
  as_mkdir_p=false
516
556
fi
517
557
 
518
 
if test -x / >/dev/null 2>&1; then
519
 
  as_test_x='test -x'
520
 
else
521
 
  if ls -dL / >/dev/null 2>&1; then
522
 
    as_ls_L_option=L
523
 
  else
524
 
    as_ls_L_option=
525
 
  fi
526
 
  as_test_x='
527
 
    eval sh -c '\''
528
 
      if test -d "$1"; then
529
 
        test -d "$1/.";
530
 
      else
531
 
        case $1 in #(
532
 
        -*)set "./$1";;
533
 
        esac;
534
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
 
        ???[sx]*):;;*)false;;esac;fi
536
 
    '\'' sh
537
 
  '
538
 
fi
539
 
as_executable_p=$as_test_x
 
558
as_test_x='test -x'
 
559
as_executable_p=as_fn_executable_p
540
560
 
541
561
# Sed expression to map a string onto a valid CPP name.
542
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
590
# Identity of this package.
571
591
PACKAGE_NAME='cloog'
572
592
PACKAGE_TARNAME='cloog'
573
 
PACKAGE_VERSION='0.18.2'
574
 
PACKAGE_STRING='cloog 0.18.2'
 
593
PACKAGE_VERSION='0.18.3'
 
594
PACKAGE_STRING='cloog 0.18.3'
575
595
PACKAGE_BUGREPORT='cloog-development@googlegroups.com'
576
596
PACKAGE_URL=''
577
597
 
1253
1273
if test "x$host_alias" != x; then
1254
1274
  if test "x$build_alias" = x; then
1255
1275
    cross_compiling=maybe
1256
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1258
1276
  elif test "x$build_alias" != "x$host_alias"; then
1259
1277
    cross_compiling=yes
1260
1278
  fi
1340
1358
  # Omit some internal or obsolete options to make the list less imposing.
1341
1359
  # This message is too long to be a string in the A/UX 3.1 sh.
1342
1360
  cat <<_ACEOF
1343
 
\`configure' configures cloog 0.18.2 to adapt to many kinds of systems.
 
1361
\`configure' configures cloog 0.18.3 to adapt to many kinds of systems.
1344
1362
 
1345
1363
Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1364
 
1410
1428
 
1411
1429
if test -n "$ac_init_help"; then
1412
1430
  case $ac_init_help in
1413
 
     short | recursive ) echo "Configuration of cloog 0.18.2:";;
 
1431
     short | recursive ) echo "Configuration of cloog 0.18.3:";;
1414
1432
   esac
1415
1433
  cat <<\_ACEOF
1416
1434
 
1418
1436
  --disable-option-checking  ignore unrecognized --enable/--with options
1419
1437
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420
1438
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1422
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1423
 
  --disable-dependency-tracking  speeds up one-time build
1424
 
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1439
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1440
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1441
  --enable-dependency-tracking
 
1442
                          do not reject slow dependency extractors
 
1443
  --disable-dependency-tracking
 
1444
                          speeds up one-time build
1425
1445
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1426
1446
  --enable-static[=PKGS]  build static libraries [default=yes]
1427
1447
  --enable-fast-install[=PKGS]
1437
1457
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1438
1458
                          both]
1439
1459
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1440
 
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1441
 
                          compiler's sysroot if not specified).
 
1460
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1461
                        (or the compiler's sysroot if not specified).
1442
1462
  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1443
1463
                          instead of guessing
1444
1464
  --with-isl=no|system|build|bundled
1535
1555
test -n "$ac_init_help" && exit $ac_status
1536
1556
if $ac_init_version; then
1537
1557
  cat <<\_ACEOF
1538
 
cloog configure 0.18.2
1539
 
generated by GNU Autoconf 2.68
 
1558
cloog configure 0.18.3
 
1559
generated by GNU Autoconf 2.69
1540
1560
 
1541
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
1561
Copyright (C) 2012 Free Software Foundation, Inc.
1542
1562
This configure script is free software; the Free Software Foundation
1543
1563
gives unlimited permission to copy, distribute and modify it.
1544
1564
_ACEOF
1614
1634
         test ! -s conftest.err
1615
1635
       } && test -s conftest$ac_exeext && {
1616
1636
         test "$cross_compiling" = yes ||
1617
 
         $as_test_x conftest$ac_exeext
 
1637
         test -x conftest$ac_exeext
1618
1638
       }; then :
1619
1639
  ac_retval=0
1620
1640
else
2004
2024
This file contains any messages produced by compilers while
2005
2025
running configure, to aid debugging if configure makes a mistake.
2006
2026
 
2007
 
It was created by cloog $as_me 0.18.2, which was
2008
 
generated by GNU Autoconf 2.68.  Invocation command line was
 
2027
It was created by cloog $as_me 0.18.3, which was
 
2028
generated by GNU Autoconf 2.69.  Invocation command line was
2009
2029
 
2010
2030
  $ $0 $@
2011
2031
 
2386
2406
 
2387
2407
VERSION_MAJOR=0
2388
2408
VERSION_MINOR=18
2389
 
VERSION_REVISION=2
 
2409
VERSION_REVISION=3
2390
2410
 
2391
2411
versioninfo=4:0:0
2392
2412
 
2393
 
am__api_version='1.11'
 
2413
am__api_version='1.14'
2394
2414
 
2395
2415
# Find a good install program.  We prefer a C program (faster),
2396
2416
# so one script is as good as another.  But avoid the broken or
2429
2449
    # by default.
2430
2450
    for ac_prog in ginstall scoinst install; do
2431
2451
      for ac_exec_ext in '' $ac_executable_extensions; do
2432
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2452
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2433
2453
          if test $ac_prog = install &&
2434
2454
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2435
2455
            # AIX install.  It has an incompatible calling convention.
2487
2507
 
2488
2508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2489
2509
$as_echo_n "checking whether build environment is sane... " >&6; }
2490
 
# Just in case
2491
 
sleep 1
2492
 
echo timestamp > conftest.file
2493
2510
# Reject unsafe characters in $srcdir or the absolute working directory
2494
2511
# name.  Accept space and tab only in the latter.
2495
2512
am_lf='
2500
2517
esac
2501
2518
case $srcdir in
2502
2519
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2503
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2520
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2504
2521
esac
2505
2522
 
2506
 
# Do `set' in a subshell so we don't clobber the current shell's
 
2523
# Do 'set' in a subshell so we don't clobber the current shell's
2507
2524
# arguments.  Must try -L first in case configure is actually a
2508
2525
# symlink; some systems play weird games with the mod time of symlinks
2509
2526
# (eg FreeBSD returns the mod time of the symlink's containing
2510
2527
# directory).
2511
2528
if (
2512
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2513
 
   if test "$*" = "X"; then
2514
 
      # -L didn't work.
2515
 
      set X `ls -t "$srcdir/configure" conftest.file`
2516
 
   fi
2517
 
   rm -f conftest.file
2518
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2519
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2520
 
 
2521
 
      # If neither matched, then we have a broken ls.  This can happen
2522
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2523
 
      # broken ls alias from the environment.  This has actually
2524
 
      # happened.  Such a system could not be considered "sane".
2525
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2526
 
alias in your environment" "$LINENO" 5
2527
 
   fi
2528
 
 
 
2529
   am_has_slept=no
 
2530
   for am_try in 1 2; do
 
2531
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2532
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2533
     if test "$*" = "X"; then
 
2534
        # -L didn't work.
 
2535
        set X `ls -t "$srcdir/configure" conftest.file`
 
2536
     fi
 
2537
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2538
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2539
 
 
2540
        # If neither matched, then we have a broken ls.  This can happen
 
2541
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2542
        # broken ls alias from the environment.  This has actually
 
2543
        # happened.  Such a system could not be considered "sane".
 
2544
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2545
  alias in your environment" "$LINENO" 5
 
2546
     fi
 
2547
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2548
       break
 
2549
     fi
 
2550
     # Just in case.
 
2551
     sleep 1
 
2552
     am_has_slept=yes
 
2553
   done
2529
2554
   test "$2" = conftest.file
2530
2555
   )
2531
2556
then
2537
2562
fi
2538
2563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2539
2564
$as_echo "yes" >&6; }
 
2565
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2566
# generated files are strictly newer.
 
2567
am_sleep_pid=
 
2568
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2569
  ( sleep 1 ) &
 
2570
  am_sleep_pid=$!
 
2571
fi
 
2572
 
 
2573
rm -f conftest.file
 
2574
 
2540
2575
test "$program_prefix" != NONE &&
2541
2576
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2542
2577
# Use a double $ so make ignores it.
2559
2594
  esac
2560
2595
fi
2561
2596
# Use eval to expand $SHELL
2562
 
if eval "$MISSING --run true"; then
2563
 
  am_missing_run="$MISSING --run "
 
2597
if eval "$MISSING --is-lightweight"; then
 
2598
  am_missing_run="$MISSING "
2564
2599
else
2565
2600
  am_missing_run=
2566
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2567
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2601
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2602
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2568
2603
fi
2569
2604
 
2570
2605
if test x"${install_sh}" != xset; then
2576
2611
  esac
2577
2612
fi
2578
2613
 
2579
 
# Installed binaries are usually stripped using `strip' when the user
2580
 
# run `make install-strip'.  However `strip' might not be the right
 
2614
# Installed binaries are usually stripped using 'strip' when the user
 
2615
# run "make install-strip".  However 'strip' might not be the right
2581
2616
# tool to use in cross-compilation environments, therefore Automake
2582
 
# will honor the `STRIP' environment variable to overrule this program.
 
2617
# will honor the 'STRIP' environment variable to overrule this program.
2583
2618
if test "$cross_compiling" != no; then
2584
2619
  if test -n "$ac_tool_prefix"; then
2585
2620
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2598
2633
  IFS=$as_save_IFS
2599
2634
  test -z "$as_dir" && as_dir=.
2600
2635
    for ac_exec_ext in '' $ac_executable_extensions; do
2601
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2636
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602
2637
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2603
2638
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604
2639
    break 2
2638
2673
  IFS=$as_save_IFS
2639
2674
  test -z "$as_dir" && as_dir=.
2640
2675
    for ac_exec_ext in '' $ac_executable_extensions; do
2641
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2676
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642
2677
    ac_cv_prog_ac_ct_STRIP="strip"
2643
2678
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644
2679
    break 2
2689
2724
  test -z "$as_dir" && as_dir=.
2690
2725
    for ac_prog in mkdir gmkdir; do
2691
2726
         for ac_exec_ext in '' $ac_executable_extensions; do
2692
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2727
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2693
2728
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2694
2729
             'mkdir (GNU coreutils) '* | \
2695
2730
             'mkdir (coreutils) '* | \
2718
2753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2719
2754
$as_echo "$MKDIR_P" >&6; }
2720
2755
 
2721
 
mkdir_p="$MKDIR_P"
2722
 
case $mkdir_p in
2723
 
  [\\/$]* | ?:[\\/]*) ;;
2724
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2725
 
esac
2726
 
 
2727
2756
for ac_prog in gawk mawk nawk awk
2728
2757
do
2729
2758
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2742
2771
  IFS=$as_save_IFS
2743
2772
  test -z "$as_dir" && as_dir=.
2744
2773
    for ac_exec_ext in '' $ac_executable_extensions; do
2745
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2774
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746
2775
    ac_cv_prog_AWK="$ac_prog"
2747
2776
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748
2777
    break 2
2806
2835
fi
2807
2836
rmdir .tst 2>/dev/null
2808
2837
 
 
2838
# Check whether --enable-silent-rules was given.
 
2839
if test "${enable_silent_rules+set}" = set; then :
 
2840
  enableval=$enable_silent_rules;
 
2841
fi
 
2842
 
 
2843
case $enable_silent_rules in # (((
 
2844
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2845
   no) AM_DEFAULT_VERBOSITY=1;;
 
2846
    *) AM_DEFAULT_VERBOSITY=1;;
 
2847
esac
 
2848
am_make=${MAKE-make}
 
2849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2850
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2851
if ${am_cv_make_support_nested_variables+:} false; then :
 
2852
  $as_echo_n "(cached) " >&6
 
2853
else
 
2854
  if $as_echo 'TRUE=$(BAR$(V))
 
2855
BAR0=false
 
2856
BAR1=true
 
2857
V=1
 
2858
am__doit:
 
2859
        @$(TRUE)
 
2860
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2861
  am_cv_make_support_nested_variables=yes
 
2862
else
 
2863
  am_cv_make_support_nested_variables=no
 
2864
fi
 
2865
fi
 
2866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2867
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2868
if test $am_cv_make_support_nested_variables = yes; then
 
2869
    AM_V='$(V)'
 
2870
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2871
else
 
2872
  AM_V=$AM_DEFAULT_VERBOSITY
 
2873
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2874
fi
 
2875
AM_BACKSLASH='\'
 
2876
 
2809
2877
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2810
2878
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2811
2879
  # is not polluted with repeated "-I."
2828
2896
 
2829
2897
# Define the identity of the package.
2830
2898
 PACKAGE='cloog'
2831
 
 VERSION='0.18.2'
 
2899
 VERSION='0.18.3'
2832
2900
 
2833
2901
 
2834
2902
cat >>confdefs.h <<_ACEOF
2856
2924
 
2857
2925
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858
2926
 
 
2927
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2928
# dies out for good.  For more background, see:
 
2929
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2930
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2931
mkdir_p='$(MKDIR_P)'
 
2932
 
2859
2933
# We need awk for the "check" target.  The system "awk" is bad on
2860
2934
# some platforms.
2861
2935
# Always define AMTAR for backward compatibility.  Yes, it's still used
2862
2936
# in the wild :-(  We should find a proper way to deprecate it ...
2863
2937
AMTAR='$${TAR-tar}'
2864
2938
 
 
2939
 
 
2940
# We'll loop over all known methods to create a tar archive until one works.
 
2941
_am_tools='gnutar  pax cpio none'
 
2942
 
2865
2943
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2866
2944
 
2867
2945
 
2868
2946
 
2869
2947
 
2870
2948
 
 
2949
 
 
2950
# POSIX will say in a future version that running "rm -f" with no argument
 
2951
# is OK; and we want to be able to make that assumption in our Makefile
 
2952
# recipes.  So use an aggressive probe to check that the usage we want is
 
2953
# actually supported "in the wild" to an acceptable degree.
 
2954
# See automake bug#10828.
 
2955
# To make any issue more visible, cause the running configure to be aborted
 
2956
# by default if the 'rm' program in use doesn't match our expectations; the
 
2957
# user can still override this though.
 
2958
if rm -f && rm -fr && rm -rf; then : OK; else
 
2959
  cat >&2 <<'END'
 
2960
Oops!
 
2961
 
 
2962
Your 'rm' program seems unable to run without file operands specified
 
2963
on the command line, even when the '-f' option is present.  This is contrary
 
2964
to the behaviour of most rm programs out there, and not conforming with
 
2965
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
2966
 
 
2967
Please tell bug-automake@gnu.org about your system, including the value
 
2968
of your $PATH and any error possibly output before this message.  This
 
2969
can help us improve future automake versions.
 
2970
 
 
2971
END
 
2972
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
2973
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
2974
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
2975
    echo >&2
 
2976
  else
 
2977
    cat >&2 <<'END'
 
2978
Aborting the configuration process, to ensure you take notice of the issue.
 
2979
 
 
2980
You can download and install GNU coreutils to get an 'rm' implementation
 
2981
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
2982
 
 
2983
If you want to complete the configuration process using your problematic
 
2984
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
2985
to "yes", and re-run configure.
 
2986
 
 
2987
END
 
2988
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
2989
  fi
 
2990
fi
2871
2991
# Check whether --enable-silent-rules was given.
2872
2992
if test "${enable_silent_rules+set}" = set; then :
2873
2993
  enableval=$enable_silent_rules;
2874
2994
fi
2875
2995
 
2876
 
case $enable_silent_rules in
2877
 
yes) AM_DEFAULT_VERBOSITY=0;;
2878
 
no)  AM_DEFAULT_VERBOSITY=1;;
2879
 
*)   AM_DEFAULT_VERBOSITY=0;;
 
2996
case $enable_silent_rules in # (((
 
2997
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2998
   no) AM_DEFAULT_VERBOSITY=1;;
 
2999
    *) AM_DEFAULT_VERBOSITY=0;;
2880
3000
esac
2881
3001
am_make=${MAKE-make}
2882
3002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2931
3051
  IFS=$as_save_IFS
2932
3052
  test -z "$as_dir" && as_dir=.
2933
3053
    for ac_exec_ext in '' $ac_executable_extensions; do
2934
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3054
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935
3055
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936
3056
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937
3057
    break 2
2971
3091
  IFS=$as_save_IFS
2972
3092
  test -z "$as_dir" && as_dir=.
2973
3093
    for ac_exec_ext in '' $ac_executable_extensions; do
2974
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3094
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975
3095
    ac_cv_prog_ac_ct_CC="gcc"
2976
3096
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977
3097
    break 2
3024
3144
  IFS=$as_save_IFS
3025
3145
  test -z "$as_dir" && as_dir=.
3026
3146
    for ac_exec_ext in '' $ac_executable_extensions; do
3027
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3147
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028
3148
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3029
3149
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030
3150
    break 2
3065
3185
  IFS=$as_save_IFS
3066
3186
  test -z "$as_dir" && as_dir=.
3067
3187
    for ac_exec_ext in '' $ac_executable_extensions; do
3068
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3188
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069
3189
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070
3190
       ac_prog_rejected=yes
3071
3191
       continue
3123
3243
  IFS=$as_save_IFS
3124
3244
  test -z "$as_dir" && as_dir=.
3125
3245
    for ac_exec_ext in '' $ac_executable_extensions; do
3126
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3246
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127
3247
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3128
3248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129
3249
    break 2
3167
3287
  IFS=$as_save_IFS
3168
3288
  test -z "$as_dir" && as_dir=.
3169
3289
    for ac_exec_ext in '' $ac_executable_extensions; do
3170
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3290
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171
3291
    ac_cv_prog_ac_ct_CC="$ac_prog"
3172
3292
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173
3293
    break 2
3613
3733
/* end confdefs.h.  */
3614
3734
#include <stdarg.h>
3615
3735
#include <stdio.h>
3616
 
#include <sys/types.h>
3617
 
#include <sys/stat.h>
 
3736
struct stat;
3618
3737
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3619
3738
struct buf { int x; };
3620
3739
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698
3817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699
3818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700
3819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3820
 
 
3821
ac_ext=c
 
3822
ac_cpp='$CPP $CPPFLAGS'
 
3823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
3827
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
3828
if ${am_cv_prog_cc_c_o+:} false; then :
 
3829
  $as_echo_n "(cached) " >&6
 
3830
else
 
3831
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3832
/* end confdefs.h.  */
 
3833
 
 
3834
int
 
3835
main ()
 
3836
{
 
3837
 
 
3838
  ;
 
3839
  return 0;
 
3840
}
 
3841
_ACEOF
 
3842
  # Make sure it works both with $CC and with simple cc.
 
3843
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
3844
  # compilers refuse to overwrite an existing .o file with -o,
 
3845
  # though they will create one.
 
3846
  am_cv_prog_cc_c_o=yes
 
3847
  for am_i in 1 2; do
 
3848
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
3849
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
3850
   ac_status=$?
 
3851
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3852
   (exit $ac_status); } \
 
3853
         && test -f conftest2.$ac_objext; then
 
3854
      : OK
 
3855
    else
 
3856
      am_cv_prog_cc_c_o=no
 
3857
      break
 
3858
    fi
 
3859
  done
 
3860
  rm -f core conftest*
 
3861
  unset am_i
 
3862
fi
 
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
3864
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
3865
if test "$am_cv_prog_cc_c_o" != yes; then
 
3866
   # Losing compiler, so override with the script.
 
3867
   # FIXME: It is wrong to rewrite CC.
 
3868
   # But if we don't then we get into trouble of one sort or another.
 
3869
   # A longer-term fix would be to have automake use am__CC in this case,
 
3870
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3871
   CC="$am_aux_dir/compile $CC"
 
3872
fi
 
3873
ac_ext=c
 
3874
ac_cpp='$CPP $CPPFLAGS'
 
3875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3878
 
3701
3879
DEPDIR="${am__leading_dot}deps"
3702
3880
 
3703
3881
ac_config_commands="$ac_config_commands depfiles"
3717
3895
_am_result=none
3718
3896
# First try GNU make style include.
3719
3897
echo "include confinc" > confmf
3720
 
# Ignore all kinds of additional output from `make'.
 
3898
# Ignore all kinds of additional output from 'make'.
3721
3899
case `$am_make -s -f confmf 2> /dev/null` in #(
3722
3900
*the\ am__doit\ target*)
3723
3901
  am__include=include
3773
3951
  # We make a subdir and do the tests there.  Otherwise we can end up
3774
3952
  # making bogus files that we don't know about and never remove.  For
3775
3953
  # instance it was reported that on HP-UX the gcc test will end up
3776
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3777
 
  # in D'.
 
3954
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3955
  # in D".
3778
3956
  rm -rf conftest.dir
3779
3957
  mkdir conftest.dir
3780
3958
  # Copy depcomp to subdir because otherwise we won't find it if we're
3809
3987
    : > sub/conftest.c
3810
3988
    for i in 1 2 3 4 5 6; do
3811
3989
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3812
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3813
 
      # Solaris 8's {/usr,}/bin/sh.
3814
 
      touch sub/conftst$i.h
 
3990
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3991
      # Solaris 10 /bin/sh.
 
3992
      echo '/* dummy */' > sub/conftst$i.h
3815
3993
    done
3816
3994
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3817
3995
 
3818
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3996
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3819
3997
    # mode.  It turns out that the SunPro C++ compiler does not properly
3820
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
3821
 
    # versions had trouble with output in subdirs
 
3998
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3999
    # versions had trouble with output in subdirs.
3822
4000
    am__obj=sub/conftest.${OBJEXT-o}
3823
4001
    am__minus_obj="-o $am__obj"
3824
4002
    case $depmode in
3827
4005
      test "$am__universal" = false || continue
3828
4006
      ;;
3829
4007
    nosideeffect)
3830
 
      # after this tag, mechanisms are not by side-effect, so they'll
3831
 
      # only be used when explicitly requested
 
4008
      # After this tag, mechanisms are not by side-effect, so they'll
 
4009
      # only be used when explicitly requested.
3832
4010
      if test "x$enable_dependency_tracking" = xyes; then
3833
4011
        continue
3834
4012
      else
3836
4014
      fi
3837
4015
      ;;
3838
4016
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3839
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4017
      # This compiler won't grok '-c -o', but also, the minuso test has
3840
4018
      # not run yet.  These depmodes are late enough in the game, and
3841
4019
      # so weak that their functioning should not be impacted.
3842
4020
      am__obj=conftest.${OBJEXT-o}
3948
4126
  IFS=$as_save_IFS
3949
4127
  test -z "$as_dir" && as_dir=.
3950
4128
    for ac_exec_ext in '' $ac_executable_extensions; do
3951
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4129
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952
4130
    ac_cv_prog_CD=""
3953
4131
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954
4132
    break 2
3978
4156
 
3979
4157
 
3980
4158
 
3981
 
macro_version='2.4.2.418'
3982
 
macro_revision='2.4.2.418'
3983
 
 
3984
 
 
3985
 
 
3986
 
 
3987
 
 
3988
 
 
3989
 
 
3990
 
 
3991
 
 
3992
 
 
3993
 
 
3994
 
 
3995
 
 
3996
 
ltmain=$ac_aux_dir/ltmain.sh
 
4159
macro_version='2.4.2'
 
4160
macro_revision='1.3337'
 
4161
 
 
4162
 
 
4163
 
 
4164
 
 
4165
 
 
4166
 
 
4167
 
 
4168
 
 
4169
 
 
4170
 
 
4171
 
 
4172
 
 
4173
 
 
4174
ltmain="$ac_aux_dir/ltmain.sh"
3997
4175
 
3998
4176
# Make sure we can run config.sub.
3999
4177
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4113
4291
    $ECHO ""
4114
4292
}
4115
4293
 
4116
 
case $ECHO in
 
4294
case "$ECHO" in
4117
4295
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4118
4296
$as_echo "printf" >&6; } ;;
4119
4297
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4157
4335
    for ac_prog in sed gsed; do
4158
4336
    for ac_exec_ext in '' $ac_executable_extensions; do
4159
4337
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4160
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4338
      as_fn_executable_p "$ac_path_SED" || continue
4161
4339
# Check for GNU ac_path_SED and select it if it is found.
4162
4340
  # Check for GNU $ac_path_SED
4163
4341
case `"$ac_path_SED" --version 2>&1` in
4233
4411
    for ac_prog in grep ggrep; do
4234
4412
    for ac_exec_ext in '' $ac_executable_extensions; do
4235
4413
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4236
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4414
      as_fn_executable_p "$ac_path_GREP" || continue
4237
4415
# Check for GNU ac_path_GREP and select it if it is found.
4238
4416
  # Check for GNU $ac_path_GREP
4239
4417
case `"$ac_path_GREP" --version 2>&1` in
4299
4477
    for ac_prog in egrep; do
4300
4478
    for ac_exec_ext in '' $ac_executable_extensions; do
4301
4479
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4302
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4480
      as_fn_executable_p "$ac_path_EGREP" || continue
4303
4481
# Check for GNU ac_path_EGREP and select it if it is found.
4304
4482
  # Check for GNU $ac_path_EGREP
4305
4483
case `"$ac_path_EGREP" --version 2>&1` in
4366
4544
    for ac_prog in fgrep; do
4367
4545
    for ac_exec_ext in '' $ac_executable_extensions; do
4368
4546
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4369
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4547
      as_fn_executable_p "$ac_path_FGREP" || continue
4370
4548
# Check for GNU ac_path_FGREP and select it if it is found.
4371
4549
  # Check for GNU $ac_path_FGREP
4372
4550
case `"$ac_path_FGREP" --version 2>&1` in
4436
4614
 
4437
4615
# Check whether --with-gnu-ld was given.
4438
4616
if test "${with_gnu_ld+set}" = set; then :
4439
 
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
 
4617
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4440
4618
else
4441
4619
  with_gnu_ld=no
4442
4620
fi
4443
4621
 
4444
4622
ac_prog=ld
4445
 
if test yes = "$GCC"; then
 
4623
if test "$GCC" = yes; then
4446
4624
  # Check if gcc -print-prog-name=ld gives a path.
4447
4625
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4448
4626
$as_echo_n "checking for ld used by $CC... " >&6; }
4449
4627
  case $host in
4450
4628
  *-*-mingw*)
4451
 
    # gcc leaves a trailing carriage return, which upsets mingw
 
4629
    # gcc leaves a trailing carriage return which upsets mingw
4452
4630
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4453
4631
  *)
4454
4632
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4462
4640
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4463
4641
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4464
4642
      done
4465
 
      test -z "$LD" && LD=$ac_prog
 
4643
      test -z "$LD" && LD="$ac_prog"
4466
4644
      ;;
4467
4645
  "")
4468
4646
    # If it fails, then pretend we aren't using GCC.
4473
4651
    with_gnu_ld=unknown
4474
4652
    ;;
4475
4653
  esac
4476
 
elif test yes = "$with_gnu_ld"; then
 
4654
elif test "$with_gnu_ld" = yes; then
4477
4655
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4478
4656
$as_echo_n "checking for GNU ld... " >&6; }
4479
4657
else
4484
4662
  $as_echo_n "(cached) " >&6
4485
4663
else
4486
4664
  if test -z "$LD"; then
4487
 
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
4665
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4488
4666
  for ac_dir in $PATH; do
4489
 
    IFS=$lt_save_ifs
 
4667
    IFS="$lt_save_ifs"
4490
4668
    test -z "$ac_dir" && ac_dir=.
4491
4669
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4492
 
      lt_cv_path_LD=$ac_dir/$ac_prog
 
4670
      lt_cv_path_LD="$ac_dir/$ac_prog"
4493
4671
      # Check to see if the program is GNU ld.  I'd rather use --version,
4494
4672
      # but apparently some variants of GNU ld only accept -v.
4495
4673
      # Break only if it was the GNU/non-GNU ld that we prefer.
4496
4674
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4497
4675
      *GNU* | *'with BFD'*)
4498
 
        test no != "$with_gnu_ld" && break
 
4676
        test "$with_gnu_ld" != no && break
4499
4677
        ;;
4500
4678
      *)
4501
 
        test yes != "$with_gnu_ld" && break
 
4679
        test "$with_gnu_ld" != yes && break
4502
4680
        ;;
4503
4681
      esac
4504
4682
    fi
4505
4683
  done
4506
 
  IFS=$lt_save_ifs
 
4684
  IFS="$lt_save_ifs"
4507
4685
else
4508
 
  lt_cv_path_LD=$LD # Let the user override the test with a path.
 
4686
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4509
4687
fi
4510
4688
fi
4511
4689
 
4512
 
LD=$lt_cv_path_LD
 
4690
LD="$lt_cv_path_LD"
4513
4691
if test -n "$LD"; then
4514
4692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4515
4693
$as_echo "$LD" >&6; }
4552
4730
else
4553
4731
  if test -n "$NM"; then
4554
4732
  # Let the user override the test.
4555
 
  lt_cv_path_NM=$NM
 
4733
  lt_cv_path_NM="$NM"
4556
4734
else
4557
 
  lt_nm_to_check=${ac_tool_prefix}nm
 
4735
  lt_nm_to_check="${ac_tool_prefix}nm"
4558
4736
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4559
4737
    lt_nm_to_check="$lt_nm_to_check nm"
4560
4738
  fi
4561
4739
  for lt_tmp_nm in $lt_nm_to_check; do
4562
 
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
4740
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563
4741
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4564
 
      IFS=$lt_save_ifs
 
4742
      IFS="$lt_save_ifs"
4565
4743
      test -z "$ac_dir" && ac_dir=.
4566
 
      tmp_nm=$ac_dir/$lt_tmp_nm
4567
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 
4744
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4745
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4568
4746
        # Check to see if the nm accepts a BSD-compat flag.
4569
 
        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 
4747
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4570
4748
        #   nm: unknown option "B" ignored
4571
4749
        # Tru64's nm complains that /dev/null is an invalid object file
4572
4750
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4573
4751
        */dev/null* | *'Invalid file or object type'*)
4574
4752
          lt_cv_path_NM="$tmp_nm -B"
4575
 
          break 2
 
4753
          break
4576
4754
          ;;
4577
4755
        *)
4578
4756
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4579
4757
          */dev/null*)
4580
4758
            lt_cv_path_NM="$tmp_nm -p"
4581
 
            break 2
 
4759
            break
4582
4760
            ;;
4583
4761
          *)
4584
4762
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4589
4767
        esac
4590
4768
      fi
4591
4769
    done
4592
 
    IFS=$lt_save_ifs
 
4770
    IFS="$lt_save_ifs"
4593
4771
  done
4594
4772
  : ${lt_cv_path_NM=no}
4595
4773
fi
4596
4774
fi
4597
4775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4598
4776
$as_echo "$lt_cv_path_NM" >&6; }
4599
 
if test no != "$lt_cv_path_NM"; then
4600
 
  NM=$lt_cv_path_NM
 
4777
if test "$lt_cv_path_NM" != "no"; then
 
4778
  NM="$lt_cv_path_NM"
4601
4779
else
4602
4780
  # Didn't find any BSD compatible name lister, look for dumpbin.
4603
4781
  if test -n "$DUMPBIN"; then :
4622
4800
  IFS=$as_save_IFS
4623
4801
  test -z "$as_dir" && as_dir=.
4624
4802
    for ac_exec_ext in '' $ac_executable_extensions; do
4625
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4803
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626
4804
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4627
4805
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628
4806
    break 2
4666
4844
  IFS=$as_save_IFS
4667
4845
  test -z "$as_dir" && as_dir=.
4668
4846
    for ac_exec_ext in '' $ac_executable_extensions; do
4669
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4847
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670
4848
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4671
4849
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672
4850
    break 2
4703
4881
  fi
4704
4882
fi
4705
4883
 
4706
 
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
 
4884
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4707
4885
    *COFF*)
4708
 
      DUMPBIN="$DUMPBIN -symbols -headers"
 
4886
      DUMPBIN="$DUMPBIN -symbols"
4709
4887
      ;;
4710
4888
    *)
4711
4889
      DUMPBIN=:
4713
4891
    esac
4714
4892
  fi
4715
4893
 
4716
 
  if test : != "$DUMPBIN"; then
4717
 
    NM=$DUMPBIN
 
4894
  if test "$DUMPBIN" != ":"; then
 
4895
    NM="$DUMPBIN"
4718
4896
  fi
4719
4897
fi
4720
4898
test -z "$NM" && NM=nm
4754
4932
  $as_echo_n "(cached) " >&6
4755
4933
else
4756
4934
    i=0
4757
 
  teststring=ABCD
 
4935
  teststring="ABCD"
4758
4936
 
4759
4937
  case $build_os in
4760
4938
  msdosdjgpp*)
4794
4972
    lt_cv_sys_max_cmd_len=8192;
4795
4973
    ;;
4796
4974
 
4797
 
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
 
4975
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4798
4976
    # This has been around since 386BSD, at least.  Likely further.
4799
4977
    if test -x /sbin/sysctl; then
4800
4978
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4844
5022
    ;;
4845
5023
  *)
4846
5024
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4847
 
    if test -n "$lt_cv_sys_max_cmd_len" && \
4848
 
       test undefined != "$lt_cv_sys_max_cmd_len"; then
 
5025
    if test -n "$lt_cv_sys_max_cmd_len"; then
4849
5026
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850
5027
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851
5028
    else
4852
5029
      # Make teststring a little bigger before we do anything with it.
4853
5030
      # a 1K string should be a reasonable start.
4854
 
      for i in 1 2 3 4 5 6 7 8; do
 
5031
      for i in 1 2 3 4 5 6 7 8 ; do
4855
5032
        teststring=$teststring$teststring
4856
5033
      done
4857
5034
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4858
5035
      # If test is not a shell built-in, we'll probably end up computing a
4859
5036
      # maximum length that is only half of the actual maximum length, but
4860
5037
      # we can't tell.
4861
 
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
 
5038
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4862
5039
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4863
 
              test 17 != "$i" # 1/2 MB should be enough
 
5040
              test $i != 17 # 1/2 MB should be enough
4864
5041
      do
4865
5042
        i=`expr $i + 1`
4866
5043
        teststring=$teststring$teststring
4878
5055
 
4879
5056
fi
4880
5057
 
4881
 
if test -n "$lt_cv_sys_max_cmd_len"; then
 
5058
if test -n $lt_cv_sys_max_cmd_len ; then
4882
5059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4883
5060
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4884
5061
else
4896
5073
: ${MV="mv -f"}
4897
5074
: ${RM="rm -f"}
4898
5075
 
 
5076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5077
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5078
# Try some XSI features
 
5079
xsi_shell=no
 
5080
( _lt_dummy="a/b/c"
 
5081
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5082
      = c,a/b,b/c, \
 
5083
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5084
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5085
  && xsi_shell=yes
 
5086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5087
$as_echo "$xsi_shell" >&6; }
 
5088
 
 
5089
 
 
5090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5091
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5092
lt_shell_append=no
 
5093
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5094
    >/dev/null 2>&1 \
 
5095
  && lt_shell_append=yes
 
5096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5097
$as_echo "$lt_shell_append" >&6; }
 
5098
 
 
5099
 
4899
5100
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4900
5101
  lt_unset=unset
4901
5102
else
5018
5219
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5019
5220
case $host_os in
5020
5221
  cygwin* | mingw* | pw32* | cegcc*)
5021
 
    if test yes != "$GCC"; then
 
5222
    if test "$GCC" != yes; then
5022
5223
      reload_cmds=false
5023
5224
    fi
5024
5225
    ;;
5025
5226
  darwin*)
5026
 
    if test yes = "$GCC"; then
5027
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
 
5227
    if test "$GCC" = yes; then
 
5228
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5028
5229
    else
5029
5230
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5030
5231
    fi
5056
5257
  IFS=$as_save_IFS
5057
5258
  test -z "$as_dir" && as_dir=.
5058
5259
    for ac_exec_ext in '' $ac_executable_extensions; do
5059
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5260
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060
5261
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061
5262
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062
5263
    break 2
5096
5297
  IFS=$as_save_IFS
5097
5298
  test -z "$as_dir" && as_dir=.
5098
5299
    for ac_exec_ext in '' $ac_executable_extensions; do
5099
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5300
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100
5301
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101
5302
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102
5303
    break 2
5152
5353
# Need to set the preceding variable on all platforms that support
5153
5354
# interlibrary dependencies.
5154
5355
# 'none' -- dependencies not supported.
5155
 
# 'unknown' -- same as none, but documents that we really don't know.
 
5356
# `unknown' -- same as none, but documents that we really don't know.
5156
5357
# 'pass_all' -- all dependencies passed with no checks.
5157
5358
# 'test_compile' -- check by making test program.
5158
5359
# 'file_magic [[regex]]' -- check by looking for files in library path
5159
 
# that responds to the $file_magic_cmd with a given extended regex.
5160
 
# If you have 'file' or equivalent on your system and you're not sure
5161
 
# whether 'pass_all' will *always* work, you probably want this one.
 
5360
# which responds to the $file_magic_cmd with a given extended regex.
 
5361
# If you have `file' or equivalent on your system and you're not sure
 
5362
# whether `pass_all' will *always* work, you probably want this one.
5162
5363
 
5163
5364
case $host_os in
5164
5365
aix[4-9]*)
5185
5386
  # Base MSYS/MinGW do not provide the 'file' command needed by
5186
5387
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187
5388
  # unless we find 'file', for example because we are cross-compiling.
5188
 
  if ( file / ) >/dev/null 2>&1; then
 
5389
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5390
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5189
5391
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190
5392
    lt_cv_file_magic_cmd='func_win32_libid'
5191
5393
  else
5221
5423
  fi
5222
5424
  ;;
5223
5425
 
 
5426
gnu*)
 
5427
  lt_cv_deplibs_check_method=pass_all
 
5428
  ;;
 
5429
 
5224
5430
haiku*)
5225
5431
  lt_cv_deplibs_check_method=pass_all
5226
5432
  ;;
5259
5465
  ;;
5260
5466
 
5261
5467
# This must be glibc/ELF.
5262
 
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
5468
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5263
5469
  lt_cv_deplibs_check_method=pass_all
5264
5470
  ;;
5265
5471
 
5266
 
netbsd*)
 
5472
netbsd* | netbsdelf*-gnu)
5267
5473
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5268
5474
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269
5475
  else
5281
5487
  lt_cv_deplibs_check_method=pass_all
5282
5488
  ;;
5283
5489
 
5284
 
openbsd* | bitrig*)
5285
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
5490
openbsd*)
 
5491
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5286
5492
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5287
5493
  else
5288
5494
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5397
5603
  IFS=$as_save_IFS
5398
5604
  test -z "$as_dir" && as_dir=.
5399
5605
    for ac_exec_ext in '' $ac_executable_extensions; do
5400
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5606
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401
5607
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5402
5608
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403
5609
    break 2
5437
5643
  IFS=$as_save_IFS
5438
5644
  test -z "$as_dir" && as_dir=.
5439
5645
    for ac_exec_ext in '' $ac_executable_extensions; do
5440
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5646
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441
5647
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5442
5648
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443
5649
    break 2
5492
5698
 
5493
5699
case $host_os in
5494
5700
cygwin* | mingw* | pw32* | cegcc*)
5495
 
  # two different shell functions defined in ltmain.sh;
5496
 
  # decide which one to use based on capabilities of $DLLTOOL
 
5701
  # two different shell functions defined in ltmain.sh
 
5702
  # decide which to use based on capabilities of $DLLTOOL
5497
5703
  case `$DLLTOOL --help 2>&1` in
5498
5704
  *--identify-strict*)
5499
5705
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5505
5711
  ;;
5506
5712
*)
5507
5713
  # fallback: assume linklib IS sharedlib
5508
 
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
 
5714
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5509
5715
  ;;
5510
5716
esac
5511
5717
 
5541
5747
  IFS=$as_save_IFS
5542
5748
  test -z "$as_dir" && as_dir=.
5543
5749
    for ac_exec_ext in '' $ac_executable_extensions; do
5544
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5750
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545
5751
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5546
5752
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547
5753
    break 2
5585
5791
  IFS=$as_save_IFS
5586
5792
  test -z "$as_dir" && as_dir=.
5587
5793
    for ac_exec_ext in '' $ac_executable_extensions; do
5588
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5794
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589
5795
    ac_cv_prog_ac_ct_AR="$ac_prog"
5590
5796
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591
5797
    break 2
5660
5866
  ac_status=$?
5661
5867
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662
5868
  test $ac_status = 0; }
5663
 
      if test 0 -eq "$ac_status"; then
 
5869
      if test "$ac_status" -eq 0; then
5664
5870
        # Ensure the archiver fails upon bogus file names.
5665
5871
        rm -f conftest.$ac_objext libconftest.a
5666
5872
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5668
5874
  ac_status=$?
5669
5875
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670
5876
  test $ac_status = 0; }
5671
 
        if test 0 -ne "$ac_status"; then
 
5877
        if test "$ac_status" -ne 0; then
5672
5878
          lt_cv_ar_at_file=@
5673
5879
        fi
5674
5880
      fi
5681
5887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5682
5888
$as_echo "$lt_cv_ar_at_file" >&6; }
5683
5889
 
5684
 
if test no = "$lt_cv_ar_at_file"; then
 
5890
if test "x$lt_cv_ar_at_file" = xno; then
5685
5891
  archiver_list_spec=
5686
5892
else
5687
5893
  archiver_list_spec=$lt_cv_ar_at_file
5710
5916
  IFS=$as_save_IFS
5711
5917
  test -z "$as_dir" && as_dir=.
5712
5918
    for ac_exec_ext in '' $ac_executable_extensions; do
5713
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5919
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714
5920
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5715
5921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716
5922
    break 2
5750
5956
  IFS=$as_save_IFS
5751
5957
  test -z "$as_dir" && as_dir=.
5752
5958
    for ac_exec_ext in '' $ac_executable_extensions; do
5753
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5959
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754
5960
    ac_cv_prog_ac_ct_STRIP="strip"
5755
5961
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756
5962
    break 2
5809
6015
  IFS=$as_save_IFS
5810
6016
  test -z "$as_dir" && as_dir=.
5811
6017
    for ac_exec_ext in '' $ac_executable_extensions; do
5812
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6018
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813
6019
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5814
6020
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815
6021
    break 2
5849
6055
  IFS=$as_save_IFS
5850
6056
  test -z "$as_dir" && as_dir=.
5851
6057
    for ac_exec_ext in '' $ac_executable_extensions; do
5852
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6058
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853
6059
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5854
6060
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855
6061
    break 2
5898
6104
 
5899
6105
if test -n "$RANLIB"; then
5900
6106
  case $host_os in
5901
 
  bitrig* | openbsd*)
 
6107
  openbsd*)
5902
6108
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5903
6109
    ;;
5904
6110
  *)
5988
6194
  symcode='[ABCDGISTW]'
5989
6195
  ;;
5990
6196
hpux*)
5991
 
  if test ia64 = "$host_cpu"; then
 
6197
  if test "$host_cpu" = ia64; then
5992
6198
    symcode='[ABCDEGRST]'
5993
6199
  fi
5994
6200
  ;;
6021
6227
  symcode='[ABCDGIRSTW]' ;;
6022
6228
esac
6023
6229
 
6024
 
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6025
 
  # Gets list of data symbols to import.
6026
 
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6027
 
  # Adjust the below global symbol transforms to fixup imported variables.
6028
 
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6029
 
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6030
 
  lt_c_name_lib_hook="\
6031
 
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6032
 
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6033
 
else
6034
 
  # Disable hooks by default.
6035
 
  lt_cv_sys_global_symbol_to_import=
6036
 
  lt_cdecl_hook=
6037
 
  lt_c_name_hook=
6038
 
  lt_c_name_lib_hook=
6039
 
fi
6040
 
 
6041
6230
# Transform an extracted symbol line into a proper C declaration.
6042
6231
# Some systems (esp. on ia64) link data and code symbols differently,
6043
6232
# so use this general approach.
6044
 
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6045
 
$lt_cdecl_hook\
6046
 
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6047
 
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
 
6233
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6048
6234
 
6049
6235
# Transform an extracted symbol line into symbol name and symbol address
6050
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6051
 
$lt_c_name_hook\
6052
 
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6053
 
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6054
 
 
6055
 
# Transform an extracted symbol line into symbol name with lib prefix and
6056
 
# symbol address.
6057
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6058
 
$lt_c_name_lib_hook\
6059
 
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6060
 
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6061
 
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 
6236
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6237
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'"
6062
6238
 
6063
6239
# Handle CRLF in mingw tool chain
6064
6240
opt_cr=
6076
6252
 
6077
6253
  # Write the raw and C identifiers.
6078
6254
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6079
 
    # Fake it for dumpbin and say T for any non-static function,
6080
 
    # D for any global variable and I for any imported variable.
 
6255
    # Fake it for dumpbin and say T for any non-static function
 
6256
    # and D for any global variable.
6081
6257
    # Also find C++ and __fastcall symbols from MSVC++,
6082
6258
    # which start with @ or ?.
6083
6259
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6084
6260
"     {last_section=section; section=\$ 3};"\
6085
6261
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6086
6262
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6087
 
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6088
 
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6089
 
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6090
6263
"     \$ 0!~/External *\|/{next};"\
6091
6264
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6092
6265
"     {if(hide[section]) next};"\
6093
 
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6094
 
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6095
 
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6096
 
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
 
6266
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6267
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6268
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6269
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6097
6270
"     ' prfx=^$ac_symprfx"
6098
6271
  else
6099
6272
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6141
6314
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6142
6315
          cat <<_LT_EOF > conftest.$ac_ext
6143
6316
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6144
 
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6145
 
/* DATA imports from DLLs on WIN32 can't be const, because runtime
 
6317
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6318
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6146
6319
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6147
6320
# define LT_DLSYM_CONST
6148
 
#elif defined __osf__
 
6321
#elif defined(__osf__)
6149
6322
/* This system does not cope well with relocations in const data.  */
6150
6323
# define LT_DLSYM_CONST
6151
6324
#else
6171
6344
{
6172
6345
  { "@PROGRAM@", (void *) 0 },
6173
6346
_LT_EOF
6174
 
          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6347
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6175
6348
          cat <<\_LT_EOF >> conftest.$ac_ext
6176
6349
  {0, (void *) 0}
6177
6350
};
6191
6364
          mv conftest.$ac_objext conftstm.$ac_objext
6192
6365
          lt_globsym_save_LIBS=$LIBS
6193
6366
          lt_globsym_save_CFLAGS=$CFLAGS
6194
 
          LIBS=conftstm.$ac_objext
 
6367
          LIBS="conftstm.$ac_objext"
6195
6368
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6196
6369
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6197
6370
  (eval $ac_link) 2>&5
6198
6371
  ac_status=$?
6199
6372
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200
 
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
6373
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6201
6374
            pipe_works=yes
6202
6375
          fi
6203
6376
          LIBS=$lt_globsym_save_LIBS
6218
6391
  rm -rf conftest* conftst*
6219
6392
 
6220
6393
  # Do not use the global_symbol_pipe unless it works.
6221
 
  if test yes = "$pipe_works"; then
 
6394
  if test "$pipe_works" = yes; then
6222
6395
    break
6223
6396
  else
6224
6397
    lt_cv_sys_global_symbol_pipe=
6271
6444
 
6272
6445
 
6273
6446
 
6274
 
 
6275
 
 
6276
 
 
6277
 
 
6278
 
 
6279
 
 
6280
 
 
6281
 
 
6282
 
 
6283
 
 
6284
6447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6285
6448
$as_echo_n "checking for sysroot... " >&6; }
6286
6449
 
6293
6456
 
6294
6457
 
6295
6458
lt_sysroot=
6296
 
case $with_sysroot in #(
 
6459
case ${with_sysroot} in #(
6297
6460
 yes)
6298
 
   if test yes = "$GCC"; then
 
6461
   if test "$GCC" = yes; then
6299
6462
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6300
6463
   fi
6301
6464
   ;; #(
6305
6468
 no|'')
6306
6469
   ;; #(
6307
6470
 *)
6308
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6309
 
$as_echo "$with_sysroot" >&6; }
 
6471
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6472
$as_echo "${with_sysroot}" >&6; }
6310
6473
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6311
6474
   ;;
6312
6475
esac
6323
6486
  enableval=$enable_libtool_lock;
6324
6487
fi
6325
6488
 
6326
 
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 
6489
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6327
6490
 
6328
6491
# Some flags need to be propagated to the compiler or linker for good
6329
6492
# libtool support.
6330
6493
case $host in
6331
6494
ia64-*-hpux*)
6332
 
  # Find out what ABI is being produced by ac_compile, and set mode
6333
 
  # options accordingly.
 
6495
  # Find out which ABI we are using.
6334
6496
  echo 'int i;' > conftest.$ac_ext
6335
6497
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6336
6498
  (eval $ac_compile) 2>&5
6339
6501
  test $ac_status = 0; }; then
6340
6502
    case `/usr/bin/file conftest.$ac_objext` in
6341
6503
      *ELF-32*)
6342
 
        HPUX_IA64_MODE=32
 
6504
        HPUX_IA64_MODE="32"
6343
6505
        ;;
6344
6506
      *ELF-64*)
6345
 
        HPUX_IA64_MODE=64
 
6507
        HPUX_IA64_MODE="64"
6346
6508
        ;;
6347
6509
    esac
6348
6510
  fi
6349
6511
  rm -rf conftest*
6350
6512
  ;;
6351
6513
*-*-irix6*)
6352
 
  # Find out what ABI is being produced by ac_compile, and set linker
6353
 
  # options accordingly.
 
6514
  # Find out which ABI we are using.
6354
6515
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6355
6516
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6356
6517
  (eval $ac_compile) 2>&5
6357
6518
  ac_status=$?
6358
6519
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6359
6520
  test $ac_status = 0; }; then
6360
 
    if test yes = "$lt_cv_prog_gnu_ld"; then
 
6521
    if test "$lt_cv_prog_gnu_ld" = yes; then
6361
6522
      case `/usr/bin/file conftest.$ac_objext` in
6362
6523
        *32-bit*)
6363
6524
          LD="${LD-ld} -melf32bsmip"
6386
6547
  rm -rf conftest*
6387
6548
  ;;
6388
6549
 
6389
 
mips64*-*linux*)
6390
 
  # Find out what ABI is being produced by ac_compile, and set linker
6391
 
  # options accordingly.
6392
 
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6393
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6394
 
  (eval $ac_compile) 2>&5
6395
 
  ac_status=$?
6396
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397
 
  test $ac_status = 0; }; then
6398
 
    emul=elf
6399
 
    case `/usr/bin/file conftest.$ac_objext` in
6400
 
      *32-bit*)
6401
 
        emul="${emul}32"
6402
 
        ;;
6403
 
      *64-bit*)
6404
 
        emul="${emul}64"
6405
 
        ;;
6406
 
    esac
6407
 
    case `/usr/bin/file conftest.$ac_objext` in
6408
 
      *MSB*)
6409
 
        emul="${emul}btsmip"
6410
 
        ;;
6411
 
      *LSB*)
6412
 
        emul="${emul}ltsmip"
6413
 
        ;;
6414
 
    esac
6415
 
    case `/usr/bin/file conftest.$ac_objext` in
6416
 
      *N32*)
6417
 
        emul="${emul}n32"
6418
 
        ;;
6419
 
    esac
6420
 
    LD="${LD-ld} -m $emul"
6421
 
  fi
6422
 
  rm -rf conftest*
6423
 
  ;;
6424
 
 
6425
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 
6550
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6426
6551
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6427
 
  # Find out what ABI is being produced by ac_compile, and set linker
6428
 
  # options accordingly.  Note that the listed cases only cover the
6429
 
  # situations where additional linker options are needed (such as when
6430
 
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6431
 
  # vice versa); the common cases where no linker options are needed do
6432
 
  # not appear in the list.
 
6552
  # Find out which ABI we are using.
6433
6553
  echo 'int i;' > conftest.$ac_ext
6434
6554
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435
6555
  (eval $ac_compile) 2>&5
6443
6563
            LD="${LD-ld} -m elf_i386_fbsd"
6444
6564
            ;;
6445
6565
          x86_64-*linux*)
6446
 
            case `/usr/bin/file conftest.o` in
6447
 
              *x86-64*)
6448
 
                LD="${LD-ld} -m elf32_x86_64"
6449
 
                ;;
6450
 
              *)
6451
 
                LD="${LD-ld} -m elf_i386"
6452
 
                ;;
6453
 
            esac
6454
 
            ;;
6455
 
          powerpc64le-*linux*)
6456
 
            LD="${LD-ld} -m elf32lppclinux"
6457
 
            ;;
6458
 
          powerpc64-*linux*)
 
6566
            LD="${LD-ld} -m elf_i386"
 
6567
            ;;
 
6568
          ppc64-*linux*|powerpc64-*linux*)
6459
6569
            LD="${LD-ld} -m elf32ppclinux"
6460
6570
            ;;
6461
6571
          s390x-*linux*)
6474
6584
          x86_64-*linux*)
6475
6585
            LD="${LD-ld} -m elf_x86_64"
6476
6586
            ;;
6477
 
          powerpcle-*linux*)
6478
 
            LD="${LD-ld} -m elf64lppc"
6479
 
            ;;
6480
 
          powerpc-*linux*)
 
6587
          ppc*-*linux*|powerpc*-*linux*)
6481
6588
            LD="${LD-ld} -m elf64ppc"
6482
6589
            ;;
6483
6590
          s390*-*linux*|s390*-*tpf*)
6495
6602
 
6496
6603
*-*-sco3.2v5*)
6497
6604
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6498
 
  SAVE_CFLAGS=$CFLAGS
 
6605
  SAVE_CFLAGS="$CFLAGS"
6499
6606
  CFLAGS="$CFLAGS -belf"
6500
6607
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6501
6608
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6535
6642
fi
6536
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6537
6644
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6538
 
  if test yes != "$lt_cv_cc_needs_belf"; then
 
6645
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6539
6646
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6540
 
    CFLAGS=$SAVE_CFLAGS
 
6647
    CFLAGS="$SAVE_CFLAGS"
6541
6648
  fi
6542
6649
  ;;
6543
6650
*-*solaris*)
6544
 
  # Find out what ABI is being produced by ac_compile, and set linker
6545
 
  # options accordingly.
 
6651
  # Find out which ABI we are using.
6546
6652
  echo 'int i;' > conftest.$ac_ext
6547
6653
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548
6654
  (eval $ac_compile) 2>&5
6554
6660
      case $lt_cv_prog_gnu_ld in
6555
6661
      yes*)
6556
6662
        case $host in
6557
 
        i?86-*-solaris*|x86_64-*-solaris*)
 
6663
        i?86-*-solaris*)
6558
6664
          LD="${LD-ld} -m elf_x86_64"
6559
6665
          ;;
6560
6666
        sparc*-*-solaris*)
6563
6669
        esac
6564
6670
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6565
6671
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6566
 
          LD=${LD-ld}_sol2
 
6672
          LD="${LD-ld}_sol2"
6567
6673
        fi
6568
6674
        ;;
6569
6675
      *)
6579
6685
  ;;
6580
6686
esac
6581
6687
 
6582
 
need_locks=$enable_libtool_lock
 
6688
need_locks="$enable_libtool_lock"
6583
6689
 
6584
6690
if test -n "$ac_tool_prefix"; then
6585
6691
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6598
6704
  IFS=$as_save_IFS
6599
6705
  test -z "$as_dir" && as_dir=.
6600
6706
    for ac_exec_ext in '' $ac_executable_extensions; do
6601
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6707
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602
6708
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6603
6709
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604
6710
    break 2
6638
6744
  IFS=$as_save_IFS
6639
6745
  test -z "$as_dir" && as_dir=.
6640
6746
    for ac_exec_ext in '' $ac_executable_extensions; do
6641
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6747
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642
6748
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6643
6749
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644
6750
    break 2
6690
6796
fi
6691
6797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6692
6798
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6693
 
if test yes != "$lt_cv_path_mainfest_tool"; then
 
6799
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6694
6800
  MANIFEST_TOOL=:
6695
6801
fi
6696
6802
 
6718
6824
  IFS=$as_save_IFS
6719
6825
  test -z "$as_dir" && as_dir=.
6720
6826
    for ac_exec_ext in '' $ac_executable_extensions; do
6721
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6827
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722
6828
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6723
6829
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724
6830
    break 2
6758
6864
  IFS=$as_save_IFS
6759
6865
  test -z "$as_dir" && as_dir=.
6760
6866
    for ac_exec_ext in '' $ac_executable_extensions; do
6761
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6867
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762
6868
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6763
6869
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764
6870
    break 2
6810
6916
  IFS=$as_save_IFS
6811
6917
  test -z "$as_dir" && as_dir=.
6812
6918
    for ac_exec_ext in '' $ac_executable_extensions; do
6813
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6919
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814
6920
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6815
6921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816
6922
    break 2
6850
6956
  IFS=$as_save_IFS
6851
6957
  test -z "$as_dir" && as_dir=.
6852
6958
    for ac_exec_ext in '' $ac_executable_extensions; do
6853
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6959
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854
6960
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6855
6961
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856
6962
    break 2
6902
7008
  IFS=$as_save_IFS
6903
7009
  test -z "$as_dir" && as_dir=.
6904
7010
    for ac_exec_ext in '' $ac_executable_extensions; do
6905
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7011
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906
7012
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6907
7013
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908
7014
    break 2
6942
7048
  IFS=$as_save_IFS
6943
7049
  test -z "$as_dir" && as_dir=.
6944
7050
    for ac_exec_ext in '' $ac_executable_extensions; do
6945
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7051
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946
7052
    ac_cv_prog_ac_ct_LIPO="lipo"
6947
7053
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948
7054
    break 2
6994
7100
  IFS=$as_save_IFS
6995
7101
  test -z "$as_dir" && as_dir=.
6996
7102
    for ac_exec_ext in '' $ac_executable_extensions; do
6997
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7103
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998
7104
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6999
7105
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000
7106
    break 2
7034
7140
  IFS=$as_save_IFS
7035
7141
  test -z "$as_dir" && as_dir=.
7036
7142
    for ac_exec_ext in '' $ac_executable_extensions; do
7037
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7143
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038
7144
    ac_cv_prog_ac_ct_OTOOL="otool"
7039
7145
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040
7146
    break 2
7086
7192
  IFS=$as_save_IFS
7087
7193
  test -z "$as_dir" && as_dir=.
7088
7194
    for ac_exec_ext in '' $ac_executable_extensions; do
7089
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7195
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090
7196
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7091
7197
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092
7198
    break 2
7126
7232
  IFS=$as_save_IFS
7127
7233
  test -z "$as_dir" && as_dir=.
7128
7234
    for ac_exec_ext in '' $ac_executable_extensions; do
7129
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7235
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130
7236
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7131
7237
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132
7238
    break 2
7193
7299
  $as_echo_n "(cached) " >&6
7194
7300
else
7195
7301
  lt_cv_apple_cc_single_mod=no
7196
 
      if test -z "$LT_MULTI_MODULE"; then
 
7302
      if test -z "${LT_MULTI_MODULE}"; then
7197
7303
        # By default we will add the -single_module flag. You can override
7198
7304
        # by either setting the environment variable LT_MULTI_MODULE
7199
7305
        # non-empty at configure time, or by adding -multi_module to the
7211
7317
          cat conftest.err >&5
7212
7318
        # Otherwise, if the output was created with a 0 exit code from
7213
7319
        # the compiler, it worked.
7214
 
        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
 
7320
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7215
7321
          lt_cv_apple_cc_single_mod=yes
7216
7322
        else
7217
7323
          cat conftest.err >&5
7250
7356
fi
7251
7357
rm -f core conftest.err conftest.$ac_objext \
7252
7358
    conftest$ac_exeext conftest.$ac_ext
7253
 
        LDFLAGS=$save_LDFLAGS
 
7359
        LDFLAGS="$save_LDFLAGS"
7254
7360
 
7255
7361
fi
7256
7362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7279
7385
      _lt_result=$?
7280
7386
      if test -s conftest.err && $GREP force_load conftest.err; then
7281
7387
        cat conftest.err >&5
7282
 
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
 
7388
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7283
7389
        lt_cv_ld_force_load=yes
7284
7390
      else
7285
7391
        cat conftest.err >&5
7292
7398
$as_echo "$lt_cv_ld_force_load" >&6; }
7293
7399
    case $host_os in
7294
7400
    rhapsody* | darwin1.[012])
7295
 
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
 
7401
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7296
7402
    darwin1.*)
7297
 
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 
7403
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298
7404
    darwin*) # darwin 5.x on
7299
7405
      # if running on 10.5 or later, the deployment target defaults
7300
7406
      # to the OS version, if on x86, and 10.4, the deployment
7301
7407
      # target defaults to 10.4. Don't you love it?
7302
7408
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7303
7409
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7304
 
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 
7410
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7305
7411
        10.[012]*)
7306
 
          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 
7412
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307
7413
        10.*)
7308
 
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 
7414
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7309
7415
      esac
7310
7416
    ;;
7311
7417
  esac
7312
 
    if test yes = "$lt_cv_apple_cc_single_mod"; then
 
7418
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7313
7419
      _lt_dar_single_mod='$single_module'
7314
7420
    fi
7315
 
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7316
 
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
 
7421
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7422
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7317
7423
    else
7318
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
 
7424
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7319
7425
    fi
7320
 
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
 
7426
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7321
7427
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7322
7428
    else
7323
7429
      _lt_dsymutil=
7628
7734
    *)
7629
7735
      enable_shared=no
7630
7736
      # Look at the argument we got.  We use all the common list separators.
7631
 
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
7737
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632
7738
      for pkg in $enableval; do
7633
 
        IFS=$lt_save_ifs
 
7739
        IFS="$lt_save_ifs"
7634
7740
        if test "X$pkg" = "X$p"; then
7635
7741
          enable_shared=yes
7636
7742
        fi
7637
7743
      done
7638
 
      IFS=$lt_save_ifs
 
7744
      IFS="$lt_save_ifs"
7639
7745
      ;;
7640
7746
    esac
7641
7747
else
7659
7765
    *)
7660
7766
     enable_static=no
7661
7767
      # Look at the argument we got.  We use all the common list separators.
7662
 
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
7768
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663
7769
      for pkg in $enableval; do
7664
 
        IFS=$lt_save_ifs
 
7770
        IFS="$lt_save_ifs"
7665
7771
        if test "X$pkg" = "X$p"; then
7666
7772
          enable_static=yes
7667
7773
        fi
7668
7774
      done
7669
 
      IFS=$lt_save_ifs
 
7775
      IFS="$lt_save_ifs"
7670
7776
      ;;
7671
7777
    esac
7672
7778
else
7690
7796
    *)
7691
7797
      pic_mode=default
7692
7798
      # Look at the argument we got.  We use all the common list separators.
7693
 
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
7799
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694
7800
      for lt_pkg in $withval; do
7695
 
        IFS=$lt_save_ifs
 
7801
        IFS="$lt_save_ifs"
7696
7802
        if test "X$lt_pkg" = "X$lt_p"; then
7697
7803
          pic_mode=yes
7698
7804
        fi
7699
7805
      done
7700
 
      IFS=$lt_save_ifs
 
7806
      IFS="$lt_save_ifs"
7701
7807
      ;;
7702
7808
    esac
7703
7809
else
7705
7811
fi
7706
7812
 
7707
7813
 
 
7814
test -z "$pic_mode" && pic_mode=default
 
7815
 
7708
7816
 
7709
7817
 
7710
7818
 
7720
7828
    *)
7721
7829
      enable_fast_install=no
7722
7830
      # Look at the argument we got.  We use all the common list separators.
7723
 
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
7831
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7724
7832
      for pkg in $enableval; do
7725
 
        IFS=$lt_save_ifs
 
7833
        IFS="$lt_save_ifs"
7726
7834
        if test "X$pkg" = "X$p"; then
7727
7835
          enable_fast_install=yes
7728
7836
        fi
7729
7837
      done
7730
 
      IFS=$lt_save_ifs
 
7838
      IFS="$lt_save_ifs"
7731
7839
      ;;
7732
7840
    esac
7733
7841
else
7745
7853
 
7746
7854
 
7747
7855
# This can be used to rebuild libtool when needed
7748
 
LIBTOOL_DEPS=$ltmain
 
7856
LIBTOOL_DEPS="$ltmain"
7749
7857
 
7750
7858
# Always use our own libtool.
7751
7859
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7794
7902
 
7795
7903
 
7796
7904
 
7797
 
if test -n "${ZSH_VERSION+set}"; then
 
7905
if test -n "${ZSH_VERSION+set}" ; then
7798
7906
   setopt NO_GLOB_SUBST
7799
7907
fi
7800
7908
 
7833
7941
  # AIX sometimes has problems with the GCC collect2 program.  For some
7834
7942
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7835
7943
  # vanish in a puff of smoke.
7836
 
  if test set != "${COLLECT_NAMES+set}"; then
 
7944
  if test "X${COLLECT_NAMES+set}" != Xset; then
7837
7945
    COLLECT_NAMES=
7838
7946
    export COLLECT_NAMES
7839
7947
  fi
7844
7952
ofile=libtool
7845
7953
can_build_shared=yes
7846
7954
 
7847
 
# All known linkers require a '.a' archive for static linking (except MSVC,
 
7955
# All known linkers require a `.a' archive for static linking (except MSVC,
7848
7956
# which needs '.lib').
7849
7957
libext=a
7850
7958
 
7851
 
with_gnu_ld=$lt_cv_prog_gnu_ld
 
7959
with_gnu_ld="$lt_cv_prog_gnu_ld"
7852
7960
 
7853
 
old_CC=$CC
7854
 
old_CFLAGS=$CFLAGS
 
7961
old_CC="$CC"
 
7962
old_CFLAGS="$CFLAGS"
7855
7963
 
7856
7964
# Set sane defaults for various variables
7857
7965
test -z "$CC" && CC=cc
7883
7991
else
7884
7992
  case $MAGIC_CMD in
7885
7993
[\\/*] |  ?:[\\/]*)
7886
 
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 
7994
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7887
7995
  ;;
7888
7996
*)
7889
 
  lt_save_MAGIC_CMD=$MAGIC_CMD
7890
 
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
7997
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7998
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7891
7999
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7892
8000
  for ac_dir in $ac_dummy; do
7893
 
    IFS=$lt_save_ifs
 
8001
    IFS="$lt_save_ifs"
7894
8002
    test -z "$ac_dir" && ac_dir=.
7895
 
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7896
 
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
 
8003
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8004
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7897
8005
      if test -n "$file_magic_test_file"; then
7898
8006
        case $deplibs_check_method in
7899
8007
        "file_magic "*)
7900
8008
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7901
 
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8009
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902
8010
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7903
8011
            $EGREP "$file_magic_regex" > /dev/null; then
7904
8012
            :
7921
8029
      break
7922
8030
    fi
7923
8031
  done
7924
 
  IFS=$lt_save_ifs
7925
 
  MAGIC_CMD=$lt_save_MAGIC_CMD
 
8032
  IFS="$lt_save_ifs"
 
8033
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7926
8034
  ;;
7927
8035
esac
7928
8036
fi
7929
8037
 
7930
 
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8038
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931
8039
if test -n "$MAGIC_CMD"; then
7932
8040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7933
8041
$as_echo "$MAGIC_CMD" >&6; }
7949
8057
else
7950
8058
  case $MAGIC_CMD in
7951
8059
[\\/*] |  ?:[\\/]*)
7952
 
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 
8060
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7953
8061
  ;;
7954
8062
*)
7955
 
  lt_save_MAGIC_CMD=$MAGIC_CMD
7956
 
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
8063
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8064
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7957
8065
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7958
8066
  for ac_dir in $ac_dummy; do
7959
 
    IFS=$lt_save_ifs
 
8067
    IFS="$lt_save_ifs"
7960
8068
    test -z "$ac_dir" && ac_dir=.
7961
 
    if test -f "$ac_dir/file"; then
7962
 
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
 
8069
    if test -f $ac_dir/file; then
 
8070
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7963
8071
      if test -n "$file_magic_test_file"; then
7964
8072
        case $deplibs_check_method in
7965
8073
        "file_magic "*)
7966
8074
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7967
 
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8075
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7968
8076
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7969
8077
            $EGREP "$file_magic_regex" > /dev/null; then
7970
8078
            :
7987
8095
      break
7988
8096
    fi
7989
8097
  done
7990
 
  IFS=$lt_save_ifs
7991
 
  MAGIC_CMD=$lt_save_MAGIC_CMD
 
8098
  IFS="$lt_save_ifs"
 
8099
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7992
8100
  ;;
7993
8101
esac
7994
8102
fi
7995
8103
 
7996
 
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8104
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7997
8105
if test -n "$MAGIC_CMD"; then
7998
8106
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7999
8107
$as_echo "$MAGIC_CMD" >&6; }
8014
8122
 
8015
8123
# Use C for the default configuration in the libtool script
8016
8124
 
8017
 
lt_save_CC=$CC
 
8125
lt_save_CC="$CC"
8018
8126
ac_ext=c
8019
8127
ac_cpp='$CPP $CPPFLAGS'
8020
8128
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076
8184
 
8077
8185
lt_prog_compiler_no_builtin_flag=
8078
8186
 
8079
 
if test yes = "$GCC"; then
 
8187
if test "$GCC" = yes; then
8080
8188
  case $cc_basename in
8081
8189
  nvcc*)
8082
8190
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8092
8200
  lt_cv_prog_compiler_rtti_exceptions=no
8093
8201
   ac_outfile=conftest.$ac_objext
8094
8202
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8095
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
 
8203
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8096
8204
   # Insert the option either (1) after the last *FLAGS variable, or
8097
8205
   # (2) before a word containing "conftest.", or (3) at the end.
8098
8206
   # Note that $ac_compile itself does not contain backslashes and begins
8122
8230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8123
8231
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8124
8232
 
8125
 
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
 
8233
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8126
8234
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8127
8235
else
8128
8236
    :
8140
8248
lt_prog_compiler_static=
8141
8249
 
8142
8250
 
8143
 
  if test yes = "$GCC"; then
 
8251
  if test "$GCC" = yes; then
8144
8252
    lt_prog_compiler_wl='-Wl,'
8145
8253
    lt_prog_compiler_static='-static'
8146
8254
 
8147
8255
    case $host_os in
8148
8256
      aix*)
8149
8257
      # All AIX code is PIC.
8150
 
      if test ia64 = "$host_cpu"; then
 
8258
      if test "$host_cpu" = ia64; then
8151
8259
        # AIX 5 now supports IA64 processor
8152
8260
        lt_prog_compiler_static='-Bstatic'
8153
8261
      fi
8154
 
      lt_prog_compiler_pic='-fPIC'
8155
8262
      ;;
8156
8263
 
8157
8264
    amigaos*)
8162
8269
        ;;
8163
8270
      m68k)
8164
8271
            # FIXME: we need at least 68020 code to build shared libraries, but
8165
 
            # adding the '-m68020' flag to GCC prevents building anything better,
8166
 
            # like '-m68040'.
 
8272
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8273
            # like `-m68040'.
8167
8274
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8168
8275
        ;;
8169
8276
      esac
8249
8356
    case $host_os in
8250
8357
    aix*)
8251
8358
      lt_prog_compiler_wl='-Wl,'
8252
 
      if test ia64 = "$host_cpu"; then
 
8359
      if test "$host_cpu" = ia64; then
8253
8360
        # AIX 5 now supports IA64 processor
8254
8361
        lt_prog_compiler_static='-Bstatic'
8255
8362
      else
8257
8364
      fi
8258
8365
      ;;
8259
8366
 
8260
 
    darwin* | rhapsody*)
8261
 
      # PIC is the default on this platform
8262
 
      # Common symbols not allowed in MH_DYLIB files
8263
 
      lt_prog_compiler_pic='-fno-common'
8264
 
      case $cc_basename in
8265
 
      nagfor*)
8266
 
        # NAG Fortran compiler
8267
 
        lt_prog_compiler_wl='-Wl,-Wl,,'
8268
 
        lt_prog_compiler_pic='-PIC'
8269
 
        lt_prog_compiler_static='-Bstatic'
8270
 
        ;;
8271
 
      esac
8272
 
      ;;
8273
 
 
8274
8367
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8275
8368
      # This hack is so that the source file can tell whether it is being
8276
8369
      # built for inclusion in a dll (and should export symbols for example).
8290
8383
        ;;
8291
8384
      esac
8292
8385
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8293
 
      lt_prog_compiler_static='$wl-a ${wl}archive'
 
8386
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8294
8387
      ;;
8295
8388
 
8296
8389
    irix5* | irix6* | nonstopux*)
8299
8392
      lt_prog_compiler_static='-non_shared'
8300
8393
      ;;
8301
8394
 
8302
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
8395
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8303
8396
      case $cc_basename in
8304
 
      # old Intel for x86_64, which still supported -KPIC.
 
8397
      # old Intel for x86_64 which still supported -KPIC.
8305
8398
      ecc*)
8306
8399
        lt_prog_compiler_wl='-Wl,'
8307
8400
        lt_prog_compiler_pic='-KPIC'
8326
8419
        lt_prog_compiler_pic='-PIC'
8327
8420
        lt_prog_compiler_static='-Bstatic'
8328
8421
        ;;
8329
 
      tcc*)
8330
 
        # Fabrice Bellard et al's Tiny C Compiler
8331
 
        lt_prog_compiler_wl='-Wl,'
8332
 
        lt_prog_compiler_pic='-fPIC'
8333
 
        lt_prog_compiler_static='-static'
8334
 
        ;;
8335
8422
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8336
8423
        # Portland Group compilers (*not* the Pentium gcc compiler,
8337
8424
        # which looks to be a dead project)
8429
8516
      ;;
8430
8517
 
8431
8518
    sysv4*MP*)
8432
 
      if test -d /usr/nec; then
 
8519
      if test -d /usr/nec ;then
8433
8520
        lt_prog_compiler_pic='-Kconform_pic'
8434
8521
        lt_prog_compiler_static='-Bstatic'
8435
8522
      fi
8458
8545
  fi
8459
8546
 
8460
8547
case $host_os in
8461
 
  # For platforms that do not support PIC, -DPIC is meaningless:
 
8548
  # For platforms which do not support PIC, -DPIC is meaningless:
8462
8549
  *djgpp*)
8463
8550
    lt_prog_compiler_pic=
8464
8551
    ;;
8490
8577
  lt_cv_prog_compiler_pic_works=no
8491
8578
   ac_outfile=conftest.$ac_objext
8492
8579
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
 
8580
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8494
8581
   # Insert the option either (1) after the last *FLAGS variable, or
8495
8582
   # (2) before a word containing "conftest.", or (3) at the end.
8496
8583
   # Note that $ac_compile itself does not contain backslashes and begins
8520
8607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8521
8608
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8522
8609
 
8523
 
if test yes = "$lt_cv_prog_compiler_pic_works"; then
 
8610
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8524
8611
    case $lt_prog_compiler_pic in
8525
8612
     "" | " "*) ;;
8526
8613
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8552
8639
  $as_echo_n "(cached) " >&6
8553
8640
else
8554
8641
  lt_cv_prog_compiler_static_works=no
8555
 
   save_LDFLAGS=$LDFLAGS
 
8642
   save_LDFLAGS="$LDFLAGS"
8556
8643
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8557
8644
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8558
8645
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8571
8658
     fi
8572
8659
   fi
8573
8660
   $RM -r conftest*
8574
 
   LDFLAGS=$save_LDFLAGS
 
8661
   LDFLAGS="$save_LDFLAGS"
8575
8662
 
8576
8663
fi
8577
8664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8578
8665
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8579
8666
 
8580
 
if test yes = "$lt_cv_prog_compiler_static_works"; then
 
8667
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8581
8668
    :
8582
8669
else
8583
8670
    lt_prog_compiler_static=
8697
8784
 
8698
8785
 
8699
8786
 
8700
 
hard_links=nottested
8701
 
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
 
8787
hard_links="nottested"
 
8788
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8702
8789
  # do not overwrite the value of need_locks provided by the user
8703
8790
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8704
8791
$as_echo_n "checking if we can lock with hard links... " >&6; }
8710
8797
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8711
8798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8712
8799
$as_echo "$hard_links" >&6; }
8713
 
  if test no = "$hard_links"; then
8714
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8715
 
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
 
8800
  if test "$hard_links" = no; then
 
8801
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8802
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8716
8803
    need_locks=warn
8717
8804
  fi
8718
8805
else
8755
8842
  # included in the symbol list
8756
8843
  include_expsyms=
8757
8844
  # exclude_expsyms can be an extended regexp of symbols to exclude
8758
 
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8759
 
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8760
 
  # as well as any symbol that contains 'd'.
 
8845
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8846
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8847
  # as well as any symbol that contains `d'.
8761
8848
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8762
8849
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8763
8850
  # platforms (ab)use it in PIC code, but their linkers get confused if
8772
8859
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8773
8860
    # When not using gcc, we currently assume that we are using
8774
8861
    # Microsoft Visual C++.
8775
 
    if test yes != "$GCC"; then
 
8862
    if test "$GCC" != yes; then
8776
8863
      with_gnu_ld=no
8777
8864
    fi
8778
8865
    ;;
8780
8867
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8781
8868
    with_gnu_ld=yes
8782
8869
    ;;
8783
 
  openbsd* | bitrig*)
 
8870
  openbsd*)
8784
8871
    with_gnu_ld=no
8785
8872
    ;;
 
8873
  linux* | k*bsd*-gnu | gnu*)
 
8874
    link_all_deplibs=no
 
8875
    ;;
8786
8876
  esac
8787
8877
 
8788
8878
  ld_shlibs=yes
8790
8880
  # On some targets, GNU ld is compatible enough with the native linker
8791
8881
  # that we're better off using the native interface for both.
8792
8882
  lt_use_gnu_ld_interface=no
8793
 
  if test yes = "$with_gnu_ld"; then
 
8883
  if test "$with_gnu_ld" = yes; then
8794
8884
    case $host_os in
8795
8885
      aix*)
8796
8886
        # The AIX port of GNU ld has always aspired to compatibility
8812
8902
    esac
8813
8903
  fi
8814
8904
 
8815
 
  if test yes = "$lt_use_gnu_ld_interface"; then
 
8905
  if test "$lt_use_gnu_ld_interface" = yes; then
8816
8906
    # If archive_cmds runs LD, not CC, wlarc should be empty
8817
 
    wlarc='$wl'
 
8907
    wlarc='${wl}'
8818
8908
 
8819
8909
    # Set some defaults for GNU ld with shared library support. These
8820
8910
    # are reset later if shared libraries are not supported. Putting them
8821
8911
    # here allows them to be overridden if necessary.
8822
8912
    runpath_var=LD_RUN_PATH
8823
 
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8824
 
    export_dynamic_flag_spec='$wl--export-dynamic'
 
8913
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8914
    export_dynamic_flag_spec='${wl}--export-dynamic'
8825
8915
    # ancient GNU ld didn't support --whole-archive et. al.
8826
8916
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8827
 
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 
8917
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8828
8918
    else
8829
8919
      whole_archive_flag_spec=
8830
8920
    fi
8831
8921
    supports_anon_versioning=no
8832
 
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
 
8922
    case `$LD -v 2>&1` in
8833
8923
      *GNU\ gold*) supports_anon_versioning=yes ;;
8834
8924
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8835
8925
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8842
8932
    case $host_os in
8843
8933
    aix[3-9]*)
8844
8934
      # On AIX/PPC, the GNU linker is very broken
8845
 
      if test ia64 != "$host_cpu"; then
 
8935
      if test "$host_cpu" != ia64; then
8846
8936
        ld_shlibs=no
8847
8937
        cat <<_LT_EOF 1>&2
8848
8938
 
8861
8951
      case $host_cpu in
8862
8952
      powerpc)
8863
8953
            # see comment about AmigaOS4 .so support
8864
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
8954
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865
8955
            archive_expsym_cmds=''
8866
8956
        ;;
8867
8957
      m68k)
8877
8967
        allow_undefined_flag=unsupported
8878
8968
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8879
8969
        # support --undefined.  This deserves some investigation.  FIXME
8880
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
8970
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881
8971
      else
8882
8972
        ld_shlibs=no
8883
8973
      fi
8887
8977
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8888
8978
      # as there is no search path for DLLs.
8889
8979
      hardcode_libdir_flag_spec='-L$libdir'
8890
 
      export_dynamic_flag_spec='$wl--export-all-symbols'
 
8980
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8891
8981
      allow_undefined_flag=unsupported
8892
8982
      always_export_symbols=no
8893
8983
      enable_shared_with_static_runtimes=yes
8895
8985
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8896
8986
 
8897
8987
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8898
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8899
 
        # If the export-symbols file already is a .def file, use it as
8900
 
        # is; otherwise, prepend EXPORTS...
8901
 
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8902
 
          cp $export_symbols $output_objdir/$soname.def;
8903
 
        else
8904
 
          echo EXPORTS > $output_objdir/$soname.def;
8905
 
          cat $export_symbols >> $output_objdir/$soname.def;
8906
 
        fi~
8907
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8988
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8989
        # If the export-symbols file already is a .def file (1st line
 
8990
        # is EXPORTS), use it as is; otherwise, prepend...
 
8991
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8992
          cp $export_symbols $output_objdir/$soname.def;
 
8993
        else
 
8994
          echo EXPORTS > $output_objdir/$soname.def;
 
8995
          cat $export_symbols >> $output_objdir/$soname.def;
 
8996
        fi~
 
8997
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8908
8998
      else
8909
8999
        ld_shlibs=no
8910
9000
      fi
8911
9001
      ;;
8912
9002
 
8913
9003
    haiku*)
8914
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
9004
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915
9005
      link_all_deplibs=yes
8916
9006
      ;;
8917
9007
 
8918
9008
    interix[3-9]*)
8919
9009
      hardcode_direct=no
8920
9010
      hardcode_shlibpath_var=no
8921
 
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8922
 
      export_dynamic_flag_spec='$wl-E'
 
9011
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9012
      export_dynamic_flag_spec='${wl}-E'
8923
9013
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8924
9014
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8925
9015
      # default) and relocated if they conflict, which is a slow very memory
8926
9016
      # consuming and fragmenting process.  To avoid this, we pick a random,
8927
9017
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8928
9018
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8929
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8930
 
      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'
 
9019
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9020
      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'
8931
9021
      ;;
8932
9022
 
8933
9023
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8934
9024
      tmp_diet=no
8935
 
      if test linux-dietlibc = "$host_os"; then
 
9025
      if test "$host_os" = linux-dietlibc; then
8936
9026
        case $cc_basename in
8937
9027
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8938
9028
        esac
8939
9029
      fi
8940
9030
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8941
 
         && test no = "$tmp_diet"
 
9031
         && test "$tmp_diet" = no
8942
9032
      then
8943
9033
        tmp_addflag=' $pic_flag'
8944
9034
        tmp_sharedflag='-shared'
8945
9035
        case $cc_basename,$host_cpu in
8946
9036
        pgcc*)                          # Portland Group C compiler
8947
 
          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'
 
9037
          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'
8948
9038
          tmp_addflag=' $pic_flag'
8949
9039
          ;;
8950
9040
        pgf77* | pgf90* | pgf95* | pgfortran*)
8951
9041
                                        # Portland Group f77 and f90 compilers
8952
 
          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'
 
9042
          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'
8953
9043
          tmp_addflag=' $pic_flag -Mnomain' ;;
8954
9044
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8955
9045
          tmp_addflag=' -i_dynamic' ;;
8960
9050
        lf95*)                          # Lahey Fortran 8.1
8961
9051
          whole_archive_flag_spec=
8962
9052
          tmp_sharedflag='--shared' ;;
8963
 
        nagfor*)                        # NAGFOR 5.3
8964
 
          tmp_sharedflag='-Wl,-shared' ;;
8965
9053
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8966
9054
          tmp_sharedflag='-qmkshrobj'
8967
9055
          tmp_addflag= ;;
8968
9056
        nvcc*)  # Cuda Compiler Driver 2.2
8969
 
          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'
 
9057
          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'
8970
9058
          compiler_needs_object=yes
8971
9059
          ;;
8972
9060
        esac
8973
9061
        case `$CC -V 2>&1 | sed 5q` in
8974
9062
        *Sun\ C*)                       # Sun C 5.9
8975
 
          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'
 
9063
          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'
8976
9064
          compiler_needs_object=yes
8977
9065
          tmp_sharedflag='-G' ;;
8978
9066
        *Sun\ F*)                       # Sun Fortran 8.3
8979
9067
          tmp_sharedflag='-G' ;;
8980
9068
        esac
8981
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
9069
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982
9070
 
8983
 
        if test yes = "$supports_anon_versioning"; then
 
9071
        if test "x$supports_anon_versioning" = xyes; then
8984
9072
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8985
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8986
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
8987
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 
9073
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9074
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9075
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8988
9076
        fi
8989
9077
 
8990
9078
        case $cc_basename in
8991
9079
        xlf* | bgf* | bgxlf* | mpixlf*)
8992
9080
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8993
9081
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8994
 
          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
9082
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8995
9083
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8996
 
          if test yes = "$supports_anon_versioning"; then
 
9084
          if test "x$supports_anon_versioning" = xyes; then
8997
9085
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8998
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
9000
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9086
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9087
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9088
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9001
9089
          fi
9002
9090
          ;;
9003
9091
        esac
9006
9094
      fi
9007
9095
      ;;
9008
9096
 
9009
 
    netbsd*)
 
9097
    netbsd* | netbsdelf*-gnu)
9010
9098
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9011
9099
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9012
9100
        wlarc=
9013
9101
      else
9014
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9015
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
9102
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9103
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016
9104
      fi
9017
9105
      ;;
9018
9106
 
9030
9118
 
9031
9119
_LT_EOF
9032
9120
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9034
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
9121
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9122
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035
9123
      else
9036
9124
        ld_shlibs=no
9037
9125
      fi
9043
9131
        ld_shlibs=no
9044
9132
        cat <<_LT_EOF 1>&2
9045
9133
 
9046
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
 
9134
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9047
9135
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9048
9136
*** is disabling shared libraries support.  We urge you to upgrade GNU
9049
9137
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9058
9146
          # DT_RUNPATH tag from executables and libraries.  But doing so
9059
9147
          # requires that you compile everything twice, which is a pain.
9060
9148
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061
 
            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9062
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9063
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
9149
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9150
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9151
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064
9152
          else
9065
9153
            ld_shlibs=no
9066
9154
          fi
9077
9165
 
9078
9166
    *)
9079
9167
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9081
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
9168
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9169
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082
9170
      else
9083
9171
        ld_shlibs=no
9084
9172
      fi
9085
9173
      ;;
9086
9174
    esac
9087
9175
 
9088
 
    if test no = "$ld_shlibs"; then
 
9176
    if test "$ld_shlibs" = no; then
9089
9177
      runpath_var=
9090
9178
      hardcode_libdir_flag_spec=
9091
9179
      export_dynamic_flag_spec=
9101
9189
      # Note: this linker hardcodes the directories in LIBPATH if there
9102
9190
      # are no directories specified by -L.
9103
9191
      hardcode_minus_L=yes
9104
 
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
 
9192
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9105
9193
        # Neither direct hardcoding nor static linking is supported with a
9106
9194
        # broken collect2.
9107
9195
        hardcode_direct=unsupported
9109
9197
      ;;
9110
9198
 
9111
9199
    aix[4-9]*)
9112
 
      if test ia64 = "$host_cpu"; then
 
9200
      if test "$host_cpu" = ia64; then
9113
9201
        # On IA64, the linker does run time linking by default, so we don't
9114
9202
        # have to do anything special.
9115
9203
        aix_use_runtimelinking=no
9116
9204
        exp_sym_flag='-Bexport'
9117
 
        no_entry_flag=
 
9205
        no_entry_flag=""
9118
9206
      else
9119
9207
        # If we're using GNU nm, then we don't want the "-C" option.
9120
9208
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9132
9220
        # need to do runtime linking.
9133
9221
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9134
9222
          for ld_flag in $LDFLAGS; do
9135
 
          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
 
9223
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9136
9224
            aix_use_runtimelinking=yes
9137
9225
            break
9138
9226
          fi
9155
9243
      hardcode_direct_absolute=yes
9156
9244
      hardcode_libdir_separator=':'
9157
9245
      link_all_deplibs=yes
9158
 
      file_list_spec='$wl-f,'
 
9246
      file_list_spec='${wl}-f,'
9159
9247
 
9160
 
      if test yes = "$GCC"; then
 
9248
      if test "$GCC" = yes; then
9161
9249
        case $host_os in aix4.[012]|aix4.[012].*)
9162
9250
        # We only want to do this on AIX 4.2 and lower, the check
9163
9251
        # below for broken collect2 doesn't work under 4.3+
9164
 
          collect2name=`$CC -print-prog-name=collect2`
 
9252
          collect2name=`${CC} -print-prog-name=collect2`
9165
9253
          if test -f "$collect2name" &&
9166
9254
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9167
9255
          then
9180
9268
          ;;
9181
9269
        esac
9182
9270
        shared_flag='-shared'
9183
 
        if test yes = "$aix_use_runtimelinking"; then
9184
 
          shared_flag="$shared_flag "'$wl-G'
 
9271
        if test "$aix_use_runtimelinking" = yes; then
 
9272
          shared_flag="$shared_flag "'${wl}-G'
9185
9273
        fi
 
9274
        link_all_deplibs=no
9186
9275
      else
9187
9276
        # not using gcc
9188
 
        if test ia64 = "$host_cpu"; then
 
9277
        if test "$host_cpu" = ia64; then
9189
9278
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9190
9279
        # chokes on -Wl,-G. The following line is correct:
9191
9280
          shared_flag='-G'
9192
9281
        else
9193
 
          if test yes = "$aix_use_runtimelinking"; then
9194
 
            shared_flag='$wl-G'
 
9282
          if test "$aix_use_runtimelinking" = yes; then
 
9283
            shared_flag='${wl}-G'
9195
9284
          else
9196
 
            shared_flag='$wl-bM:SRE'
 
9285
            shared_flag='${wl}-bM:SRE'
9197
9286
          fi
9198
9287
        fi
9199
9288
      fi
9200
9289
 
9201
 
      export_dynamic_flag_spec='$wl-bexpall'
 
9290
      export_dynamic_flag_spec='${wl}-bexpall'
9202
9291
      # It seems that -bexpall does not export symbols beginning with
9203
9292
      # underscore (_), so it is better to generate a list of symbols to export.
9204
9293
      always_export_symbols=yes
9205
 
      if test yes = "$aix_use_runtimelinking"; then
 
9294
      if test "$aix_use_runtimelinking" = yes; then
9206
9295
        # Warning - without using the other runtime loading flags (-brtl),
9207
9296
        # -berok will link without error, but may produce a broken library.
9208
9297
        allow_undefined_flag='-berok'
9209
9298
        # Determine the default libpath from the value encoded in an
9210
9299
        # empty executable.
9211
 
        if test set = "${lt_cv_aix_libpath+set}"; then
 
9300
        if test "${lt_cv_aix_libpath+set}" = set; then
9212
9301
  aix_libpath=$lt_cv_aix_libpath
9213
9302
else
9214
9303
  if ${lt_cv_aix_libpath_+:} false; then :
9243
9332
rm -f core conftest.err conftest.$ac_objext \
9244
9333
    conftest$ac_exeext conftest.$ac_ext
9245
9334
  if test -z "$lt_cv_aix_libpath_"; then
9246
 
    lt_cv_aix_libpath_=/usr/lib:/lib
 
9335
    lt_cv_aix_libpath_="/usr/lib:/lib"
9247
9336
  fi
9248
9337
 
9249
9338
fi
9251
9340
  aix_libpath=$lt_cv_aix_libpath_
9252
9341
fi
9253
9342
 
9254
 
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9255
 
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 
9343
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9344
        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"
9256
9345
      else
9257
 
        if test ia64 = "$host_cpu"; then
9258
 
          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
 
9346
        if test "$host_cpu" = ia64; then
 
9347
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9259
9348
          allow_undefined_flag="-z nodefs"
9260
 
          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"
 
9349
          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"
9261
9350
        else
9262
9351
         # Determine the default libpath from the value encoded in an
9263
9352
         # empty executable.
9264
 
         if test set = "${lt_cv_aix_libpath+set}"; then
 
9353
         if test "${lt_cv_aix_libpath+set}" = set; then
9265
9354
  aix_libpath=$lt_cv_aix_libpath
9266
9355
else
9267
9356
  if ${lt_cv_aix_libpath_+:} false; then :
9296
9385
rm -f core conftest.err conftest.$ac_objext \
9297
9386
    conftest$ac_exeext conftest.$ac_ext
9298
9387
  if test -z "$lt_cv_aix_libpath_"; then
9299
 
    lt_cv_aix_libpath_=/usr/lib:/lib
 
9388
    lt_cv_aix_libpath_="/usr/lib:/lib"
9300
9389
  fi
9301
9390
 
9302
9391
fi
9304
9393
  aix_libpath=$lt_cv_aix_libpath_
9305
9394
fi
9306
9395
 
9307
 
         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 
9396
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9308
9397
          # Warning - without using the other run time loading flags,
9309
9398
          # -berok will link without error, but may produce a broken library.
9310
 
          no_undefined_flag=' $wl-bernotok'
9311
 
          allow_undefined_flag=' $wl-berok'
9312
 
          if test yes = "$with_gnu_ld"; then
 
9399
          no_undefined_flag=' ${wl}-bernotok'
 
9400
          allow_undefined_flag=' ${wl}-berok'
 
9401
          if test "$with_gnu_ld" = yes; then
9313
9402
            # We only use this code for GNU lds that support --whole-archive.
9314
 
            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
 
9403
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9315
9404
          else
9316
9405
            # Exported symbols can be pulled into shared objects from archives
9317
9406
            whole_archive_flag_spec='$convenience'
9318
9407
          fi
9319
9408
          archive_cmds_need_lc=yes
9320
9409
          # This is similar to how AIX traditionally builds its shared libraries.
9321
 
          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'
 
9410
          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'
9322
9411
        fi
9323
9412
      fi
9324
9413
      ;;
9327
9416
      case $host_cpu in
9328
9417
      powerpc)
9329
9418
            # see comment about AmigaOS4 .so support
9330
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
9419
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331
9420
            archive_expsym_cmds=''
9332
9421
        ;;
9333
9422
      m68k)
9357
9446
        # Tell ltmain to make .lib files, not .a files.
9358
9447
        libext=lib
9359
9448
        # Tell ltmain to make .dll files, not .so files.
9360
 
        shrext_cmds=.dll
 
9449
        shrext_cmds=".dll"
9361
9450
        # FIXME: Setting linknames here is a bad hack.
9362
 
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9363
 
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9364
 
            cp "$export_symbols" "$output_objdir/$soname.def";
9365
 
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9366
 
          else
9367
 
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9368
 
          fi~
9369
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9370
 
          linknames='
 
9451
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9452
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9453
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9454
          else
 
9455
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9456
          fi~
 
9457
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9458
          linknames='
9371
9459
        # The linker will not automatically build a static lib if we build a DLL.
9372
9460
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9373
9461
        enable_shared_with_static_runtimes=yes
9376
9464
        # Don't use ranlib
9377
9465
        old_postinstall_cmds='chmod 644 $oldlib'
9378
9466
        postlink_cmds='lt_outputfile="@OUTPUT@"~
9379
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
9380
 
          case $lt_outputfile in
9381
 
            *.exe|*.EXE) ;;
9382
 
            *)
9383
 
              lt_outputfile=$lt_outputfile.exe
9384
 
              lt_tool_outputfile=$lt_tool_outputfile.exe
9385
 
              ;;
9386
 
          esac~
9387
 
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9388
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9389
 
            $RM "$lt_outputfile.manifest";
9390
 
          fi'
 
9467
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9468
          case $lt_outputfile in
 
9469
            *.exe|*.EXE) ;;
 
9470
            *)
 
9471
              lt_outputfile="$lt_outputfile.exe"
 
9472
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9473
              ;;
 
9474
          esac~
 
9475
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9476
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9477
            $RM "$lt_outputfile.manifest";
 
9478
          fi'
9391
9479
        ;;
9392
9480
      *)
9393
9481
        # Assume MSVC wrapper
9396
9484
        # Tell ltmain to make .lib files, not .a files.
9397
9485
        libext=lib
9398
9486
        # Tell ltmain to make .dll files, not .so files.
9399
 
        shrext_cmds=.dll
 
9487
        shrext_cmds=".dll"
9400
9488
        # FIXME: Setting linknames here is a bad hack.
9401
9489
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9402
9490
        # The linker will automatically build a .lib file if we build a DLL.
9415
9503
  hardcode_direct=no
9416
9504
  hardcode_automatic=yes
9417
9505
  hardcode_shlibpath_var=unsupported
9418
 
  if test yes = "$lt_cv_ld_force_load"; then
9419
 
    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\"`'
 
9506
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9507
    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\"`'
9420
9508
 
9421
9509
  else
9422
9510
    whole_archive_flag_spec=''
9423
9511
  fi
9424
9512
  link_all_deplibs=yes
9425
 
  allow_undefined_flag=$_lt_dar_allow_undefined
 
9513
  allow_undefined_flag="$_lt_dar_allow_undefined"
9426
9514
  case $cc_basename in
9427
 
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 
9515
     ifort*) _lt_dar_can_shared=yes ;;
9428
9516
     *) _lt_dar_can_shared=$GCC ;;
9429
9517
  esac
9430
 
  if test yes = "$_lt_dar_can_shared"; then
 
9518
  if test "$_lt_dar_can_shared" = "yes"; then
9431
9519
    output_verbose_link_cmd=func_echo_all
9432
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9433
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9434
 
    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"
9435
 
    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"
 
9520
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9521
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9522
    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}"
 
9523
    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}"
9436
9524
 
9437
9525
  else
9438
9526
  ld_shlibs=no
9474
9562
      ;;
9475
9563
 
9476
9564
    hpux9*)
9477
 
      if test yes = "$GCC"; then
9478
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
9565
      if test "$GCC" = yes; then
 
9566
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9479
9567
      else
9480
 
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
9568
        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'
9481
9569
      fi
9482
 
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
9570
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483
9571
      hardcode_libdir_separator=:
9484
9572
      hardcode_direct=yes
9485
9573
 
9486
9574
      # hardcode_minus_L: Not really in the search PATH,
9487
9575
      # but as the default location of the library.
9488
9576
      hardcode_minus_L=yes
9489
 
      export_dynamic_flag_spec='$wl-E'
 
9577
      export_dynamic_flag_spec='${wl}-E'
9490
9578
      ;;
9491
9579
 
9492
9580
    hpux10*)
9493
 
      if test yes,no = "$GCC,$with_gnu_ld"; then
9494
 
        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9581
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9582
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9495
9583
      else
9496
9584
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9497
9585
      fi
9498
 
      if test no = "$with_gnu_ld"; then
9499
 
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
9586
      if test "$with_gnu_ld" = no; then
 
9587
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500
9588
        hardcode_libdir_separator=:
9501
9589
        hardcode_direct=yes
9502
9590
        hardcode_direct_absolute=yes
9503
 
        export_dynamic_flag_spec='$wl-E'
 
9591
        export_dynamic_flag_spec='${wl}-E'
9504
9592
        # hardcode_minus_L: Not really in the search PATH,
9505
9593
        # but as the default location of the library.
9506
9594
        hardcode_minus_L=yes
9508
9596
      ;;
9509
9597
 
9510
9598
    hpux11*)
9511
 
      if test yes,no = "$GCC,$with_gnu_ld"; then
 
9599
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9512
9600
        case $host_cpu in
9513
9601
        hppa*64*)
9514
 
          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9602
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9515
9603
          ;;
9516
9604
        ia64*)
9517
 
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9605
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9518
9606
          ;;
9519
9607
        *)
9520
 
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9608
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9521
9609
          ;;
9522
9610
        esac
9523
9611
      else
9524
9612
        case $host_cpu in
9525
9613
        hppa*64*)
9526
 
          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9614
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9527
9615
          ;;
9528
9616
        ia64*)
9529
 
          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9617
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9530
9618
          ;;
9531
9619
        *)
9532
9620
 
9538
9626
  $as_echo_n "(cached) " >&6
9539
9627
else
9540
9628
  lt_cv_prog_compiler__b=no
9541
 
   save_LDFLAGS=$LDFLAGS
 
9629
   save_LDFLAGS="$LDFLAGS"
9542
9630
   LDFLAGS="$LDFLAGS -b"
9543
9631
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9544
9632
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9557
9645
     fi
9558
9646
   fi
9559
9647
   $RM -r conftest*
9560
 
   LDFLAGS=$save_LDFLAGS
 
9648
   LDFLAGS="$save_LDFLAGS"
9561
9649
 
9562
9650
fi
9563
9651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9564
9652
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9565
9653
 
9566
 
if test yes = "$lt_cv_prog_compiler__b"; then
9567
 
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9654
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9655
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9568
9656
else
9569
9657
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9570
9658
fi
9572
9660
          ;;
9573
9661
        esac
9574
9662
      fi
9575
 
      if test no = "$with_gnu_ld"; then
9576
 
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
9663
      if test "$with_gnu_ld" = no; then
 
9664
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9577
9665
        hardcode_libdir_separator=:
9578
9666
 
9579
9667
        case $host_cpu in
9584
9672
        *)
9585
9673
          hardcode_direct=yes
9586
9674
          hardcode_direct_absolute=yes
9587
 
          export_dynamic_flag_spec='$wl-E'
 
9675
          export_dynamic_flag_spec='${wl}-E'
9588
9676
 
9589
9677
          # hardcode_minus_L: Not really in the search PATH,
9590
9678
          # but as the default location of the library.
9595
9683
      ;;
9596
9684
 
9597
9685
    irix5* | irix6* | nonstopux*)
9598
 
      if test yes = "$GCC"; then
9599
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 
9686
      if test "$GCC" = yes; then
 
9687
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9600
9688
        # Try to use the -exported_symbol ld option, if it does not
9601
9689
        # work, assume that -exports_file does not work either and
9602
9690
        # implicitly export all symbols.
9606
9694
if ${lt_cv_irix_exported_symbol+:} false; then :
9607
9695
  $as_echo_n "(cached) " >&6
9608
9696
else
9609
 
  save_LDFLAGS=$LDFLAGS
9610
 
           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
 
9697
  save_LDFLAGS="$LDFLAGS"
 
9698
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9611
9699
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612
9700
/* end confdefs.h.  */
9613
9701
int foo (void) { return 0; }
9619
9707
fi
9620
9708
rm -f core conftest.err conftest.$ac_objext \
9621
9709
    conftest$ac_exeext conftest.$ac_ext
9622
 
           LDFLAGS=$save_LDFLAGS
 
9710
           LDFLAGS="$save_LDFLAGS"
9623
9711
fi
9624
9712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9625
9713
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9626
 
        if test yes = "$lt_cv_irix_exported_symbol"; then
9627
 
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
 
9714
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9715
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9628
9716
        fi
9629
9717
      else
9630
 
        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'
9631
 
        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'
 
9718
        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'
 
9719
        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'
9632
9720
      fi
9633
9721
      archive_cmds_need_lc='no'
9634
 
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
9722
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9635
9723
      hardcode_libdir_separator=:
9636
9724
      inherit_rpath=yes
9637
9725
      link_all_deplibs=yes
9638
9726
      ;;
9639
9727
 
9640
 
    netbsd*)
 
9728
    netbsd* | netbsdelf*-gnu)
9641
9729
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9642
9730
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9643
9731
      else
9651
9739
    newsos6)
9652
9740
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653
9741
      hardcode_direct=yes
9654
 
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
9742
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655
9743
      hardcode_libdir_separator=:
9656
9744
      hardcode_shlibpath_var=no
9657
9745
      ;;
9659
9747
    *nto* | *qnx*)
9660
9748
      ;;
9661
9749
 
9662
 
    openbsd* | bitrig*)
 
9750
    openbsd*)
9663
9751
      if test -f /usr/libexec/ld.so; then
9664
9752
        hardcode_direct=yes
9665
9753
        hardcode_shlibpath_var=no
9666
9754
        hardcode_direct_absolute=yes
9667
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
9755
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9668
9756
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9669
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9670
 
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9671
 
          export_dynamic_flag_spec='$wl-E'
 
9757
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9758
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9759
          export_dynamic_flag_spec='${wl}-E'
9672
9760
        else
9673
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9674
 
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
9761
          case $host_os in
 
9762
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9763
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9764
             hardcode_libdir_flag_spec='-R$libdir'
 
9765
             ;;
 
9766
           *)
 
9767
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9768
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9769
             ;;
 
9770
          esac
9675
9771
        fi
9676
9772
      else
9677
9773
        ld_shlibs=no
9687
9783
      ;;
9688
9784
 
9689
9785
    osf3*)
9690
 
      if test yes = "$GCC"; then
9691
 
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9692
 
        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'
 
9786
      if test "$GCC" = yes; then
 
9787
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9788
        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'
9693
9789
      else
9694
9790
        allow_undefined_flag=' -expect_unresolved \*'
9695
 
        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'
 
9791
        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'
9696
9792
      fi
9697
9793
      archive_cmds_need_lc='no'
9698
 
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
9794
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9699
9795
      hardcode_libdir_separator=:
9700
9796
      ;;
9701
9797
 
9702
9798
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9703
 
      if test yes = "$GCC"; then
9704
 
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9705
 
        archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9706
 
        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
9799
      if test "$GCC" = yes; then
 
9800
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9801
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9802
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9707
9803
      else
9708
9804
        allow_undefined_flag=' -expect_unresolved \*'
9709
 
        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'
 
9805
        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'
9710
9806
        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~
9711
 
          $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'
 
9807
        $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'
9712
9808
 
9713
9809
        # Both c and cxx compiler support -rpath directly
9714
9810
        hardcode_libdir_flag_spec='-rpath $libdir'
9719
9815
 
9720
9816
    solaris*)
9721
9817
      no_undefined_flag=' -z defs'
9722
 
      if test yes = "$GCC"; then
9723
 
        wlarc='$wl'
9724
 
        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9818
      if test "$GCC" = yes; then
 
9819
        wlarc='${wl}'
 
9820
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9725
9821
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9726
 
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9822
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9727
9823
      else
9728
9824
        case `$CC -V 2>&1` in
9729
9825
        *"Compilers 5.0"*)
9730
9826
          wlarc=''
9731
 
          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9827
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732
9828
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9733
 
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9829
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9734
9830
          ;;
9735
9831
        *)
9736
 
          wlarc='$wl'
9737
 
          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9832
          wlarc='${wl}'
 
9833
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9738
9834
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9739
 
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9835
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9740
9836
          ;;
9741
9837
        esac
9742
9838
      fi
9746
9842
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9747
9843
      *)
9748
9844
        # The compiler driver will combine and reorder linker options,
9749
 
        # but understands '-z linker_flag'.  GCC discards it without '$wl',
 
9845
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9750
9846
        # but is careful enough not to reorder.
9751
9847
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9752
 
        if test yes = "$GCC"; then
9753
 
          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 
9848
        if test "$GCC" = yes; then
 
9849
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9754
9850
        else
9755
9851
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9756
9852
        fi
9760
9856
      ;;
9761
9857
 
9762
9858
    sunos4*)
9763
 
      if test sequent = "$host_vendor"; then
 
9859
      if test "x$host_vendor" = xsequent; then
9764
9860
        # Use $CC to link under sequent, because it throws in some extra .o
9765
9861
        # files that make .init and .fini sections work.
9766
 
        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9862
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9767
9863
      else
9768
9864
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9769
9865
      fi
9812
9908
      ;;
9813
9909
 
9814
9910
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9815
 
      no_undefined_flag='$wl-z,text'
 
9911
      no_undefined_flag='${wl}-z,text'
9816
9912
      archive_cmds_need_lc=no
9817
9913
      hardcode_shlibpath_var=no
9818
9914
      runpath_var='LD_RUN_PATH'
9819
9915
 
9820
 
      if test yes = "$GCC"; then
9821
 
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822
 
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9916
      if test "$GCC" = yes; then
 
9917
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9918
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823
9919
      else
9824
 
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825
 
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9920
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9921
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826
9922
      fi
9827
9923
      ;;
9828
9924
 
9829
9925
    sysv5* | sco3.2v5* | sco5v6*)
9830
 
      # Note: We CANNOT use -z defs as we might desire, because we do not
 
9926
      # Note: We can NOT use -z defs as we might desire, because we do not
9831
9927
      # link with -lc, and that would cause any symbols used from libc to
9832
9928
      # always be unresolved, which means just about no library would
9833
9929
      # ever link correctly.  If we're not using GNU ld we use -z text
9834
9930
      # though, which does catch some bad symbols but isn't as heavy-handed
9835
9931
      # as -z defs.
9836
 
      no_undefined_flag='$wl-z,text'
9837
 
      allow_undefined_flag='$wl-z,nodefs'
 
9932
      no_undefined_flag='${wl}-z,text'
 
9933
      allow_undefined_flag='${wl}-z,nodefs'
9838
9934
      archive_cmds_need_lc=no
9839
9935
      hardcode_shlibpath_var=no
9840
 
      hardcode_libdir_flag_spec='$wl-R,$libdir'
 
9936
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9841
9937
      hardcode_libdir_separator=':'
9842
9938
      link_all_deplibs=yes
9843
 
      export_dynamic_flag_spec='$wl-Bexport'
 
9939
      export_dynamic_flag_spec='${wl}-Bexport'
9844
9940
      runpath_var='LD_RUN_PATH'
9845
9941
 
9846
 
      if test yes = "$GCC"; then
9847
 
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848
 
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9942
      if test "$GCC" = yes; then
 
9943
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9944
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849
9945
      else
9850
 
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851
 
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9946
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9947
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9852
9948
      fi
9853
9949
      ;;
9854
9950
 
9863
9959
      ;;
9864
9960
    esac
9865
9961
 
9866
 
    if test sni = "$host_vendor"; then
 
9962
    if test x$host_vendor = xsni; then
9867
9963
      case $host in
9868
9964
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9869
 
        export_dynamic_flag_spec='$wl-Blargedynsym'
 
9965
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9870
9966
        ;;
9871
9967
      esac
9872
9968
    fi
9874
9970
 
9875
9971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9876
9972
$as_echo "$ld_shlibs" >&6; }
9877
 
test no = "$ld_shlibs" && can_build_shared=no
 
9973
test "$ld_shlibs" = no && can_build_shared=no
9878
9974
 
9879
9975
with_gnu_ld=$with_gnu_ld
9880
9976
 
9900
9996
  # Assume -lc should be added
9901
9997
  archive_cmds_need_lc=yes
9902
9998
 
9903
 
  if test yes,yes = "$GCC,$enable_shared"; then
 
9999
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9904
10000
    case $archive_cmds in
9905
10001
    *'~'*)
9906
10002
      # FIXME: we may have to deal with multi-command sequences.
10115
10211
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10116
10212
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10117
10213
 
10118
 
if test yes = "$GCC"; then
 
10214
if test "$GCC" = yes; then
10119
10215
  case $host_os in
10120
 
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10121
 
    *) lt_awk_arg='/^libraries:/' ;;
 
10216
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10217
    *) lt_awk_arg="/^libraries:/" ;;
10122
10218
  esac
10123
10219
  case $host_os in
10124
 
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10125
 
    *) lt_sed_strip_eq='s|=/|/|g' ;;
 
10220
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10221
    *) lt_sed_strip_eq="s,=/,/,g" ;;
10126
10222
  esac
10127
10223
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10128
10224
  case $lt_search_path_spec in
10138
10234
    ;;
10139
10235
  esac
10140
10236
  # Ok, now we have the path, separated by spaces, we can step through it
10141
 
  # and add multilib dir if necessary...
 
10237
  # and add multilib dir if necessary.
10142
10238
  lt_tmp_lt_search_path_spec=
10143
 
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10144
 
  # ...but if some path component already ends with the multilib dir we assume
10145
 
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10146
 
  case "$lt_multi_os_dir; $lt_search_path_spec " in
10147
 
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10148
 
    lt_multi_os_dir=
10149
 
    ;;
10150
 
  esac
 
10239
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10151
10240
  for lt_sys_path in $lt_search_path_spec; do
10152
 
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10153
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10154
 
    elif test -n "$lt_multi_os_dir"; then
 
10241
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10242
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10243
    else
10155
10244
      test -d "$lt_sys_path" && \
10156
10245
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10157
10246
    fi
10158
10247
  done
10159
10248
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10160
 
BEGIN {RS = " "; FS = "/|\n";} {
10161
 
  lt_foo = "";
10162
 
  lt_count = 0;
 
10249
BEGIN {RS=" "; FS="/|\n";} {
 
10250
  lt_foo="";
 
10251
  lt_count=0;
10163
10252
  for (lt_i = NF; lt_i > 0; lt_i--) {
10164
10253
    if ($lt_i != "" && $lt_i != ".") {
10165
10254
      if ($lt_i == "..") {
10166
10255
        lt_count++;
10167
10256
      } else {
10168
10257
        if (lt_count == 0) {
10169
 
          lt_foo = "/" $lt_i lt_foo;
 
10258
          lt_foo="/" $lt_i lt_foo;
10170
10259
        } else {
10171
10260
          lt_count--;
10172
10261
        }
10180
10269
  # for these hosts.
10181
10270
  case $host_os in
10182
10271
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10183
 
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
 
10272
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10184
10273
  esac
10185
10274
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10186
10275
else
10189
10278
library_names_spec=
10190
10279
libname_spec='lib$name'
10191
10280
soname_spec=
10192
 
shrext_cmds=.so
 
10281
shrext_cmds=".so"
10193
10282
postinstall_cmds=
10194
10283
postuninstall_cmds=
10195
10284
finish_cmds=
10209
10298
case $host_os in
10210
10299
aix3*)
10211
10300
  version_type=linux # correct to gnu/linux during the next big refactor
10212
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 
10301
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10213
10302
  shlibpath_var=LIBPATH
10214
10303
 
10215
10304
  # AIX 3 has no versioning support, so we append a major version to the name.
10216
 
  soname_spec='$libname$release$shared_ext$major'
 
10305
  soname_spec='${libname}${release}${shared_ext}$major'
10217
10306
  ;;
10218
10307
 
10219
10308
aix[4-9]*)
10221
10310
  need_lib_prefix=no
10222
10311
  need_version=no
10223
10312
  hardcode_into_libs=yes
10224
 
  if test ia64 = "$host_cpu"; then
 
10313
  if test "$host_cpu" = ia64; then
10225
10314
    # AIX 5 supports IA64
10226
 
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 
10315
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10227
10316
    shlibpath_var=LD_LIBRARY_PATH
10228
10317
  else
10229
10318
    # With GCC up to 2.95.x, collect2 would create an import file
10230
10319
    # for dependence libraries.  The import file would start with
10231
 
    # the line '#! .'.  This would cause the generated library to
10232
 
    # depend on '.', always an invalid library.  This was fixed in
 
10320
    # the line `#! .'.  This would cause the generated library to
 
10321
    # depend on `.', always an invalid library.  This was fixed in
10233
10322
    # development snapshots of GCC prior to 3.0.
10234
10323
    case $host_os in
10235
10324
      aix4 | aix4.[01] | aix4.[01].*)
10236
10325
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10237
10326
           echo ' yes '
10238
 
           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 
10327
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10239
10328
        :
10240
10329
      else
10241
10330
        can_build_shared=no
10242
10331
      fi
10243
10332
      ;;
10244
10333
    esac
10245
 
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 
10334
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10246
10335
    # soname into executable. Probably we can add versioning support to
10247
10336
    # collect2, so additional links can be useful in future.
10248
 
    if test yes = "$aix_use_runtimelinking"; then
 
10337
    if test "$aix_use_runtimelinking" = yes; then
10249
10338
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10250
10339
      # instead of lib<name>.a to let people know that these are not
10251
10340
      # typical AIX shared libraries.
10252
 
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
10341
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253
10342
    else
10254
10343
      # We preserve .a as extension for shared libraries through AIX4.2
10255
10344
      # and later when we are not doing run time linking.
10256
 
      library_names_spec='$libname$release.a $libname.a'
10257
 
      soname_spec='$libname$release$shared_ext$major'
 
10345
      library_names_spec='${libname}${release}.a $libname.a'
 
10346
      soname_spec='${libname}${release}${shared_ext}$major'
10258
10347
    fi
10259
10348
    shlibpath_var=LIBPATH
10260
10349
  fi
10265
10354
  powerpc)
10266
10355
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10267
10356
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10268
 
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
10357
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269
10358
    ;;
10270
10359
  m68k)
10271
10360
    library_names_spec='$libname.ixlibrary $libname.a'
10272
10361
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10273
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
 
10362
    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'
10274
10363
    ;;
10275
10364
  esac
10276
10365
  ;;
10277
10366
 
10278
10367
beos*)
10279
 
  library_names_spec='$libname$shared_ext'
 
10368
  library_names_spec='${libname}${shared_ext}'
10280
10369
  dynamic_linker="$host_os ld.so"
10281
10370
  shlibpath_var=LIBRARY_PATH
10282
10371
  ;;
10284
10373
bsdi[45]*)
10285
10374
  version_type=linux # correct to gnu/linux during the next big refactor
10286
10375
  need_version=no
10287
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10288
 
  soname_spec='$libname$release$shared_ext$major'
 
10376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10377
  soname_spec='${libname}${release}${shared_ext}$major'
10289
10378
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10290
10379
  shlibpath_var=LD_LIBRARY_PATH
10291
10380
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10297
10386
 
10298
10387
cygwin* | mingw* | pw32* | cegcc*)
10299
10388
  version_type=windows
10300
 
  shrext_cmds=.dll
 
10389
  shrext_cmds=".dll"
10301
10390
  need_version=no
10302
10391
  need_lib_prefix=no
10303
10392
 
10306
10395
    # gcc
10307
10396
    library_names_spec='$libname.dll.a'
10308
10397
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10309
 
    postinstall_cmds='base_file=`basename \$file`~
10310
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
10398
    postinstall_cmds='base_file=`basename \${file}`~
 
10399
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10311
10400
      dldir=$destdir/`dirname \$dlpath`~
10312
10401
      test -d \$dldir || mkdir -p \$dldir~
10313
10402
      $install_prog $dir/$dlname \$dldir/$dlname~
10323
10412
    case $host_os in
10324
10413
    cygwin*)
10325
10414
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10326
 
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
10415
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10327
10416
 
10328
10417
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10329
10418
      ;;
10330
10419
    mingw* | cegcc*)
10331
10420
      # MinGW DLLs use traditional 'lib' prefix
10332
 
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
10421
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10333
10422
      ;;
10334
10423
    pw32*)
10335
10424
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10336
 
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
10425
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10337
10426
      ;;
10338
10427
    esac
10339
10428
    dynamic_linker='Win32 ld.exe'
10342
10431
  *,cl*)
10343
10432
    # Native MSVC
10344
10433
    libname_spec='$name'
10345
 
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10346
 
    library_names_spec='$libname.dll.lib'
 
10434
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10435
    library_names_spec='${libname}.dll.lib'
10347
10436
 
10348
10437
    case $build_os in
10349
10438
    mingw*)
10370
10459
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10371
10460
      ;;
10372
10461
    *)
10373
 
      sys_lib_search_path_spec=$LIB
 
10462
      sys_lib_search_path_spec="$LIB"
10374
10463
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10375
10464
        # It is most probably a Windows format PATH.
10376
10465
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10383
10472
    esac
10384
10473
 
10385
10474
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10386
 
    postinstall_cmds='base_file=`basename \$file`~
10387
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
10475
    postinstall_cmds='base_file=`basename \${file}`~
 
10476
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10388
10477
      dldir=$destdir/`dirname \$dlpath`~
10389
10478
      test -d \$dldir || mkdir -p \$dldir~
10390
10479
      $install_prog $dir/$dlname \$dldir/$dlname'
10397
10486
 
10398
10487
  *)
10399
10488
    # Assume MSVC wrapper
10400
 
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
 
10489
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10401
10490
    dynamic_linker='Win32 ld.exe'
10402
10491
    ;;
10403
10492
  esac
10410
10499
  version_type=darwin
10411
10500
  need_lib_prefix=no
10412
10501
  need_version=no
10413
 
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10414
 
  soname_spec='$libname$release$major$shared_ext'
 
10502
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10503
  soname_spec='${libname}${release}${major}$shared_ext'
10415
10504
  shlibpath_overrides_runpath=yes
10416
10505
  shlibpath_var=DYLD_LIBRARY_PATH
10417
10506
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10424
10513
  version_type=linux # correct to gnu/linux during the next big refactor
10425
10514
  need_lib_prefix=no
10426
10515
  need_version=no
10427
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10428
 
  soname_spec='$libname$release$shared_ext$major'
 
10516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10517
  soname_spec='${libname}${release}${shared_ext}$major'
10429
10518
  shlibpath_var=LD_LIBRARY_PATH
10430
10519
  ;;
10431
10520
 
10443
10532
  version_type=freebsd-$objformat
10444
10533
  case $version_type in
10445
10534
    freebsd-elf*)
10446
 
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 
10535
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10447
10536
      need_version=no
10448
10537
      need_lib_prefix=no
10449
10538
      ;;
10450
10539
    freebsd-*)
10451
 
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
10540
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10452
10541
      need_version=yes
10453
10542
      ;;
10454
10543
  esac
10473
10562
  esac
10474
10563
  ;;
10475
10564
 
 
10565
gnu*)
 
10566
  version_type=linux # correct to gnu/linux during the next big refactor
 
10567
  need_lib_prefix=no
 
10568
  need_version=no
 
10569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10570
  soname_spec='${libname}${release}${shared_ext}$major'
 
10571
  shlibpath_var=LD_LIBRARY_PATH
 
10572
  shlibpath_overrides_runpath=no
 
10573
  hardcode_into_libs=yes
 
10574
  ;;
 
10575
 
10476
10576
haiku*)
10477
10577
  version_type=linux # correct to gnu/linux during the next big refactor
10478
10578
  need_lib_prefix=no
10479
10579
  need_version=no
10480
10580
  dynamic_linker="$host_os runtime_loader"
10481
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10482
 
  soname_spec='$libname$release$shared_ext$major'
 
10581
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10582
  soname_spec='${libname}${release}${shared_ext}$major'
10483
10583
  shlibpath_var=LIBRARY_PATH
10484
 
  shlibpath_overrides_runpath=no
 
10584
  shlibpath_overrides_runpath=yes
10485
10585
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10486
10586
  hardcode_into_libs=yes
10487
10587
  ;;
10499
10599
    dynamic_linker="$host_os dld.so"
10500
10600
    shlibpath_var=LD_LIBRARY_PATH
10501
10601
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10502
 
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10503
 
    soname_spec='$libname$release$shared_ext$major'
10504
 
    if test 32 = "$HPUX_IA64_MODE"; then
 
10602
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10603
    soname_spec='${libname}${release}${shared_ext}$major'
 
10604
    if test "X$HPUX_IA64_MODE" = X32; then
10505
10605
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10506
10606
    else
10507
10607
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10514
10614
    dynamic_linker="$host_os dld.sl"
10515
10615
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10516
10616
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10517
 
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10518
 
    soname_spec='$libname$release$shared_ext$major'
 
10617
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10618
    soname_spec='${libname}${release}${shared_ext}$major'
10519
10619
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10520
10620
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10521
10621
    ;;
10524
10624
    dynamic_linker="$host_os dld.sl"
10525
10625
    shlibpath_var=SHLIB_PATH
10526
10626
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10527
 
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10528
 
    soname_spec='$libname$release$shared_ext$major'
 
10627
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10628
    soname_spec='${libname}${release}${shared_ext}$major'
10529
10629
    ;;
10530
10630
  esac
10531
10631
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10538
10638
  version_type=linux # correct to gnu/linux during the next big refactor
10539
10639
  need_lib_prefix=no
10540
10640
  need_version=no
10541
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10542
 
  soname_spec='$libname$release$shared_ext$major'
 
10641
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10642
  soname_spec='${libname}${release}${shared_ext}$major'
10543
10643
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10544
10644
  shlibpath_var=LD_LIBRARY_PATH
10545
10645
  shlibpath_overrides_runpath=no
10550
10650
  case $host_os in
10551
10651
    nonstopux*) version_type=nonstopux ;;
10552
10652
    *)
10553
 
        if test yes = "$lt_cv_prog_gnu_ld"; then
 
10653
        if test "$lt_cv_prog_gnu_ld" = yes; then
10554
10654
                version_type=linux # correct to gnu/linux during the next big refactor
10555
10655
        else
10556
10656
                version_type=irix
10558
10658
  esac
10559
10659
  need_lib_prefix=no
10560
10660
  need_version=no
10561
 
  soname_spec='$libname$release$shared_ext$major'
10562
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 
10661
  soname_spec='${libname}${release}${shared_ext}$major'
 
10662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10563
10663
  case $host_os in
10564
10664
  irix5* | nonstopux*)
10565
10665
    libsuff= shlibsuff=
10578
10678
  esac
10579
10679
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10580
10680
  shlibpath_overrides_runpath=no
10581
 
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10582
 
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 
10681
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10682
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10583
10683
  hardcode_into_libs=yes
10584
10684
  ;;
10585
10685
 
10588
10688
  dynamic_linker=no
10589
10689
  ;;
10590
10690
 
10591
 
linux*android*)
10592
 
  version_type=none # Android doesn't support versioned libraries.
10593
 
  need_lib_prefix=no
10594
 
  need_version=no
10595
 
  library_names_spec='$libname$release$shared_ext'
10596
 
  soname_spec='$libname$release$shared_ext'
10597
 
  finish_cmds=
10598
 
  shlibpath_var=LD_LIBRARY_PATH
10599
 
  shlibpath_overrides_runpath=yes
10600
 
 
10601
 
  # This implies no fast_install, which is unacceptable.
10602
 
  # Some rework will be needed to allow for fast_install
10603
 
  # before this can be enabled.
10604
 
  hardcode_into_libs=yes
10605
 
 
10606
 
  dynamic_linker='Android linker'
10607
 
  # Don't embed -rpath directories since the linker doesn't support them.
10608
 
  hardcode_libdir_flag_spec='-L$libdir'
10609
 
  ;;
10610
 
 
10611
10691
# This must be glibc/ELF.
10612
 
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
10692
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10613
10693
  version_type=linux # correct to gnu/linux during the next big refactor
10614
10694
  need_lib_prefix=no
10615
10695
  need_version=no
10616
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10617
 
  soname_spec='$libname$release$shared_ext$major'
 
10696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10697
  soname_spec='${libname}${release}${shared_ext}$major'
10618
10698
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10619
10699
  shlibpath_var=LD_LIBRARY_PATH
10620
10700
  shlibpath_overrides_runpath=no
10673
10753
  dynamic_linker='GNU/Linux ld.so'
10674
10754
  ;;
10675
10755
 
 
10756
netbsdelf*-gnu)
 
10757
  version_type=linux
 
10758
  need_lib_prefix=no
 
10759
  need_version=no
 
10760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10761
  soname_spec='${libname}${release}${shared_ext}$major'
 
10762
  shlibpath_var=LD_LIBRARY_PATH
 
10763
  shlibpath_overrides_runpath=no
 
10764
  hardcode_into_libs=yes
 
10765
  dynamic_linker='NetBSD ld.elf_so'
 
10766
  ;;
 
10767
 
10676
10768
netbsd*)
10677
10769
  version_type=sunos
10678
10770
  need_lib_prefix=no
10679
10771
  need_version=no
10680
10772
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10681
 
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
10773
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10682
10774
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10683
10775
    dynamic_linker='NetBSD (a.out) ld.so'
10684
10776
  else
10685
 
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10686
 
    soname_spec='$libname$release$shared_ext$major'
 
10777
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10778
    soname_spec='${libname}${release}${shared_ext}$major'
10687
10779
    dynamic_linker='NetBSD ld.elf_so'
10688
10780
  fi
10689
10781
  shlibpath_var=LD_LIBRARY_PATH
10693
10785
 
10694
10786
newsos6)
10695
10787
  version_type=linux # correct to gnu/linux during the next big refactor
10696
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
10788
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697
10789
  shlibpath_var=LD_LIBRARY_PATH
10698
10790
  shlibpath_overrides_runpath=yes
10699
10791
  ;;
10702
10794
  version_type=qnx
10703
10795
  need_lib_prefix=no
10704
10796
  need_version=no
10705
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10706
 
  soname_spec='$libname$release$shared_ext$major'
 
10797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10798
  soname_spec='${libname}${release}${shared_ext}$major'
10707
10799
  shlibpath_var=LD_LIBRARY_PATH
10708
10800
  shlibpath_overrides_runpath=no
10709
10801
  hardcode_into_libs=yes
10710
10802
  dynamic_linker='ldqnx.so'
10711
10803
  ;;
10712
10804
 
10713
 
openbsd* | bitrig*)
 
10805
openbsd*)
10714
10806
  version_type=sunos
10715
 
  sys_lib_dlsearch_path_spec=/usr/lib
 
10807
  sys_lib_dlsearch_path_spec="/usr/lib"
10716
10808
  need_lib_prefix=no
10717
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10718
 
    need_version=no
10719
 
  else
10720
 
    need_version=yes
10721
 
  fi
10722
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
10809
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10810
  case $host_os in
 
10811
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10812
    *)                          need_version=no  ;;
 
10813
  esac
 
10814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10723
10815
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10724
10816
  shlibpath_var=LD_LIBRARY_PATH
10725
 
  shlibpath_overrides_runpath=yes
 
10817
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10818
    case $host_os in
 
10819
      openbsd2.[89] | openbsd2.[89].*)
 
10820
        shlibpath_overrides_runpath=no
 
10821
        ;;
 
10822
      *)
 
10823
        shlibpath_overrides_runpath=yes
 
10824
        ;;
 
10825
      esac
 
10826
  else
 
10827
    shlibpath_overrides_runpath=yes
 
10828
  fi
10726
10829
  ;;
10727
10830
 
10728
10831
os2*)
10729
10832
  libname_spec='$name'
10730
 
  shrext_cmds=.dll
 
10833
  shrext_cmds=".dll"
10731
10834
  need_lib_prefix=no
10732
 
  library_names_spec='$libname$shared_ext $libname.a'
 
10835
  library_names_spec='$libname${shared_ext} $libname.a'
10733
10836
  dynamic_linker='OS/2 ld.exe'
10734
10837
  shlibpath_var=LIBPATH
10735
10838
  ;;
10738
10841
  version_type=osf
10739
10842
  need_lib_prefix=no
10740
10843
  need_version=no
10741
 
  soname_spec='$libname$release$shared_ext$major'
10742
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
10844
  soname_spec='${libname}${release}${shared_ext}$major'
 
10845
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743
10846
  shlibpath_var=LD_LIBRARY_PATH
10744
10847
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10745
 
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10848
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10746
10849
  ;;
10747
10850
 
10748
10851
rdos*)
10753
10856
  version_type=linux # correct to gnu/linux during the next big refactor
10754
10857
  need_lib_prefix=no
10755
10858
  need_version=no
10756
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10757
 
  soname_spec='$libname$release$shared_ext$major'
 
10859
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10860
  soname_spec='${libname}${release}${shared_ext}$major'
10758
10861
  shlibpath_var=LD_LIBRARY_PATH
10759
10862
  shlibpath_overrides_runpath=yes
10760
10863
  hardcode_into_libs=yes
10764
10867
 
10765
10868
sunos4*)
10766
10869
  version_type=sunos
10767
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
10870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10768
10871
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10769
10872
  shlibpath_var=LD_LIBRARY_PATH
10770
10873
  shlibpath_overrides_runpath=yes
10771
 
  if test yes = "$with_gnu_ld"; then
 
10874
  if test "$with_gnu_ld" = yes; then
10772
10875
    need_lib_prefix=no
10773
10876
  fi
10774
10877
  need_version=yes
10776
10879
 
10777
10880
sysv4 | sysv4.3*)
10778
10881
  version_type=linux # correct to gnu/linux during the next big refactor
10779
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10780
 
  soname_spec='$libname$release$shared_ext$major'
 
10882
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10883
  soname_spec='${libname}${release}${shared_ext}$major'
10781
10884
  shlibpath_var=LD_LIBRARY_PATH
10782
10885
  case $host_vendor in
10783
10886
    sni)
10798
10901
  ;;
10799
10902
 
10800
10903
sysv4*MP*)
10801
 
  if test -d /usr/nec; then
 
10904
  if test -d /usr/nec ;then
10802
10905
    version_type=linux # correct to gnu/linux during the next big refactor
10803
 
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10804
 
    soname_spec='$libname$shared_ext.$major'
 
10906
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10907
    soname_spec='$libname${shared_ext}.$major'
10805
10908
    shlibpath_var=LD_LIBRARY_PATH
10806
10909
  fi
10807
10910
  ;;
10810
10913
  version_type=freebsd-elf
10811
10914
  need_lib_prefix=no
10812
10915
  need_version=no
10813
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10814
 
  soname_spec='$libname$release$shared_ext$major'
 
10916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10917
  soname_spec='${libname}${release}${shared_ext}$major'
10815
10918
  shlibpath_var=LD_LIBRARY_PATH
10816
10919
  shlibpath_overrides_runpath=yes
10817
10920
  hardcode_into_libs=yes
10818
 
  if test yes = "$with_gnu_ld"; then
 
10921
  if test "$with_gnu_ld" = yes; then
10819
10922
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10820
10923
  else
10821
10924
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10833
10936
  version_type=linux # correct to gnu/linux during the next big refactor
10834
10937
  need_lib_prefix=no
10835
10938
  need_version=no
10836
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
10939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837
10940
  shlibpath_var=LD_LIBRARY_PATH
10838
10941
  shlibpath_overrides_runpath=no
10839
10942
  hardcode_into_libs=yes
10841
10944
 
10842
10945
uts4*)
10843
10946
  version_type=linux # correct to gnu/linux during the next big refactor
10844
 
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10845
 
  soname_spec='$libname$release$shared_ext$major'
 
10947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10948
  soname_spec='${libname}${release}${shared_ext}$major'
10846
10949
  shlibpath_var=LD_LIBRARY_PATH
10847
10950
  ;;
10848
10951
 
10852
10955
esac
10853
10956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10854
10957
$as_echo "$dynamic_linker" >&6; }
10855
 
test no = "$dynamic_linker" && can_build_shared=no
 
10958
test "$dynamic_linker" = no && can_build_shared=no
10856
10959
 
10857
10960
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10858
 
if test yes = "$GCC"; then
 
10961
if test "$GCC" = yes; then
10859
10962
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10860
10963
fi
10861
10964
 
10862
 
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10863
 
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 
10965
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10966
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10864
10967
fi
10865
 
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10866
 
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 
10968
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10969
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10867
10970
fi
10868
10971
 
10869
10972
 
10962
11065
hardcode_action=
10963
11066
if test -n "$hardcode_libdir_flag_spec" ||
10964
11067
   test -n "$runpath_var" ||
10965
 
   test yes = "$hardcode_automatic"; then
 
11068
   test "X$hardcode_automatic" = "Xyes" ; then
10966
11069
 
10967
11070
  # We can hardcode non-existent directories.
10968
 
  if test no != "$hardcode_direct" &&
 
11071
  if test "$hardcode_direct" != no &&
10969
11072
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10970
11073
     # have to relink, otherwise we might link with an installed library
10971
11074
     # when we should be linking with a yet-to-be-installed one
10972
 
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10973
 
     test no != "$hardcode_minus_L"; then
 
11075
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11076
     test "$hardcode_minus_L" != no; then
10974
11077
    # Linking always hardcodes the temporary library directory.
10975
11078
    hardcode_action=relink
10976
11079
  else
10985
11088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10986
11089
$as_echo "$hardcode_action" >&6; }
10987
11090
 
10988
 
if test relink = "$hardcode_action" ||
10989
 
   test yes = "$inherit_rpath"; then
 
11091
if test "$hardcode_action" = relink ||
 
11092
   test "$inherit_rpath" = yes; then
10990
11093
  # Fast installation is not supported
10991
11094
  enable_fast_install=no
10992
 
elif test yes = "$shlibpath_overrides_runpath" ||
10993
 
     test no = "$enable_shared"; then
 
11095
elif test "$shlibpath_overrides_runpath" = yes ||
 
11096
     test "$enable_shared" = no; then
10994
11097
  # Fast installation is not necessary
10995
11098
  enable_fast_install=needless
10996
11099
fi
11000
11103
 
11001
11104
 
11002
11105
 
11003
 
  if test yes != "$enable_dlopen"; then
 
11106
  if test "x$enable_dlopen" != xyes; then
11004
11107
  enable_dlopen=unknown
11005
11108
  enable_dlopen_self=unknown
11006
11109
  enable_dlopen_self_static=unknown
11010
11113
 
11011
11114
  case $host_os in
11012
11115
  beos*)
11013
 
    lt_cv_dlopen=load_add_on
 
11116
    lt_cv_dlopen="load_add_on"
11014
11117
    lt_cv_dlopen_libs=
11015
11118
    lt_cv_dlopen_self=yes
11016
11119
    ;;
11017
11120
 
11018
11121
  mingw* | pw32* | cegcc*)
11019
 
    lt_cv_dlopen=LoadLibrary
 
11122
    lt_cv_dlopen="LoadLibrary"
11020
11123
    lt_cv_dlopen_libs=
11021
11124
    ;;
11022
11125
 
11023
11126
  cygwin*)
11024
 
    lt_cv_dlopen=dlopen
 
11127
    lt_cv_dlopen="dlopen"
11025
11128
    lt_cv_dlopen_libs=
11026
11129
    ;;
11027
11130
 
11028
11131
  darwin*)
11029
 
    # if libdl is installed we need to link against it
 
11132
  # if libdl is installed we need to link against it
11030
11133
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11031
11134
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11032
11135
if ${ac_cv_lib_dl_dlopen+:} false; then :
11064
11167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11065
11168
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11066
11169
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11067
 
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 
11170
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11068
11171
else
11069
11172
 
11070
 
    lt_cv_dlopen=dyld
 
11173
    lt_cv_dlopen="dyld"
11071
11174
    lt_cv_dlopen_libs=
11072
11175
    lt_cv_dlopen_self=yes
11073
11176
 
11075
11178
 
11076
11179
    ;;
11077
11180
 
11078
 
  tpf*)
11079
 
    # Don't try to run any link tests for TPF.  We know it's impossible
11080
 
    # because TPF is a cross-compiler, and we know how we open DSOs.
11081
 
    lt_cv_dlopen=dlopen
11082
 
    lt_cv_dlopen_libs=
11083
 
    lt_cv_dlopen_self=no
11084
 
    ;;
11085
 
 
11086
11181
  *)
11087
11182
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11088
11183
if test "x$ac_cv_func_shl_load" = xyes; then :
11089
 
  lt_cv_dlopen=shl_load
 
11184
  lt_cv_dlopen="shl_load"
11090
11185
else
11091
11186
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11092
11187
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11125
11220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11126
11221
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11127
11222
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11128
 
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
 
11223
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11129
11224
else
11130
11225
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11131
11226
if test "x$ac_cv_func_dlopen" = xyes; then :
11132
 
  lt_cv_dlopen=dlopen
 
11227
  lt_cv_dlopen="dlopen"
11133
11228
else
11134
11229
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11135
11230
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11168
11263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11169
11264
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11170
11265
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11171
 
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 
11266
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11172
11267
else
11173
11268
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11174
11269
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11207
11302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11208
11303
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11209
11304
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11210
 
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
 
11305
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11211
11306
else
11212
11307
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11213
11308
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11246
11341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11247
11342
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11248
11343
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11249
 
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
 
11344
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11250
11345
fi
11251
11346
 
11252
11347
 
11267
11362
    ;;
11268
11363
  esac
11269
11364
 
11270
 
  if test no = "$lt_cv_dlopen"; then
 
11365
  if test "x$lt_cv_dlopen" != xno; then
 
11366
    enable_dlopen=yes
 
11367
  else
11271
11368
    enable_dlopen=no
11272
 
  else
11273
 
    enable_dlopen=yes
11274
11369
  fi
11275
11370
 
11276
11371
  case $lt_cv_dlopen in
11277
11372
  dlopen)
11278
 
    save_CPPFLAGS=$CPPFLAGS
11279
 
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11373
    save_CPPFLAGS="$CPPFLAGS"
 
11374
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11280
11375
 
11281
 
    save_LDFLAGS=$LDFLAGS
 
11376
    save_LDFLAGS="$LDFLAGS"
11282
11377
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11283
11378
 
11284
 
    save_LIBS=$LIBS
 
11379
    save_LIBS="$LIBS"
11285
11380
    LIBS="$lt_cv_dlopen_libs $LIBS"
11286
11381
 
11287
11382
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11289
11384
if ${lt_cv_dlopen_self+:} false; then :
11290
11385
  $as_echo_n "(cached) " >&6
11291
11386
else
11292
 
          if test yes = "$cross_compiling"; then :
 
11387
          if test "$cross_compiling" = yes; then :
11293
11388
  lt_cv_dlopen_self=cross
11294
11389
else
11295
11390
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11338
11433
 
11339
11434
/* When -fvisbility=hidden is used, assume the code has been annotated
11340
11435
   correspondingly for the symbols needed.  */
11341
 
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11436
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11342
11437
int fnord () __attribute__((visibility("default")));
11343
11438
#endif
11344
11439
 
11368
11463
  (eval $ac_link) 2>&5
11369
11464
  ac_status=$?
11370
11465
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371
 
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 
11466
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11372
11467
    (./conftest; exit; ) >&5 2>/dev/null
11373
11468
    lt_status=$?
11374
11469
    case x$lt_status in
11388
11483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11389
11484
$as_echo "$lt_cv_dlopen_self" >&6; }
11390
11485
 
11391
 
    if test yes = "$lt_cv_dlopen_self"; then
 
11486
    if test "x$lt_cv_dlopen_self" = xyes; then
11392
11487
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11393
11488
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11394
11489
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11395
11490
if ${lt_cv_dlopen_self_static+:} false; then :
11396
11491
  $as_echo_n "(cached) " >&6
11397
11492
else
11398
 
          if test yes = "$cross_compiling"; then :
 
11493
          if test "$cross_compiling" = yes; then :
11399
11494
  lt_cv_dlopen_self_static=cross
11400
11495
else
11401
11496
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11444
11539
 
11445
11540
/* When -fvisbility=hidden is used, assume the code has been annotated
11446
11541
   correspondingly for the symbols needed.  */
11447
 
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11542
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11448
11543
int fnord () __attribute__((visibility("default")));
11449
11544
#endif
11450
11545
 
11474
11569
  (eval $ac_link) 2>&5
11475
11570
  ac_status=$?
11476
11571
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477
 
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 
11572
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11478
11573
    (./conftest; exit; ) >&5 2>/dev/null
11479
11574
    lt_status=$?
11480
11575
    case x$lt_status in
11495
11590
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11496
11591
    fi
11497
11592
 
11498
 
    CPPFLAGS=$save_CPPFLAGS
11499
 
    LDFLAGS=$save_LDFLAGS
11500
 
    LIBS=$save_LIBS
 
11593
    CPPFLAGS="$save_CPPFLAGS"
 
11594
    LDFLAGS="$save_LDFLAGS"
 
11595
    LIBS="$save_LIBS"
11501
11596
    ;;
11502
11597
  esac
11503
11598
 
11541
11636
# FIXME - insert some real tests, host_os isn't really good enough
11542
11637
  case $host_os in
11543
11638
  darwin*)
11544
 
    if test -n "$STRIP"; then
 
11639
    if test -n "$STRIP" ; then
11545
11640
      striplib="$STRIP -x"
11546
11641
      old_striplib="$STRIP -S"
11547
11642
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11569
11664
 
11570
11665
 
11571
11666
 
11572
 
  # Report what library types will actually be built
 
11667
  # Report which library types will actually be built
11573
11668
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11574
11669
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11575
11670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11577
11672
 
11578
11673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11579
11674
$as_echo_n "checking whether to build shared libraries... " >&6; }
11580
 
  test no = "$can_build_shared" && enable_shared=no
 
11675
  test "$can_build_shared" = "no" && enable_shared=no
11581
11676
 
11582
11677
  # On AIX, shared libraries and static libraries use the same namespace, and
11583
11678
  # are all built from PIC.
11584
11679
  case $host_os in
11585
11680
  aix3*)
11586
 
    test yes = "$enable_shared" && enable_static=no
 
11681
    test "$enable_shared" = yes && enable_static=no
11587
11682
    if test -n "$RANLIB"; then
11588
11683
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11589
11684
      postinstall_cmds='$RANLIB $lib'
11591
11686
    ;;
11592
11687
 
11593
11688
  aix[4-9]*)
11594
 
    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
11595
 
      test yes = "$enable_shared" && enable_static=no
 
11689
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11690
      test "$enable_shared" = yes && enable_static=no
11596
11691
    fi
11597
11692
    ;;
11598
11693
  esac
11602
11697
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11603
11698
$as_echo_n "checking whether to build static libraries... " >&6; }
11604
11699
  # Make sure either enable_shared or enable_static is yes.
11605
 
  test yes = "$enable_shared" || enable_static=yes
 
11700
  test "$enable_shared" = yes || enable_static=yes
11606
11701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11607
11702
$as_echo "$enable_static" >&6; }
11608
11703
 
11616
11711
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617
11712
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618
11713
 
11619
 
CC=$lt_save_CC
 
11714
CC="$lt_save_CC"
11620
11715
 
11621
11716
 
11622
11717
 
11656
11751
  IFS=$as_save_IFS
11657
11752
  test -z "$as_dir" && as_dir=.
11658
11753
    for ac_exec_ext in '' $ac_executable_extensions; do
11659
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11754
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11660
11755
    ac_cv_prog_TEXI2DVI="texi2dvi"
11661
11756
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662
11757
    break 2
12361
12456
  IFS=$as_save_IFS
12362
12457
  test -z "$as_dir" && as_dir=.
12363
12458
    for ac_exec_ext in '' $ac_executable_extensions; do
12364
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12459
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365
12460
    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12366
12461
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367
12462
    break 2
12621
12716
int
12622
12717
main ()
12623
12718
{
12624
 
/* FIXME: Include the comments suggested by Paul. */
 
12719
 
12625
12720
#ifndef __cplusplus
12626
 
  /* Ultrix mips cc rejects this.  */
 
12721
  /* Ultrix mips cc rejects this sort of thing.  */
12627
12722
  typedef int charset[2];
12628
 
  const charset cs;
 
12723
  const charset cs = { 0, 0 };
12629
12724
  /* SunOS 4.1.1 cc rejects this.  */
12630
12725
  char const *const *pcpcc;
12631
12726
  char **ppc;
12642
12737
  ++pcpcc;
12643
12738
  ppc = (char**) pcpcc;
12644
12739
  pcpcc = (char const *const *) ppc;
12645
 
  { /* SCO 3.2v4 cc rejects this.  */
12646
 
    char *t;
 
12740
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
 
12741
    char tx;
 
12742
    char *t = &tx;
12647
12743
    char const *s = 0 ? (char *) 0 : (char const *) 0;
12648
12744
 
12649
12745
    *t++ = 0;
12659
12755
    iptr p = 0;
12660
12756
    ++p;
12661
12757
  }
12662
 
  { /* AIX XL C 1.02.0.0 rejects this saying
 
12758
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12663
12759
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12664
 
    struct s { int j; const int *ap[3]; };
12665
 
    struct s *b; b->j = 5;
 
12760
    struct s { int j; const int *ap[3]; } bx;
 
12761
    struct s *b = &bx; b->j = 5;
12666
12762
  }
12667
12763
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12668
12764
    const int foo = 10;
13655
13751
LTLIBOBJS=$ac_ltlibobjs
13656
13752
 
13657
13753
 
 
13754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
13755
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
13756
   if test -n "$am_sleep_pid"; then
 
13757
     # Hide warnings about reused PIDs.
 
13758
     wait $am_sleep_pid 2>/dev/null
 
13759
   fi
 
13760
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
13761
$as_echo "done" >&6; }
13658
13762
 if test -n "$EXEEXT"; then
13659
13763
  am__EXEEXT_TRUE=
13660
13764
  am__EXEEXT_FALSE='#'
13993
14097
    # ... but there are two gotchas:
13994
14098
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13995
14099
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13996
 
    # In both cases, we have to default to `cp -p'.
 
14100
    # In both cases, we have to default to `cp -pR'.
13997
14101
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13998
 
      as_ln_s='cp -p'
 
14102
      as_ln_s='cp -pR'
13999
14103
  elif ln conf$$.file conf$$ 2>/dev/null; then
14000
14104
    as_ln_s=ln
14001
14105
  else
14002
 
    as_ln_s='cp -p'
 
14106
    as_ln_s='cp -pR'
14003
14107
  fi
14004
14108
else
14005
 
  as_ln_s='cp -p'
 
14109
  as_ln_s='cp -pR'
14006
14110
fi
14007
14111
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14008
14112
rmdir conf$$.dir 2>/dev/null
14062
14166
  as_mkdir_p=false
14063
14167
fi
14064
14168
 
14065
 
if test -x / >/dev/null 2>&1; then
14066
 
  as_test_x='test -x'
14067
 
else
14068
 
  if ls -dL / >/dev/null 2>&1; then
14069
 
    as_ls_L_option=L
14070
 
  else
14071
 
    as_ls_L_option=
14072
 
  fi
14073
 
  as_test_x='
14074
 
    eval sh -c '\''
14075
 
      if test -d "$1"; then
14076
 
        test -d "$1/.";
14077
 
      else
14078
 
        case $1 in #(
14079
 
        -*)set "./$1";;
14080
 
        esac;
14081
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14082
 
        ???[sx]*):;;*)false;;esac;fi
14083
 
    '\'' sh
14084
 
  '
14085
 
fi
14086
 
as_executable_p=$as_test_x
 
14169
 
 
14170
# as_fn_executable_p FILE
 
14171
# -----------------------
 
14172
# Test if FILE is an executable regular file.
 
14173
as_fn_executable_p ()
 
14174
{
 
14175
  test -f "$1" && test -x "$1"
 
14176
} # as_fn_executable_p
 
14177
as_test_x='test -x'
 
14178
as_executable_p=as_fn_executable_p
14087
14179
 
14088
14180
# Sed expression to map a string onto a valid CPP name.
14089
14181
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14104
14196
# report actual input values of CONFIG_FILES etc. instead of their
14105
14197
# values after options handling.
14106
14198
ac_log="
14107
 
This file was extended by cloog $as_me 0.18.2, which was
14108
 
generated by GNU Autoconf 2.68.  Invocation command line was
 
14199
This file was extended by cloog $as_me 0.18.3, which was
 
14200
generated by GNU Autoconf 2.69.  Invocation command line was
14109
14201
 
14110
14202
  CONFIG_FILES    = $CONFIG_FILES
14111
14203
  CONFIG_HEADERS  = $CONFIG_HEADERS
14161
14253
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14162
14254
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14163
14255
ac_cs_version="\\
14164
 
cloog config.status 0.18.2
14165
 
configured by $0, generated by GNU Autoconf 2.68,
 
14256
cloog config.status 0.18.3
 
14257
configured by $0, generated by GNU Autoconf 2.69,
14166
14258
  with options \\"\$ac_cs_config\\"
14167
14259
 
14168
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
14260
Copyright (C) 2012 Free Software Foundation, Inc.
14169
14261
This config.status script is free software; the Free Software Foundation
14170
14262
gives unlimited permission to copy, distribute and modify it."
14171
14263
 
14245
14337
_ACEOF
14246
14338
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14247
14339
if \$ac_cs_recheck; then
14248
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14340
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14249
14341
  shift
14250
14342
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14251
14343
  CONFIG_SHELL='$SHELL'
14334
14426
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14335
14427
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14336
14428
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14337
 
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14338
14429
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14339
14430
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"`'
14340
 
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14341
14431
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14342
14432
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14343
14433
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14455
14545
compiler \
14456
14546
lt_cv_sys_global_symbol_pipe \
14457
14547
lt_cv_sys_global_symbol_to_cdecl \
14458
 
lt_cv_sys_global_symbol_to_import \
14459
14548
lt_cv_sys_global_symbol_to_c_name_address \
14460
14549
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14461
 
lt_cv_nm_interface \
14462
14550
nm_file_list_spec \
14463
14551
lt_prog_compiler_no_builtin_flag \
14464
14552
lt_prog_compiler_pic \
14494
14582
striplib; do
14495
14583
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14496
14584
    *[\\\\\\\`\\"\\\$]*)
14497
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 
14585
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14498
14586
      ;;
14499
14587
    *)
14500
14588
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14524
14612
sys_lib_dlsearch_path_spec; do
14525
14613
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14526
14614
    *[\\\\\\\`\\"\\\$]*)
14527
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 
14615
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14528
14616
      ;;
14529
14617
    *)
14530
14618
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14533
14621
done
14534
14622
 
14535
14623
ac_aux_dir='$ac_aux_dir'
 
14624
xsi_shell='$xsi_shell'
 
14625
lt_shell_append='$lt_shell_append'
14536
14626
 
14537
 
# See if we are running on zsh, and set the options that allow our
 
14627
# See if we are running on zsh, and set the options which allow our
14538
14628
# commands through without removal of \ escapes INIT.
14539
 
if test -n "\${ZSH_VERSION+set}"; then
 
14629
if test -n "\${ZSH_VERSION+set}" ; then
14540
14630
   setopt NO_GLOB_SUBST
14541
14631
fi
14542
14632
 
14543
14633
 
14544
14634
    PACKAGE='$PACKAGE'
14545
14635
    VERSION='$VERSION'
 
14636
    TIMESTAMP='$TIMESTAMP'
14546
14637
    RM='$RM'
14547
14638
    ofile='$ofile'
14548
14639
 
15021
15112
 
15022
15113
  case $ac_file$ac_mode in
15023
15114
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15024
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
15115
  # Older Autoconf quotes --file arguments for eval, but not when files
15025
15116
  # are listed without --file.  Let's play safe and only enable the eval
15026
15117
  # if we detect the quoting.
15027
15118
  case $CONFIG_FILES in
15034
15125
    # Strip MF so we end up with the name of the file.
15035
15126
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15036
15127
    # Check whether this is an Automake generated Makefile or not.
15037
 
    # We used to match only the files named `Makefile.in', but
 
15128
    # We used to match only the files named 'Makefile.in', but
15038
15129
    # some people rename them; so instead we look at the file content.
15039
15130
    # Grep'ing the first line is not enough: some people post-process
15040
15131
    # each Makefile.in and add a new line on top of each file to say so.
15068
15159
      continue
15069
15160
    fi
15070
15161
    # Extract the definition of DEPDIR, am__include, and am__quote
15071
 
    # from the Makefile without running `make'.
 
15162
    # from the Makefile without running 'make'.
15072
15163
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15073
15164
    test -z "$DEPDIR" && continue
15074
15165
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15075
 
    test -z "am__include" && continue
 
15166
    test -z "$am__include" && continue
15076
15167
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15077
 
    # When using ansi2knr, U may be empty or an underscore; expand it
15078
 
    U=`sed -n 's/^U = //p' < "$mf"`
15079
15168
    # Find all dependency output files, they are included files with
15080
15169
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15081
15170
    # simplest approach to changing $(DEPDIR) to its actual value in the
15082
15171
    # expansion.
15083
15172
    for file in `sed -n "
15084
15173
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15085
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
15174
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15086
15175
      # Make sure the directory exists.
15087
15176
      test -f "$dirpart/$file" && continue
15088
15177
      fdir=`$as_dirname -- "$file" ||
15117
15206
 ;;
15118
15207
    "libtool":C)
15119
15208
 
15120
 
    # See if we are running on zsh, and set the options that allow our
 
15209
    # See if we are running on zsh, and set the options which allow our
15121
15210
    # commands through without removal of \ escapes.
15122
 
    if test -n "${ZSH_VERSION+set}"; then
 
15211
    if test -n "${ZSH_VERSION+set}" ; then
15123
15212
      setopt NO_GLOB_SUBST
15124
15213
    fi
15125
15214
 
15126
 
    cfgfile=${ofile}T
 
15215
    cfgfile="${ofile}T"
15127
15216
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15128
15217
    $RM "$cfgfile"
15129
15218
 
15131
15220
#! $SHELL
15132
15221
 
15133
15222
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15134
 
# Generated automatically by $as_me ($PACKAGE) $VERSION
 
15223
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15135
15224
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15136
15225
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15137
15226
#
15165
15254
 
15166
15255
 
15167
15256
# The names of the tagged configurations supported by this script.
15168
 
available_tags=''
 
15257
available_tags=""
15169
15258
 
15170
15259
# ### BEGIN LIBTOOL CONFIG
15171
15260
 
15302
15391
# Transform the output of nm in a proper C declaration.
15303
15392
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15304
15393
 
15305
 
# Transform the output of nm into a list of symbols to manually relocate.
15306
 
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15307
 
 
15308
15394
# Transform the output of nm in a C name address pair.
15309
15395
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15310
15396
 
15311
15397
# Transform the output of nm in a C name address pair when lib prefix is needed.
15312
15398
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15313
15399
 
15314
 
# The name lister interface.
15315
 
nm_interface=$lt_lt_cv_nm_interface
15316
 
 
15317
15400
# Specify filename containing input files for \$NM.
15318
15401
nm_file_list_spec=$lt_nm_file_list_spec
15319
15402
 
15320
 
# The root where to search for dependent libraries,and where our libraries should be installed.
 
15403
# The root where to search for dependent libraries,and in which our libraries should be installed.
15321
15404
lt_sysroot=$lt_sysroot
15322
15405
 
15323
15406
# The name of the directory that contains temporary libtool files.
15504
15587
# Whether we need a single "-rpath" flag with a separated argument.
15505
15588
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15506
15589
 
15507
 
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
15590
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15508
15591
# DIR into the resulting binary.
15509
15592
hardcode_direct=$hardcode_direct
15510
15593
 
15511
 
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
15594
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15512
15595
# DIR into the resulting binary and the resulting library dependency is
15513
 
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
 
15596
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15514
15597
# library is relocated.
15515
15598
hardcode_direct_absolute=$hardcode_direct_absolute
15516
15599
 
15568
15651
# AIX sometimes has problems with the GCC collect2 program.  For some
15569
15652
# reason, if we set the COLLECT_NAMES environment variable, the problems
15570
15653
# vanish in a puff of smoke.
15571
 
if test set != "${COLLECT_NAMES+set}"; then
 
15654
if test "X${COLLECT_NAMES+set}" != Xset; then
15572
15655
  COLLECT_NAMES=
15573
15656
  export COLLECT_NAMES
15574
15657
fi
15577
15660
  esac
15578
15661
 
15579
15662
 
15580
 
ltmain=$ac_aux_dir/ltmain.sh
 
15663
ltmain="$ac_aux_dir/ltmain.sh"
15581
15664
 
15582
15665
 
15583
15666
  # We use sed instead of cat because bash on DJGPP gets confused if
15587
15670
  sed '$q' "$ltmain" >> "$cfgfile" \
15588
15671
     || (rm -f "$cfgfile"; exit 1)
15589
15672
 
 
15673
  if test x"$xsi_shell" = xyes; then
 
15674
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15675
func_dirname ()\
 
15676
{\
 
15677
\    case ${1} in\
 
15678
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15679
\      *  ) func_dirname_result="${3}" ;;\
 
15680
\    esac\
 
15681
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15682
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15683
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15684
test 0 -eq $? || _lt_function_replace_fail=:
 
15685
 
 
15686
 
 
15687
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15688
func_basename ()\
 
15689
{\
 
15690
\    func_basename_result="${1##*/}"\
 
15691
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15692
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15693
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15694
test 0 -eq $? || _lt_function_replace_fail=:
 
15695
 
 
15696
 
 
15697
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15698
func_dirname_and_basename ()\
 
15699
{\
 
15700
\    case ${1} in\
 
15701
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15702
\      *  ) func_dirname_result="${3}" ;;\
 
15703
\    esac\
 
15704
\    func_basename_result="${1##*/}"\
 
15705
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15706
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15707
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15708
test 0 -eq $? || _lt_function_replace_fail=:
 
15709
 
 
15710
 
 
15711
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15712
func_stripname ()\
 
15713
{\
 
15714
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15715
\    # positional parameters, so assign one to ordinary parameter first.\
 
15716
\    func_stripname_result=${3}\
 
15717
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15718
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15719
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15720
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15721
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15722
test 0 -eq $? || _lt_function_replace_fail=:
 
15723
 
 
15724
 
 
15725
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15726
func_split_long_opt ()\
 
15727
{\
 
15728
\    func_split_long_opt_name=${1%%=*}\
 
15729
\    func_split_long_opt_arg=${1#*=}\
 
15730
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15731
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15732
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15733
test 0 -eq $? || _lt_function_replace_fail=:
 
15734
 
 
15735
 
 
15736
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15737
func_split_short_opt ()\
 
15738
{\
 
15739
\    func_split_short_opt_arg=${1#??}\
 
15740
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15741
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15742
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15743
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15744
test 0 -eq $? || _lt_function_replace_fail=:
 
15745
 
 
15746
 
 
15747
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15748
func_lo2o ()\
 
15749
{\
 
15750
\    case ${1} in\
 
15751
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15752
\      *)    func_lo2o_result=${1} ;;\
 
15753
\    esac\
 
15754
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15755
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15756
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15757
test 0 -eq $? || _lt_function_replace_fail=:
 
15758
 
 
15759
 
 
15760
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15761
func_xform ()\
 
15762
{\
 
15763
    func_xform_result=${1%.*}.lo\
 
15764
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15765
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15766
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15767
test 0 -eq $? || _lt_function_replace_fail=:
 
15768
 
 
15769
 
 
15770
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15771
func_arith ()\
 
15772
{\
 
15773
    func_arith_result=$(( $* ))\
 
15774
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15775
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15776
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15777
test 0 -eq $? || _lt_function_replace_fail=:
 
15778
 
 
15779
 
 
15780
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15781
func_len ()\
 
15782
{\
 
15783
    func_len_result=${#1}\
 
15784
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15785
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15786
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15787
test 0 -eq $? || _lt_function_replace_fail=:
 
15788
 
 
15789
fi
 
15790
 
 
15791
if test x"$lt_shell_append" = xyes; then
 
15792
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15793
func_append ()\
 
15794
{\
 
15795
    eval "${1}+=\\${2}"\
 
15796
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15797
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15798
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15799
test 0 -eq $? || _lt_function_replace_fail=:
 
15800
 
 
15801
 
 
15802
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15803
func_append_quoted ()\
 
15804
{\
 
15805
\    func_quote_for_eval "${2}"\
 
15806
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15807
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15808
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15809
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15810
test 0 -eq $? || _lt_function_replace_fail=:
 
15811
 
 
15812
 
 
15813
  # Save a `func_append' function call where possible by direct use of '+='
 
15814
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15815
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15816
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15817
  test 0 -eq $? || _lt_function_replace_fail=:
 
15818
else
 
15819
  # Save a `func_append' function call even when '+=' is not available
 
15820
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15821
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15822
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15823
  test 0 -eq $? || _lt_function_replace_fail=:
 
15824
fi
 
15825
 
 
15826
if test x"$_lt_function_replace_fail" = x":"; then
 
15827
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15828
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15829
fi
 
15830
 
 
15831
 
15590
15832
   mv -f "$cfgfile" "$ofile" ||
15591
15833
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15592
15834
  chmod +x "$ofile"