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 | 7631bade9c52c7ebde0c7170a5d4d4ade6bb723c (patch) | |
tree | 266860f61f6aa730760509668400e7f8ec169ee7 | |
parent | a83d506e5cd6cef23298211b2fe4e0e25c9e5f48 (diff) | |
download | samba-7631bade9c52c7ebde0c7170a5d4d4ade6bb723c.tar.gz samba-7631bade9c52c7ebde0c7170a5d4d4ade6bb723c.tar.xz samba-7631bade9c52c7ebde0c7170a5d4d4ade6bb723c.zip |
Change the order of the -fPIC and -KPIC tests to ensure that UnixWare
is handled.
-rw-r--r-- | source/configure.in | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/configure.in b/source/configure.in index 7c9bbf1baeb..516104ffd71 100644 --- a/source/configure.in +++ b/source/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 |