/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to configure

  • Committer: edam
  • Date: 2012-01-23 13:46:27 UTC
  • Revision ID: edam@waxworlds.org-20120123134627-i6hi9aftfvwgp8vw
updated autotols stuff

Show diffs side-by-side

added added

removed removed

1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.65 for sqlite3cc 0.1.0.
 
3
# Generated by GNU Autoconf 2.68 for sqlite3cc 0.1.0.
4
4
#
5
 
# Report bugs to <edam@waxworlds.org>.
 
5
# Report bugs to <tim@ed.am>.
6
6
#
7
7
#
8
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
 
# Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
11
11
#
12
12
#
13
13
# This configure script is free software; the Free Software Foundation
91
91
IFS=" ""        $as_nl"
92
92
 
93
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
as_myself=
94
95
case $0 in #((
95
96
  *[\\/]* ) as_myself=$0 ;;
96
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
173
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
177
 
 
178
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
179
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
180
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
182
    PATH=/empty FPATH=/empty; export PATH FPATH
 
183
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
184
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
176
185
test \$(( 1 + 1 )) = 2 || exit 1"
177
186
  if (eval "$as_required") 2>/dev/null; then :
178
187
  as_have_required=yes
216
225
  # We cannot yet assume a decent shell, so we have to provide a
217
226
        # neutralization value for shells without unset; and this also
218
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
219
229
        BASH_ENV=/dev/null
220
230
        ENV=/dev/null
221
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
232
        export CONFIG_SHELL
223
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
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+"$@"}
224
240
fi
225
241
 
226
242
    if test x$as_have_required = xno; then :
230
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232
248
  else
233
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and edam@waxworlds.org
234
 
$0: about your system, including any error possibly output
235
 
$0: before this message. Then install a modern shell, or
236
 
$0: manually run the script under such a shell if you do
237
 
$0: have one."
 
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and tim@ed.am about
 
250
$0: your system, including any error possibly output before
 
251
$0: this message. Then install a modern shell, or manually
 
252
$0: run the script under such a shell if you do have one."
238
253
  fi
239
254
  exit 1
240
255
fi
319
334
      test -d "$as_dir" && break
320
335
    done
321
336
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
337
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
338
 
324
339
 
325
340
} # as_fn_mkdir_p
359
374
fi # as_fn_arith
360
375
 
361
376
 
362
 
# as_fn_error ERROR [LINENO LOG_FD]
363
 
# ---------------------------------
 
377
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
378
# ----------------------------------------
364
379
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
380
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
 
# script with status $?, using 1 if that was 0.
 
381
# script with STATUS, using 1 if that was 0.
367
382
as_fn_error ()
368
383
{
369
 
  as_status=$?; test $as_status -eq 0 && as_status=1
370
 
  if test "$3"; then
371
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
384
  as_status=$1; test $as_status -eq 0 && as_status=1
 
385
  if test "$4"; then
 
386
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
387
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373
388
  fi
374
 
  $as_echo "$as_me: error: $1" >&2
 
389
  $as_echo "$as_me: error: $2" >&2
375
390
  as_fn_exit $as_status
376
391
} # as_fn_error
377
392
 
528
543
# Sed expression to map a string onto a valid variable name.
529
544
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
545
 
531
 
 
532
 
 
533
 
# Check that we are running under the correct shell.
534
546
SHELL=${CONFIG_SHELL-/bin/sh}
535
547
 
536
 
case X$lt_ECHO in
537
 
X*--fallback-echo)
538
 
  # Remove one level of quotation (which was required for Make).
539
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540
 
  ;;
541
 
esac
542
 
 
543
 
ECHO=${lt_ECHO-echo}
544
 
if test "X$1" = X--no-reexec; then
545
 
  # Discard the --no-reexec flag, and continue.
546
 
  shift
547
 
elif test "X$1" = X--fallback-echo; then
548
 
  # Avoid inline document here, it may be left over
549
 
  :
550
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
 
  # Yippee, $ECHO works!
552
 
  :
553
 
else
554
 
  # Restart under the correct shell.
555
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
556
 
fi
557
 
 
558
 
if test "X$1" = X--fallback-echo; then
559
 
  # used as fallback echo
560
 
  shift
561
 
  cat <<_LT_EOF
562
 
$*
563
 
_LT_EOF
564
 
  exit 0
565
 
fi
566
 
 
567
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
568
 
# if CDPATH is set.
569
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
 
 
571
 
if test -z "$lt_ECHO"; then
572
 
  if test "X${echo_test_string+set}" != Xset; then
573
 
    # find a string as large as possible, as long as the shell can cope with it
574
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578
 
      then
579
 
        break
580
 
      fi
581
 
    done
582
 
  fi
583
 
 
584
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
587
 
    :
588
 
  else
589
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
590
 
    # backslashes.  This makes it impossible to quote backslashes using
591
 
    #   echo "$something" | sed 's/\\/\\\\/g'
592
 
    #
593
 
    # So, first we look for a working echo in the user's PATH.
594
 
 
595
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
 
    for dir in $PATH /usr/ucb; do
597
 
      IFS="$lt_save_ifs"
598
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
602
 
        ECHO="$dir/echo"
603
 
        break
604
 
      fi
605
 
    done
606
 
    IFS="$lt_save_ifs"
607
 
 
608
 
    if test "X$ECHO" = Xecho; then
609
 
      # We didn't find a better echo, so look for alternatives.
610
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
613
 
        # This shell has a builtin print -r that does the trick.
614
 
        ECHO='print -r'
615
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
617
 
        # If we have ksh, try running configure again with it.
618
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
 
        export ORIGINAL_CONFIG_SHELL
620
 
        CONFIG_SHELL=/bin/ksh
621
 
        export CONFIG_SHELL
622
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623
 
      else
624
 
        # Try using printf.
625
 
        ECHO='printf %s\n'
626
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
629
 
          # Cool, printf works
630
 
          :
631
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
 
             test "X$echo_testing_string" = 'X\t' &&
633
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
635
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636
 
          export CONFIG_SHELL
637
 
          SHELL="$CONFIG_SHELL"
638
 
          export SHELL
639
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
 
             test "X$echo_testing_string" = 'X\t' &&
642
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
644
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
645
 
        else
646
 
          # maybe with a smaller string...
647
 
          prev=:
648
 
 
649
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651
 
            then
652
 
              break
653
 
            fi
654
 
            prev="$cmd"
655
 
          done
656
 
 
657
 
          if test "$prev" != 'sed 50q "$0"'; then
658
 
            echo_test_string=`eval $prev`
659
 
            export echo_test_string
660
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661
 
          else
662
 
            # Oops.  We lost completely, so just stick with echo.
663
 
            ECHO=echo
664
 
          fi
665
 
        fi
666
 
      fi
667
 
    fi
668
 
  fi
669
 
fi
670
 
 
671
 
# Copy echo and quote the copy suitably for passing to libtool from
672
 
# the Makefile, instead of quoting the original, which is used later.
673
 
lt_ECHO=$ECHO
674
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676
 
fi
677
 
 
678
 
 
679
 
 
680
548
 
681
549
test -n "$DJDIR" || exec 7<&0 </dev/null
682
550
exec 6>&1
683
551
 
684
552
# Name of the host.
685
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
553
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686
554
# so uname gets run too.
687
555
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
556
 
703
571
PACKAGE_TARNAME='sqlite3cc'
704
572
PACKAGE_VERSION='0.1.0'
705
573
PACKAGE_STRING='sqlite3cc 0.1.0'
706
 
PACKAGE_BUGREPORT='edam@waxworlds.org'
707
 
PACKAGE_URL='http://www.waxworlds.org/edam/software/sqlite3cc'
 
574
PACKAGE_BUGREPORT='tim@ed.am'
 
575
PACKAGE_URL='http://ed.am/dev/sqlite3cc'
708
576
 
709
577
ac_unique_file="src/command.cc"
710
578
# Factoring default headers for most tests.
748
616
LTLIBOBJS
749
617
LIBOBJS
750
618
CXXCPP
751
 
am__fastdepCXX_FALSE
752
 
am__fastdepCXX_TRUE
753
 
CXXDEPMODE
754
 
ac_ct_CXX
755
 
CXXFLAGS
756
 
CXX
757
619
CPP
758
620
OTOOL64
759
621
OTOOL
760
622
LIPO
761
623
NMEDIT
762
624
DSYMUTIL
763
 
lt_ECHO
 
625
MANIFEST_TOOL
764
626
RANLIB
 
627
ac_ct_AR
765
628
AR
 
629
DLLTOOL
766
630
OBJDUMP
767
631
LN_S
768
632
NM
776
640
am__fastdepCC_FALSE
777
641
am__fastdepCC_TRUE
778
642
CCDEPMODE
779
 
AMDEPBACKSLASH
780
 
AMDEP_FALSE
781
 
AMDEP_TRUE
782
 
am__quote
783
 
am__include
784
 
DEPDIR
785
 
OBJEXT
786
 
EXEEXT
787
643
ac_ct_CC
788
 
CPPFLAGS
789
 
LDFLAGS
790
644
CFLAGS
791
645
CC
792
646
host_os
798
652
build_cpu
799
653
build
800
654
LIBTOOL
 
655
am__fastdepCXX_FALSE
 
656
am__fastdepCXX_TRUE
 
657
CXXDEPMODE
 
658
AMDEPBACKSLASH
 
659
AMDEP_FALSE
 
660
AMDEP_TRUE
 
661
am__quote
 
662
am__include
 
663
DEPDIR
 
664
OBJEXT
 
665
EXEEXT
 
666
ac_ct_CXX
 
667
CPPFLAGS
 
668
LDFLAGS
 
669
CXXFLAGS
 
670
CXX
801
671
am__untar
802
672
am__tar
803
673
AMTAR
863
733
ac_subst_files=''
864
734
ac_user_opts='
865
735
enable_option_checking
 
736
enable_dependency_tracking
866
737
enable_shared
867
738
enable_static
868
739
with_pic
869
740
enable_fast_install
870
 
enable_dependency_tracking
871
741
with_gnu_ld
 
742
with_sysroot
872
743
enable_libtool_lock
873
744
'
874
745
      ac_precious_vars='build_alias
875
746
host_alias
876
747
target_alias
877
 
CC
878
 
CFLAGS
 
748
CXX
 
749
CXXFLAGS
879
750
LDFLAGS
880
751
LIBS
881
752
CPPFLAGS
882
 
CPP
883
 
CXX
884
 
CXXFLAGS
885
753
CCC
 
754
CC
 
755
CFLAGS
 
756
CPP
886
757
CXXCPP'
887
758
 
888
759
 
946
817
  fi
947
818
 
948
819
  case $ac_option in
949
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950
 
  *)    ac_optarg=yes ;;
 
820
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
821
  *=)   ac_optarg= ;;
 
822
  *)    ac_optarg=yes ;;
951
823
  esac
952
824
 
953
825
  # Accept the important Cygnus configure options, so we can diagnose typos.
992
864
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993
865
    # Reject names that are not valid shell variable names.
994
866
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995
 
      as_fn_error "invalid feature name: $ac_useropt"
 
867
      as_fn_error $? "invalid feature name: $ac_useropt"
996
868
    ac_useropt_orig=$ac_useropt
997
869
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998
870
    case $ac_user_opts in
1018
890
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019
891
    # Reject names that are not valid shell variable names.
1020
892
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021
 
      as_fn_error "invalid feature name: $ac_useropt"
 
893
      as_fn_error $? "invalid feature name: $ac_useropt"
1022
894
    ac_useropt_orig=$ac_useropt
1023
895
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024
896
    case $ac_user_opts in
1222
1094
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223
1095
    # Reject names that are not valid shell variable names.
1224
1096
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225
 
      as_fn_error "invalid package name: $ac_useropt"
 
1097
      as_fn_error $? "invalid package name: $ac_useropt"
1226
1098
    ac_useropt_orig=$ac_useropt
1227
1099
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228
1100
    case $ac_user_opts in
1238
1110
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239
1111
    # Reject names that are not valid shell variable names.
1240
1112
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241
 
      as_fn_error "invalid package name: $ac_useropt"
 
1113
      as_fn_error $? "invalid package name: $ac_useropt"
1242
1114
    ac_useropt_orig=$ac_useropt
1243
1115
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244
1116
    case $ac_user_opts in
1268
1140
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269
1141
    x_libraries=$ac_optarg ;;
1270
1142
 
1271
 
  -*) as_fn_error "unrecognized option: \`$ac_option'
1272
 
Try \`$0 --help' for more information."
 
1143
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1144
Try \`$0 --help' for more information"
1273
1145
    ;;
1274
1146
 
1275
1147
  *=*)
1277
1149
    # Reject names that are not valid shell variable names.
1278
1150
    case $ac_envvar in #(
1279
1151
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1280
 
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1152
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281
1153
    esac
1282
1154
    eval $ac_envvar=\$ac_optarg
1283
1155
    export $ac_envvar ;;
1287
1159
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288
1160
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289
1161
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1162
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291
1163
    ;;
1292
1164
 
1293
1165
  esac
1295
1167
 
1296
1168
if test -n "$ac_prev"; then
1297
1169
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298
 
  as_fn_error "missing argument to $ac_option"
 
1170
  as_fn_error $? "missing argument to $ac_option"
1299
1171
fi
1300
1172
 
1301
1173
if test -n "$ac_unrecognized_opts"; then
1302
1174
  case $enable_option_checking in
1303
1175
    no) ;;
1304
 
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1176
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305
1177
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306
1178
  esac
1307
1179
fi
1324
1196
    [\\/$]* | ?:[\\/]* )  continue;;
1325
1197
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326
1198
  esac
1327
 
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1199
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328
1200
done
1329
1201
 
1330
1202
# There might be people who depend on the old broken behavior: `$host'
1338
1210
if test "x$host_alias" != x; then
1339
1211
  if test "x$build_alias" = x; then
1340
1212
    cross_compiling=maybe
1341
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1213
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1214
    If a cross compiler is detected then cross compile mode will be used" >&2
1343
1215
  elif test "x$build_alias" != "x$host_alias"; then
1344
1216
    cross_compiling=yes
1345
1217
  fi
1354
1226
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355
1227
ac_ls_di=`ls -di .` &&
1356
1228
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357
 
  as_fn_error "working directory cannot be determined"
 
1229
  as_fn_error $? "working directory cannot be determined"
1358
1230
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359
 
  as_fn_error "pwd does not report name of working directory"
 
1231
  as_fn_error $? "pwd does not report name of working directory"
1360
1232
 
1361
1233
 
1362
1234
# Find the source files, if location was not specified.
1395
1267
fi
1396
1268
if test ! -r "$srcdir/$ac_unique_file"; then
1397
1269
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398
 
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1270
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399
1271
fi
1400
1272
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401
1273
ac_abs_confdir=`(
1402
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1274
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403
1275
        pwd)`
1404
1276
# When building in place, set srcdir=.
1405
1277
if test "$ac_abs_confdir" = "$ac_pwd"; then
1439
1311
      --help=short        display options specific to this package
1440
1312
      --help=recursive    display the short help of all the included packages
1441
1313
  -V, --version           display version information and exit
1442
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1314
  -q, --quiet, --silent   do not print \`checking ...' messages
1443
1315
      --cache-file=FILE   cache test results in FILE [disabled]
1444
1316
  -C, --config-cache      alias for \`--cache-file=config.cache'
1445
1317
  -n, --no-create         do not create output files
1503
1375
  --disable-option-checking  ignore unrecognized --enable/--with options
1504
1376
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505
1377
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1378
  --disable-dependency-tracking  speeds up one-time build
 
1379
  --enable-dependency-tracking   do not reject slow dependency extractors
1506
1380
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1507
1381
  --enable-static[=PKGS]  build static libraries [default=yes]
1508
1382
  --enable-fast-install[=PKGS]
1509
1383
                          optimize for fast installation [default=yes]
1510
 
  --disable-dependency-tracking  speeds up one-time build
1511
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1512
1384
  --disable-libtool-lock  avoid locking (might break parallel builds)
1513
1385
 
1514
1386
Optional Packages:
1515
1387
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516
1388
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1389
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1518
1390
                          both]
1519
1391
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1392
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1393
                        (or the compiler's sysroot if not specified).
1520
1394
 
1521
1395
Some influential environment variables:
1522
 
  CC          C compiler command
1523
 
  CFLAGS      C compiler flags
 
1396
  CXX         C++ compiler command
 
1397
  CXXFLAGS    C++ compiler flags
1524
1398
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525
1399
              nonstandard directory <lib dir>
1526
1400
  LIBS        libraries to pass to the linker, e.g. -l<library>
1527
1401
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528
1402
              you have headers in a nonstandard directory <include dir>
 
1403
  CC          C compiler command
 
1404
  CFLAGS      C compiler flags
1529
1405
  CPP         C preprocessor
1530
 
  CXX         C++ compiler command
1531
 
  CXXFLAGS    C++ compiler flags
1532
1406
  CXXCPP      C++ preprocessor
1533
1407
 
1534
1408
Use these variables to override the choices made by `configure' or to help
1535
1409
it to find libraries and programs with nonstandard names/locations.
1536
1410
 
