~ubuntu-branches/ubuntu/lucid/autoconf-archive/lucid

« back to all changes in this revision

Viewing changes to html/ac_subst_dir.html

  • Committer: Bazaar Package Importer
  • Author(s): Deng Xiyue
  • Date: 2009-05-12 17:30:18 UTC
  • mfrom: (1.1.9 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090512173018-s7y88nfoxpaauztk
Tags: 20090426-1
* New upstream release.
* Update Standard-Version to 3.8.1:
  + List original Debianizer.
  + Point to versioned license file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
 
"http://www.w3.org/TR/html4/strict.dtd">
3
 
<html lang="en">
4
 
 <head>
5
 
  <title>
6
 
   Autoconf Macro: ac_subst_dir
7
 
  </title>
8
 
  <link rel="stylesheet" type="text/css" href="autoconf-archive.css">
9
 
 </head>
10
 
 <body>
11
 
  <table summary="web navigation" style="width:100%;">
12
 
   <tbody>
13
 
    <tr>
14
 
     <td style="width:25%;" align="center" valign="top">
15
 
      <a href="http://autoconf-archive.cryp.to/ac_subst_dir.m4">Download M4
16
 
      Source</a>
17
 
     </td>
18
 
     <td style="width:25%;" align="center" valign="top">
19
 
      <a href=
20
 
      "http://git.cryp.to/autoconf-archive?a=history;f=ac_subst_dir.m4">Macro
21
 
      History</a>
22
 
     </td>
23
 
     <td style="width:25%;" align="center" valign="top">
24
 
      <a href="macros-by-category.html">Category Index</a>
25
 
     </td>
26
 
     <td style="width:25%;" align="center" valign="top">
27
 
      <form method="get" action="http://www.google.com/search">
28
 
       <div>
29
 
        <input name="sitesearch" value="autoconf-archive.cryp.to" type=
30
 
        "hidden"><a href="http://www.google.com/">Search</a>: <input name="q"
31
 
        size="10" maxlength="255" type="text">
32
 
       </div>
33
 
      </form>
34
 
     </td>
35
 
    </tr>
36
 
   </tbody>
37
 
  </table>
38
 
  <hr>
39
 
  <h1>
40
 
   ac_subst_dir
41
 
  </h1>
42
 
  <h2>
43
 
   Obsolete Macro
44
 
  </h2>
45
 
  <p class="indent">
46
 
   The macro <a href="ac_define_dir.html">AC_DEFINE_DIR</a> provides this
47
 
   functionality directly now.
48
 
  </p>
49
 
  <h2>
50
 
   Synopsis
51
 
  </h2>
52
 
  <p class="indent" style="white-space:nowrap;">
53
 
   <code>AC_SUBST_DIR(VARNAME, [DIR])</code>
54
 
  </p>
55
 
  <h2>
56
 
   Description
57
 
  </h2>
58
 
  <div class="indent">
59
 
   <p>
60
 
    This macro substitutes (with AC_SUBST) VARNAME with the expansion of itself
61
 
    or the DIR variable if specified, taking care of fixing up ${prefix} and
62
 
    such.
63
 
   </p>
64
 
   <p>
65
 
    Side effect: VARNAME is replaced with the expansion.
66
 
   </p>
67
 
   <p>
68
 
    AC_SUBST_DIR bases on Alexandre Oliva's <a href=
69
 
    "ac_define_dir.html">AC_DEFINE_DIR</a> macro.
70
 
   </p>
71
 
   <p>
72
 
    Examples:
73
 
   </p>
74
 
   <pre>
75
 
   AC_SUBST_DIR(DATADIR)
76
 
</pre>
77
 
  </div>
78
 
  <h2>
79
 
   Authors
80
 
  </h2>
81
 
  <p class="indent">
82
 
   Stepan Kasal &lt;kasal@ucw.cz&gt; and Mathias Hasselmann
83
 
   &lt;mathias.hasselmann@gmx.de&gt;.
84
 
  </p>
85
 
  <h2>
86
 
   Last Modified
87
 
  </h2>
88
 
  <p class="indent">
89
 
   2008-04-12
90
 
  </p>
91
 
  <h2>
92
 
   M4 Source Code
93
 
  </h2>
94
 
  <div class="indent">
95
 
   <pre class="m4source">
96
 
AC_DEFUN([AC_SUBST_DIR], [
97
 
        ifelse($2,,,$1="[$]$2")
98
 
        $1=`(
99
 
            test "x$prefix" = xNONE &amp;&amp; prefix="$ac_default_prefix"
100
 
            test "x$exec_prefix" = xNONE &amp;&amp; exec_prefix="${prefix}"
101
 
            eval $1=\""[$]$1"\"
102
 
            eval echo \""[$]$1"\"
103
 
        )`
104
 
        AC_SUBST($1)
105
 
])
106
 
</pre>
107
 
  </div>
108
 
  <h2>
109
 
   License
110
 
  </h2>
111
 
  <div class="indent">
112
 
   <span style="white-space:nowrap;">Copyright &copy; 2008 Stepan Kasal
113
 
   &lt;kasal@ucw.cz&gt;</span><br>
114
 
   <span style="white-space:nowrap;">Copyright &copy; 2008 Mathias Hasselmann
115
 
   &lt;mathias.hasselmann@gmx.de&gt;</span>
116
 
   <p>
117
 
    Copying and distribution of this file, with or without modification, are
118
 
    permitted in any medium without royalty provided the copyright notice and
119
 
    this notice are preserved.
120
 
   </p>
121
 
  </div>
122
 
 </body>
123
 
</html>