configure 876 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4001
4002
4003
4004
4005
4006
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4007
   as 'x'.  The following induces an error, until -std is added to get
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4008
4009
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4010
   that's true only with -std.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4011
4012
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4013
4014
4015
4016
4017
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4032
4033
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4034
4035
4036
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4037
4038
4039
4040
4041
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
4042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4043
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4044
4045
4046
4047
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
4048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4049
4050
4051
4052
4053
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_c89=$ac_arg
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4054
else
4055
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4056
4057
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4058

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4059
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4060
4061
4062

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4063
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4064
rm -f conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4065
4066
4067
CC=$ac_save_CC

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4068
4069
4070
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
4071
4072
    { echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4073
  xno)
4074
4075
    { echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4076
  *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4077
    CC="$CC $ac_cv_prog_cc_c89"
4078
4079
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
esac


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

4091
4092
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4093
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4094
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    case $depmode in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
         >/dev/null 2>conftest.err &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4156
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
4182
4183
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4184
4185
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4186
 if
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi



am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc


4201
4202
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4203
if test "${ac_cv_search_strerror+set}" = set; then
4204
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4205
4206
4207
4208
4209
4210
4211
4212
4213
else
  ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4214
4215
4216
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4217
4218
4219
4220
4221
4222
4223
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4224
return strerror ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4225
4226
4227
4228
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
4242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4243
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4244
4245
4246
4247
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
4248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4249
4250
4251
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
4252
4253
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4254
  ac_cv_search_strerror=$ac_res
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4255
else
4256
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4257
4258
4259
sed 's/^/| /' conftest.$ac_ext >&5


Emmanuel Bertin's avatar
Emmanuel Bertin committed
4260
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4261

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4262
4263
4264
4265
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext
  if test "${ac_cv_search_strerror+set}" = set; then
  break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4266
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4267
4268
4269
4270
4271
done
if test "${ac_cv_search_strerror+set}" = set; then
  :
else
  ac_cv_search_strerror=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4272
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4273
rm conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4274
4275
LIBS=$ac_func_search_save_LIBS
fi
4276
4277
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4278
4279
4280
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4281
4282
4283
4284
4285

fi


  msg="for C compiler optimization flags"
4286
4287
  { echo "$as_me:$LINENO: checking $msg" >&5
echo $ECHO_N "checking $msg... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4288
if test "${prog_cc_optim_flags+set}" = set; then
4289
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4290
4291
4292
4293
4294
4295
4296
4297
else

    if test -n "$CC"; then
      cat > conftest.c <<EOF
int main(int argc, char **argv) { return 0; }
EOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
4298
4299
4300
            if $CC -V 2>&1 | grep -i "Intel(R) 64" > /dev/null 2>&1 &&
           $CC -c -O conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
4301
        prog_cc_optim_flags="-O3 -axSSE3,SSE4.1,SSE4.2 -ip -no-prec-div -unroll"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4302
4303
4304
4305
4306
        prog_ld_optim_flags="-static-intel"

            elif $CC -V 2>&1 | grep -i "Intel(R)" > /dev/null 2>&1 &&
           $CC -c -O conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
4307
        prog_cc_optim_flags="-O3 -axSSE2,SSE3,SSE4.1,SSE4.2 -ip -no-prec-div -unroll"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4308
4309
4310
4311
4312
        prog_ld_optim_flags="-static-intel"

            elif test "$GCC" = "yes"; then
        prog_cc_optim_flags="-O3 -g -funroll-loops -fomit-frame-pointer -Wall"
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4313
4314
4315
4316
4317

            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
           $CC -c -O conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
        prog_cc_optim_flags="-O"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4318
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4319
4320
4321
4322
4323

            elif ($CC -V 2>&1 | grep -i "Digital UNIX Compiler"> /dev/null 2>&1 ||
	   $CC -V 2>&1 | grep -i "Compaq C"> /dev/null 2>&1) &&
           $CC -c -fast conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4324
4325
        prog_cc_optim_flags="-fast -tune host"
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4326
4327
4328
4329
4330

            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
           $CC -c -qinfo=all -O2 conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
        prog_cc_optim_flags="-O2"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4331
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4332
4333
4334
4335
4336

            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
           $CC -c -fullwarn -O3 conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
        prog_cc_optim_flags="-O3"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4337
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4338
4339
4340
4341
4342

            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
           $CC -c -Aa +O3 conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
        prog_cc_optim_flags="+O3"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4343
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4344
4345
4346
4347
4348

            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
           $CC -c -Xc -O conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
        prog_cc_optim_flags="-O"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4349
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4350
4351
4352
4353
4354

            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
           $CC -c -h conform -O3 conftest.c > /dev/null 2>&1 &&
           test -f conftest.o; then
        prog_cc_optim_flags="-O3"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4355
        prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4356
4357
4358
4359
4360
4361

      fi
      rm -f conftest.*
    fi
    if test -n "$prog_cc_optim_flags"; then
      CFLAGS="$CFLAGS $prog_cc_optim_flags"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4362
      LDFLAGS="$LDFLAGS $prog_ld_optim_flags"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4363
    else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4364
4365
      prog_cc_optim_flags=""
      prog_ld_optim_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4366
4367
4368
    fi

fi
4369
4370
{ echo "$as_me:$LINENO: result: $prog_cc_optim_flags" >&5
echo "${ECHO_T}$prog_cc_optim_flags" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4371

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
# Check whether --enable-static was given.
if test "${enable_static+set}" = set; then
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4391
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4392
  enable_static=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4393
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418



#AC_DISABLE_SHARED
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4419
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440


# Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4441
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4442
  enable_fast_install=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4443
4444
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4445
4446
4447

# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4448
4449
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4450
4451
   { (exit 1); exit 1; }; }

4452
4453
{ echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4454
if test "${ac_cv_build+set}" = set; then
4455
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4456
4457
4458
4459
4460
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
4461
4462
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4463
4464
   { (exit 1); exit 1; }; }
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4465
4466
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4467
4468
   { (exit 1); exit 1; }; }

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4469
fi
4470
4471
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4472
4473
case $ac_cv_build in
*-*-*) ;;
4474
4475
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
echo "$as_me: error: invalid value of canonical build" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
   { (exit 1); exit 1; }; };;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