1537
 
Report bugs to <edam@waxworlds.org>.
1538
 
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>.
 
1411
Report bugs to <tim@ed.am>.
 
1412
sqlite3cc home page: <http://ed.am/dev/sqlite3cc>.
1539
1413
_ACEOF
1540
1414
ac_status=$?
1541
1415
fi
1599
1473
if $ac_init_version; then
1600
1474
  cat <<\_ACEOF
1601
1475
sqlite3cc configure 0.1.0
1602
 
generated by GNU Autoconf 2.65
 
1476
generated by GNU Autoconf 2.68
1603
1477
 
1604
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
1478
Copyright (C) 2010 Free Software Foundation, Inc.
1605
1479
This configure script is free software; the Free Software Foundation
1606
1480
gives unlimited permission to copy, distribute and modify it.
1607
1481
_ACEOF
1612
1486
## Autoconf initialization. ##
1613
1487
## ------------------------ ##
1614
1488
 
 
1489
# ac_fn_cxx_try_compile LINENO
 
1490
# ----------------------------
 
1491
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1492
ac_fn_cxx_try_compile ()
 
1493
{
 
1494
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1495
  rm -f conftest.$ac_objext
 
1496
  if { { ac_try="$ac_compile"
 
1497
case "(($ac_try" in
 
1498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1499
  *) ac_try_echo=$ac_try;;
 
1500
esac
 
1501
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1502
$as_echo "$ac_try_echo"; } >&5
 
1503
  (eval "$ac_compile") 2>conftest.err
 
1504
  ac_status=$?
 
1505
  if test -s conftest.err; then
 
1506
    grep -v '^ *+' conftest.err >conftest.er1
 
1507
    cat conftest.er1 >&5
 
1508
    mv -f conftest.er1 conftest.err
 
1509
  fi
 
1510
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1511
  test $ac_status = 0; } && {
 
1512
         test -z "$ac_cxx_werror_flag" ||
 
1513
         test ! -s conftest.err
 
1514
       } && test -s conftest.$ac_objext; then :
 
1515
  ac_retval=0
 
1516
else
 
1517
  $as_echo "$as_me: failed program was:" >&5
 
1518
sed 's/^/| /' conftest.$ac_ext >&5
 
1519
 
 
1520
        ac_retval=1
 
1521
fi
 
1522
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1523
  as_fn_set_status $ac_retval
 
1524
 
 
1525
} # ac_fn_cxx_try_compile
 
1526
 
1615
1527
# ac_fn_c_try_compile LINENO
1616
1528
# --------------------------
1617
1529
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1645
1557
 
1646
1558
        ac_retval=1
1647
1559
fi
1648
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1560
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1561
  as_fn_set_status $ac_retval
1650
1562
 
1651
1563
} # ac_fn_c_try_compile
1691
1603
  # interfere with the next link command; also delete a directory that is
1692
1604
  # left behind by Apple's compiler.  We do this before executing the actions.
1693
1605
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1606
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1607
  as_fn_set_status $ac_retval
1696
1608
 
1697
1609
} # ac_fn_c_try_link
1705
1617
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706
1618
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707
1619
$as_echo_n "checking for $2... " >&6; }
1708
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1620
if eval \${$3+:} false; then :
1709
1621
  $as_echo_n "(cached) " >&6
1710
1622
else
1711
1623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723
1635
eval ac_res=\$$3
1724
1636
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725
1637
$as_echo "$ac_res" >&6; }
1726
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1638
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1639
 
1728
1640
} # ac_fn_c_check_header_compile
1729
1641
 
1748
1660
    mv -f conftest.er1 conftest.err
1749
1661
  fi
1750
1662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751
 
  test $ac_status = 0; } >/dev/null && {
 
1663
  test $ac_status = 0; } > conftest.i && {
1752
1664
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753
1665
         test ! -s conftest.err
1754
1666
       }; then :
1759
1671
 
1760
1672
    ac_retval=1
1761
1673
fi
1762
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1674
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1675
  as_fn_set_status $ac_retval
1764
1676
 
1765
1677
} # ac_fn_c_try_cpp
1801
1713
       ac_retval=$ac_status
1802
1714
fi
1803
1715
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1716
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1717
  as_fn_set_status $ac_retval
1806
1718
 
1807
1719
} # ac_fn_c_try_run
1814
1726
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815
1727
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816
1728
$as_echo_n "checking for $2... " >&6; }
1817
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1729
if eval \${$3+:} false; then :
1818
1730
  $as_echo_n "(cached) " >&6
1819
1731
else
1820
1732
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869
1781
eval ac_res=\$$3
1870
1782
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871
1783
$as_echo "$ac_res" >&6; }
1872
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1784
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1785
 
1874
1786
} # ac_fn_c_check_func
1875
1787
 
1876
 
# ac_fn_cxx_try_compile LINENO
1877
 
# ----------------------------
1878
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1879
 
ac_fn_cxx_try_compile ()
1880
 
{
1881
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882
 
  rm -f conftest.$ac_objext
1883
 
  if { { ac_try="$ac_compile"
1884
 
case "(($ac_try" in
1885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886
 
  *) ac_try_echo=$ac_try;;
1887
 
esac
1888
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889
 
$as_echo "$ac_try_echo"; } >&5
1890
 
  (eval "$ac_compile") 2>conftest.err
1891
 
  ac_status=$?
1892
 
  if test -s conftest.err; then
1893
 
    grep -v '^ *+' conftest.err >conftest.er1
1894
 
    cat conftest.er1 >&5
1895
 
    mv -f conftest.er1 conftest.err
1896
 
  fi
1897
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898
 
  test $ac_status = 0; } && {
1899
 
         test -z "$ac_cxx_werror_flag" ||
1900
 
         test ! -s conftest.err
1901
 
       } && test -s conftest.$ac_objext; then :
1902
 
  ac_retval=0
1903
 
else
1904
 
  $as_echo "$as_me: failed program was:" >&5
1905
 
sed 's/^/| /' conftest.$ac_ext >&5
1906
 
 
1907
 
        ac_retval=1
1908
 
fi
1909
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910
 
  as_fn_set_status $ac_retval
1911
 
 
1912
 
} # ac_fn_cxx_try_compile
1913
 
 
1914
1788
# ac_fn_cxx_try_cpp LINENO
1915
1789
# ------------------------
1916
1790
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932
1806
    mv -f conftest.er1 conftest.err
1933
1807
  fi
1934
1808
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935
 
  test $ac_status = 0; } >/dev/null && {
 
1809
  test $ac_status = 0; } > conftest.i && {
1936
1810
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1937
1811
         test ! -s conftest.err
1938
1812
       }; then :
1943
1817
 
1944
1818
    ac_retval=1
1945
1819
fi
1946
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1820
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1821
  as_fn_set_status $ac_retval
1948
1822
 
1949
1823
} # ac_fn_cxx_try_cpp
1989
1863
  # interfere with the next link command; also delete a directory that is
1990
1864
  # left behind by Apple's compiler.  We do this before executing the actions.
1991
1865
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1866
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1867
  as_fn_set_status $ac_retval
1994
1868
 
1995
1869
} # ac_fn_cxx_try_link
2002
1876
ac_fn_c_check_header_mongrel ()
2003
1877
{
2004
1878
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005
 
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1879
  if eval \${$3+:} false; then :
2006
1880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007
1881
$as_echo_n "checking for $2... " >&6; }
2008
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1882
if eval \${$3+:} false; then :
2009
1883
  $as_echo_n "(cached) " >&6
2010
1884
fi
2011
1885
eval ac_res=\$$3
2041
1915
else
2042
1916
  ac_header_preproc=no
2043
1917
fi
2044
 
rm -f conftest.err conftest.$ac_ext
 
1918
rm -f conftest.err conftest.i conftest.$ac_ext
2045
1919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046
1920
$as_echo "$ac_header_preproc" >&6; }
2047
1921
 
2064
1938
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2065
1939
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066
1940
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067
 
( cat <<\_ASBOX
2068
 
## --------------------------------- ##
2069
 
## Report this to edam@waxworlds.org ##
2070
 
## --------------------------------- ##
2071
 
_ASBOX
 
1941
( $as_echo "## ------------------------ ##
 
1942
## Report this to tim@ed.am ##
 
1943
## ------------------------ ##"
2072
1944
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2073
1945
    ;;
2074
1946
esac
2075
1947
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076
1948
$as_echo_n "checking for $2... " >&6; }
2077
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1949
if eval \${$3+:} false; then :
2078
1950
  $as_echo_n "(cached) " >&6
2079
1951
else
2080
1952
  eval "$3=\$ac_header_compiler"
2083
1955
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084
1956
$as_echo "$ac_res" >&6; }
2085
1957
fi
2086
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1958
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087
1959
 
2088
1960
} # ac_fn_c_check_header_mongrel
2089
1961
cat >config.log <<_ACEOF
2091
1963
running configure, to aid debugging if configure makes a mistake.
2092
1964
 
2093
1965
It was created by sqlite3cc $as_me 0.1.0, which was
2094
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
1966
generated by GNU Autoconf 2.68.  Invocation command line was
2095
1967
 
2096
1968
  $ $0 $@
2097
1969
 
