Lines 364-378
Link Here
|
364 |
dnl $2 = default for $LIBS |
364 |
dnl $2 = default for $LIBS |
365 |
AC_DEFUN([CF_BUILD_CC],[ |
365 |
AC_DEFUN([CF_BUILD_CC],[ |
366 |
AC_REQUIRE([CF_PROG_EXT]) |
366 |
AC_REQUIRE([CF_PROG_EXT]) |
367 |
if test "$cross_compiling" = yes ; then |
|
|
368 |
|
367 |
|
369 |
# defaults that we might want to override |
368 |
: ${BUILD_CC:='${CC}'} |
370 |
: ${BUILD_CFLAGS:=''} |
369 |
: ${BUILD_CPP:='${CPP}'} |
371 |
: ${BUILD_CPPFLAGS:='ifelse([$1],,,[$1])'} |
370 |
: ${BUILD_CFLAGS:='${CFLAGS}'} |
372 |
: ${BUILD_LDFLAGS:=''} |
371 |
: ${BUILD_CPPFLAGS:='${CPPFLAGS}'} |
373 |
: ${BUILD_LIBS:='ifelse([$2],,,[$2])'} |
372 |
: ${BUILD_LDFLAGS:='${LDFLAGS}'} |
374 |
: ${BUILD_EXEEXT:='$x'} |
373 |
: ${BUILD_LIBS:='${LIBS}'} |
375 |
: ${BUILD_OBJEXT:='o'} |
374 |
: ${BUILD_EXEEXT:='$x'} |
|
|
375 |
: ${BUILD_OBJEXT:='o'} |
376 |
|
377 |
if test "$cross_compiling" = yes ; then |
376 |
|
378 |
|
377 |
AC_ARG_WITH(build-cc, |
379 |
AC_ARG_WITH(build-cc, |
378 |
[ --with-build-cc=XXX the build C compiler ($BUILD_CC)], |
380 |
[ --with-build-cc=XXX the build C compiler ($BUILD_CC)], |
Lines 423-437
Link Here
|
423 |
Use --with-build-cc to specify the native compiler.]) |
425 |
Use --with-build-cc to specify the native compiler.]) |
424 |
fi |
426 |
fi |
425 |
|
427 |
|
426 |
else |
|
|
427 |
: ${BUILD_CC:='${CC}'} |
428 |
: ${BUILD_CPP:='${CPP}'} |
429 |
: ${BUILD_CFLAGS:='${CFLAGS}'} |
430 |
: ${BUILD_CPPFLAGS:='${CPPFLAGS}'} |
431 |
: ${BUILD_LDFLAGS:='${LDFLAGS}'} |
432 |
: ${BUILD_LIBS:='${LIBS}'} |
433 |
: ${BUILD_EXEEXT:='$x'} |
434 |
: ${BUILD_OBJEXT:='o'} |
435 |
fi |
428 |
fi |
436 |
|
429 |
|
437 |
AC_SUBST(BUILD_CC) |
430 |
AC_SUBST(BUILD_CC) |