forked from CarlWright/NGerlguten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
54 lines (41 loc) · 898 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
AC_INIT(erlguten, 0.1, tobbe@tornkvist.org, erlguten)
AC_PREREQ(2.59c)
AC_COPYRIGHT(Copyright (C) 2007 Torbjorn Tornkvist)
EG_DIR=$(dirname `pwd`)
AC_SUBST(EG_DIR)
AC_ERLANG_NEED_ERL
AC_ERLANG_NEED_ERLC
AC_ERLANG_SUBST_ROOT_DIR
dnl C support
AC_PROG_CC
case "$target_os" in
*cygwin*)
:
dnl fix this later
;;
linux*)
AC_DEFINE(LINUX,,LINUX)
LD_SHARED="ld -shared"
;;
*bsd*)
AC_DEFINE(BSD,,BSD)
LD_SHARED="ld -Bshareable"
;;
*solaris*)
AC_DEFINE(SOLARIS,,SOLARIS)
LD_SHARED="ld -G"
;;
*darwin*)
AC_DEFINE([DARWIN], [], [Description])
LD_SHARED="cc -bundle -flat_namespace -undefined suppress"
;;
*)
LD_SHARED="ld -shared"
;;
esac
AC_SUBST(LD_SHARED)
define(OUTPUT_FILES,
include.mk)
AC_OUTPUT(OUTPUT_FILES,
[
])dnl