diff options
author | Jörg Mayer <jmayer@loplof.de> | 2006-10-31 11:35:55 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2006-10-31 11:35:55 +0000 |
commit | 63f00dfdc77887e1d636fb844bbcdf8330481bb4 (patch) | |
tree | d7d81d6a964a0264a05b2754f6f54d5d245c5c39 /configure.in | |
parent | 0c689e7297d830aa84bac3439a7aa8fe4df48e51 (diff) |
Robert Schwebel:
Fix for http://bugs.wireshark.org/bugzilla/attachment.cgi?id=419&action=view
cross compilation fails
With the following change: Use only AC_CANONICAL_TARGET
From the autoconf manual:
The user is encouraged to use either `AC_CANONICAL_BUILD', or
`AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
needs. Using `AC_CANONICAL_TARGET' is enough to run the two other
macros.
svn path=/trunk/; revision=19753
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 961deeb78f..361a6b1c6a 100644 --- a/configure.in +++ b/configure.in @@ -5,7 +5,13 @@ AC_INIT(cfile.h) AC_PREREQ(2.52) dnl Check for CPU / vendor / OS -AC_CANONICAL_HOST +dnl The user is encouraged to use either `AC_CANONICAL_BUILD', or +dnl `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the +dnl needs. Using `AC_CANONICAL_TARGET' is enough to run the two other +dnl macros. + +dnl AC_CANONICAL_HOST +dnl AC_CANONICAL_BUILD AC_CANONICAL_TARGET AM_INIT_AUTOMAKE(wireshark, 0.99.4) @@ -58,6 +64,12 @@ AC_SUBST(PYTHON) AC_SUBST(XSLTPROC) AC_SUBST(XMLLINT) +if test "x$CC_FOR_BUILD" = x +then + CC_FOR_BUILD=$(CC) +fi +AC_SUBST(CC_FOR_BUILD) + # Check for doxygen AC_PATH_PROG(DOXYGEN, doxygen) AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, "yes", "no") |