File: acinclude.m4

package info (click to toggle)
libcgicc 3.2.19-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,020 kB
  • sloc: cpp: 5,023; sh: 4,438; makefile: 169; sed: 1
file content (45 lines) | stat: -rw-r--r-- 995 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
dnl $Id: acinclude.m4,v 1.9 2004/06/28 00:25:28 sbooth Exp $

dnl @TOP@

dnl Include support macros from autoconf macro archive
dnl http://www.gnu.org/software/ac-archive/
builtin(include, support/ac_cxx_namespaces.m4)dnl
builtin(include, support/ac_cxx_have_stl.m4)dnl

dnl CGICC_CHECK_LINK_STDCPP
AC_DEFUN([CGICC_CHECK_LINK_STDCPP], [
	AC_REQUIRE([AC_PROG_CXX])dnl
	AC_CACHE_CHECK(	
		[whether to link against libstdc++],
		[cgicc_cv_link_libstdcpp],
		[	AC_LANG_SAVE
			AC_LANG_CPLUSPLUS
			AC_TRY_LINK([#include <iostream>],
			std::cout << "foo" << std::endl;,
			cgicc_cv_link_libstdcpp=no,
			cgicc_cv_link_libstdcpp=yes)
			AC_LANG_RESTORE
		])
	if (test "$cgicc_cv_link_libstdcpp" = yes); then 
		LIBS="$LIBS -lstdc++"
	fi
])

dnl CGICC_CHECK_ACC
AC_DEFUN([CGICC_CHECK_ACC], [
	AC_CACHE_CHECK(
		[whether the C++ compiler ($CXX) is aCC],
		[cgicc_cv_acc],
		[	if echo $CXX | grep 'HP ANSI C++'> /dev/null 2>&1; then
				cgicc_cv_acc=yes
			else
				cgicc_cv_acc=no
			fi
			
	])
])