curlbuild.h.dist: enhance non-configure GCC ABI detection logic
authorYang Tse <yangsita@gmail.com>
Fri, 8 Mar 2013 17:43:03 +0000 (18:43 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 8 Mar 2013 17:43:03 +0000 (18:43 +0100)
commit21c1de430a83be7900096cd65f2ef680307eb0b5
tree9f4740c15f09c848d034ca0cfbb3601bfd37aabb
parentc5a08af5790e873146a1c34efaa02aa0a39b37eb
curlbuild.h.dist: enhance non-configure GCC ABI detection logic

GCC specific adjustments:

- check __ILP32__ before 32 and 64bit processor architectures in
  order to detect ILP32 programming model on 64 bit processors
  which, of course, also support LP64 programming model, when using
  gcc 4.7 or newer.

- keep 32bit processor architecture checks in order to support gcc
  versions older than 4.7 which don't define __ILP32__

- check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor
  architecture checks for older versions which don't define __LP64__
include/curl/curlbuild.h.dist