blob: 8c0e3cbc1aed72c1a080dbfb8b4950b6ce38fa67 [file] [log] [blame]
David Reissadd584d2008-02-27 01:55:30 +00001dnl @synopsis AX_THRIFT_GEN(SHORT_LANGUAGE, LONG_LANGUAGE, DEFAULT)
David Reissbe5ee7c2008-03-02 07:00:19 +00002dnl @synopsis AX_THRIFT_LIB(SHORT_LANGUAGE, LONG_LANGUAGE, DEFAULT)
David Reissadd584d2008-02-27 01:55:30 +00003dnl
4dnl Allow a particular language generator to be disabled.
David Reissbe5ee7c2008-03-02 07:00:19 +00005dnl Allow a particular language library to be disabled.
David Reissadd584d2008-02-27 01:55:30 +00006dnl
David Reissbe5ee7c2008-03-02 07:00:19 +00007dnl These macros have poor error handling and are poorly documented.
8dnl They are intended only for internal use by the Thrift compiler.
David Reissadd584d2008-02-27 01:55:30 +00009dnl
David Reissadd584d2008-02-27 01:55:30 +000010dnl @version 2008-02-20
11dnl @license AllPermissive
David Reissf82aee52009-03-30 22:52:29 +000012dnl
13dnl Copyright (C) 2009 David Reiss
14dnl Copying and distribution of this file, with or without modification,
15dnl are permitted in any medium without royalty provided the copyright
16dnl notice and this notice are preserved.
David Reissadd584d2008-02-27 01:55:30 +000017
David Reissbe5ee7c2008-03-02 07:00:19 +000018AC_DEFUN([AX_THRIFT_LIB],
19 [
20 AC_ARG_WITH($1,
21 AC_HELP_STRING([--with-$1], [build the $2 library @<:@default=$3@:>@]),
22 [with_$1="$withval"],
23 [with_$1=$3]
24 )
David Reiss5cc3ba82010-08-31 16:51:20 +000025 have_$1=no
David Reissbe5ee7c2008-03-02 07:00:19 +000026 dnl What we do here is going to vary from library to library,
27 dnl so we can't really generalize (yet!).
28 ])