dnl Process this file with autoconf to produce a configure script. AC_INIT(curl.h) dnl AC_CONFIG_HEADER(config.h) AC_PREREQ(2.10) AC_CANONICAL_SYSTEM case ${target_os} in winnt*) ## winnt; nothing to check for ;; *) ## unix variant ## check for c compiler, -m, -lX11, pthreads AC_PROG_CC dnl What functions do we actually need? AC_CHECK_LIB(m, sqrt) AC_PATH_XTRA AC_PATH_PROG(BASH_LOC, bash) AC_ARG_WITH(pthreads, [ --with-pthreads support threads with pthreads library], [if test "x$with_pthreads" != xno ; then pthreads_libraries="${with_pthreads}/lib" pthreads_includes="${with_pthreads}/include" _LIBS_="$LIBS" LIBS="-L${pthreads_libraries} $LIBS" CPPFLAGS="-I${pthreads_includes} $CPPFLAGS" AC_CHECK_LIB(pthread, pthread_init, [LIBS="-L${pthreads_libraries} -lpthread $_LIBS_" CFLAGS="-DHAVE_LIBPTHREADS $CFLAGS"], [echo "unable to locate pthreads libraries, exiting." exit 1]) else echo "** Note: --with-pthreads=no is now the default; its use is obsolescent **" AC_DEFINE(NO_THREADS) fi], [AC_DEFINE(NO_THREADS)]) ;; esac case ${target_cpu} in sparc) arch='sparc' ;; i*86) arch='x86' ;; *) echo "unknown target cpu \`${target_cpu}', exiting." exit 1 ;; esac AC_SUBST(arch) AC_SUBST(BASH_LOC) AC_OUTPUT(Makefile \ kernel/Makefile elaborate/Makefile gui/Makefile bin/Makefile boxes/Makefile)