[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/26046] checking for files doesn't work while cross-compil
From: |
lucchesi.esteban at gmail dot com |
Subject: |
[Bug classpath/26046] checking for files doesn't work while cross-compiling |
Date: |
Fri, 15 Oct 2010 23:00:25 +0000 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26046
lucchesi.esteban at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lucchesi.esteban at gmail
| |dot com
--- Comment #2 from lucchesi.esteban at gmail dot com 2010-10-15 23:00:15 UTC
---
>From configure.ac:
if test "x$HAVE_QT4" = "xyes"; then
dnl Check needed because in some cases the QtGui includedir
dnl doesn't contain the subsystem dir.
QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
AC_CHECK_FILE([$QT_INCLUDE_DIR/QWidget],
AC_MSG_NOTICE([No extra QT_INCLUDE_DIR needed]),
AC_CHECK_FILE([$EXTRA_QT_INCLUDE_DIR/QWidget],
QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR",
AC_MSG_WARN([QWidget not found])))
AC_CHECK_PROG(MOC, [moc], [moc])
AC_CHECK_PROG(MOC, [moc-qt4], [moc-qt4])
fi
But from Autoconf:
Before using these macros, ask yourself whether a run-time test might not be a
better solution. Be aware that, like most Autoconf macros, they test a feature
of the host machine, and therefore, they die when cross-compiling.
Macro: AC_CHECK_FILE (file, [action-if-found], [action-if-not-found])
- [Bug classpath/26046] checking for files doesn't work while cross-compiling,
lucchesi.esteban at gmail dot com <=