2201
2073
  {
2202
2074
    echo
2203
2075
 
2204
 
    cat <<\_ASBOX
2205
 
## ---------------- ##
 
2076
    $as_echo "## ---------------- ##
2206
2077
## Cache variables. ##
2207
 
## ---------------- ##
2208
 
_ASBOX
 
2078
## ---------------- ##"
2209
2079
    echo
2210
2080
    # The following way of writing the cache mishandles newlines in values,
2211
2081
(
2239
2109
)
2240
2110
    echo
2241
2111
 
2242
 
    cat <<\_ASBOX
2243
 
## ----------------- ##
 
2112
    $as_echo "## ----------------- ##
2244
2113
## Output variables. ##
2245
 
## ----------------- ##
2246
 
_ASBOX
 
2114
## ----------------- ##"
2247
2115
    echo
2248
2116
    for ac_var in $ac_subst_vars
2249
2117
    do
2256
2124
    echo
2257
2125
 
2258
2126
    if test -n "$ac_subst_files"; then
2259
 
      cat <<\_ASBOX
2260
 
## ------------------- ##
 
2127
      $as_echo "## ------------------- ##
2261
2128
## File substitutions. ##
2262
 
## ------------------- ##
2263
 
_ASBOX
 
2129
## ------------------- ##"
2264
2130
      echo
2265
2131
      for ac_var in $ac_subst_files
2266
2132
      do
2274
2140
    fi
2275
2141
 
2276
2142
    if test -s confdefs.h; then
2277
 
      cat <<\_ASBOX
2278
 
## ----------- ##
 
2143
      $as_echo "## ----------- ##
2279
2144
## confdefs.h. ##
2280
 
## ----------- ##
2281
 
_ASBOX
 
2145
## ----------- ##"
2282
2146
      echo
2283
2147
      cat confdefs.h
2284
2148
      echo
2333
2197
ac_site_file1=NONE
2334
2198
ac_site_file2=NONE
2335
2199
if test -n "$CONFIG_SITE"; then
2336
 
  ac_site_file1=$CONFIG_SITE
 
2200
  # We do not want a PATH search for config.site.
 
2201
  case $CONFIG_SITE in #((
 
2202
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2203
    */*) ac_site_file1=$CONFIG_SITE;;
 
2204
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2205
  esac
2337
2206
elif test "x$prefix" != xNONE; then
2338
2207
  ac_site_file1=$prefix/share/config.site
2339
2208
  ac_site_file2=$prefix/etc/config.site
2348
2217
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349
2218
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350
2219
    sed 's/^/| /' "$ac_site_file" >&5
2351
 
    . "$ac_site_file"
 
2220
    . "$ac_site_file" \
 
2221
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2222
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2223
as_fn_error $? "failed to load site script $ac_site_file
 
2224
See \`config.log' for more details" "$LINENO" 5; }
2352
2225
  fi
2353
2226
done
2354
2227
 
2424
2297
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425
2298
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2426
2299
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2427
 
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2300
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2428
2301
fi
2429
2302
## -------------------- ##
2430
2303
## Main body of script. ##
2441
2314
 
2442
2315
ac_aux_dir=
2443
2316
for ac_dir in build-aux "$srcdir"/build-aux; do
2444
 
  for ac_t in install-sh install.sh shtool; do
2445
 
    if test -f "$ac_dir/$ac_t"; then
2446
 
      ac_aux_dir=$ac_dir
2447
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2448
 
      break 2
2449
 
    fi
2450
 
  done
 
2317
  if test -f "$ac_dir/install-sh"; then
 
2318
    ac_aux_dir=$ac_dir
 
2319
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2320
    break
 
2321
  elif test -f "$ac_dir/install.sh"; then
 
2322
    ac_aux_dir=$ac_dir
 
2323
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2324
    break
 
2325
  elif test -f "$ac_dir/shtool"; then
 
2326
    ac_aux_dir=$ac_dir
 
2327
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2328
    break
 
2329
  fi
2451
2330
done
2452
2331
if test -z "$ac_aux_dir"; then
2453
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
2332
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2454
2333
fi
2455
2334
 
2456
2335
# These three variables are undocumented and unsupported,
2482
2361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2483
2362
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2484
2363
if test -z "$INSTALL"; then
2485
 
if test "${ac_cv_path_install+set}" = set; then :
 
2364
if ${ac_cv_path_install+:} false; then :
2486
2365
  $as_echo_n "(cached) " >&6
2487
2366
else
2488
2367
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
2448
'
2570
2449
case `pwd` in
2571
2450
  *[\\\"\#\$\&\'\`$am_lf]*)
2572
 
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2451
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2573
2452
esac
2574
2453
case $srcdir in
2575
2454
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2576
 
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2455
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2577
2456
esac
2578
2457
 
2579
2458
# Do `set' in a subshell so we don't clobber the current shell's
2595
2474
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2596
2475
      # broken ls alias from the environment.  This has actually
2597
2476
      # happened.  Such a system could not be considered "sane".
2598
 
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2477
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2599
2478
alias in your environment" "$LINENO" 5
2600
2479
   fi
2601
2480
 
2605
2484
   # Ok.
2606
2485
   :
2607
2486
else
2608
 
   as_fn_error "newly created file is older than distributed files!
 
2487
   as_fn_error $? "newly created file is older than distributed files!
2609
2488
Check your system clock" "$LINENO" 5
2610
2489
fi
2611
2490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659
2538
set dummy ${ac_tool_prefix}strip; ac_word=$2
2660
2539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661
2540
$as_echo_n "checking for $ac_word... " >&6; }
2662
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2541
if ${ac_cv_prog_STRIP+:} false; then :
2663
2542
  $as_echo_n "(cached) " >&6
2664
2543
else
2665
2544
  if test -n "$STRIP"; then
2699
2578
set dummy strip; ac_word=$2
2700
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701
2580
$as_echo_n "checking for $ac_word... " >&6; }
2702
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2581
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2703
2582
  $as_echo_n "(cached) " >&6
2704
2583
else
2705
2584
  if test -n "$ac_ct_STRIP"; then
2752
2631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2753
2632
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2754
2633
if test -z "$MKDIR_P"; then
2755
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2634
  if ${ac_cv_path_mkdir+:} false; then :
2756
2635
  $as_echo_n "(cached) " >&6
2757
2636
else
2758
2637
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803
2682
set dummy $ac_prog; ac_word=$2
2804
2683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805
2684
$as_echo_n "checking for $ac_word... " >&6; }
2806
 
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2685
if ${ac_cv_prog_AWK+:} false; then :
2807
2686
  $as_echo_n "(cached) " >&6
2808
2687
else
2809
2688
  if test -n "$AWK"; then
2843
2722
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2844
2723
set x ${MAKE-make}
2845
2724
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2846
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2725
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2847
2726
  $as_echo_n "(cached) " >&6
2848
2727
else
2849
2728
  cat >conftest.make <<\_ACEOF
2851
2730
all:
2852
2731
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2853
2732
_ACEOF
2854
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2733
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2855
2734
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2856
2735
  *@@@%%%=?*=@@@%%%*)
2857
2736
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2885
2764
  am__isrc=' -I$(srcdir)'
2886
2765
  # test to see if srcdir already configured
2887
2766
  if test -f $srcdir/config.status; then
2888
 
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2767
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2889
2768
  fi
2890
2769
fi
2891
2770
 
2944
2823
 
2945
2824
ac_config_headers="$ac_config_headers config.h"
2946
2825
 
2947
 
case `pwd` in
2948
 
  *\ * | *\     *)
2949
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2950
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2951
 
esac
2952
 
 
2953
 
 
2954
 
 
2955
 
macro_version='2.2.6b'
2956
 
macro_revision='1.3017'
2957
 
 
2958
 
 
2959
 
 
2960
 
 
2961
 
 
2962
 
 
2963
 
 
2964
 
 
2965
 
 
2966
 
 
2967
 
 
2968
 
 
2969
 
 
2970
 
ltmain="$ac_aux_dir/ltmain.sh"
2971
 
 
2972
 
# Make sure we can run config.sub.
2973
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2974
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2975
 
 
2976
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2977
 
$as_echo_n "checking build system type... " >&6; }
2978
 
if test "${ac_cv_build+set}" = set; then :
2979
 
  $as_echo_n "(cached) " >&6
2980
 
else
2981
 
  ac_build_alias=$build_alias
2982
 
test "x$ac_build_alias" = x &&
2983
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2984
 
test "x$ac_build_alias" = x &&
2985
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2986
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2987
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2988
 
 
2989
 
fi
2990
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2991
 
$as_echo "$ac_cv_build" >&6; }
2992
 
case $ac_cv_build in
2993
 
*-*-*) ;;
2994
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2995
 
esac
2996
 
build=$ac_cv_build
2997
 
ac_save_IFS=$IFS; IFS='-'
2998
 
set x $ac_cv_build
2999
 
shift
3000
 
build_cpu=$1
3001
 
build_vendor=$2
3002
 
shift; shift
3003
 
# Remember, the first character of IFS is used to create $*,
3004
 
# except with old shells:
3005
 
build_os=$*
3006
 
IFS=$ac_save_IFS
3007
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3008
 
 
3009
 
 
3010
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3011
 
$as_echo_n "checking host system type... " >&6; }
3012
 
if test "${ac_cv_host+set}" = set; then :
3013
 
  $as_echo_n "(cached) " >&6
3014
 
else
3015
 
  if test "x$host_alias" = x; then
3016
 
  ac_cv_host=$ac_cv_build
3017
 
else
3018
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3019
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3020
 
fi
3021
 
 
3022
 
fi
3023
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3024
 
$as_echo "$ac_cv_host" >&6; }
3025
 
case $ac_cv_host in
3026
 
*-*-*) ;;
3027
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3028
 
esac
3029
 
host=$ac_cv_host
3030
 
ac_save_IFS=$IFS; IFS='-'
3031
 
set x $ac_cv_host
3032
 
shift
3033
 
host_cpu=$1
3034
 
host_vendor=$2
3035
 
shift; shift
3036
 
# Remember, the first character of IFS is used to create $*,
3037
 
# except with old shells:
3038
 
host_os=$*
3039
 
IFS=$ac_save_IFS
3040
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3041
 
 
3042
 
 
3043
 
DEPDIR="${am__leading_dot}deps"
3044
 
 
3045
 
ac_config_commands="$ac_config_commands depfiles"
3046
 
 
3047
 
 
3048
 
am_make=${MAKE-make}
3049
 
cat > confinc << 'END'
3050
 
am__doit:
3051
 
        @echo this is the am__doit target
3052
 
.PHONY: am__doit
3053
 
END
3054
 
# If we don't find an include directive, just comment out the code.
3055
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3056
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3057
 
am__include="#"
3058
 
am__quote=
3059
 
_am_result=none
3060
 
# First try GNU make style include.
3061
 
echo "include confinc" > confmf
3062
 
# Ignore all kinds of additional output from `make'.
3063
 
case `$am_make -s -f confmf 2> /dev/null` in #(
3064
 
*the\ am__doit\ target*)
3065
 
  am__include=include
3066
 
  am__quote=
3067
 
  _am_result=GNU
3068
 
  ;;
3069
 
esac
3070
 
# Now try BSD make style include.
3071
 
if test "$am__include" = "#"; then
3072
 
   echo '.include "confinc"' > confmf
3073
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
3074
 
   *the\ am__doit\ target*)
3075
 
     am__include=.include
3076
 
     am__quote="\""
3077
 
     _am_result=BSD
3078
 
     ;;
3079
 
   esac
3080
 
fi
3081
 
 
3082
 
 
3083
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3084
 
$as_echo "$_am_result" >&6; }
3085
 
rm -f confinc confmf
3086
 
 
3087
 
# Check whether --enable-dependency-tracking was given.
3088
 
if test "${enable_dependency_tracking+set}" = set; then :
3089
 
  enableval=$enable_dependency_tracking;
3090
 
fi
3091
 
 
3092
 
if test "x$enable_dependency_tracking" != xno; then
3093
 
  am_depcomp="$ac_aux_dir/depcomp"
3094
 
  AMDEPBACKSLASH='\'
3095
 
fi
3096
 
 if test "x$enable_dependency_tracking" != xno; then
3097
 
  AMDEP_TRUE=
3098
 
  AMDEP_FALSE='#'
3099
 
else
3100
 
  AMDEP_TRUE='#'
3101
 
  AMDEP_FALSE=
3102
 
fi
3103
 
 
3104
 
 
3105
 
ac_ext=c
3106
 
ac_cpp='$CPP $CPPFLAGS'
3107
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
 
if test -n "$ac_tool_prefix"; then
3111
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3112
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3113
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114
 
$as_echo_n "checking for $ac_word... " >&6; }
3115
 
if test "${ac_cv_prog_CC+set}" = set; then :
3116
 
  $as_echo_n "(cached) " >&6
3117
 
else
3118
 
  if test -n "$CC"; then
3119
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3120
 
else
3121
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122
 
for as_dir in $PATH
3123
 
do
3124
 
  IFS=$as_save_IFS
3125
 
  test -z "$as_dir" && as_dir=.
3126
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3127
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3129
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130
 
    break 2
3131
 
  fi
3132
 
done
3133
 
  done
3134
 
IFS=$as_save_IFS
3135
 
 
3136
 
fi
3137
 
fi
3138
 
CC=$ac_cv_prog_CC
3139
 
if test -n "$CC"; then
3140
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141
 
$as_echo "$CC" >&6; }
3142
 
else
3143
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144
 
$as_echo "no" >&6; }
3145
 
fi
3146
 
 
3147
 
 
3148
 
fi
3149
 
if test -z "$ac_cv_prog_CC"; then
3150
 
  ac_ct_CC=$CC
3151
 
  # Extract the first word of "gcc", so it can be a program name with args.
3152
 
set dummy gcc; ac_word=$2
3153
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154
 
$as_echo_n "checking for $ac_word... " >&6; }
3155
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3156
 
  $as_echo_n "(cached) " >&6
3157
 
else
3158
 
  if test -n "$ac_ct_CC"; then
3159
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3160
 
else
3161
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162
 
for as_dir in $PATH
3163
 
do
3164
 
  IFS=$as_save_IFS
3165
 
  test -z "$as_dir" && as_dir=.
3166
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3167
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168
 
    ac_cv_prog_ac_ct_CC="gcc"
3169
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170
 
    break 2
3171
 
  fi
3172
 
done
3173
 
  done
3174
 
IFS=$as_save_IFS
3175
 
 
3176
 
fi
3177
 
fi
3178
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3179
 
if test -n "$ac_ct_CC"; then
3180
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3181
 
$as_echo "$ac_ct_CC" >&6; }
3182
 
else
3183
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184
 
$as_echo "no" >&6; }
3185
 
fi
3186
 
 
3187
 
  if test "x$ac_ct_CC" = x; then
3188
 
    CC=""
 
2826
 
 
2827
# checks for programs.
 
2828
ac_ext=cpp
 
2829
ac_cpp='$CXXCPP $CPPFLAGS'
 
2830
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2831
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2832
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2833
if test -z "$CXX"; then
 
2834
  if test -n "$CCC"; then
 
2835
    CXX=$CCC
3189
2836
  else
3190
 
    case $cross_compiling:$ac_tool_warned in
3191
 
yes:)
3192
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194
 
ac_tool_warned=yes ;;
3195
 
esac
3196
 
    CC=$ac_ct_CC
3197
 
  fi
3198
 
else
3199
 
  CC="$ac_cv_prog_CC"
3200
 
fi
3201
 
 
3202
 
if test -z "$CC"; then
3203
 
          if test -n "$ac_tool_prefix"; then
3204
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3205
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3206
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207
 
$as_echo_n "checking for $ac_word... " >&6; }
3208
 
if test "${ac_cv_prog_CC+set}" = set; then :
3209
 
  $as_echo_n "(cached) " >&6
3210
 
else
3211
 
  if test -n "$CC"; then
3212
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3213
 
else
3214
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215
 
for as_dir in $PATH
3216
 
do
3217
 
  IFS=$as_save_IFS
3218
 
  test -z "$as_dir" && as_dir=.
3219
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3220
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3222
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223
 
    break 2
3224
 
  fi
3225
 
done
3226
 
  done
3227
 
IFS=$as_save_IFS
3228
 
 
3229
 
fi
3230
 
fi
3231
 
CC=$ac_cv_prog_CC
3232
 
if test -n "$CC"; then
3233
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234
 
$as_echo "$CC" >&6; }
3235
 
else
3236
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237
 
$as_echo "no" >&6; }
3238
 
fi
3239
 
 
3240
 
 
3241
 
  fi
3242
 
fi
3243
 
if test -z "$CC"; then
3244
 
  # Extract the first word of "cc", so it can be a program name with args.
3245
 
set dummy cc; ac_word=$2
3246
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247
 
$as_echo_n "checking for $ac_word... " >&6; }
3248
 
if test "${ac_cv_prog_CC+set}" = set; then :
3249
 
  $as_echo_n "(cached) " >&6
3250
 
else
3251
 
  if test -n "$CC"; then
3252
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3253
 
else
3254
 
  ac_prog_rejected=no
3255
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256
 
for as_dir in $PATH
3257
 
do
3258
 
  IFS=$as_save_IFS
3259
 
  test -z "$as_dir" && as_dir=.
3260
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3261
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3263
 
       ac_prog_rejected=yes
3264
 
       continue
3265
 
     fi
3266
 
    ac_cv_prog_CC="cc"
3267
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268
 
    break 2
3269
 
  fi
3270
 
done
3271
 
  done
3272
 
IFS=$as_save_IFS
3273
 
 
3274
 
if test $ac_prog_rejected = yes; then
3275
 
  # We found a bogon in the path, so make sure we never use it.
3276
 
  set dummy $ac_cv_prog_CC
3277
 
  shift
3278
 
  if test $# != 0; then
3279
 
    # We chose a different compiler from the bogus one.
3280
 
    # However, it has the same basename, so the bogon will be chosen
3281
 
    # first if we set CC to just the basename; use the full file name.
3282
 
    shift
3283
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3284
 
  fi
3285
 
fi
3286
 
fi
3287
 
fi
3288
 
CC=$ac_cv_prog_CC
3289
 
if test -n "$CC"; then
3290
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291
 
$as_echo "$CC" >&6; }
3292
 
else
3293
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294
 
$as_echo "no" >&6; }
3295
 
fi
3296
 
 
3297
 
 
3298
 
fi
3299
 
if test -z "$CC"; then
3300
 
  if test -n "$ac_tool_prefix"; then
3301
 
  for ac_prog in cl.exe
 
2837
    if test -n "$ac_tool_prefix"; then
 
2838
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3302
2839
  do
3303
2840
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304
2841
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305
2842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306
2843
$as_echo_n "checking for $ac_word... " >&6; }
3307
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
2844
if ${ac_cv_prog_CXX+:} false; then :
3308
2845
  $as_echo_n "(cached) " >&6
3309
2846
else
3310
 
  if test -n "$CC"; then
3311
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2847
  if test -n "$CXX"; then
 
2848
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3312
2849
else
3313
2850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314
2851
for as_dir in $PATH
3317
2854
  test -z "$as_dir" && as_dir=.
3318
2855
    for ac_exec_ext in '' $ac_executable_extensions; do
3319
2856
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2857
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3321
2858
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322
2859
    break 2
3323
2860
  fi
3327
2864
 
3328
2865
fi
3329
2866
fi
3330
 
CC=$ac_cv_prog_CC
3331
 
if test -n "$CC"; then
3332
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333
 
$as_echo "$CC" >&6; }
 
2867
CXX=$ac_cv_prog_CXX
 
2868
if test -n "$CXX"; then
 
2869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
2870
$as_echo "$CXX" >&6; }
3334
2871
else
3335
2872
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336
2873
$as_echo "no" >&6; }
3337
2874
fi
3338
2875
 
3339
2876
 
3340
 
    test -n "$CC" && break
 
2877
    test -n "$CXX" && break
3341
2878
  done
3342
2879
fi
3343
 
if test -z "$CC"; then
3344
 
  ac_ct_CC=$CC
3345
 
  for ac_prog in cl.exe
 
2880
if test -z "$CXX"; then
 
2881
  ac_ct_CXX=$CXX
 
2882
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3346
2883
do
3347
2884
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3348
2885
set dummy $ac_prog; ac_word=$2
3349
2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350
2887
$as_echo_n "checking for $ac_word... " >&6; }
3351
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2888
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3352
2889
  $as_echo_n "(cached) " >&6
3353
2890
else
3354
 
  if test -n "$ac_ct_CC"; then
3355
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2891
  if test -n "$ac_ct_CXX"; then
 
2892
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3356
2893
else
3357
2894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358
2895
for as_dir in $PATH
3361
2898
  test -z "$as_dir" && as_dir=.
3362
2899
    for ac_exec_ext in '' $ac_executable_extensions; do
3363
2900
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2901
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3365
2902
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366
2903
    break 2
3367
2904
  fi
3371
2908
 
3372
2909
fi
3373
2910
fi
3374
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3375
 
if test -n "$ac_ct_CC"; then
3376
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3377
 
$as_echo "$ac_ct_CC" >&6; }
 
2911
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2912
if test -n "$ac_ct_CXX"; then
 
2913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
2914
$as_echo "$ac_ct_CXX" >&6; }
3378
2915
else
3379
2916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380
2917
$as_echo "no" >&6; }
3381
2918
fi
3382
2919
 
3383
2920
 
3384
 
  test -n "$ac_ct_CC" && break
 
2921
  test -n "$ac_ct_CXX" && break
3385
2922
done
3386
2923
 
3387
 
  if test "x$ac_ct_CC" = x; then
3388
 
    CC=""
 
2924
  if test "x$ac_ct_CXX" = x; then
 
2925
    CXX="g++"
3389
2926
  else
3390
2927
    case $cross_compiling:$ac_tool_warned in
3391
2928
yes:)
3393
2930
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394
2931
ac_tool_warned=yes ;;
3395
2932
esac
3396
 
    CC=$ac_ct_CC
3397
 
  fi
3398
 
fi
3399
 
 
3400
 
fi
3401
 
 
3402
 
 
3403
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405
 
as_fn_error "no acceptable C compiler found in \$PATH
3406
 
See \`config.log' for more details." "$LINENO" 5; }
3407
 
 
 
2933
    CXX=$ac_ct_CXX
 
2934
  fi
 
2935
fi
 
2936
 
 
2937
  fi
 
2938
fi
3408
2939
# Provide some information about the compiler.
3409
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2940
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3410
2941
set X $ac_compile
3411
2942
ac_compiler=$2
3412
2943
for ac_option in --version -v -V -qversion; do
3446
2977
# Try to create an executable without -o first, disregard a.out.
3447
2978
# It will help us diagnose broken compilers, and finding out an intuition
3448
2979
# of exeext.
3449
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3450
 
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 
2981
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3451
2982
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3452
2983
 
3453
2984
# The possible output files:
3517
3048
 
3518
3049
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519
3050
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520
 
{ as_fn_set_status 77
3521
 
as_fn_error "C compiler cannot create executables
3522
 
See \`config.log' for more details." "$LINENO" 5; }; }
 
3051
as_fn_error 77 "C++ compiler cannot create executables
 
3052
See \`config.log' for more details" "$LINENO" 5; }
3523
3053
else
3524
3054
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525
3055
$as_echo "yes" >&6; }
3526
3056
fi
3527
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
 
3058
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3529
3059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530
3060
$as_echo "$ac_file" >&6; }
3531
3061
ac_exeext=$ac_cv_exeext
3561
3091
else
3562
3092
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563
3093
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564
 
as_fn_error "cannot compute suffix of executables: cannot compile and link
3565
 
See \`config.log' for more details." "$LINENO" 5; }
 
3094
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3095
See \`config.log' for more details" "$LINENO" 5; }
3566
3096
fi
3567
3097
rm -f conftest conftest$ac_cv_exeext
3568
3098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3619
3149
    else
3620
3150
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621
3151
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622
 
as_fn_error "cannot run C compiled programs.
 
3152
as_fn_error $? "cannot run C++ compiled programs.
3623
3153
If you meant to cross compile, use \`--host'.
3624
 
See \`config.log' for more details." "$LINENO" 5; }
 
3154
See \`config.log' for more details" "$LINENO" 5; }
3625
3155
    fi
3626
3156
  fi
3627
3157
fi
3632
3162
ac_clean_files=$ac_clean_files_save
3633
3163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634
3164
$as_echo_n "checking for suffix of object files... " >&6; }
3635
 
if test "${ac_cv_objext+set}" = set; then :
 
3165
if ${ac_cv_objext+:} false; then :
3636
3166
  $as_echo_n "(cached) " >&6
3637
3167
else
3638
3168
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672
3202
 
3673
3203
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674
3204
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675
 
as_fn_error "cannot compute suffix of object files: cannot compile
3676
 
See \`config.log' for more details." "$LINENO" 5; }
 
3205
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3206
See \`config.log' for more details" "$LINENO" 5; }
3677
3207
fi
3678
3208
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3679
3209
fi
3681
3211
$as_echo "$ac_cv_objext" >&6; }
3682
3212
OBJEXT=$ac_cv_objext
3683
3213
ac_objext=$OBJEXT
 
3214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3215
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3216
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
3217
  $as_echo_n "(cached) " >&6
 
3218
else
 
3219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3220
/* end confdefs.h.  */
 
3221
 
 
3222
int
 
3223
main ()
 
3224
{
 
3225
#ifndef __GNUC__
 
3226
       choke me
 
3227
#endif
 
3228
 
 
3229
  ;
 
3230
  return 0;
 
3231
}
 
3232
_ACEOF
 
3233
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3234
  ac_compiler_gnu=yes
 
3235
else
 
3236
  ac_compiler_gnu=no
 
3237
fi
 
3238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3239
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3240
 
 
3241
fi
 
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3243
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3244
if test $ac_compiler_gnu = yes; then
 
3245
  GXX=yes
 
3246
else
 
3247
  GXX=
 
3248
fi
 
3249
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3250
ac_save_CXXFLAGS=$CXXFLAGS
 
3251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3252
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3253
if ${ac_cv_prog_cxx_g+:} false; then :
 
3254
  $as_echo_n "(cached) " >&6
 
3255
else
 
3256
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3257
   ac_cxx_werror_flag=yes
 
3258
   ac_cv_prog_cxx_g=no
 
3259
   CXXFLAGS="-g"
 
3260
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3261
/* end confdefs.h.  */
 
3262
 
 
3263
int
 
3264
main ()
 
3265
{
 
3266
 
 
3267
  ;
 
3268
  return 0;
 
3269
}
 
3270
_ACEOF
 
3271
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3272
  ac_cv_prog_cxx_g=yes
 
3273
else
 
3274
  CXXFLAGS=""
 
3275
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3276
/* end confdefs.h.  */
 
3277
 
 
3278
int
 
3279
main ()
 
3280
{
 
3281
 
 
3282
  ;
 
3283
  return 0;
 
3284
}
 
3285
_ACEOF
 
3286
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3287
 
 
3288
else
 
3289
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3290
         CXXFLAGS="-g"
 
3291
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3292
/* end confdefs.h.  */
 
3293
 
 
3294
int
 
3295
main ()
 
3296
{
 
3297
 
 
3298
  ;
 
3299
  return 0;
 
3300
}
 
3301
_ACEOF
 
3302
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3303
  ac_cv_prog_cxx_g=yes
 
3304
fi
 
3305
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3306
fi
 
3307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3308
fi
 
3309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3310
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3311
fi
 
3312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3313
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3314
if test "$ac_test_CXXFLAGS" = set; then
 
3315
  CXXFLAGS=$ac_save_CXXFLAGS
 
3316
elif test $ac_cv_prog_cxx_g = yes; then
 
3317
  if test "$GXX" = yes; then
 
3318
    CXXFLAGS="-g -O2"
 
3319
  else
 
3320
    CXXFLAGS="-g"
 
3321
  fi
 
3322
else
 
3323
  if test "$GXX" = yes; then
 
3324
    CXXFLAGS="-O2"
 
3325
  else
 
3326
    CXXFLAGS=
 
3327
  fi
 
3328
fi
 
3329
ac_ext=c
 
3330
ac_cpp='$CPP $CPPFLAGS'
 
3331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3334
DEPDIR="${am__leading_dot}deps"
 
3335
 
 
3336
ac_config_commands="$ac_config_commands depfiles"
 
3337
 
 
3338
 
 
3339
am_make=${MAKE-make}
 
3340
cat > confinc << 'END'
 
3341
am__doit:
 
3342
        @echo this is the am__doit target
 
3343
.PHONY: am__doit
 
3344
END
 
3345
# If we don't find an include directive, just comment out the code.
 
3346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3347
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3348
am__include="#"
 
3349
am__quote=
 
3350
_am_result=none
 
3351
# First try GNU make style include.
 
3352
echo "include confinc" > confmf
 
3353
# Ignore all kinds of additional output from `make'.
 
3354
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3355
*the\ am__doit\ target*)
 
