Mercurial > libpst
annotate m4/ac_define_dir.m4 @ 368:6d30cd0d0bef stable-0-6-69
prep for fedora build
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 29 Oct 2016 17:30:51 -0700 |
parents | 17d2d6a7587f |
children |
rev | line source |
---|---|
207
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 # =========================================================================== |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 # http://autoconf-archive.cryp.to/ac_define_dir.html |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 # =========================================================================== |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 # SYNOPSIS |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 # AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION]) |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
8 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
9 # DESCRIPTION |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 # This macro sets VARNAME to the expansion of the DIR variable, taking |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 # care of fixing up ${prefix} and such. |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 # VARNAME is then offered as both an output variable and a C preprocessor |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 # symbol. |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
16 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 # Example: |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
19 # AC_DEFINE_DIR([DATADIR], [datadir], [Where data are placed to.]) |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
20 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
21 # LAST MODIFICATION |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
22 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
23 # 2008-04-12 |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
24 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
25 # COPYLEFT |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
26 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
27 # Copyright (c) 2008 Stepan Kasal <kasal@ucw.cz> |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
28 # Copyright (c) 2008 Andreas Schwab <schwab@suse.de> |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
29 # Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
30 # Copyright (c) 2008 Alexandre Oliva |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
31 # |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
32 # Copying and distribution of this file, with or without modification, are |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
33 # permitted in any medium without royalty provided the copyright notice |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
34 # and this notice are preserved. |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
35 |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
36 AC_DEFUN([AC_DEFINE_DIR], [ |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
37 prefix_NONE= |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
38 exec_prefix_NONE= |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
39 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
40 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
41 dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
42 dnl refers to ${prefix}. Thus we have to use `eval' twice. |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
43 eval ac_define_dir="\"[$]$2\"" |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
44 eval ac_define_dir="\"$ac_define_dir\"" |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
45 AC_SUBST($1, "$ac_define_dir") |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
46 AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
47 test "$prefix_NONE" && prefix=NONE |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
48 test "$exec_prefix_NONE" && exec_prefix=NONE |
17d2d6a7587f
add missing m4 macros to source control
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
49 ]) |