configure 913 KB
Newer Older
3001
3002
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3003
if test "${ac_cv_objext+set}" = set; then
3004
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3022
3023
3024
3025
3026
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3027
3028
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3029
  (eval "$ac_compile") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3030
  ac_status=$?
3031
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3032
  (exit $ac_status); }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3033
3034
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3035
  case $ac_file in
3036
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3037
3038
3039
3040
3041
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
3042
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3043
3044
sed 's/^/| /' conftest.$ac_ext >&5

3045
3046
3047
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3048
See \`config.log' for more details." >&5
3049
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3050
See \`config.log' for more details." >&2;}
3051
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3052
3053
3054
3055
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
3056
3057
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3058
3059
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
3060
3061
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3062
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3063
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3084
3085
3086
3087
3088
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3089
3090
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3091
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3092
3093
3094
3095
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
3096
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3097
3098
3099
3100
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3101
3102
  ac_compiler_gnu=yes
else
3103
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3104
3105
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3106
	ac_compiler_gnu=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3107
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3108
3109

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3110
3111
3112
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
3113
3114
3115
3116
3117
3118
3119
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$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
3120
3121
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
3122
3123
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3124
if test "${ac_cv_prog_cc_g+set}" = set; then
3125
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3126
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3127
3128
3129
3130
3131
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3147
3148
3149
3150
3151
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3152
3153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3154
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3155
3156
3157
3158
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
3159
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3160
3161
3162
3163
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3164
3165
  ac_cv_prog_cc_g=yes
else
3166
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3167
3168
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
	CFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3191
3192
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3193
3194
3195
3196
3197
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
3198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3199
3200
3201
3202
3203
3204
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
3205
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
sed 's/^/| /' conftest.$ac_ext >&5

	ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3231
3232
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3233
3234
3235
3236
3237
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
3238
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3239
3240
3241
3242
3243
3244
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
3245
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
sed 's/^/| /' conftest.$ac_ext >&5


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
3260
3261
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
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
  if test "$GCC" = yes; then
    CFLAGS="-O2"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3273
3274
3275
3276
  else
    CFLAGS=
  fi
fi
3277
3278
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3279
if test "${ac_cv_prog_cc_c89+set}" = set; then
3280
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3281
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3282
  ac_cv_prog_cc_c89=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* 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
3316
   as 'x'.  The following induces an error, until -std is added to get
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3317
3318
   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
3319
   that's true only with -std.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3320
3321
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3322
3323
3324
3325
3326
/* 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
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
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
3341
3342
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3343
3344
3345
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3346
3347
3348
3349
3350
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3351
3352
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3353
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3354
3355
3356
3357
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
3358
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3359
3360
3361
3362
3363
  (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
3364
else
3365
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3366
3367
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3368

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3369
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3370
3371
3372

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3373
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3374
rm -f conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3375
3376
3377
CC=$ac_save_CC

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3378
3379
3380
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
3381
3382
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3383
  xno)
3384
3385
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3386
  *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3387
    CC="$CC $ac_cv_prog_cc_c89"
3388
3389
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
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
DEPDIR="${am__leading_dot}deps"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3400
ac_config_commands="$ac_config_commands depfiles"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3401
3402
3403
3404
3405
3406
3407
3408
3409


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
3410
3411
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   am__include=include
   am__quote=
   _am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
      am__include=.include
      am__quote="\""
      _am_result=BSD
   fi
fi


3438
3439
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3440
3441
rm -f confinc confmf

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3442
# Check whether --enable-dependency-tracking was given.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3443
if test "${enable_dependency_tracking+set}" = set; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3444
3445
  enableval=$enable_dependency_tracking;
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3446
3447
3448
3449
3450

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3451
 if test "x$enable_dependency_tracking" != xno; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi



depcc="$CC"   am_compiler_list=

3463
3464
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3465
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3466
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
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
3528
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
       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
3554
3555
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3556
3557
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3558
 if
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
  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


Emmanuel Bertin's avatar
Emmanuel Bertin committed
3569
# C Compiler: Check that it is ANSI C and POSIX-compliant
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3570
3571
3572
3573
3574
3575
3576
3577
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
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3578
3579
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3580
if test "${ac_cv_prog_CC+set}" = set; then
3581
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
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=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3592
  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
3593
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3594
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3595
3596
3597
3598
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3599
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3600
3601
3602
3603
3604

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
3605
3606
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3607
else
3608
3609
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3610
3611
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3612

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3613
3614
3615
3616
3617
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
3618
3619
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3620
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3621
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
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=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3632
  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
3633
    ac_cv_prog_ac_ct_CC="gcc"
3634
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3635
3636
3637
3638
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3639
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3640
3641
3642
3643
3644

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
3645
3646
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3647
else
3648
3649
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3650
3651
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3652
3653
3654
3655
3656
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
3657
3658
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3659
3660
3661
3662
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3663
3664
3665
3666
3667
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3668
3669
          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
3670
set dummy ${ac_tool_prefix}cc; ac_word=$2
3671
3672
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3673
if test "${ac_cv_prog_CC+set}" = set; then
3674
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
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=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3685
  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
3686
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3687
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3688
3689
3690
3691
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3692
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3693
3694
3695
3696
3697

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
3698
3699
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3700
else
3701
3702
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3703
3704
3705
fi


Emmanuel Bertin's avatar
Emmanuel Bertin committed
3706
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3707
3708
3709
3710
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
3711
3712
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3713
if test "${ac_cv_prog_CC+set}" = set; then
3714
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
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=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3726
  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
3727
3728
3729
3730
3731
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
3732
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3733
3734
3735
3736
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3737
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754

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
3755
3756
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3757
else
3758
3759
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3760
3761
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3762

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3763
3764
3765
fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3766
  for ac_prog in cl.exe
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3767
3768
3769
  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
3770
3771
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3772
if test "${ac_cv_prog_CC+set}" = set; then
3773
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
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=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3784
  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
3785
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3786
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3787
3788
3789
3790
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3791
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3792
3793
3794
3795
3796

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
3797
3798
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3799
else
3800
3801
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3802
3803
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3804

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3805
3806
3807
3808
3809
    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3810
  for ac_prog in cl.exe
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3811
3812
3813
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
3814
3815
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3816
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3817
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
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=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3828
  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
3829
    ac_cv_prog_ac_ct_CC="$ac_prog"
3830
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3831
3832
3833
3834
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3835
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3836
3837
3838
3839
3840

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
3841
3842
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3843
else
3844
3845
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3846
3847
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3848

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3849
3850
3851
  test -n "$ac_ct_CC" && break
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3852
3853
3854
3855
3856
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
3857
3858
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3859
3860
3861
3862
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3863
3864
3865
3866
3867
fi

fi


3868
3869
3870
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3871
See \`config.log' for more details." >&5
3872
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3873
See \`config.log' for more details." >&2;}
3874
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3875
3876

# Provide some information about the compiler.
3877
3878
3879
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3880
3881
3882
3883
3884
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3885
3886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3887
  (eval "$ac_compiler --version >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3888
  ac_status=$?
3889
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3890
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3891
3892
3893
3894
3895
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3896
3897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3898
  (eval "$ac_compiler -v >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3899
  ac_status=$?
3900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3901
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3902
3903
3904
3905
3906
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3907
3908
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3909
  (eval "$ac_compiler -V >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3910
  ac_status=$?
3911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3912
3913
  (exit $ac_status); }

3914
3915
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3916
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3917
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3938
3939
3940
3941
3942
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3943
3944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3945
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3946
3947
3948
3949
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
3950
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3951
3952
3953
3954
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3955
3956
  ac_compiler_gnu=yes
else
3957
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3958
3959
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3960
	ac_compiler_gnu=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3961
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3962
3963

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3964
3965
3966
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
3967
3968
3969
3970
3971
3972
3973
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$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
3974
3975
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
3976
3977
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3978
if test "${ac_cv_prog_cc_g+set}" = set; then
3979
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3980
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3981
3982
3983
3984
3985
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
For faster browsing, not all history is shown. View entire blame