3356
  am__include=include
 
3357
  am__quote=
 
3358
  _am_result=GNU
 
3359
  ;;
 
3360
esac
 
3361
# Now try BSD make style include.
 
3362
if test "$am__include" = "#"; then
 
3363
   echo '.include "confinc"' > confmf
 
3364
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3365
   *the\ am__doit\ target*)
 
3366
     am__include=.include
 
3367
     am__quote="\""
 
3368
     _am_result=BSD
 
3369
     ;;
 
3370
   esac
 
3371
fi
 
3372
 
 
3373
 
 
3374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3375
$as_echo "$_am_result" >&6; }
 
3376
rm -f confinc confmf
 
3377
 
 
3378
# Check whether --enable-dependency-tracking was given.
 
3379
if test "${enable_dependency_tracking+set}" = set; then :
 
3380
  enableval=$enable_dependency_tracking;
 
3381
fi
 
3382
 
 
3383
if test "x$enable_dependency_tracking" != xno; then
 
3384
  am_depcomp="$ac_aux_dir/depcomp"
 
3385
  AMDEPBACKSLASH='\'
 
3386
fi
 
3387
 if test "x$enable_dependency_tracking" != xno; then
 
3388
  AMDEP_TRUE=
 
3389
  AMDEP_FALSE='#'
 
3390
else
 
3391
  AMDEP_TRUE='#'
 
3392
  AMDEP_FALSE=
 
3393
fi
 
3394
 
 
3395
 
 
3396
 
 
3397
depcc="$CXX"  am_compiler_list=
 
3398
 
 
3399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3400
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3401
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
3402
  $as_echo_n "(cached) " >&6
 
3403
else
 
3404
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3405
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3406
  # making bogus files that we don't know about and never remove.  For
 
3407
  # instance it was reported that on HP-UX the gcc test will end up
 
3408
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3409
  # in D'.
 
3410
  mkdir conftest.dir
 
3411
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3412
  # using a relative directory.
 
3413
  cp "$am_depcomp" conftest.dir
 
3414
  cd conftest.dir
 
3415
  # We will build objects and dependencies in a subdirectory because
 
3416
  # it helps to detect inapplicable dependency modes.  For instance
 
3417
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3418
  # side effect of compilation, but ICC will put the dependencies in
 
3419
  # the current directory while Tru64 will put them in the object
 
3420
  # directory.
 
3421
  mkdir sub
 
3422
 
 
3423
  am_cv_CXX_dependencies_compiler_type=none
 
3424
  if test "$am_compiler_list" = ""; then
 
3425
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3426
  fi
 
3427
  am__universal=false
 
3428
  case " $depcc " in #(
 
3429
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3430
     esac
 
3431
 
 
3432
  for depmode in $am_compiler_list; do
 
3433
    # Setup a source with many dependencies, because some compilers
 
3434
    # like to wrap large dependency lists on column 80 (with \), and
 
3435
    # we should not choose a depcomp mode which is confused by this.
 
3436
    #
 
3437
    # We need to recreate these files for each test, as the compiler may
 
3438
    # overwrite some of them when testing with obscure command lines.
 
3439
    # This happens at least with the AIX C compiler.
 
3440
    : > sub/conftest.c
 
3441
    for i in 1 2 3 4 5 6; do
 
3442
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3443
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3444
      # Solaris 8's {/usr,}/bin/sh.
 
3445
      touch sub/conftst$i.h
 
3446
    done
 
3447
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3448
 
 
3449
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3450
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3451
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3452
    # versions had trouble with output in subdirs
 
3453
    am__obj=sub/conftest.${OBJEXT-o}
 
3454
    am__minus_obj="-o $am__obj"
 
3455
    case $depmode in
 
3456
    gcc)
 
3457
      # This depmode causes a compiler race in universal mode.
 
3458
      test "$am__universal" = false || continue
 
3459
      ;;
 
3460
    nosideeffect)
 
3461
      # after this tag, mechanisms are not by side-effect, so they'll
 
3462
      # only be used when explicitly requested
 
3463
      if test "x$enable_dependency_tracking" = xyes; then
 
3464
        continue
 
3465
      else
 
3466
        break
 
3467
      fi
 
3468
      ;;
 
3469
    msvisualcpp | msvcmsys)
 
3470
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3471
      # not run yet.  These depmodes are late enough in the game, and
 
3472
      # so weak that their functioning should not be impacted.
 
3473
      am__obj=conftest.${OBJEXT-o}
 
3474
      am__minus_obj=
 
3475
      ;;
 
3476
    none) break ;;
 
3477
    esac
 
3478
    if depmode=$depmode \
 
3479
       source=sub/conftest.c object=$am__obj \
 
3480
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3481
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3482
         >/dev/null 2>conftest.err &&
 
3483
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3484
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3485
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3486
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3487
      # icc doesn't choke on unknown options, it will just issue warnings
 
3488
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3489
      # that says an option was ignored or not supported.
 
3490
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3491
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3492
      # The diagnosis changed in icc 8.0:
 
3493
      #   icc: Command line remark: option '-MP' not supported
 
3494
      if (grep 'ignoring option' conftest.err ||
 
3495
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3496
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3497
        break
 
3498
      fi
 
3499
    fi
 
3500
  done
 
3501
 
 
3502
  cd ..
 
3503
  rm -rf conftest.dir
 
3504
else
 
3505
  am_cv_CXX_dependencies_compiler_type=none
 
3506
fi
 
3507
 
 
3508
fi
 
3509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3510
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3511
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3512
 
 
3513
 if
 
3514
  test "x$enable_dependency_tracking" != xno \
 
3515
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3516
  am__fastdepCXX_TRUE=
 
3517
  am__fastdepCXX_FALSE='#'
 
3518
else
 
3519
  am__fastdepCXX_TRUE='#'
 
3520
  am__fastdepCXX_FALSE=
 
3521
fi
 
3522
 
 
3523
 
 
3524
case `pwd` in
 
3525
  *\ * | *\     *)
 
3526
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3527
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3528
esac
 
3529
 
 
3530
 
 
3531
 
 
3532
macro_version='2.4.2'
 
3533
macro_revision='1.3337'
 
3534
 
 
3535
 
 
3536
 
 
3537
 
 
3538
 
 
3539
 
 
3540
 
 
3541
 
 
3542
 
 
3543
 
 
3544
 
 
3545
 
 
3546
 
 
3547
ltmain="$ac_aux_dir/ltmain.sh"
 
3548
 
 
3549
# Make sure we can run config.sub.
 
3550
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3551
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
3552
 
 
3553
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
3554
$as_echo_n "checking build system type... " >&6; }
 
3555
if ${ac_cv_build+:} false; then :
 
3556
  $as_echo_n "(cached) " >&6
 
3557
else
 
3558
  ac_build_alias=$build_alias
 
3559
test "x$ac_build_alias" = x &&
 
3560
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3561
test "x$ac_build_alias" = x &&
 
3562
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
3563
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3564
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
3565
 
 
3566
fi
 
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3568
$as_echo "$ac_cv_build" >&6; }
 
3569
case $ac_cv_build in
 
3570
*-*-*) ;;
 
3571
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
3572
esac
 
3573
build=$ac_cv_build
 
3574
ac_save_IFS=$IFS; IFS='-'
 
3575
set x $ac_cv_build
 
3576
shift
 
3577
build_cpu=$1
 
3578
build_vendor=$2
 
3579
shift; shift
 
3580
# Remember, the first character of IFS is used to create $*,
 
3581
# except with old shells:
 
3582
build_os=$*
 
3583
IFS=$ac_save_IFS
 
3584
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3585
 
 
3586
 
 
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3588
$as_echo_n "checking host system type... " >&6; }
 
3589
if ${ac_cv_host+:} false; then :
 
3590
  $as_echo_n "(cached) " >&6
 
3591
else
 
3592
  if test "x$host_alias" = x; then
 
3593
  ac_cv_host=$ac_cv_build
 
3594
else
 
3595
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3596
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3597
fi
 
3598
 
 
3599
fi
 
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3601
$as_echo "$ac_cv_host" >&6; }
 
3602
case $ac_cv_host in
 
3603
*-*-*) ;;
 
3604
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
3605
esac
 
3606
host=$ac_cv_host
 
3607
ac_save_IFS=$IFS; IFS='-'
 
3608
set x $ac_cv_host
 
3609
shift
 
3610
host_cpu=$1
 
3611
host_vendor=$2
 
3612
shift; shift
 
3613
# Remember, the first character of IFS is used to create $*,
 
3614
# except with old shells:
 
3615
host_os=$*
 
3616
IFS=$ac_save_IFS
 
3617
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3618
 
 
3619
 
 
3620
# Backslashify metacharacters that are still active within
 
3621
# double-quoted strings.
 
3622
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
3623
 
 
3624
# Same as above, but do not quote variable references.
 
3625
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
3626
 
 
3627
# Sed substitution to delay expansion of an escaped shell variable in a
 
3628
# double_quote_subst'ed string.
 
3629
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
3630
 
 
3631
# Sed substitution to delay expansion of an escaped single quote.
 
3632
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
3633
 
 
3634
# Sed substitution to avoid accidental globbing in evaled expressions
 
3635
no_glob_subst='s/\*/\\\*/g'
 
