root/foundation-libs/libxt-maxx/acinclude.m4
| Revision 5, 0.9 KB (checked in by emasson, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | # Copyright © 2006 Stepan Kasal <kasal@ucw.cz> |
| 2 | # Copyright © 2006 Andreas Schwab <schwab@suse.de> |
| 3 | # Copyright © 2006 Guido U. Draheim <guidod@gmx.de> |
| 4 | # Copyright © 2006 Alexandre Oliva |
| 5 | |
| 6 | # Copying and distribution of this file, with or without modification, are |
| 7 | # permitted in any medium without royalty provided the copyright notice and |
| 8 | # this notice are preserved. |
| 9 | |
| 10 | AC_DEFUN([AC_DEFINE_DIR], [ |
| 11 | prefix_NONE= |
| 12 | exec_prefix_NONE= |
| 13 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
| 14 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
| 15 | dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn |
| 16 | dnl refers to ${prefix}. Thus we have to use `eval' twice. |
| 17 | eval ac_define_dir="\"[$]$2\"" |
| 18 | eval ac_define_dir="\"$ac_define_dir\"" |
| 19 | AC_SUBST($1, "$ac_define_dir") |
| 20 | AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) |
| 21 | test "$prefix_NONE" && prefix=NONE |
| 22 | test "$exec_prefix_NONE" && exec_prefix=NONE |
| 23 | ]) |
Note: See TracBrowser
for help on using the browser.