4492
4493
{ echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4494
if test "${ac_cv_host+set}" = set; then
4495
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4496
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4497
4498
4499
4500
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4501
4502
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4503
4504
4505
4506
   { (exit 1); exit 1; }; }
fi

fi
4507
4508
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4509
4510
case $ac_cv_host in
*-*-*) ;;
4511
4512
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
echo "$as_me: error: invalid value of canonical host" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
   { (exit 1); exit 1; }; };;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


4529
4530
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4531
if test "${lt_cv_path_SED+set}" = set; then
4532
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4533
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4534
4535
  # Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4536
4537
4538
4539
4540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
  for lt_ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
      fi
    done
  done
done
IFS=$as_save_IFS
lt_ac_max=0
lt_ac_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  test ! -f $lt_ac_sed && continue
  cat /dev/null > conftest.in
  lt_ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  # Check for GNU sed and select it if it is found.
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    lt_cv_path_SED=$lt_ac_sed
    break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4563
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
  while true; do
    cat conftest.in conftest.in >conftest.tmp
    mv conftest.tmp conftest.in
    cp conftest.in conftest.nl
    echo >>conftest.nl
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    cmp -s conftest.out conftest.nl || break
    # 10000 chars as input seems more than enough
    test $lt_ac_count -gt 10 && break
    lt_ac_count=`expr $lt_ac_count + 1`
    if test $lt_ac_count -gt $lt_ac_max; then
      lt_ac_max=$lt_ac_count
      lt_cv_path_SED=$lt_ac_sed
    fi
  done
