~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to cf/c++.ac

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
dnl
22
22
dnl You should have received a copy of the GNU Library General Public License
23
23
dnl along with the file PLplot; if not, write to the Free Software
24
 
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
24
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
25
25
 
26
26
PL_ARG_ENABLE(cxx, [compile C++ interface code], yes)
27
27
 
56
56
      fi
57
57
      ;;
58
58
    esac
 
59
fi
 
60
 
 
61
AC_PROG_CXX
 
62
 
 
63
if test "$enable_cxx" = yes; then
59
64
 
60
65
    AC_LANG_PUSH([C++])
61
66
 
99
104
      [AC_DEFINE(BROKEN_ISNAN_CXX,[],[isnan is in math.h but not cmath])
100
105
       AC_MSG_RESULT(broken)])
101
106
    fi
102
 
 
 
107
    AC_MSG_CHECKING([if stdint.h can be used from c++])
 
108
    AC_COMPILE_IFELSE([
 
109
#include <stdint.h>
 
110
typedef uint32_t PLINT;
 
111
PLINT foo=1;
 
112
],
 
113
                    [AC_DEFINE([HAVE_CXX_STDINT_H],[],
 
114
                               [Define if you have c++ accessible stdint.h])
 
115
                    AC_MSG_RESULT([yes])],
 
116
                    [AC_MSG_RESULT([no])]
 
117
                    )
103
118
    AC_LANG_POP([C++])
104
119
 
105
120
fi
106
121
 
107
 
AC_PROG_CXX
108
 
 
109
122
AC_SUBST(enable_cxx)
110
123
 
111
124
AC_CONFIG_FILES([