diff options
author | Richard Sharpe <sharpe@samba.org> | 2001-07-10 07:14:24 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2001-07-10 07:14:24 +0000 |
commit | cb5de0e1761c7a64c68fb89a29df51b30c14f5d1 (patch) | |
tree | 17f8a5e3f4647bdb8d8d8f1b56ef62864b2d50ee /source3/configure.in | |
parent | 575e609c3ba3f6557b66935a9ad5538cf241b057 (diff) | |
download | samba-cb5de0e1761c7a64c68fb89a29df51b30c14f5d1.tar.gz samba-cb5de0e1761c7a64c68fb89a29df51b30c14f5d1.tar.bz2 samba-cb5de0e1761c7a64c68fb89a29df51b30c14f5d1.zip |
Change the order of the -fPIC and -KPIC tests to ensure that UnixWare
is handled.
(This used to be commit 7631bade9c52c7ebde0c7170a5d4d4ade6bb723c)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/configure.in b/source3/configure.in index 7c9bbf1bae..516104ffd7 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -665,14 +665,15 @@ case "$host_os" in esac # try to work out how to produce PIC code with this compiler -AC_PROG_CC_FLAG(fPIC) -if test $ac_cv_prog_cc_fPIC = yes; then - PICFLAG="-fPIC"; +# We try -KPIC before -fPIC so that we handle UnixWare correctly. +AC_PROG_CC_FLAG(KPIC) +if test $ac_cv_prog_cc_KPIC = yes; then + PICFLAG="-KPIC"; fi if test x$PICFLAG = x; then - AC_PROG_CC_FLAG(KPIC) - if test $ac_cv_prog_cc_KPIC = yes; then - PICFLAG="-KPIC"; + AC_PROG_CC_FLAG(fPIC) + if test $ac_cv_prog_cc_fPIC = yes; then + PICFLAG="-fPIC"; fi fi if test x$PICFLAG = x; then |