forked from sandywang/m4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmr_CGAL_MAKEFILE.m4
37 lines (33 loc) · 1 KB
/
smr_CGAL_MAKEFILE.m4
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
dnl @synopsis smr_CGAL_MAKEFILE
dnl
dnl This macro adds a "--with-cgal-makefile" option to the configure script,
dnl in order to specify where the CGAL skeletal makefile is located.
dnl
dnl @version $Id: smr_CGAL_MAKEFILE.m4,v 1.2 2002/05/07 01:13:25 stever Exp $
dnl @author Steve M. Robbins <smr@debian.org>
AC_DEFUN([smr_CGAL_MAKEFILE],
[
AC_ARG_WITH(cgal-makefile,
[ --with-cgal-makefile=PATHNAME
specify location of CGAL makefile],
[
if test ! -r "$withval"; then
AC_MSG_ERROR([Cannot read CGAL makefile "$withval"])
else
CGAL_MAKEFILE=$withval
fi
])
if test -z "$CGAL_MAKEFILE"; then
for cm in cgal_makefile ../cgal_makefile ../../cgal_makefile none; do
test -r $cm && break
done
if test $cm = none; then
AC_MSG_ERROR(
[Cannot find a CGAL makefile fragment to include.
Use --with-cgal-makefile or create a symbolic link named \"cgal_makefile\"
in the top of the source tree.])
fi
CGAL_MAKEFILE='$(top_builddir)/'$cm
fi
AC_SUBST(CGAL_MAKEFILE)
])