comparison configure.ac @ 1528:7770ef82c463

Configure correct C compiler options for Pthreads
author Adam Chlipala <adam@chlipala.net>
date Thu, 04 Aug 2011 17:06:50 -0400
parents b5d78407886d
children 3b57a6ddef1a
comparison
equal deleted inserted replaced
1527:cccf8bf64b30 1528:7770ef82c463
4 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define]) 4 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
5 AC_PROG_CC() 5 AC_PROG_CC()
6 AC_PROG_LIBTOOL() 6 AC_PROG_LIBTOOL()
7 AC_CONFIG_MACRO_DIR([m4]) 7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h]) 8 AC_CONFIG_HEADERS([config.h])
9
10 AX_PTHREAD([echo >/dev/null], [echo "Your C compiler does not support POSIX threads."; exit 1])
9 11
10 AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit 1]) 12 AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit 1])
11 13
12 AC_CHECK_PROG(MLTON, mlton, yes, []) 14 AC_CHECK_PROG(MLTON, mlton, yes, [])
13 15
92 AC_SUBST(CCARGS) 94 AC_SUBST(CCARGS)
93 AC_SUBST(PGHEADER) 95 AC_SUBST(PGHEADER)
94 AC_SUBST(MSHEADER) 96 AC_SUBST(MSHEADER)
95 AC_SUBST(SQHEADER) 97 AC_SUBST(SQHEADER)
96 AC_SUBST(VERSION) 98 AC_SUBST(VERSION)
99 AC_SUBST(PTHREAD_CFLAGS)
100 AC_SUBST(PTHREAD_LIBS)
97 101
98 AC_CONFIG_FILES([ 102 AC_CONFIG_FILES([
99 Makefile 103 Makefile
100 src/c/Makefile 104 src/c/Makefile
101 src/config.sml 105 src/config.sml