3636
 
 
3637
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3638
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3639
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3640
 
 
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
3642
$as_echo_n "checking how to print strings... " >&6; }
 
3643
# Test print first, because it will be a builtin if present.
 
3644
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
3645
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3646
  ECHO='print -r --'
 
3647
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3648
  ECHO='printf %s\n'
 
3649
else
 
3650
  # Use this function as a fallback that always works.
 
3651
  func_fallback_echo ()
 
3652
  {
 
3653
    eval 'cat <<_LTECHO_EOF
 
3654
$1
 
3655
_LTECHO_EOF'
 
3656
  }
 
3657
  ECHO='func_fallback_echo'
 
3658
fi
 
3659
 
 
3660
# func_echo_all arg...
 
3661
# Invoke $ECHO with all args, space-separated.
 
3662
func_echo_all ()
 
3663
{
 
3664
    $ECHO ""
 
3665
}
 
3666
 
 
3667
case "$ECHO" in
 
3668
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
3669
$as_echo "printf" >&6; } ;;
 
3670
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
3671
$as_echo "print -r" >&6; } ;;
 
3672
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
3673
$as_echo "cat" >&6; } ;;
 
3674
esac
 
3675
 
 
3676
 
 
3677
 
 
3678
 
 
3679
 
 
3680
 
 
3681
 
 
3682
 
 
3683
 
 
3684
 
 
3685
 
 
3686
 
 
3687
 
 
3688
 
 
3689
ac_ext=c
 
3690
ac_cpp='$CPP $CPPFLAGS'
 
3691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3694
if test -n "$ac_tool_prefix"; then
 
3695
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3696
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3698
$as_echo_n "checking for $ac_word... " >&6; }
 
3699
if ${ac_cv_prog_CC+:} false; then :
 
3700
  $as_echo_n "(cached) " >&6
 
3701
else
 
3702
  if test -n "$CC"; then
 
3703
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3704
else
 
3705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3706
for as_dir in $PATH
 
3707
do
 
3708
  IFS=$as_save_IFS
 
3709
  test -z "$as_dir" && as_dir=.
 
3710
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3711
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3712
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3713
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3714
    break 2
 
3715
  fi
 
3716
done
 
3717
  done
 
3718
IFS=$as_save_IFS
 
3719
 
 
3720
fi
 
3721
fi
 
3722
CC=$ac_cv_prog_CC
 
3723
if test -n "$CC"; then
 
3724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3725
$as_echo "$CC" >&6; }
 
3726
else
 
3727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3728
$as_echo "no" >&6; }
 
3729
fi
 
3730
 
 
3731
 
 
3732
fi
 
3733
if test -z "$ac_cv_prog_CC"; then
 
3734
  ac_ct_CC=$CC
 
3735
  # Extract the first word of "gcc", so it can be a program name with args.
 
3736
set dummy gcc; ac_word=$2
 
3737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3738
$as_echo_n "checking for $ac_word... " >&6; }
 
3739
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3740
  $as_echo_n "(cached) " >&6
 
3741
else
 
3742
  if test -n "$ac_ct_CC"; then
 
3743
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3744
else
 
3745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3746
for as_dir in $PATH
 
3747
do
 
3748
  IFS=$as_save_IFS
 
3749
  test -z "$as_dir" && as_dir=.
 
3750
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3751
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3752
    ac_cv_prog_ac_ct_CC="gcc"
 
3753
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3754
    break 2
 
3755
  fi
 
3756
done
 
3757
  done
 
3758
IFS=$as_save_IFS
 
3759
 
 
3760
fi
 
3761
fi
 
3762
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3763
if test -n "$ac_ct_CC"; then
 
3764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3765
$as_echo "$ac_ct_CC" >&6; }
 
3766
else
 
3767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3768
$as_echo "no" >&6; }
 
3769
fi
 
3770
 
 
3771
  if test "x$ac_ct_CC" = x; then
 
3772
    CC=""
 
3773
  else
 
3774
    case $cross_compiling:$ac_tool_warned in
 
3775
yes:)
 
3776
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3777
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3778
ac_tool_warned=yes ;;
 
3779
esac
 
3780
    CC=$ac_ct_CC
 
3781
  fi
 
3782
else
 
3783
  CC="$ac_cv_prog_CC"
 
3784
fi
 
3785
 
 
3786
if test -z "$CC"; then
 
3787
          if test -n "$ac_tool_prefix"; then
 
3788
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3789
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3791
$as_echo_n "checking for $ac_word... " >&6; }
 
3792
if ${ac_cv_prog_CC+:} false; then :
 
3793
  $as_echo_n "(cached) " >&6
 
3794
else
 
3795
  if test -n "$CC"; then
 
3796
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3797
else
 
3798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3799
for as_dir in $PATH
 
3800
do
 
3801
  IFS=$as_save_IFS
 
3802
  test -z "$as_dir" && as_dir=.
 
3803
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3804
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3805
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3806
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3807
    break 2
 
3808
  fi
 
3809
done
 
3810
  done
 
3811
IFS=$as_save_IFS
 
3812
 
 
3813
fi
 
3814
fi
 
3815
CC=$ac_cv_prog_CC
 
3816
if test -n "$CC"; then
 
3817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3818
$as_echo "$CC" >&6; }
 
3819
else
 
3820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3821
$as_echo "no" >&6; }
 
3822
fi
 
3823
 
 
3824
 
 
3825
  fi
 
3826
fi
 
3827
if test -z "$CC"; then
 
3828
  # Extract the first word of "cc", so it can be a program name with args.
 
3829
set dummy cc; ac_word=$2
 
3830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3831
$as_echo_n "checking for $ac_word... " >&6; }
 
3832
if ${ac_cv_prog_CC+:} false; then :
 
3833
  $as_echo_n "(cached) " >&6
 
3834
else
 
3835
  if test -n "$CC"; then
 
3836
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3837
else
 
3838
  ac_prog_rejected=no
 
3839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3840
for as_dir in $PATH
 
3841
do
 
3842
  IFS=$as_save_IFS
 
3843
  test -z "$as_dir" && as_dir=.
 
3844
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3846
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3847
       ac_prog_rejected=yes
 
3848
       continue
 
3849
     fi
 
3850
    ac_cv_prog_CC="cc"
 
3851
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3852
    break 2
 
3853
  fi
 
3854
done
 
3855
  done
 
3856
IFS=$as_save_IFS
 
3857
 
 
3858
if test $ac_prog_rejected = yes; then
 
3859
  # We found a bogon in the path, so make sure we never use it.
 
3860
  set dummy $ac_cv_prog_CC
 
3861
  shift
 
3862
  if test $# != 0; then
 
3863
    # We chose a different compiler from the bogus one.
 
3864
    # However, it has the same basename, so the bogon will be chosen
 
3865
    # first if we set CC to just the basename; use the full file name.
 
3866
    shift
 
3867
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3868
  fi
 
3869
fi
 
3870
fi
 
3871
fi
 
3872
CC=$ac_cv_prog_CC
 
3873
if test -n "$CC"; then
 
3874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3875
$as_echo "$CC" >&6; }
 
3876
else
 
3877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3878
$as_echo "no" >&6; }
 
3879
fi
 
3880
 
 
3881
 
 
3882
fi
 
3883
if test -z "$CC"; then
 
3884
  if test -n "$ac_tool_prefix"; then
 
3885
  for ac_prog in cl.exe
 
3886
  do
 
3887
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3888
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3890
$as_echo_n "checking for $ac_word... " >&6; }
 
3891
if ${ac_cv_prog_CC+:} false; then :
 
3892
  $as_echo_n "(cached) " >&6
 
3893
else
 
3894
  if test -n "$CC"; then
 
3895
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3896
else
 
3897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3898
for as_dir in $PATH
 
3899
do
 
3900
  IFS=$as_save_IFS
 
3901
  test -z "$as_dir" && as_dir=.
 
3902
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3904
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3905
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3906
    break 2
 
3907
  fi
 
3908
done
 
3909
  done
 
3910
IFS=$as_save_IFS
 
3911
 
 
3912
fi
 
3913
fi
 
3914
CC=$ac_cv_prog_CC
 
3915
if test -n "$CC"; then
 
3916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3917
$as_echo "$CC" >&6; }
 
3918
else
 
3919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3920
$as_echo "no" >&6; }
 
3921
fi
 
3922
 
 
3923
 
 
3924
    test -n "$CC" && break
 
3925
  done
 
3926
fi
 
3927
if test -z "$CC"; then
 
3928
  ac_ct_CC=$CC
 
3929
  for ac_prog in cl.exe
 
3930
do
 
3931
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3932
set dummy $ac_prog; ac_word=$2
 
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3934
$as_echo_n "checking for $ac_word... " >&6; }
 
3935
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3936
  $as_echo_n "(cached) " >&6
 
3937
else
 
3938
  if test -n "$ac_ct_CC"; then
 
3939
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3940
else
 
3941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3942
for as_dir in $PATH
 
3943
do
 
3944
  IFS=$as_save_IFS
 
3945
  test -z "$as_dir" && as_dir=.
 
3946
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3947
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3948
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3949
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3950
    break 2
 
3951
  fi
 
3952
done
 
3953
  done
 
3954
IFS=$as_save_IFS
 
3955
 
 
3956
fi
 
3957
fi
 
3958
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3959
if test -n "$ac_ct_CC"; then
 
3960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3961
$as_echo "$ac_ct_CC" >&6; }
 
3962
else
 
3963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3964
$as_echo "no" >&6; }
 
3965
fi
 
3966
 
 
3967
 
 
3968
  test -n "$ac_ct_CC" && break
 
3969
done
 
3970
 
 
3971
  if test "x$ac_ct_CC" = x; then
 
3972
    CC=""
 
3973
  else
 
3974
    case $cross_compiling:$ac_tool_warned in
 
3975
yes:)
 
3976
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3977
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3978
ac_tool_warned=yes ;;
 
3979
esac
 
3980
    CC=$ac_ct_CC
 
3981
  fi
 
3982
fi
 
3983
 
 
3984
fi
 
