diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-10-20 14:42:03 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-10-20 14:42:03 +0400 |
commit | bb1c3da3c12651f1c408d96dd6d33ae157bdadd6 (patch) | |
tree | 4a535b35500684ac6a928bf0fd661325b5a04697 /dwarfgen/configure.in | |
download | dwarfutils-upstream.tar.gz |
Imported Upstream version 20120410upstream/20120410upstream
Diffstat (limited to 'dwarfgen/configure.in')
-rw-r--r-- | dwarfgen/configure.in | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dwarfgen/configure.in b/dwarfgen/configure.in new file mode 100644 index 0000000..d7bb8cd --- /dev/null +++ b/dwarfgen/configure.in @@ -0,0 +1,41 @@ +dnl This is input to autoconf, producing a configure script. +AC_INIT(dwarfgen.cc) +AC_CONFIG_HEADER(config.h) + +AC_PROG_CC +AC_PROG_CXX +AC_C_BIGENDIAN +AC_GCC_TRADITIONAL +AC_PROG_INSTALL +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(AR, ar) + +AC_CHECK_HEADERS(elf.h getopt.h libelf.h sgidefs.h sys/types.h) + +dnl Attempt to determine if it is really IRIX/SGI or 'other'. +AC_TRY_COMPILE([#include <sgidefs.h>],[ __uint32_t p; p = 27;] , + AC_DEFINE(HAVE___UINT32_T_IN_SGIDEFS_H,1, + [Define 1 if __uint32_t is in sgidefs.h.])) +AC_TRY_COMPILE([#include <sgidefs.h>],[ __uint64_t p; p = 27;] , + AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, + [Define 1 if __uint64_t is in sgidefs.h.])) +AC_TRY_COMPILE([#include <sgidefs.h>],[ __uint64_t p; p = 27;] , + AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, + [Define 1 if is in sgidefs.h.])) +dnl the existence of sgidefs.h does not prove it's truly SGI, nor +dnl prove that __uint32_t or __uint64_t is defined therein. +AC_TRY_COMPILE([#include <sgidefs.h>],[ __uint32_t p; p = 27;] , + AC_DEFINE(HAVE___UINT32_T_IN_SGIDEFS_H,1, + [Define 1 if __uint32_t is in sgidefs.h.])) +AC_TRY_COMPILE([#include <stdint.h>],[intptr_t p; p = 27;] , + AC_DEFINE(HAVE_INTPTR_T,1, + [Define 1 if intptr_t defined in C99 stdint.h])) +AC_TRY_COMPILE([#include <sgidefs.h>],[ __uint64_t p; p = 27;] , + AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, + [Define 1 if __uint64_t is in sgidefs.h.])) +AC_TRY_COMPILE([#include <sgidefs.h>],[ __uint64_t p; p = 27;] , + AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, + [Define 1 if is in sgidefs.h.])) + + +AC_OUTPUT(Makefile) |