configure 759 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4001
4002
4003
4004
4005

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
4006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4008
else
4009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4011
4012
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4013

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4014
4015
4016
4017
4018
fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
4019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020
$as_echo_n "checking for $ac_word... " >&6; }
4021
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4022
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4023
4024
4025
4026
4027
4028
4029
4030
4031
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4032
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4033
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4034
    ac_cv_prog_ac_ct_CC="gcc"
4035
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4036
4037
4038
    break 2
  fi
done
4039
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4040
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4041
4042
4043
4044
4045

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
4046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4047
$as_echo "$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4048
else
4049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4051
4052
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4053
4054
4055
4056
4057
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
4058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4059
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4060
4061
4062
4063
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4064
4065
4066
4067
4068
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4069
4070
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4071
set dummy ${ac_tool_prefix}cc; ac_word=$2
4072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073
$as_echo_n "checking for $ac_word... " >&6; }
4074
if ${ac_cv_prog_CC+:} false; then :
4075
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4076
4077
4078
4079
4080
4081
4082
4083
4084
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4085
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4086
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4087
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4088
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4089
4090
4091
    break 2
  fi
done
4092
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4093
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4094
4095
4096
4097
4098

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
4099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4101
else
4102
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4104
4105
4106
fi


Emmanuel Bertin's avatar
Emmanuel Bertin committed
4107
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4108
4109
4110
4111
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
4112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113
$as_echo_n "checking for $ac_word... " >&6; }
4114
if ${ac_cv_prog_CC+:} false; then :
4115
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4126
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4127
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4128
4129
4130
4131
4132
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
4133
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4134
4135
4136
    break 2
  fi
done
4137
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4138
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
4156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4158
else
4159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4161
4162
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4163

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4164
4165
4166
fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4167
  for ac_prog in cl.exe
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4168
4169
4170
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172
$as_echo_n "checking for $ac_word... " >&6; }
4173
if ${ac_cv_prog_CC+:} false; then :
4174
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4175
4176
4177
4178
4179
4180
4181
4182
4183
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4184
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4186
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4187
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4188
4189
4190
    break 2
  fi
done
4191
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4192
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4193
4194
4195
4196
4197

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
4198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4200
else
4201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4203
4204
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4205

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4206
4207
4208
4209
4210
    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4211
  for ac_prog in cl.exe
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4212
4213
4214
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
4215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216
$as_echo_n "checking for $ac_word... " >&6; }
4217
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4218
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4219
4220
4221
4222
4223
4224
4225
4226
4227
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4228
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4229
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4230
    ac_cv_prog_ac_ct_CC="$ac_prog"
4231
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4232
4233
4234
    break 2
  fi
done
4235
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4236
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4237
4238
4239
4240
4241

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
4242
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4243
$as_echo "$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4244
else
4245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4247
4248
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4249

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4250
4251
4252
  test -n "$ac_ct_CC" && break
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4253
4254
4255
4256
4257
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
4258
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4260
4261
4262
4263
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4264
4265
4266
4267
4268
fi

fi


4269
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271
4272
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4273
4274

# Provide some information about the compiler.
4275
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4276
4277
set X $ac_compile
ac_compiler=$2
4278
4279
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4280
4281
4282
4283
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
4284
4285
4286
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4287
  ac_status=$?
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4298

4299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4300
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4301
if ${ac_cv_c_compiler_gnu+:} false; then :
4302
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4303
else
4304
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
4318
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4319
4320
  ac_compiler_gnu=yes
else
4321
  ac_compiler_gnu=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4322
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4324
4325
4326
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
4327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4328
4329
4330
4331
4332
4333
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4334
4335
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
4336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4337
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4338
if ${ac_cv_prog_cc_g+:} false; then :
4339
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4340
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4341
4342
4343
4344
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
4345
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
4356
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4357
4358
  ac_cv_prog_cc_g=yes
else
4359
4360
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
4371
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4372

4373
4374
else
  ac_c_werror_flag=$ac_save_c_werror_flag
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4375
	 CFLAGS="-g"