3985
 
 
3986
 
 
3987
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3988
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3989
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3990
See \`config.log' for more details" "$LINENO" 5; }
 
3991
 
 
3992
# Provide some information about the compiler.
 
3993
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3994
set X $ac_compile
 
3995
ac_compiler=$2
 
3996
for ac_option in --version -v -V -qversion; do
 
3997
  { { ac_try="$ac_compiler $ac_option >&5"
 
3998
case "(($ac_try" in
 
3999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4000
  *) ac_try_echo=$ac_try;;
 
4001
esac
 
4002
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4003
$as_echo "$ac_try_echo"; } >&5
 
4004
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4005
  ac_status=$?
 
4006
  if test -s conftest.err; then
 
4007
    sed '10a\
 
4008
... rest of stderr output deleted ...
 
4009
         10q' conftest.err >conftest.er1
 
4010
    cat conftest.er1 >&5
 
4011
  fi
 
4012
  rm -f conftest.er1 conftest.err
 
4013
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4014
  test $ac_status = 0; }
 
4015
done
 
4016
 
3684
4017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685
4018
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4019
if ${ac_cv_c_compiler_gnu+:} false; then :
3687
4020
  $as_echo_n "(cached) " >&6
3688
4021
else
3689
4022
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720
4053
ac_save_CFLAGS=$CFLAGS
3721
4054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722
4055
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3723
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4056
if ${ac_cv_prog_cc_g+:} false; then :
3724
4057
  $as_echo_n "(cached) " >&6
3725
4058
else
3726
4059
  ac_save_c_werror_flag=$ac_c_werror_flag
3798
4131
fi
3799
4132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800
4133
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4134
if ${ac_cv_prog_cc_c89+:} false; then :
3802
4135
  $as_echo_n "(cached) " >&6
3803
4136
else
3804
4137
  ac_cv_prog_cc_c89=no
3897
4230
 
3898
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3899
4232
$as_echo_n "checking dependency style of $depcc... " >&6; }
3900
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4233
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3901
4234
  $as_echo_n "(cached) " >&6
3902
4235
else
3903
4236
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4022
4355
 
4023
4356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4024
4357
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4025
 
if test "${ac_cv_path_SED+set}" = set; then :
 
4358
if ${ac_cv_path_SED+:} false; then :
4026
4359
  $as_echo_n "(cached) " >&6
4027
4360
else
4028
4361
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4077
4410
  done
4078
4411
IFS=$as_save_IFS
4079
4412
  if test -z "$ac_cv_path_SED"; then
4080
 
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4413
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4081
4414
  fi
4082
4415
else
4083
4416
  ac_cv_path_SED=$SED
4104
4437
 
4105
4438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4106
4439
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4107
 
if test "${ac_cv_path_GREP+set}" = set; then :
 
4440
if ${ac_cv_path_GREP+:} false; then :
4108
4441
  $as_echo_n "(cached) " >&6
4109
4442
else
4110
4443
  if test -z "$GREP"; then
4153
4486
  done
4154
4487
IFS=$as_save_IFS
4155
4488
  if test -z "$ac_cv_path_GREP"; then
4156
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4489
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4157
4490
  fi
4158
4491
else
4159
4492
  ac_cv_path_GREP=$GREP
4167
4500
 
4168
4501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4169
4502
$as_echo_n "checking for egrep... " >&6; }
4170
 
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4503
if ${ac_cv_path_EGREP+:} false; then :
4171
4504
  $as_echo_n "(cached) " >&6
4172
4505
else
4173
4506
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4219
4552
  done
4220
4553
IFS=$as_save_IFS
4221
4554
  if test -z "$ac_cv_path_EGREP"; then
4222
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4555
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4223
4556
  fi
4224
4557
else
4225
4558
  ac_cv_path_EGREP=$EGREP
4234
4567
 
4235
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4236
4569
$as_echo_n "checking for fgrep... " >&6; }
4237
 
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4570
if ${ac_cv_path_FGREP+:} false; then :
4238
4571
  $as_echo_n "(cached) " >&6
4239
4572
else
4240
4573
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4286
4619
  done
4287
4620
IFS=$as_save_IFS
4288
4621
  if test -z "$ac_cv_path_FGREP"; then
4289
 
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4622
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4290
4623
  fi
4291
4624
else
4292
4625
  ac_cv_path_FGREP=$FGREP
4365
4698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4366
4699
$as_echo_n "checking for non-GNU ld... " >&6; }
4367
4700
fi
4368
 
if test "${lt_cv_path_LD+set}" = set; then :
 
4701
if ${lt_cv_path_LD+:} false; then :
4369
4702
  $as_echo_n "(cached) " >&6
4370
4703
else
4371
4704
  if test -z "$LD"; then
4402
4735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403
4736
$as_echo "no" >&6; }
4404
4737
fi
4405
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4738
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4406
4739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4407
4740
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4408
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4741
if ${lt_cv_prog_gnu_ld+:} false; then :
4409
4742
  $as_echo_n "(cached) " >&6
4410
4743
else
4411
4744
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4432
4765
 
4433
4766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4434
4767
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4435
 
if test "${lt_cv_path_NM+set}" = set; then :
 
4768
if ${lt_cv_path_NM+:} false; then :
4436
4769
  $as_echo_n "(cached) " >&6
4437
4770
else
4438
4771
  if test -n "$NM"; then
4485
4818
  NM="$lt_cv_path_NM"
4486
4819
else
4487
4820
  # Didn't find any BSD compatible name lister, look for dumpbin.
4488
 
  if test -n "$ac_tool_prefix"; then
4489
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4821
  if test -n "$DUMPBIN"; then :
 
4822
    # Let the user override the test.
 
4823
  else
 
4824
    if test -n "$ac_tool_prefix"; then
 
4825
  for ac_prog in dumpbin "link -dump"
4490
4826
  do
4491
4827
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492
4828
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4493
4829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494
4830
$as_echo_n "checking for $ac_word... " >&6; }
4495
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
4831
if ${ac_cv_prog_DUMPBIN+:} false; then :
4496
4832
  $as_echo_n "(cached) " >&6
4497
4833
else
4498
4834
  if test -n "$DUMPBIN"; then
4530
4866
fi
4531
4867
if test -z "$DUMPBIN"; then
4532
4868
  ac_ct_DUMPBIN=$DUMPBIN
4533
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4869
  for ac_prog in dumpbin "link -dump"
4534
4870
do
4535
4871
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4536
4872
set dummy $ac_prog; ac_word=$2
4537
4873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538
4874
$as_echo_n "checking for $ac_word... " >&6; }
4539
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
4875
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4540
4876
  $as_echo_n "(cached) " >&6
4541
4877
else
4542
4878
  if test -n "$ac_ct_DUMPBIN"; then
4585
4921
  fi
4586
4922
fi
4587
4923
 
 
4924
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4925
    *COFF*)
 
4926
      DUMPBIN="$DUMPBIN -symbols"
 
4927
      ;;
 
4928
    *)
 
4929
      DUMPBIN=:
 
4930
      ;;
 
4931
    esac
 
4932
  fi
4588
4933
 
4589
4934
  if test "$DUMPBIN" != ":"; then
4590
4935
    NM="$DUMPBIN"
4599
4944
 
4600
4945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4601
4946
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4602
 
if test "${lt_cv_nm_interface+set}" = set; then :
 
4947
if ${lt_cv_nm_interface+:} false; then :
4603
4948
  $as_echo_n "(cached) " >&6
4604
4949
else
4605
4950
  lt_cv_nm_interface="BSD nm"
4606
4951
  echo "int some_variable = 0;" > conftest.$ac_ext
4607
 
  (eval echo "\"\$as_me:4607: $ac_compile\"" >&5)
 
4952
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4608
4953
  (eval "$ac_compile" 2>conftest.err)
4609
4954
  cat conftest.err >&5
4610
 
  (eval echo "\"\$as_me:4610: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4955
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4611
4956
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4612
4957
  cat conftest.err >&5
4613
 
  (eval echo "\"\$as_me:4613: output\"" >&5)
 
4958
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4614
4959
  cat conftest.out >&5
4615
4960
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4616
4961
    lt_cv_nm_interface="MS dumpbin"
4634
4979
# find the maximum length of command line arguments
4635
4980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4636
4981
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4637
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
4982
if ${lt_cv_sys_max_cmd_len+:} false; then :
4638
4983
  $as_echo_n "(cached) " >&6
4639
4984
else
4640
4985
    i=0
4667
5012
    lt_cv_sys_max_cmd_len=8192;
4668
5013
    ;;
4669
5014
 
 
5015
  mint*)
 
5016
    # On MiNT this can take a long time and run out of memory.
 
5017
    lt_cv_sys_max_cmd_len=8192;
 
5018
    ;;
 
5019
 
4670
5020
  amigaos*)
4671
5021
    # On AmigaOS with pdksh, this test takes hours, literally.
4672
5022
    # So we just punt and use a minimum line length of 8192.
4692
5042
    lt_cv_sys_max_cmd_len=196608
4693
5043
    ;;
4694
5044
 
 
5045
  os2*)
 
5046
    # The test takes a long time on OS/2.
 
5047
    lt_cv_sys_max_cmd_len=8192
 
5048
    ;;
 
5049
 
4695
5050
  osf*)
4696
5051
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4697
5052
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4731
5086
      # If test is not a shell built-in, we'll probably end up computing a
4732
5087
      # maximum length that is only half of the actual maximum length, but
4733
5088
      # we can't tell.
4734
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4735
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5089
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5090
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4736
5091
              test $i != 17 # 1/2 MB should be enough
4737
5092
      do
4738
5093
        i=`expr $i + 1`
4774
5129
# Try some XSI features
4775
5130
xsi_shell=no
4776
5131
( _lt_dummy="a/b/c"
4777
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4778
 
      = c,a/b,, \
 
5132
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5133
      = c,a/b,b/c, \
4779
5134
    && eval 'test $(( 1 + 1 )) -eq 2 \
4780
5135
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4781
5136
  && xsi_shell=yes
4824
5179
 
4825
5180
 
4826
5181
 
 
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5183
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5184
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5185
  $as_echo_n "(cached) " >&6
 
5186
else
 
5187
  case $host in
 
5188
  *-*-mingw* )
 
5189
    case $build in
 
5190
      *-*-mingw* ) # actually msys
 
5191
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5192
        ;;
 
5193
      *-*-cygwin* )
 
5194
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5195
        ;;
 
5196
      * ) # otherwise, assume *nix
 
5197
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5198
        ;;
 
5199
    esac
 
5200
    ;;
 
5201
  *-*-cygwin* )
 
5202
    case $build in
 
5203
      *-*-mingw* ) # actually msys
 
5204
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5205
        ;;
 
5206
      *-*-cygwin* )
 
5207
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5208
        ;;
 
5209
      * ) # otherwise, assume *nix
 
5210
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5211
        ;;
 
5212
    esac
 
5213
    ;;
 
5214
  * ) # unhandled hosts (and "normal" native builds)
 
5215
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5216
    ;;
 
5217
esac
 
5218
 
 
5219
fi
 
5220
 
 
5221
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5223
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5224
 
 
5225
 
 
5226
 
 
5227
 
 
5228
 
 
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5230
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5231
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5232
  $as_echo_n "(cached) " >&6
 
5233
else
 
5234
  #assume ordinary cross tools, or native build.
 
5235
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5236
case $host in
 
5237
  *-*-mingw* )
 
5238
    case $build in
 
5239
      *-*-mingw* ) # actually msys
 
5240
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5241
        ;;
 
5242
    esac
 
5243
    ;;
 
5244
esac
 
5245
 
 
5246
fi
 
5247
 
 
5248
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5250
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5251
 
 
5252
 
 
5253
 
 
5254
 
 
5255
 
4827
5256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4828
5257
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4829
 
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5258
if ${lt_cv_ld_reload_flag+:} false; then :
4830
5259
  $as_echo_n "(cached) " >&6
4831
5260
else
4832
5261
  lt_cv_ld_reload_flag='-r'
4840
5269
esac
4841
5270
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4842
5271
case $host_os in
 
5272
  cygwin* | mingw* | pw32* | cegcc*)
 
5273
    if test "$GCC" != yes; then
 
5274
      reload_cmds=false
 
5275
    fi
 
5276
    ;;
4843
5277
  darwin*)
4844
5278
    if test "$GCC" = yes; then
4845
5279
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4862
5296
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4863
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864
5298
$as_echo_n "checking for $ac_word... " >&6; }
4865
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5299
if ${ac_cv_prog_OBJDUMP+:} false; then :
4866
5300
  $as_echo_n "(cached) " >&6
4867
5301
else
4868
5302
  if test -n "$OBJDUMP"; then
4902
5336
set dummy objdump; ac_word=$2
4903
5337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904
5338
$as_echo_n "checking for $ac_word... " >&6; }
4905
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5339
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4906
5340
  $as_echo_n "(cached) " >&6
4907
5341
else
4908
5342
  if test -n "$ac_ct_OBJDUMP"; then
4961
5395
 
4962
5396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4963
5397
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4964
 
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5398
if ${lt_cv_deplibs_check_method+:} false; then :
4965
5399
  $as_echo_n "(cached) " >&6
4966
5400
else
4967
5401
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5003
5437
  # Base MSYS/MinGW do not provide the 'file' command needed by
5004
5438
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5005
5439
  # unless we find 'file', for example because we are cross-compiling.
5006
 
  if ( file / ) >/dev/null 2>&1; then
 
5440
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5441
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5007
5442
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008
5443
    lt_cv_file_magic_cmd='func_win32_libid'
5009
5444
  else
5010
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5445
    # Keep this pattern in sync with the one in func_win32_libid.
 
5446
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5011
5447
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5012
5448
  fi
5013
5449
  ;;
5014
5450
 
5015
 
cegcc)
 
5451
cegcc*)
5016
5452
  # use the weaker test based on 'objdump'. See mingw*.
5017
5453
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5018
5454
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5042
5478
  lt_cv_deplibs_check_method=pass_all
5043
5479
  ;;
5044
5480
 
 
5481
haiku*)
 
5482
  lt_cv_deplibs_check_method=pass_all
 
5483
  ;;
 
5484
 
5045
5485
hpux10.20* | hpux11*)
5046
5486
  lt_cv_file_magic_cmd=/usr/bin/file
5047
5487
  case $host_cpu in
5050
5490
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5051
5491
    ;;
5052
5492
  hppa*64*)
5053
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5493
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5054
5494
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5055
5495
    ;;
5056
5496
  *)
5057
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5497
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5058
5498
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5059
5499
    ;;
5060
5500
  esac
5075
5515
  lt_cv_deplibs_check_method=pass_all
5076
5516
  ;;
5077
5517
 
5078
 
# This must be Linux ELF.
5079
 
linux* | k*bsd*-gnu)
 
5518
# This must be glibc/ELF.
 
5519
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5080
5520
  lt_cv_deplibs_check_method=pass_all
5081
5521
  ;;
5082
5522
 
5157
5597
fi
5158
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5159
5599
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5600
 
 
5601
file_magic_glob=
 
5602
want_nocaseglob=no
 
5603
if test "$build" = "$host"; then
 
5604
  case $host_os in
 
5605
  mingw* | pw32*)
 
5606
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5607
      want_nocaseglob=yes
 
5608
    else
 
5609
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5610
    fi
 
5611
    ;;
 
5612
  esac
 
5613
fi
 
5614
 
5160
5615
file_magic_cmd=$lt_cv_file_magic_cmd
5161
5616
deplibs_check_method=$lt_cv_deplibs_check_method
5162
5617
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5172
5627
 
5173
5628
 
5174
5629
 
5175
 
if test -n "$ac_tool_prefix"; then
5176
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5177
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5178
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179
 
$as_echo_n "checking for $ac_word... " >&6; }
5180
 
if test "${ac_cv_prog_AR+set}" = set; then :
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
if test -n "$ac_tool_prefix"; then
 
5641
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5642
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5644
$as_echo_n "checking for $ac_word... " >&6; }
 
5645
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5646
  $as_echo_n "(cached) " >&6
 
5647
else
 
5648
  if test -n "$DLLTOOL"; then
 
5649
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5650
else
 
5651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5652
for as_dir in $PATH
 
5653
do
 
5654
  IFS=$as_save_IFS
 
5655
  test -z "$as_dir" && as_dir=.
 
5656
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5657
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5658
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5659
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5660
    break 2
 
5661
  fi
 
5662
done
 
5663
  done
 
5664
IFS=$as_save_IFS
 
5665
 
 
5666
fi
 
5667
fi
 
5668
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5669
if test -n "$DLLTOOL"; then
 
5670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5671
$as_echo "$DLLTOOL" >&6; }
 
5672
else
 
5673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5674
$as_echo "no" >&6; }
 
5675
fi
 
5676
 
 
5677
 
 
5678
fi
 
5679
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5680
  ac_ct_DLLTOOL=$DLLTOOL
 
5681
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5682
set dummy dlltool; ac_word=$2
 
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5684
$as_echo_n "checking for $ac_word... " >&6; }
 
5685
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5686
  $as_echo_n "(cached) " >&6
 
5687
else
 
5688
  if test -n "$ac_ct_DLLTOOL"; then
 
5689
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5690
else
 
5691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5692
for as_dir in $PATH
 
5693
do
 
5694
  IFS=$as_save_IFS
 
5695
  test -z "$as_dir" && as_dir=.
 
5696
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5698
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5699
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5700
    break 2
 
5701
  fi
 
5702
done
 
5703
  done
 
5704
IFS=$as_save_IFS
 
5705
 
 
5706
fi
 
5707
fi
 
5708
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5709
if test -n "$ac_ct_DLLTOOL"; then
 
5710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5711
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5712
else
 
5713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5714
$as_echo "no" >&6; }
 
5715
fi
 
5716
 
 
5717
  if test "x$ac_ct_DLLTOOL" = x; then
 
5718
    DLLTOOL="false"
 
5719
  else
 
5720
    case $cross_compiling:$ac_tool_warned in
 
5721
yes:)
 
5722
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5723
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5724
ac_tool_warned=yes ;;
 
5725
esac
 
5726
    DLLTOOL=$ac_ct_DLLTOOL
 
5727
  fi
 
5728
else
 
5729
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5730
fi
 
5731
 
 
5732
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5733
 
 
5734
 
 
5735
 
 
5736
 
 
5737
 
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5744
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5745
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5746
  $as_echo_n "(cached) " >&6
 
5747
else
 
5748
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5749
 
 
5750
case $host_os in
 
5751
cygwin* | mingw* | pw32* | cegcc*)
 
5752
  # two different shell functions defined in ltmain.sh
 
5753
  # decide which to use based on capabilities of $DLLTOOL
 
5754
  case `$DLLTOOL --help 2>&1` in
 
5755
  *--identify-strict*)
 
5756
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5757
    ;;
 
5758
  *)
 
5759
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5760
    ;;
 
5761
  esac
 
5762
  ;;
 
5763
*)
 
5764
  # fallback: assume linklib IS sharedlib
 
5765
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5766
  ;;
 
5767
esac
 
5768
 
 
5769
fi
 
5770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5771
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5772
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5773
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
 
5779
 
 
5780
 
 
5781
 
 
5782
if test -n "$ac_tool_prefix"; then
 
5783
  for ac_prog in ar
 
5784
  do
 
5785
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5786
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5788
$as_echo_n "checking for $ac_word... " >&6; }
 
5789
if ${ac_cv_prog_AR+:} false; then :
5181
5790
  $as_echo_n "(cached) " >&6
5182
5791
else
5183
5792
  if test -n "$AR"; then
5190
5799
  test -z "$as_dir" && as_dir=.
5191
5800
    for ac_exec_ext in '' $ac_executable_extensions; do
5192
5801
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5802
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5194
5803
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195
5804
    break 2
5196
5805
  fi
5210
5819
fi
5211
5820
 
5212
5821
 
 
5822
    test -n "$AR" && break
 
5823
  done
5213
5824
fi
5214
 
if test -z "$ac_cv_prog_AR"; then
 
5825
if test -z "$AR"; then
5215
5826
  ac_ct_AR=$AR
5216
 
  # Extract the first word of "ar", so it can be a program name with args.
5217
 
set dummy ar; ac_word=$2
 
5827
  for ac_prog in ar
 
5828
do
 
5829
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5830
set dummy $ac_prog; ac_word=$2
5218
5831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219
5832
$as_echo_n "checking for $ac_word... " >&6; }
5220
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5833
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5221
5834
  $as_echo_n "(cached) " >&6
5222
5835
else
5223
5836
  if test -n "$ac_ct_AR"; then
5230
5843
  test -z "$as_dir" && as_dir=.
5231
5844
    for ac_exec_ext in '' $ac_executable_extensions; do
5232
5845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233
 
    ac_cv_prog_ac_ct_AR="ar"
 
5846
    ac_cv_prog_ac_ct_AR="$ac_prog"
5234
5847
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235
5848
    break 2
5236
5849
  fi
5249
5862
$as_echo "no" >&6; }
5250
5863
fi
5251
5864
 
 
5865
 
 
5866
  test -n "$ac_ct_AR" && break
 
5867
done
 
5868
 
5252
5869
  if test "x$ac_ct_AR" = x; then
5253
5870
    AR="false"
5254
5871
  else
5260
5877
esac
5261
5878
    AR=$ac_ct_AR
5262
5879
  fi
5263
 
else
5264
 
  AR="$ac_cv_prog_AR"
5265
 
fi
5266
 
 
5267
 
test -z "$AR" && AR=ar
5268
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
5269
 
 
5270
 
 
5271
 
 
5272
 
 
 
5880
fi
 
5881
 
 
5882
: ${AR=ar}
 
5883
: ${AR_FLAGS=cru}
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
 
 
5895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5896
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5897
if ${lt_cv_ar_at_file+:} false; then :
 
5898
  $as_echo_n "(cached) " >&6
 
5899
else
 
5900
  lt_cv_ar_at_file=no
 
5901
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5902
/* end confdefs.h.  */
 
5903
 
 
5904
int
 
5905
main ()
 
5906
{
 
5907
 
 
5908
  ;
 
5909
  return 0;
 
5910
}
 
5911
_ACEOF
 
5912
if ac_fn_c_try_compile "$LINENO"; then :
 
5913
  echo conftest.$ac_objext > conftest.lst
 
5914
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5915
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5916
  (eval $lt_ar_try) 2>&5
 
5917
  ac_status=$?
 
5918
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5919
  test $ac_status = 0; }
 
5920
      if test "$ac_status" -eq 0; then
 
5921
        # Ensure the archiver fails upon bogus file names.
 
5922
        rm -f conftest.$ac_objext libconftest.a
 
5923
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5924
  (eval $lt_ar_try) 2>&5
 
5925
  ac_status=$?
 
5926
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5927
  test $ac_status = 0; }
 
5928
        if test "$ac_status" -ne 0; then
 
5929
          lt_cv_ar_at_file=@
 
5930
        fi
 
5931
      fi
 
5932
      rm -f conftest.* libconftest.a
 
5933
 
 
5934
fi
 
5935
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5936
 
 
5937
fi
 
5938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5939
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5940
 
 
5941
if test "x$lt_cv_ar_at_file" = xno; then
 
5942
  archiver_list_spec=
 
5943
else
 
5944
  archiver_list_spec=$lt_cv_ar_at_file
 
5945
fi
5273
5946
 
5274
5947
 
5275
5948
 
5282
5955
set dummy ${ac_tool_prefix}strip; ac_word=$2
5283
5956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284
5957
$as_echo_n "checking for $ac_word... " >&6; }
5285
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5958
if ${ac_cv_prog_STRIP+:} false; then :
5286
5959
  $as_echo_n "(cached) " >&6
5287
5960
else
5288
5961
  if test -n "$STRIP"; then
5322
5995
set dummy strip; ac_word=$2
5323
5996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324
5997
$as_echo_n "checking for $ac_word... " >&6; }
5325
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5998
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5326
5999
  $as_echo_n "(cached) " >&6
5327
6000
else
5328
6001
  if test -n "$ac_ct_STRIP"; then
5381
6054
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5382
6055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383
6056
$as_echo_n "checking for $ac_word... " >&6; }
5384
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
6057
if ${ac_cv_prog_RANLIB+:} false; then :
5385
6058
  $as_echo_n "(cached) " >&6
5386
6059
else
5387
6060
  if test -n "$RANLIB"; then
5421
6094
set dummy ranlib; ac_word=$2
5422
6095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423
6096
$as_echo_n "checking for $ac_word... " >&6; }
5424
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
6097
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5425
6098
  $as_echo_n "(cached) " >&6
5426
6099
else
5427
6100
  if test -n "$ac_ct_RANLIB"; then
5483
6156
if test -n "$RANLIB"; then
5484
6157
  case $host_os in
5485
6158
  openbsd*)
5486
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6159
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5487
6160
    ;;
5488
6161
  *)
5489
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6162
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5490
6163
    ;;
5491
6164
  esac
5492
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6165
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5493
6166
fi
5494
6167
 
 
6168
case $host_os in
 
6169
  darwin*)
 
6170
    lock_old_archive_extraction=yes ;;
 
6171
  *)
 
6172
    lock_old_archive_extraction=no ;;
 
6173
esac
 
6174
 
 
6175
 
 
6176
 
 
6177
 
 
6178
 
 
6179
 
5495
6180
 
5496
6181
 
5497
6182
 
5538
6223
# Check for command to grab the raw symbol name followed by C symbol from nm.
5539
6224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5540
6225
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5541
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
6226
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5542
6227
  $as_echo_n "(cached) " >&6
5543
6228
else
5544
6229
 
5599
6284
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5600
6285
 
5601
6286
# Transform an extracted symbol line into symbol name and symbol address
5602
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5603
 
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'"
 
6287
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6288
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'"
5604
6289
 
5605
6290
# Handle CRLF in mingw tool chain
5606
6291
opt_cr=
5624
6309
    # which start with @ or ?.
5625
6310
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5626
6311
"     {last_section=section; section=\$ 3};"\
 
6312
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5627
6313
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5628
6314
"     \$ 0!~/External *\|/{next};"\
5629
6315
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5636
6322
  else
5637
6323
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5638
6324
  fi
 
6325
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5639
6326
 
5640
6327
  # Check to see that the pipe works correctly.
5641
6328
  pipe_works=no
5661
6348
  test $ac_status = 0; }; then
5662
6349
    # Now try to grab the symbols.
5663
6350
    nlist=conftest.nm
5664
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5665
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6351
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6352
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5666
6353
  ac_status=$?
5667
6354
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668
6355
  test $ac_status = 0; } && test -s "$nlist"; then
5677
6364
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5678
6365
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5679
6366
          cat <<_LT_EOF > conftest.$ac_ext
 
6367
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6368
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6369
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6370
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6371
# define LT_DLSYM_CONST
 
6372
#elif defined(__osf__)
 
6373
/* This system does not cope well with relocations in const data.  */
 
6374
# define LT_DLSYM_CONST
 
6375
#else
 
6376
# define LT_DLSYM_CONST const
 
6377
#endif
 
6378
 
5680
6379
#ifdef __cplusplus
5681
6380
extern "C" {
5682
6381
#endif
5688
6387
          cat <<_LT_EOF >> conftest.$ac_ext
5689
6388
 
5690
6389
/* The mapping between symbol names and symbols.  */
5691
 
const struct {
 
6390
LT_DLSYM_CONST struct {
5692
6391
  const char *name;
5693
6392
  void       *address;
5694
6393
}
5714
6413
_LT_EOF
5715
6414
          # Now try linking the two files.
5716
6415
          mv conftest.$ac_objext conftstm.$ac_objext
5717
 
          lt_save_LIBS="$LIBS"
5718
 
          lt_save_CFLAGS="$CFLAGS"
 
6416
          lt_globsym_save_LIBS=$LIBS
 
6417
          lt_globsym_save_CFLAGS=$CFLAGS
5719
6418
          LIBS="conftstm.$ac_objext"
5720
6419
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5721
6420
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5725
6424
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5726
6425
            pipe_works=yes
5727
6426
          fi
5728
 
          LIBS="$lt_save_LIBS"
5729
 
          CFLAGS="$lt_save_CFLAGS"
 
6427
          LIBS=$lt_globsym_save_LIBS
 
6428
          CFLAGS=$lt_globsym_save_CFLAGS
5730
6429
        else
5731
6430
          echo "cannot find nm_test_func in $nlist" >&5
5732
6431
        fi
5763
6462
$as_echo "ok" >&6; }
5764
6463
fi
5765
6464
 
5766
 
 
5767
 
 
5768
 
 
5769
 
 
5770
 
 
5771
 
 
5772
 
 
5773
 
 
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
 
5779
 
 
5780
 
 
5781
 
 
5782
 
 
 
6465
# Response file support.
 
6466
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6467
  nm_file_list_spec='@'
 
6468
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6469
  nm_file_list_spec='@'
 
6470
fi
 
6471
 
 
6472
 
 
6473
 
 
6474
 
 
6475
 
 
6476
 
 
6477
 
 
6478
 
 
6479
 
 
6480
 
 
6481
 
 
6482
 
 
6483
 
 
6484
 
 
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
 
 
6496
 
 
6497
 
 
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6499
$as_echo_n "checking for sysroot... " >&6; }
 
6500
 
 
6501
# Check whether --with-sysroot was given.
 
6502
if test "${with_sysroot+set}" = set; then :
 
6503
  withval=$with_sysroot;
 
6504
else
 
6505
  with_sysroot=no
 
6506
fi
 
6507
 
 
6508
 
 
6509
lt_sysroot=
 
6510
case ${with_sysroot} in #(
 
6511
 yes)
 
6512
   if test "$GCC" = yes; then
 
6513
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6514
   fi
 
6515
   ;; #(
 
6516
 /*)
 
6517
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6518
   ;; #(
 
6519
 no|'')
 
6520
   ;; #(
 
6521
 *)
 
6522
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6523
$as_echo "${with_sysroot}" >&6; }
 
6524
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6525
   ;;
 
6526
esac
 
6527
 
 
6528
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6529
$as_echo "${lt_sysroot:-no}" >&6; }
5783
6530
 
5784
6531
 
5785
6532
 
5816
6563
  ;;
5817
6564
*-*-irix6*)
5818
6565
  # Find out which ABI we are using.
5819
 
  echo '#line 5819 "configure"' > conftest.$ac_ext
 
6566
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5820
6567
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5821
6568
  (eval $ac_compile) 2>&5
5822
6569
  ac_status=$?
5910
6657
  CFLAGS="$CFLAGS -belf"
5911
6658
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5912
6659
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5913
 
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6660
if ${lt_cv_cc_needs_belf+:} false; then :
5914
6661
  $as_echo_n "(cached) " >&6
5915
6662
else
5916
6663
  ac_ext=c
5951
6698
    CFLAGS="$SAVE_CFLAGS"
5952
6699
  fi
5953
6700
  ;;
5954
 
sparc*-*solaris*)
 
6701
*-*solaris*)
5955
6702
  # Find out which ABI we are using.
5956
6703
  echo 'int i;' > conftest.$ac_ext
5957
6704
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962
6709
    case `/usr/bin/file conftest.o` in
5963
6710
    *64-bit*)
5964
6711
      case $lt_cv_prog_gnu_ld in
5965
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6712
      yes*)
 
6713
        case $host in
 
6714
        i?86-*-solaris*)
 
6715
          LD="${LD-ld} -m elf_x86_64"
 
6716
          ;;
 
6717
        sparc*-*-solaris*)
 
6718
          LD="${LD-ld} -m elf64_sparc"
 
6719
          ;;
 
6720
        esac
 
6721
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6722
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6723
          LD="${LD-ld}_sol2"
 
6724
        fi
 
6725
        ;;
5966
6726
      *)
5967
6727
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5968
6728
          LD="${LD-ld} -64"
5978
6738
 
5979
6739
need_locks="$enable_libtool_lock"
5980
6740
 
 
6741
if test -n "$ac_tool_prefix"; then
 
6742
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6743
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6745
$as_echo_n "checking for $ac_word... " >&6; }
 
6746
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6747
  $as_echo_n "(cached) " >&6
 
6748
else
 
6749
  if test -n "$MANIFEST_TOOL"; then
 
6750
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6751
else
 
6752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6753
for as_dir in $PATH
 
6754
do
 
6755
  IFS=$as_save_IFS
 
6756
  test -z "$as_dir" && as_dir=.
 
6757
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6758
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6759
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6760
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6761
    break 2
 
6762
  fi
 
6763
done
 
6764
  done
 
6765
IFS=$as_save_IFS
 
6766
 
 
6767
fi
 
6768
fi
 
6769
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6770
if test -n "$MANIFEST_TOOL"; then
 
6771
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6772
$as_echo "$MANIFEST_TOOL" >&6; }
 
6773
else
 
6774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6775
$as_echo "no" >&6; }
 
6776
fi
 
6777
 
 
6778
 
 
6779
fi
 
6780
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6781
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6782
  # Extract the first word of "mt", so it can be a program name with args.
 
6783
set dummy mt; ac_word=$2
 
6784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6785
$as_echo_n "checking for $ac_word... " >&6; }
 
6786
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6787
  $as_echo_n "(cached) " >&6
 
6788
else
 
6789
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6790
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6791
else
 
6792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6793
for as_dir in $PATH
 
6794
do
 
6795
  IFS=$as_save_IFS
 
6796
  test -z "$as_dir" && as_dir=.
 
6797
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6798
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6799
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6800
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6801
    break 2
 
6802
  fi
 
6803
done
 
6804
  done
 
6805
IFS=$as_save_IFS
 
6806
 
 
6807
fi
 
6808
fi
 
6809
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6810
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6812
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6813
else
 
6814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6815
$as_echo "no" >&6; }
 
6816
fi
 
6817
 
 
6818
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6819
    MANIFEST_TOOL=":"
 
6820
  else
 
6821
    case $cross_compiling:$ac_tool_warned in
 
6822
yes:)
 
6823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6824
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6825
ac_tool_warned=yes ;;
 
6826
esac
 
6827
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6828
  fi
 
6829
else
 
6830
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6831
fi
 
6832
 
 
6833
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6835
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6836
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6837
  $as_echo_n "(cached) " >&6
 
6838
else
 
6839
  lt_cv_path_mainfest_tool=no
 
6840
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6841
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6842
  cat conftest.err >&5
 
6843
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6844
    lt_cv_path_mainfest_tool=yes
 
6845
  fi
 
6846
  rm -f conftest*
 
6847
fi
 
6848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6849
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6850
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6851
  MANIFEST_TOOL=:
 
6852
fi
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
5981
6858
 
5982
6859
  case $host_os in
5983
6860
    rhapsody* | darwin*)
5986
6863
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5987
6864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988
6865
$as_echo_n "checking for $ac_word... " >&6; }
5989
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6866
if ${ac_cv_prog_DSYMUTIL+:} false; then :
5990
6867
  $as_echo_n "(cached) " >&6
5991
6868
else
5992
6869
  if test -n "$DSYMUTIL"; then
6026
6903
set dummy dsymutil; ac_word=$2
6027
6904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028
6905
$as_echo_n "checking for $ac_word... " >&6; }
6029
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6906
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6030
6907
  $as_echo_n "(cached) " >&6
6031
6908
else
6032
6909
  if test -n "$ac_ct_DSYMUTIL"; then
6078
6955
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6079
6956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080
6957
$as_echo_n "checking for $ac_word... " >&6; }
6081
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6958
if ${ac_cv_prog_NMEDIT+:} false; then :
6082
6959
  $as_echo_n "(cached) " >&6
6083
6960
else
6084
6961
  if test -n "$NMEDIT"; then
6118
6995
set dummy nmedit; ac_word=$2
6119
6996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120
6997
$as_echo_n "checking for $ac_word... " >&6; }
6121
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6998
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6122
6999
  $as_echo_n "(cached) " >&6
6123
7000
else
6124
7001
  if test -n "$ac_ct_NMEDIT"; then
6170
7047
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6171
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172
7049
$as_echo_n "checking for $ac_word... " >&6; }
6173
 
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
7050
if ${ac_cv_prog_LIPO+:} false; then :
6174
7051
  $as_echo_n "(cached) " >&6
6175
7052
else
6176
7053
  if test -n "$LIPO"; then
6210
7087
set dummy lipo; ac_word=$2
6211
7088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212
7089
$as_echo_n "checking for $ac_word... " >&6; }
6213
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
7090
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6214
7091
  $as_echo_n "(cached) " >&6
6215
7092
else
6216
7093
  if test -n "$ac_ct_LIPO"; then
6262
7139
set dummy ${ac_tool_prefix}otool; ac_word=$2
6263
7140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264
7141
$as_echo_n "checking for $ac_word... " >&6; }
6265
 
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
7142
if ${ac_cv_prog_OTOOL+:} false; then :
6266
7143
  $as_echo_n "(cached) " >&6
6267
7144
else
6268
7145
  if test -n "$OTOOL"; then
6302
7179
set dummy otool; ac_word=$2
6303
7180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304
7181
$as_echo_n "checking for $ac_word... " >&6; }
6305
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
7182
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6306
7183
  $as_echo_n "(cached) " >&6
6307
7184
else
6308
7185
  if test -n "$ac_ct_OTOOL"; then
6354
7231
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6355
7232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356
7233
$as_echo_n "checking for $ac_word... " >&6; }
6357
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
7234
if ${ac_cv_prog_OTOOL64+:} false; then :
6358
7235
  $as_echo_n "(cached) " >&6
6359
7236
else
6360
7237
  if test -n "$OTOOL64"; then
6394
7271
set dummy otool64; ac_word=$2
6395
7272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396
7273
$as_echo_n "checking for $ac_word... " >&6; }
6397
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
7274
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6398
7275
  $as_echo_n "(cached) " >&6
6399
7276
else
6400
7277
  if test -n "$ac_ct_OTOOL64"; then
6469
7346
 
6470
7347
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6471
7348
$as_echo_n "checking for -single_module linker flag... " >&6; }
6472
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
7349
if ${lt_cv_apple_cc_single_mod+:} false; then :
6473
7350
  $as_echo_n "(cached) " >&6
6474
7351
else
6475
7352
  lt_cv_apple_cc_single_mod=no
6485
7362
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6486
7363
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6487
7364
        _lt_result=$?
6488
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7365
        # If there is a non-empty error log, and "single_module"
 
7366
        # appears in it, assume the flag caused a linker warning
 
7367
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7368
          cat conftest.err >&5
 
7369
        # Otherwise, if the output was created with a 0 exit code from
 
7370
        # the compiler, it worked.
 
7371
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6489
7372
          lt_cv_apple_cc_single_mod=yes
6490
7373
        else
6491
7374
          cat conftest.err >&5
6496
7379
fi
6497
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6498
7381
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7382
 
6499
7383
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6500
7384
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6501
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
7385
if ${lt_cv_ld_exported_symbols_list+:} false; then :
6502
7386
  $as_echo_n "(cached) " >&6
6503
7387
else
6504
7388
  lt_cv_ld_exported_symbols_list=no
6528
7412
fi
6529
7413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6530
7414
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7415
 
 
7416
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7417
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7418
if ${lt_cv_ld_force_load+:} false; then :
 
7419
  $as_echo_n "(cached) " >&6
 
7420
else
 
7421
  lt_cv_ld_force_load=no
 
7422
      cat > conftest.c << _LT_EOF
 
7423
int forced_loaded() { return 2;}
 
7424
_LT_EOF
 
7425
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7426
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7427
      echo "$AR cru libconftest.a conftest.o" >&5
 
7428
      $AR cru libconftest.a conftest.o 2>&5
 
7429
      echo "$RANLIB libconftest.a" >&5
 
7430
      $RANLIB libconftest.a 2>&5
 
7431
      cat > conftest.c << _LT_EOF
 
7432
int main() { return 0;}
 
7433
_LT_EOF
 
7434
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7435
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7436
      _lt_result=$?
 
7437
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7438
        cat conftest.err >&5
 
7439
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7440
        lt_cv_ld_force_load=yes
 
7441
      else
 
7442
        cat conftest.err >&5
 
7443
      fi
 
7444
        rm -f conftest.err libconftest.a conftest conftest.c
 
7445
        rm -rf conftest.dSYM
 
7446
 
 
7447
fi
 
7448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7449
$as_echo "$lt_cv_ld_force_load" >&6; }
6531
7450
    case $host_os in
6532
7451
    rhapsody* | darwin1.[012])
6533
7452
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6555
7474
    else
6556
7475
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6557
7476
    fi
6558
 
    if test "$DSYMUTIL" != ":"; then
 
7477
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6559
7478
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6560
7479
    else
6561
7480
      _lt_dsymutil=
6575
7494
  CPP=
6576
7495
fi
6577
7496
if test -z "$CPP"; then
6578
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
7497
  if ${ac_cv_prog_CPP+:} false; then :
6579
7498
  $as_echo_n "(cached) " >&6
6580
7499
else
6581
7500
      # Double quotes because CPP needs to be expanded
6605
7524
  # Broken: fails on valid input.
6606
7525
continue
6607
7526
fi
6608
 
rm -f conftest.err conftest.$ac_ext
 
7527
rm -f conftest.err conftest.i conftest.$ac_ext
6609
7528
 
6610
7529
  # OK, works on sane cases.  Now check whether nonexistent headers
6611
7530
  # can be detected and how.
6621
7540
ac_preproc_ok=:
6622
7541
break
6623
7542
fi
6624
 
rm -f conftest.err conftest.$ac_ext
 
7543
rm -f conftest.err conftest.i conftest.$ac_ext
6625
7544
 
6626
7545
done
6627
7546
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6628
 
rm -f conftest.err conftest.$ac_ext
 
7547
rm -f conftest.i conftest.err conftest.$ac_ext
6629
7548
if $ac_preproc_ok; then :
6630
7549
  break
6631
7550
fi
6664
7583
  # Broken: fails on valid input.
6665
7584
continue
6666
7585
fi
6667
 
rm -f conftest.err conftest.$ac_ext
 
7586
rm -f conftest.err conftest.i conftest.$ac_ext
6668
7587
 
6669
7588
  # OK, works on sane cases.  Now check whether nonexistent headers
6670
7589
  # can be detected and how.
6680
7599
ac_preproc_ok=:
6681
7600
break
6682
7601
fi
6683
 
rm -f conftest.err conftest.$ac_ext
 
7602
rm -f conftest.err conftest.i conftest.$ac_ext
6684
7603
 
6685
7604
done
6686
7605
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6687
 
rm -f conftest.err conftest.$ac_ext
 
7606
rm -f conftest.i conftest.err conftest.$ac_ext
6688
7607
if $ac_preproc_ok; then :
6689
7608
 
6690
7609
else
6691
7610
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6692
7611
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6693
 
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6694
 
See \`config.log' for more details." "$LINENO" 5; }
 
7612
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7613
See \`config.log' for more details" "$LINENO" 5; }
6695
7614
fi
6696
7615
 
6697
7616
ac_ext=c
6703
7622
 
6704
7623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6705
7624
$as_echo_n "checking for ANSI C header files... " >&6; }
6706
 
if test "${ac_cv_header_stdc+set}" = set; then :
 
7625
if ${ac_cv_header_stdc+:} false; then :
6707
7626
  $as_echo_n "(cached) " >&6
6708
7627
else
6709
7628
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820
7739
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6821
7740
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6822
7741
"
6823
 
eval as_val=\$$as_ac_Header
6824
 
   if test "x$as_val" = x""yes; then :
 
7742
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6825
7743
  cat >>confdefs.h <<_ACEOF
6826
7744
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6827
7745
_ACEOF
6835
7753
do :
6836
7754
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6837
7755
"
6838
 
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7756
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6839
7757
  cat >>confdefs.h <<_ACEOF
6840
7758
#define HAVE_DLFCN_H 1
6841
7759
_ACEOF
6846
7764
 
6847
7765
 
6848
7766
 
 
7767
 
 
7768
func_stripname_cnf ()
 
7769
{
 
7770
  case ${2} in
 
7771
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7772
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7773
  esac
 
7774
} # func_stripname_cnf
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
6849
7780
# Set options
6850
7781
 
6851
7782
 
6921
7852
 
6922
7853
# Check whether --with-pic was given.
6923
7854
if test "${with_pic+set}" = set; then :
6924
 
  withval=$with_pic; pic_mode="$withval"
 
7855
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7856
    case $withval in
 
7857
    yes|no) pic_mode=$withval ;;
 
7858
    *)
 
7859
      pic_mode=default
 
7860
      # Look at the argument we got.  We use all the common list separators.
 
7861
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7862
      for lt_pkg in $withval; do
 
7863
        IFS="$lt_save_ifs"
 
7864
        if test "X$lt_pkg" = "X$lt_p"; then
 
7865
          pic_mode=yes
 
7866
        fi
 
7867
      done
 
7868
      IFS="$lt_save_ifs"
 
7869
      ;;
 
7870
    esac
6925
7871
else
6926
7872
  pic_mode=default
6927
7873
fi
6998
7944
 
6999
7945
 
7000
7946
 
 
7947
 
 
7948
 
 
7949
 
 
7950
 
 
7951
 
7001
7952
test -z "$LN_S" && LN_S="ln -s"
7002
7953
 
7003
7954
 
7019
7970
 
7020
7971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7021
7972
$as_echo_n "checking for objdir... " >&6; }
7022
 
if test "${lt_cv_objdir+set}" = set; then :
 
7973
if ${lt_cv_objdir+:} false; then :
7023
7974
  $as_echo_n "(cached) " >&6
7024
7975
else
7025
7976
  rm -f .libs 2>/dev/null
7047
7998
 
7048
7999
 
7049
8000
 
7050
 
 
7051
 
 
7052
 
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
 
7060
 
 
7061
 
 
7062
 
 
7063
8001
case $host_os in
7064
8002
aix3*)
7065
8003
  # AIX sometimes has problems with the GCC collect2 program.  For some
7072
8010
  ;;
7073
8011
esac
7074
8012
 
7075
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7076
 
# metacharacters that are still active within double-quoted strings.
7077
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7078
 
 
7079
 
# Same as above, but do not quote variable references.
7080
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7081
 
 
7082
 
# Sed substitution to delay expansion of an escaped shell variable in a
7083
 
# double_quote_subst'ed string.
7084
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7085
 
 
7086
 
# Sed substitution to delay expansion of an escaped single quote.
7087
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7088
 
 
7089
 
# Sed substitution to avoid accidental globbing in evaled expressions
7090
 
no_glob_subst='s/\*/\\\*/g'
7091
 
 
7092
8013
# Global variables:
7093
8014
ofile=libtool
7094
8015
can_build_shared=yes
7117
8038
    *) break;;
7118
8039
  esac
7119
8040
done
7120
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8041
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7121
8042
 
7122
8043
 
7123
8044
# Only perform the check for file, if the check method requires it
7127
8048
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7128
8049
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7129
8050
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7130
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8051
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7131
8052
  $as_echo_n "(cached) " >&6
7132
8053
else
7133
8054
  case $MAGIC_CMD in
7193
8114
  if test -n "$ac_tool_prefix"; then
7194
8115
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7195
8116
$as_echo_n "checking for file... " >&6; }
7196
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8117
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7197
8118
  $as_echo_n "(cached) " >&6
7198
8119
else
7199
8120
  case $MAGIC_CMD in
7326
8247
lt_prog_compiler_no_builtin_flag=
7327
8248
 
7328
8249
if test "$GCC" = yes; then
7329
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8250
  case $cc_basename in
 
8251
  nvcc*)
 
8252
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8253
  *)
 
8254
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8255
  esac
7330
8256
 
7331
8257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7332
8258
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7333
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
8259
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7334
8260
  $as_echo_n "(cached) " >&6
7335
8261
else
7336
8262
  lt_cv_prog_compiler_rtti_exceptions=no
7346
8272
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7347
8273
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7348
8274
   -e 's:$: $lt_compiler_flag:'`
