]> granicus.if.org Git - libatomic_ops/commit
Fix configure to define __PIC__ macro explicitly only if not done by GCC
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Mar 2012 04:07:31 +0000 (08:07 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Mar 2012 12:59:03 +0000 (16:59 +0400)
commite530f7a2abee2fd80a0672bbd71f91a52c244053
tree44af5f0d155050d879bd57a07fcf7792e23674aa
parent0e7d3a78cb86042ba3b1e4920adf7eae73e6b5b5
Fix configure to define __PIC__ macro explicitly only if not done by GCC
(Apply commit 058dd11 from 'master' branch)

* configure.ac (PICFLAG): Adjust AC_MSG_CHECKING message; report
"none" result if no -fPIC is needed (for Cygwin/MinGW); determine
whether GCC -fPIC option causes __PIC__ macro definition; pass
-D __PIC__ to PICFLAG (instead of CFLAGS) only if not defined
automatically in case -fPIC specified; update comment.
configure.ac