source: proiecte/HadoopJUnit/hadoop-0.20.1/src/c++/libhdfs/configure.ac @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 3.7 KB
Line 
1#
2# Copyright 2005 The Apache Software Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# Autoconf input file
17# $Id$
18
19AC_PREREQ(2.61)
20AC_INIT([libhdfs], [0.1.0], omalley@apache.org)
21AC_PREFIX_DEFAULT([`pwd`/../install])
22
23# Generates Makefile from Makefile.am. Modify when new subdirs are added.
24# Change Makefile.am also to add subdirectly.
25AM_INIT_AUTOMAKE(foreign no-dist)
26AC_CONFIG_FILES(Makefile)
27
28LT_INIT
29 
30AC_CONFIG_MACRO_DIR([m4])
31dnl -------------------------------------------------------------------------
32dnl Check current host (forget about cross compilation) and validate it
33dnl against the cache (fail if the cache differs)
34dnl -------------------------------------------------------------------------
35AP_MSG_HEADER([Current host])
36AC_CANONICAL_HOST()
37AP_CANONICAL_HOST_CHECK()
38
39dnl -------------------------------------------------------------------------
40dnl Check C environment
41dnl -------------------------------------------------------------------------
42AP_MSG_HEADER([C-Language compilation tools])
43AC_PROG_CC()
44AC_CHECK_TOOL(RANLIB, ranlib, :)
45
46dnl -------------------------------------------------------------------------
47dnl Check if this host is supported
48dnl -------------------------------------------------------------------------
49AP_MSG_HEADER([Host support])
50AP_SUPPORTED_HOST()
51if test "$supported_os" = "darwin"
52then
53  if test -z "$JAVA_HOME" -a -d /System/Library/Frameworks/JavaVM.framework/Home; then
54        JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
55  fi
56
57  _prevdir=`/bin/pwd`
58  if test -n "$JAVA_HOME" -a -d "$JAVA_HOME/include"; then
59    cd "$JAVA_HOME/include"
60  elif test -n "$JAVA_HOME" -a -d "$JAVA_HOME/../Headers"; then
61    cd "$JAVA_HOME/../Headers"
62  else
63    cd /System/Library/Frameworks/JavaVM.framework/Headers
64  fi
65  CFLAGS="$CFLAGS -m${JVM_ARCH} -I`/bin/pwd -P`"
66  cd $_prevdir
67  unset _prevdir
68fi
69
70dnl -------------------------------------------------------------------------
71dnl Check JAVA environment
72dnl -------------------------------------------------------------------------
73AP_MSG_HEADER([Java compilation tools])
74AP_JAVA()
75AP_SABLEVM()
76AP_KAFFE()
77AP_PROG_JAVAC()
78AP_PROG_JAR()
79AP_JVM_LIBDIR()
80if test "$supported_os" != "darwin"
81then
82  CFLAGS="$CFLAGS -m${JVM_ARCH} -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os"
83  LDFLAGS="$LDFLAGS -m${JVM_ARCH} -L$LIB_JVM_DIR -ljvm -shared -Wl,-x"
84  AC_MSG_RESULT([VALUE OF JVM_ARCH IS :$JVM_ARCH])
85fi
86
87dnl -------------------------------------------------------------------------
88dnl Add gcc specific CFLAGS.
89dnl -------------------------------------------------------------------------
90if test "$GCC" = "yes"
91then
92   CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
93   AC_MSG_RESULT([gcc flags added])
94fi
95dnl -------------------------------------------------------------------------
96dnl Add gcc specific CFLAGS.
97dnl -------------------------------------------------------------------------
98if test -z "$LDCMD"
99then
100   LDCMD="$CC"
101fi
102AC_SUBST(LDCMD)
103
104
105AC_PROG_CC
106AC_PROG_LIBTOOL
107
108AC_TYPE_SIZE_T
109AC_CHECK_FUNCS([strdup strerror strtoul])
110AC_CHECK_HEADERS([fcntl.h])
111AC_C_CONST
112AC_C_VOLATILE
113#AC_FUNC_MALLOC
114AC_HEADER_STDBOOL
115AC_TYPE_INT16_T
116AC_TYPE_INT32_T
117AC_TYPE_INT64_T
118AC_TYPE_UINT16_T
119AC_SUBST(PRODUCT_MK)
120AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.