7349
 
   (eval echo "\"\$as_me:7349: $lt_compile\"" >&5)
 
8275
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7350
8276
   (eval "$lt_compile" 2>conftest.err)
7351
8277
   ac_status=$?
7352
8278
   cat conftest.err >&5
7353
 
   echo "$as_me:7353: \$? = $ac_status" >&5
 
8279
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354
8280
   if (exit $ac_status) && test -s "$ac_outfile"; then
7355
8281
     # The compiler can only warn and ignore the option if not recognized
7356
8282
     # So say no if there are warnings other than the usual output.
7357
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8283
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7358
8284
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7359
8285
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7360
8286
       lt_cv_prog_compiler_rtti_exceptions=yes
7383
8309
lt_prog_compiler_pic=
7384
8310
lt_prog_compiler_static=
7385
8311
 
7386
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7387
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7388
8312
 
7389
8313
  if test "$GCC" = yes; then
7390
8314
    lt_prog_compiler_wl='-Wl,'
7432
8356
      lt_prog_compiler_pic='-fno-common'
7433
8357
      ;;
7434
8358
 
 
8359
    haiku*)
 
8360
      # PIC is the default for Haiku.
 
8361
      # The "-static" flag exists, but is broken.
 
8362
      lt_prog_compiler_static=
 
