Skip to content

Commit

Permalink
Omit ppc arch for Mac OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcd committed Jul 6, 2011
1 parent ac28021 commit 65b2651
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,19 @@ echo "BASEDIR = $DIR" >> Makedefs
# proper handling of Universal Binaries under Mac OS X
HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
if test -x /usr/bin/lipo; then
ARCHITECTURES=`/usr/bin/lipo -info $HTTPD | sed -e 's/.*://'`
for ARCH in $ARCHITECTURES; do
echo "CFLAGS += -arch ${ARCH}" >> Makedefs
echo "LDFLAGS += -arch ${ARCH}" >> Makedefs
done
if [ `uname` = "Darwin" ]; then
for ARCH in "x86_64" "i386"; do
echo "CFLAGS += -arch ${ARCH}" >> Makedefs
echo "LDFLAGS += -arch ${ARCH}" >> Makedefs
done
else
ARCHITECTURES=`/usr/bin/lipo -info $HTTPD | sed -e 's/.*://'`

for ARCH in $ARCHITECTURES; do
echo "CFLAGS += -arch ${ARCH}" >> Makedefs
echo "LDFLAGS += -arch ${ARCH}" >> Makedefs
done
fi
fi

if [ -d /usr/share/man ]; then
Expand Down

0 comments on commit 65b2651

Please sign in to comment.