RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Rev | Line | |
---|
[fac98b8] | 1 | dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION]) |
---|
[9851f5a] | 2 | dnl |
---|
| 3 | dnl This macro defines (with AC_DEFINE) VARNAME to the expansion of the DIR |
---|
| 4 | dnl variable, taking care of fixing up ${prefix} and such. |
---|
| 5 | dnl |
---|
[fac98b8] | 6 | dnl Note that the 3 argument form is only supported with autoconf 2.13 and |
---|
| 7 | dnl later (i.e. only where AC_DEFINE supports 3 arguments). |
---|
| 8 | dnl |
---|
| 9 | dnl Examples: |
---|
[9851f5a] | 10 | dnl |
---|
| 11 | dnl AC_DEFINE_DIR(DATADIR, datadir) |
---|
| 12 | dnl |
---|
[fac98b8] | 13 | dnl AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries]) |
---|
| 14 | dnl |
---|
| 15 | dnl @author Alexandre Oliva <oliva@lsd.ic.unicamp.br> |
---|
[9851f5a] | 16 | |
---|
[661c8cd] | 17 | AC_DEFUN([AC_DEFINE_DIR], [ |
---|
[9851f5a] | 18 | ac_expanded=`( |
---|
| 19 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
---|
| 20 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" |
---|
| 21 | eval echo \""[$]$2"\" |
---|
| 22 | )` |
---|
[fac98b8] | 23 | ifelse($3, , |
---|
| 24 | AC_DEFINE_UNQUOTED($1, "$ac_expanded"), |
---|
| 25 | AC_DEFINE_UNQUOTED($1, "$ac_expanded", $3)) |
---|
[9851f5a] | 26 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.