Commit be1ae708 authored by Mihai Moldovan's avatar Mihai Moldovan

m4/nx-macros.m4: add NX_TARGET_USE_ELF macro, setting TARGET_ELF automake…

m4/nx-macros.m4: add NX_TARGET_USE_ELF macro, setting TARGET_ELF automake conditional if target compiler is generating ELF binaries.
parent 7af47b58
......@@ -407,6 +407,23 @@ FreeBSD=
test "$nxconf_cv_freebsd" = yes && FreeBSD=yes
]) # NX_BUILD_ON_FreeBSD
# Check to see if we're generating binaries in ELF format.
AC_DEFUN([NX_TARGET_USE_ELF],
[AC_CACHE_CHECK([if target system is ELF-based], [nxconf_cv_targetelf],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[
#ifndef __ELF__
#error not an ELF-based system
error!
#endif
]],
[[
]])],
[nxconf_cv_targetelf=yes], [nxconf_cv_targetelf=no])])
AM_CONDITIONAL([TARGET_ELF], [test x"$nxconf_cv_targetelf" = "xyes"])
]) # NX_TARGET_USE_ELF
AC_DEFUN([LIBJPEG_FALLBACK_CHECK],[
AC_MSG_CHECKING([for libjpeg shared libary file and headers])
AC_CHECK_LIB([jpeg], [jpeg_destroy_compress],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment