1 # Add --enable-orte-idl option to configure.
4 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
5 # Free Software Foundation, Inc.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 AC_DEFUN([AM_ORTE_IDL],
25 [AC_MSG_CHECKING([whether to enable orte IDL compiler])
26 dnl orte-idl is disabled by default
27 AC_ARG_ENABLE(orte-idl,
28 [ --enable-orte-idl enable to compile orte IDL compiler],
29 USE_ORTE_IDL=$enableval,
31 AC_MSG_RESULT([$USE_ORTE_IDL])
33 if test ${USE_ORTE_IDL} == "yes" ; then
34 PKG_CHECK_MODULES(LIBIDL, libIDL-2.0)
35 CFLAGS="$CFLAGS $LIBIDL_CFLAGS"
36 LIBS="$LIBS $LIBIDL_LIBS"
38 AC_CHECK_LIB([popt], [poptSetOtherOptionHelp],,
39 [AC_MSG_ERROR([orte-idl requires popt library])])
42 AM_CONDITIONAL(CONFIG_ORTE_IDL, [test $USE_ORTE_IDL = yes])
43 AC_SUBST(CONFIG_ORTE_IDL)
48 AU_DEFUN([jm_ORTE_IDL], [AM_ORTE_IDL])