annotate configure.ac @ 1132:d4cd54a4ea06

First attempt to switch to Automake, to get shared libraries built in OSX
author Adam Chlipala <adamc@hcoop.net>
date Thu, 28 Jan 2010 09:56:08 -0500
parents f7b25375c0cf
children f6cb1cb2d7a8
rev   line source
adamc@1132 1 AC_INIT([urweb], [1.0])
adamc@1132 2 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
adamc@1132 3 AC_PROG_CC()
adamc@1132 4 AC_PROG_LIBTOOL()
adamc@378 5
adamc@429 6 if test [$prefix = "NONE"]; then
adamc@429 7 prefix=/usr/local
adamc@429 8 fi
adamc@429 9
adamc@378 10 if test [-z $BIN]; then
adamc@429 11 BIN=$prefix/bin
adamc@378 12 fi
adamc@378 13
adamc@378 14 if test [-z $LIB]; then
adamc@429 15 LIB=$prefix/lib/urweb
adamc@378 16 fi
adamc@378 17
adamc@378 18 if test [-z $INCLUDE]; then
adamc@429 19 INCLUDE=$prefix/include/urweb
adamc@378 20 fi
adamc@378 21
adamc@378 22 if test [-z $SITELISP]; then
adamc@429 23 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode
adamc@378 24 fi
adamc@378 25
adamc@378 26 AC_SUBST(BIN)
adamc@378 27 AC_SUBST(LIB)
adamc@378 28 AC_SUBST(INCLUDE)
adamc@378 29 AC_SUBST(SITELISP)
adamc@435 30 AC_SUBST(GCCARGS)
adamc@378 31
adamc@1132 32 AC_CONFIG_FILES([
adamc@1132 33 Makefile
adamc@1132 34 src/c/Makefile
adamc@1132 35 src/config.sml
adamc@1132 36 ])
adamc@378 37
adamc@378 38 AC_OUTPUT()
adamc@378 39
adamc@378 40 cat <<EOF
adamc@378 41
adamc@378 42 Ur/Web configuration:
adamc@378 43 bin directory: BIN $BIN
adamc@378 44 lib directory: LIB $LIB
adamc@378 45 include directory: INCLUDE $INCLUDE
adamc@378 46 site-lisp directory: SITELISP $SITELISP
adamc@435 47 Extra GCC args: GCCARGS $GCCARGS
adamc@378 48 EOF