annotate mcabber/macros/define_dir.m4 @ 1224:fb0460a3cf4b

Fix iqscallback_auth() when authentication fails This patch fixes a bug introduced with changeset 4a7db2870685.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 17 May 2007 11:40:27 +0200
parents 618967a008a2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
881
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
1 dnl define_dir.m4
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
2 dnl http://autoconf-archive.cryp.to/ac_define_dir.html
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
3
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
4 # AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
5 # This macro sets VARNAME to the expansion of the DIR variable, taking care
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
6 # of fixing up ${prefix} and such.
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
7 # VARNAME is then offered as both an output variable and a C preprocessor
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
8 # symbol.
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
9
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
10 # Authors
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
11 # Stepan Kasal <kasal@ucw.cz>, Andreas Schwab <schwab@suse.de>,
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
12 # Guido Draheim <guidod@gmx.de>, Alexandre Oliva
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
13 # (Slightly modified -- Mikael Berthe)
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
14
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
15 AC_DEFUN([AC_DEFINE_DIR], [
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
16 prefix_NONE=
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
17 exec_prefix_NONE=
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
18 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
19 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
20 dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
21 dnl refers to ${prefix}. Thus we have to use `eval' twice.
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
22 ac_define_dir=`eval echo [$]$2`
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
23 ac_define_dir=`eval echo [$]ac_define_dir`
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
24 AC_SUBST($1, "$ac_define_dir")
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
25 ifelse($3, ,
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
26 AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
27 AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
28 test "$prefix_NONE" && prefix=NONE
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
29 test "$exec_prefix_NONE" && exec_prefix=NONE
618967a008a2 Try to fix autoconf setup
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
30 ])