8363
      ;;
 
8364
 
7435
8365
    hpux*)
7436
8366
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7437
8367
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7474
8404
      lt_prog_compiler_pic='-fPIC'
7475
8405
      ;;
7476
8406
    esac
 
8407
 
 
8408
    case $cc_basename in
 
8409
    nvcc*) # Cuda Compiler Driver 2.2
 
8410
      lt_prog_compiler_wl='-Xlinker '
 
8411
      if test -n "$lt_prog_compiler_pic"; then
 
8412
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8413
      fi
 
8414
      ;;
 
8415
    esac
7477
8416
  else
7478
8417
    # PORTME Check for flag to pass linker flags through the system compiler.
7479
8418
    case $host_os in
7515
8454
      lt_prog_compiler_static='-non_shared'
7516
8455
      ;;
7517
8456
 
7518
 
    linux* | k*bsd*-gnu)
 
8457
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7519
8458
      case $cc_basename in
7520
8459
      # old Intel for x86_64 which still supported -KPIC.
7521
8460
      ecc*)
7536
8475
        lt_prog_compiler_pic='--shared'
7537
8476
        lt_prog_compiler_static='--static'
7538
8477
        ;;
7539
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8478
      nagfor*)
 
8479
        # NAG Fortran compiler
 
8480
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8481
        lt_prog_compiler_pic='-PIC'
 
8482
        lt_prog_compiler_static='-Bstatic'
 
8483
        ;;
 
8484
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7540
8485
        # Portland Group compilers (*not* the Pentium gcc compiler,
7541
8486
        # which looks to be a dead project)
7542
8487
        lt_prog_compiler_wl='-Wl,'
7548
8493
        # All Alpha code is PIC.
7549
8494
        lt_prog_compiler_static='-non_shared'
7550
8495
        ;;
7551
 
      xl*)
7552
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8496
      xl* | bgxl* | bgf* | mpixl*)
 
8497
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7553
8498
        lt_prog_compiler_wl='-Wl,'
7554
8499
        lt_prog_compiler_pic='-qpic'
7555
8500
        lt_prog_compiler_static='-qstaticlink'
7556
8501
        ;;
7557
8502
      *)
7558
8503
        case `$CC -V 2>&1 | sed 5q` in
 
8504
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8505
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8506
          lt_prog_compiler_pic='-KPIC'
 
8507
          lt_prog_compiler_static='-Bstatic'
 
8508
          lt_prog_compiler_wl=''
 
8509
          ;;
 
8510
        *Sun\ F* | *Sun*Fortran*)
 
8511
          lt_prog_compiler_pic='-KPIC'
 
8512
          lt_prog_compiler_static='-Bstatic'
 
8513
          lt_prog_compiler_wl='-Qoption ld '
 
8514
          ;;
7559
8515
        *Sun\ C*)
7560
8516
          # Sun C 5.9
7561
8517
          lt_prog_compiler_pic='-KPIC'
7562
8518
          lt_prog_compiler_static='-Bstatic'
7563
8519
          lt_prog_compiler_wl='-Wl,'
7564
8520
          ;;
7565
 
        *Sun\ F*)
7566
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7567
 
          lt_prog_compiler_pic='-KPIC'
 
8521
        *Intel*\ [CF]*Compiler*)
 
8522
          lt_prog_compiler_wl='-Wl,'
 
8523
          lt_prog_compiler_pic='-fPIC'
 
8524
          lt_prog_compiler_static='-static'
 
8525
          ;;
 
8526
        *Portland\ Group*)
 
8527
          lt_prog_compiler_wl='-Wl,'
 
8528
          lt_prog_compiler_pic='-fpic'
7568
8529
          lt_prog_compiler_static='-Bstatic'
7569
 
          lt_prog_compiler_wl=''
7570
8530
          ;;
7571
8531
        esac
7572
8532
        ;;
7598
8558
      lt_prog_compiler_pic='-KPIC'
7599
8559
      lt_prog_compiler_static='-Bstatic'
7600
8560
      case $cc_basename in
7601
 
      f77* | f90* | f95*)
 
8561
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7602
8562
        lt_prog_compiler_wl='-Qoption ld ';;
7603
8563
      *)
7604
8564
        lt_prog_compiler_wl='-Wl,';;
7655
8615
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7656
8616
    ;;
7657
8617
esac
7658
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7659
 
$as_echo "$lt_prog_compiler_pic" >&6; }
7660
 
 
7661
 
 
7662
 
 
7663
 
 
7664
 
 
 
8618
 
 
8619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8620
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8621
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8622
  $as_echo_n "(cached) " >&6
 
8623
else
 
8624
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8625
fi
 
8626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8627
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8628
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7665
8629
 
7666
8630
#
7667
8631
# Check to make sure the PIC flag actually works.
7669
8633
if test -n "$lt_prog_compiler_pic"; then
7670
8634
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7671
8635
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7672
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8636
if ${lt_cv_prog_compiler_pic_works+:} false; then :
7673
8637
  $as_echo_n "(cached) " >&6
7674
8638
else
7675
8639
  lt_cv_prog_compiler_pic_works=no
7685
8649
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686
8650
  &n