done

fi

SED=$lt_cv_path_SED

4585
4586
{ echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4587

4588
4589
4590
4591
4592
4593
4594
4595
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then
set dummy grep ggrep; ac_prog_name=$2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4596
if test "${ac_cv_path_GREP+set}" = set; then
4597
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4598
4599
else
  ac_path_GREP_found=false
4600
4601
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4602
4603
4604
4605
4606
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
4607
4608
4609
4610
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    # Check for GNU ac_path_GREP and select it if it is found.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4611
4612
4613
4614
4615
4616
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
4617
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4618
4619
4620
4621
4622
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
4623
    echo 'GREP' >> "conftest.nl"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

4638
4639

    $ac_path_GREP_found && break 3
4640
4641
  done
done
4642
4643

done
4644
IFS=$as_save_IFS
4645
4646
4647
4648
4649
4650
4651
4652


fi

GREP="$ac_cv_path_GREP"
if test -z "$GREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4653
   { (exit 1); exit 1; }; }
4654
4655
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4656
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4657
  ac_cv_path_GREP=$GREP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4658
4659
fi

4660

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4661
fi
4662
4663
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4664
 GREP="$ac_cv_path_GREP"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4665

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4666

4667
4668
{ echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4669
if test "${ac_cv_path_EGREP+set}" = set; then
4670
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4671
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4672
4673
4674
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
4675
4676
4677
4678
4679
4680
     # Extract the first word of "egrep" to use in msg output
if test -z "$EGREP"; then
set dummy egrep; ac_prog_name=$2
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4681
  ac_path_EGREP_found=false
4682
4683
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4684
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4685
4686
4687
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4688
  for ac_prog in egrep; do
4689
4690
4691
4692
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4693
4694
4695
4696
4697
4698
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
4699
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4700
4701
4702
4703
4704
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
4705
    echo 'EGREP' >> "conftest.nl"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

4720
4721

    $ac_path_EGREP_found && break 3
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4722
4723
  done
done
4724
4725

done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4726
IFS=$as_save_IFS
4727
4728
4729
4730
4731
4732
4733
4734


fi

EGREP="$ac_cv_path_EGREP"
if test -z "$EGREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4735
   { (exit 1); exit 1; }; }
4736
4737
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4738
4739
4740
4741
else
  ac_cv_path_EGREP=$EGREP
fi

4742

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4743
4744
   fi
fi
4745
4746
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
 EGREP="$ac_cv_path_EGREP"



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
4761
4762
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4763
4764
4765
4766
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4767
  *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4778
      done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
4791
4792
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4793
else
4794
4795
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4796
4797
fi
if test "${lt_cv_path_LD+set}" = set; then
4798
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
4828
4829
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4830
else
4831
4832
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4833
fi
4834
4835
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4836
   { (exit 1); exit 1; }; }
4837
4838
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4839
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4840
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
4852
4853
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4854
4855
4856
with_gnu_ld=$lt_cv_prog_gnu_ld


4857
4858
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4859
if test "${lt_cv_ld_reload_flag+set}" = set; then
4860
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4861
4862
4863
else
  lt_cv_ld_reload_flag='-r'
fi
4864
4865
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac

4882
4883
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4884
if test "${lt_cv_path_NM+set}" = set; then
4885
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4925
    done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4926
4927
4928
4929
4930
    IFS="$lt_save_ifs"
  done
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
fi
4931
4932
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4933
4934
NM="$lt_cv_path_NM"

4935
4936
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4937
4938
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
4939
4940
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4941
else
4942
4943
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4944
4945
fi

4946
4947
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4948
if test "${lt_cv_deplibs_check_method+set}" = set; then
4949
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
4966
aix4* | aix5*)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  if ( file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
For faster browsing, not all history is shown. View entire blame