4376
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
4387
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4388
4389
4390
4391
4392
4393
4394
4395
4396
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
4397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4398
$as_echo "$ac_cv_prog_cc_g" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4399
4400
4401
4402
4403
4404
4405
4406
4407
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4408
4409
4410
4411
4412
4413
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
4414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4415
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4416
if ${ac_cv_prog_cc_c89+:} false; then :
4417
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4418
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4419
  ac_cv_prog_cc_c89=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4420
ac_save_CC=$CC
4421
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  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
4449
   as 'x'.  The following induces an error, until -std is added to get
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4450
4451
   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
4452
   that's true only with -std.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4453
4454
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4455
4456
4457
4458
4459
/* 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
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
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
4474
4475
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4476
4477
do
  CC="$ac_save_CC $ac_arg"
4478
  if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4479
  ac_cv_prog_cc_c89=$ac_arg
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4480
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4481
4482
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4483
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4484
rm -f conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4485
4486
4487
CC=$ac_save_CC

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4488
4489
4490
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
4491
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4492
$as_echo "none needed" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4493
  xno)
4494
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4495
$as_echo "unsupported" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4496
  *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4497
    CC="$CC $ac_cv_prog_cc_c89"
4498
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4499
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4500
esac
4501
if test "x$ac_cv_prog_cc_c89" != xno; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4502

4503
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4504
4505
4506
4507
4508
4509
4510
4511
4512

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=

4513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4514
$as_echo_n "checking dependency style of $depcc... " >&6; }
4515
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4516
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
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
4578
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
       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
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4605
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4606
4607
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4608
 if
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
  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


4623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4624
$as_echo_n "checking for library containing strerror... " >&6; }
4625
if ${ac_cv_search_strerror+:} false; then :
4626
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4627
4628
else
  ac_func_search_save_LIBS=$LIBS
4629
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4630
4631
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4632
4633
4634
/* 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
4635
4636
4637
4638
4639
4640
4641
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4642
return strerror ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4643
4644
4645
4646
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4647
4648
4649
4650
4651
4652
4653
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
4654
  if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4655
4656
  ac_cv_search_strerror=$ac_res
fi
4657
4658
4659
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4660
  break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4661
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4662
done
4663
4664
if ${ac_cv_search_strerror+:} false; then :

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4665
4666
else
  ac_cv_search_strerror=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4667
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4668
rm conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4669
4670
LIBS=$ac_func_search_save_LIBS
fi
4671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4672
$as_echo "$ac_cv_search_strerror" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4673
ac_res=$ac_cv_search_strerror
4674
if test "$ac_res" != no; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4675
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4676
4677
4678

fi

4679
# Override automatic CFLAGS and LDFLAGS with those of user
4680
if test "$enable_auto_flags" = "yes"; then
4681
  CFLAGS=""
4682
  LDFLAGS=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4683
4684

  msg="for C compiler optimization flags"
4685
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4686
$as_echo_n "checking $msg... " >&6; }
4687
if ${prog_cc_optim_cv_flags+:} false; then :
4688
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4689
4690
4691
4692
4693
4694
4695
4696
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
4697
4698
4699
            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
4700
        prog_cc_optim_cv_flags="-O3 -axSSE3,SSE4.1,SSE4.2,AVX -no-prec-div -unroll"
4701
        prog_ld_optim_cv_flags="-static-intel"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4702
4703
4704
4705

            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
4706
        prog_cc_optim_cv_flags="-O3 -axSSE2,SSE3,SSE4.1,SSE4.2,AVX -no-prec-div -unroll"
4707
        prog_ld_optim_cv_flags="-static-intel"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4708
4709

            elif test "$GCC" = "yes"; then
4710
4711
        prog_cc_optim_cv_flags="-O3 -g -funroll-loops -fomit-frame-pointer -Wall"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4712
4713
4714
4715

            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
4716
4717
        prog_cc_optim_cv_flags="-O"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4718
4719
4720
4721
4722

            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
4723
4724
        prog_cc_optim_cv_flags="-fast -tune host"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4725
4726
4727
4728

            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
4729
4730
        prog_cc_optim_cv_flags="-O2"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4731
4732
4733
4734

            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
4735
4736
        prog_cc_optim_cv_flags="-O3"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4737
4738
4739
4740

            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
4741
4742
        prog_cc_optim_cv_flags="+O3"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4743
4744
4745
4746

            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
4747
4748
        prog_cc_optim_cv_flags="-O"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4749
4750
4751
4752

            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
4753
4754
        prog_cc_optim_cv_flags="-O3"
        prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4755
4756
4757
4758

      fi
      rm -f conftest.*
    fi
4759
4760
4761
    if test -n "$prog_cc_optim_cv_flags"; then
      AM_CFLAGS="$CFLAGS $prog_cc_optim_cv_flags"
      AM_LDFLAGS="$LDFLAGS $prog_ld_optim_cv_flags"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4762
    else
4763
4764
      prog_cc_optim_cv_flags=""
      prog_ld_optim_cv_flags=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4765
4766
4767
    fi

fi
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $prog_cc_optim_cv_flags" >&5
4769
$as_echo "$prog_cc_optim_cv_flags" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4770

4771
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4772
# Check whether --enable-shared was given.
4773
if test "${enable_shared+set}" = set; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4774
  enableval=$enable_shared; p=${PACKAGE-default}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4775
    case $enableval in
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4776
4777
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4778
    *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4779
      enable_shared=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4780
4781
4782
4783
4784
      # 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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4785
	  enable_shared=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4786
4787
4788
4789
4790
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4791
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4792
  enable_shared=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4793
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4794
4795


Emmanuel Bertin's avatar
Emmanuel Bertin committed
4796
# Check whether --enable-static was given.
4797
if test "${enable_static+set}" = set; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4798
  enableval=$enable_static; p=${PACKAGE-default}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4799
    case $enableval in
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4800
4801
    yes) enable_static=yes ;;
    no) enable_static=no ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4802
    *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4803
     enable_static=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4804
4805
4806
4807
4808
      # 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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4809
	  enable_static=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4810
4811
4812
4813
4814
4815
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4816
  enable_static=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4817
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4818
4819
4820


# Check whether --enable-fast-install was given.
4821
if test "${enable_fast_install+set}" = set; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
  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
4839
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4840
  enable_fast_install=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4841
4842
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4843
4844
4845

# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4846
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4847

4848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849
$as_echo_n "checking build system type... " >&6; }
4850
if ${ac_cv_build+:} false; then :
4851
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4852
4853
4854
4855
4856
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 &&
4857
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4858
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4859
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4860

Emmanuel Bertin's avatar
Emmanuel Bertin committed
4861
fi
4862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4863
$as_echo "$ac_cv_build" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4864
4865
case $ac_cv_build in
*-*-*) ;;
4866
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
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


4882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4883
$as_echo_n "checking host system type... " >&6; }
4884
if ${ac_cv_host+:} false; then :
4885
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4886
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4887
4888
4889
4890
  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` ||
4891
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4892
4893
4894
fi

fi
4895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4896
$as_echo "$ac_cv_host" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4897
4898
case $ac_cv_host in
*-*-*) ;;
4899
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
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


4915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4916
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4917
if ${lt_cv_path_SED+:} false; then :
4918
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4919
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4920
4921
  # 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
4922
4923
4924
4925
4926
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
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
  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
4949
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
  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

4971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4972
$as_echo "$SED" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4973

4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4975
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4976
if ${ac_cv_path_GREP+:} false; then :
4977
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4978
else
4979
  if test -z "$GREP"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4980
  ac_path_GREP_found=false
4981
4982
  # 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
4983
4984
4985
4986
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4987
    for ac_prog in grep ggrep; do
4988
4989
4990
4991
    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
4992
4993
4994
4995
4996
4997
  # 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
4998
  $as_echo_n 0123456789 >"conftest.in"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4999
5000
  while :
  do
For faster browsing, not all history is shown. View entire blame