summaryrefslogtreecommitdiff
path: root/legacy/eet/m4/ac_expand_dir.m4
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-06-24 05:56:37 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-06-24 05:56:37 +0000
commit02411ea9958cf5c4b44845a384e2be6e8002dc7d (patch)
treec9a5d841c812d217021b0f90e986849dc28d3e3a /legacy/eet/m4/ac_expand_dir.m4
parent02d35fddb89f02c6a333b81cbc5e32b7a3b3df07 (diff)
m4 macros
SVN revision: 10571
Diffstat (limited to 'legacy/eet/m4/ac_expand_dir.m4')
-rw-r--r--legacy/eet/m4/ac_expand_dir.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/legacy/eet/m4/ac_expand_dir.m4 b/legacy/eet/m4/ac_expand_dir.m4
new file mode 100644
index 0000000000..b5599a074d
--- /dev/null
+++ b/legacy/eet/m4/ac_expand_dir.m4
@@ -0,0 +1,14 @@
1dnl AC_EXPAND_DIR(VARNAME, DIR)
2dnl expands occurrences of ${prefix} and ${exec_prefix} in the given DIR,
3dnl and assigns the resulting string to VARNAME
4dnl example: AC_DEFINE_DIR(DATADIR, "$datadir")
5dnl by Alexandre Oliva <oliva@dcc.unicamp.br>
6AC_DEFUN([AC_EXPAND_DIR], [
7 $1=$2
8 $1=`(
9 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11 eval echo \""[$]$1"\"
12 )`
13])
14