int64 configure test

Started by Bruce Momjianover 21 years ago2 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

I have found a problem with int64 detection on MinGW. MinGW defines
int64_t but not int64, but configure only looks for int64:

AC_CACHE_CHECK([whether $1 is 64 bits], [Ac_cachevar],
[AC_TRY_RUN(
[typedef $1 int64;

What is the proper test? int64 or int64_t?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#2Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#1)
Re: int64 configure test

Bruce Momjian wrote:

I have found a problem with int64 detection on MinGW. MinGW defines
int64_t but not int64, but configure only looks for int64:

AC_CACHE_CHECK([whether $1 is 64 bits], [Ac_cachevar],
[AC_TRY_RUN(
[typedef $1 int64;

What is the proper test? int64 or int64_t?

Sorry, wrong analysis. Something is still wrong with MinGW's detection
but this is not it. Let me continue testing.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073