Revision 17260,
1.2 KB
checked in by zacheiss, 23 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r17259,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | AC_DEFUN(hs_ULONG_CONST, |
---|
2 | [ AC_EGREP_CPP(Circus, |
---|
3 | [#define ACAT(a,b)a ## b |
---|
4 | ACAT(Cir,cus) |
---|
5 | ], AC_DEFINE([ULONG_CONST(a)], [a ## UL]), |
---|
6 | AC_EGREP_CPP(Reiser, |
---|
7 | [#define RCAT(a,b)a/**/b |
---|
8 | RCAT(Rei,ser) |
---|
9 | ], AC_DEFINE([ULONG_CONST(a)], [a/**/L]), |
---|
10 | AC_MSG_ERROR([How do we create an unsigned long constant?])))]) |
---|
11 | dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION]) |
---|
12 | dnl |
---|
13 | dnl This macro defines (with AC_DEFINE) VARNAME to the expansion of the DIR |
---|
14 | dnl variable, taking care of fixing up ${prefix} and such. |
---|
15 | dnl |
---|
16 | dnl Note that the 3 argument form is only supported with autoconf 2.13 and |
---|
17 | dnl later (i.e. only where AC_DEFINE supports 3 arguments). |
---|
18 | dnl |
---|
19 | dnl Examples: |
---|
20 | dnl |
---|
21 | dnl AC_DEFINE_DIR(DATADIR, datadir) |
---|
22 | dnl AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries]) |
---|
23 | dnl |
---|
24 | dnl @version $Id: acinclude.m4,v 1.1.1.2 2002-03-01 17:35:52 zacheiss Exp $ |
---|
25 | dnl @author Alexandre Oliva <oliva@lsd.ic.unicamp.br> |
---|
26 | |
---|
27 | AC_DEFUN(AC_DEFINE_DIR, [ |
---|
28 | ac_expanded=`( |
---|
29 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
---|
30 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" |
---|
31 | eval echo \""[$]$2"\" |
---|
32 | )` |
---|
33 | ifelse($3, , |
---|
34 | AC_DEFINE_UNQUOTED($1, "$ac_expanded"), |
---|
35 | AC_DEFINE_UNQUOTED($1, "$ac_expanded", $3)) |
---|
36 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.