[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM / src / kxx

File: [local] / OpenXM / src / kxx / configure.in (download)

Revision 1.6, Thu Oct 5 21:14:24 2006 UTC (17 years, 7 months ago) by takayama
Branch: MAIN
Changes since 1.5: +2 -1 lines

The option -arch i386 does not work on ld on my ppc Mac. It works on my intel Mac.
gcc and xcode are the latest. Why?...
To generate a universal binary on intel Mac's, change Makefile by hand.
Anyway, this commit does undo a part of the previous commit.
Cf. Try "file ox"  to check if the generated file is universal binary or not.

dnl  $OpenXM: OpenXM/src/kxx/configure.in,v 1.6 2006/10/05 21:14:24 takayama Exp $
dnl  If you change this file, do not forget to run autoconf and rm .configure_done


AC_INIT(oxmain.c)
AC_PROG_CC
AC_PROG_RANLIB

AC_CHECK_FUNC(socket)
if test "$ac_cv_func_socket" = no ; then
  AC_CHECK_LIB(socket,socket)
fi
AC_CHECK_FUNC(gethostbyname)
if test "$ac_cv_func_gethostbyname" = no ; then
  AC_CHECK_LIB(nsl,gethostbyname)
fi
AC_CHECK_FUNC(dlopen)
if test "$ac_cv_func_dlopen" = no ; then
  AC_CHECK_LIB(dl,dlopen)
fi

AC_CHECK_HEADER(sys/appleapiopts.h,AC_SUBST(CFLAG2,[" -arch ppc -arch i386"]),AC_SUBST(CFLAG2,[" "]))
AC_CHECK_HEADER(sys/appleapiopts.h,AC_SUBST(CFLAG2p,[" -march=ppc -march=i386"]),AC_SUBST(CFLAG2p,[" "]))


AC_OUTPUT(Makefile)