This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Use HAVE_LONGLONG instead of __GNUC__ to check for long long support.


Manoj Iyer <manjo@austin.ibm.com> wrote:


Daniel,


Used autoheader to generate the config.in file, but it does not look
pretty, also, removed the comments that you did not like.

2005-04-18  Manoj Iyer  <manjo@austin.ibm.com>
        * configure.ac: Added check for long long.
        * config.in: Regenerated.
        * configure: Regenerated.
        * words.h: Modified logic to check for HAVE_LONGLONG instead of
        __GNUC__, added config.h header file.

Please use AC_CHECK_TYPES, it should take care of defining HAVE_LONG_LONG (note the extra underscore) and the comment all by itself.

--- src/sim/ppc/configure.ac	2005-01-12 10:23:21.000000000 -0600
+++ new/src/sim/ppc/configure.ac	2005-04-18 18:34:10.000000000 -0500
@@ -681,6 +681,9 @@ if test $ac_cv_struct_statfs = yes; then
 	    [Define if struct statfs is defined in <sys/mount.h>])
 fi

+AC_CHECK_TYPE(long long,
+   AC_DEFINE(HAVE_LONGLONG, 1, [Define if compiler supports long long.]),)
+
 dnl Figure out if /dev/zero exists or not
 sim_devzero=""
 AC_MSG_CHECKING(for /dev/zero)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]