Commit 47031165 authored by neverlord's avatar neverlord

removed automake files

parent 7017d49f
lib_LTLIBRARIES = libcppa.la
libcppa_la_SOURCES = \
src/abstract_type_list.cpp \
src/actor_behavior.cpp \
src/actor_count.cpp \
src/actor.cpp \
src/actor_proxy_cache.cpp \
src/actor_proxy.cpp \
src/any_tuple.cpp \
src/any_tuple_iterator.cpp \
src/atom.cpp \
src/attachable.cpp \
src/binary_deserializer.cpp \
src/binary_serializer.cpp \
src/blocking_message_queue.cpp \
src/channel.cpp \
src/context.cpp \
src/converted_thread_context.cpp \
src/cppa.cpp \
src/delegate.cpp \
src/demangle.cpp \
src/deserializer.cpp \
src/exception.cpp \
src/fiber.cpp \
src/group.cpp \
src/intermediate.cpp \
src/invokable.cpp \
src/mailman.cpp \
src/matcher_arguments.cpp \
src/message.cpp \
src/message_queue.cpp \
src/mock_scheduler.cpp \
src/native_socket.cpp \
src/object_array.cpp \
src/object.cpp \
src/post_office.cpp \
src/primitive_variant.cpp \
src/process_information.cpp \
src/ripemd_160.cpp \
src/scheduled_actor.cpp \
src/scheduler.cpp \
src/serializer.cpp \
src/shared_spinlock.cpp \
src/string_serialization.cpp \
src/task_scheduler.cpp \
src/thread_pool_scheduler.cpp \
src/to_uniform_name.cpp \
src/unicast_network.cpp \
src/uniform_type_info.cpp \
src/yielding_message_queue.cpp \
src/yield_interface.cpp
nobase_include_HEADERS = \
cppa/actor_behavior.hpp \
cppa/actor.hpp \
cppa/actor_proxy.hpp \
cppa/announce.hpp \
cppa/any_tuple.hpp \
cppa/any_type.hpp \
cppa/atom.hpp \
cppa/attachable.hpp \
cppa/binary_deserializer.hpp \
cppa/binary_serializer.hpp \
cppa/channel.hpp \
cppa/config.hpp \
cppa/context.hpp \
cppa/cow_ptr.hpp \
cppa/cppa.hpp \
cppa/deserializer.hpp \
cppa/detail/abstract_actor.hpp \
cppa/detail/abstract_message_queue.hpp \
cppa/detail/abstract_tuple.hpp \
cppa/detail/actor_count.hpp \
cppa/detail/actor_proxy_cache.hpp \
cppa/detail/atom_val.hpp \
cppa/detail/blocking_message_queue.hpp \
cppa/detail/boxed.hpp \
cppa/detail/buffer.hpp \
cppa/detail/channel.hpp \
cppa/detail/converted_thread_context.hpp \
cppa/detail/decorated_tuple.hpp \
cppa/detail/default_uniform_type_info_impl.hpp \
cppa/detail/delegate.hpp \
cppa/detail/demangle.hpp \
cppa/detail/get_behavior.hpp \
cppa/detail/intermediate.hpp \
cppa/detail/invokable.hpp \
cppa/detail/list_member.hpp \
cppa/detail/mailman.hpp \
cppa/detail/map_member.hpp \
cppa/detail/matcher_arguments.hpp \
cppa/detail/matcher.hpp \
cppa/detail/mock_scheduler.hpp \
cppa/detail/native_socket.hpp \
cppa/detail/object_array.hpp \
cppa/detail/object_impl.hpp \
cppa/detail/pair_member.hpp \
cppa/detail/post_office.hpp \
cppa/detail/primitive_member.hpp \
cppa/detail/ptype_to_type.hpp \
cppa/detail/receive_loop_helper.hpp \
cppa/detail/ref_counted_impl.hpp \
cppa/detail/scheduled_actor.hpp \
cppa/detail/serialize_tuple.hpp \
cppa/detail/swap_bytes.hpp \
cppa/detail/task_scheduler.hpp \
cppa/detail/tdata.hpp \
cppa/detail/thread_pool_scheduler.hpp \
cppa/detail/to_uniform_name.hpp \
cppa/detail/tuple_vals.hpp \
cppa/detail/type_to_ptype.hpp \
cppa/detail/unboxed.hpp \
cppa/detail/yielding_message_queue.hpp \
cppa/detail/yield_interface.hpp \
cppa/exception.hpp \
cppa/exit_reason.hpp \
cppa/from_string.hpp \
cppa/get.hpp \
cppa/get_view.hpp \
cppa/group.hpp \
cppa/intrusive_ptr.hpp \
cppa/invoke.hpp \
cppa/invoke_rules.hpp \
cppa/match.hpp \
cppa/message.hpp \
cppa/message_queue.hpp \
cppa/object.hpp \
cppa/on.hpp \
cppa/primitive_type.hpp \
cppa/primitive_variant.hpp \
cppa/process_information.hpp \
cppa/ref_counted.hpp \
cppa/scheduler.hpp \
cppa/scheduling_hint.hpp \
cppa/serializer.hpp \
cppa/to_string.hpp \
cppa/tuple.hpp \
cppa/tuple_view.hpp \
cppa/uniform_type_info.hpp \
cppa/util/abstract_type_list.hpp \
cppa/util/abstract_uniform_type_info.hpp \
cppa/util/a_matches_b.hpp \
cppa/util/any_tuple_iterator.hpp \
cppa/util/apply.hpp \
cppa/util/at.hpp \
cppa/util/callable_trait.hpp \
cppa/util/comparable.hpp \
cppa/util/compare_tuples.hpp \
cppa/util/concat_type_lists.hpp \
cppa/util/conjunction.hpp \
cppa/util/disable_if.hpp \
cppa/util/disjunction.hpp \
cppa/util/element_at.hpp \
cppa/util/enable_if.hpp \
cppa/util/eval_first_n.hpp \
cppa/util/eval_type_list.hpp \
cppa/util/eval_type_lists.hpp \
cppa/util/fiber.hpp \
cppa/util/filter_type_list.hpp \
cppa/util/first_n.hpp \
cppa/util/has_copy_member_fun.hpp \
cppa/util.hpp \
cppa/util/if_else.hpp \
cppa/util/is_comparable.hpp \
cppa/util/is_copyable.hpp \
cppa/util/is_forward_iterator.hpp \
cppa/util/is_iterable.hpp \
cppa/util/is_legal_tuple_type.hpp \
cppa/util/is_one_of.hpp \
cppa/util/is_primitive.hpp \
cppa/util/pop_back.hpp \
cppa/util/pt_dispatch.hpp \
cppa/util/pt_token.hpp \
cppa/util/remove_const_reference.hpp \
cppa/util/replace_type.hpp \
cppa/util/reverse_type_list.hpp \
cppa/util/ripemd_160.hpp \
cppa/util/rm_ref.hpp \
cppa/util/shared_lock_guard.hpp \
cppa/util/shared_spinlock.hpp \
cppa/util/single_reader_queue.hpp \
cppa/util/singly_linked_list.hpp \
cppa/util/type_list_apply.hpp \
cppa/util/type_list.hpp \
cppa/util/upgrade_lock_guard.hpp \
cppa/util/void_type.hpp \
cppa/util/wrapped.hpp
libcppa_la_CXXFLAGS = --std=c++0x -pedantic -Wall -Wextra -Werror
libcppa_la_LDFLAGS = -lboost_thread
#!/bin/bash
# some neede variables to create 'Makefile.rules'
HEADERS=""
SOURCES=""
NLINE="\\n"
BSLASH="\\\\"
# appends *.hpp from $1 to $HEADERS
function append_hpp_from()
{
for i in "$1"/*.hpp ; do
HEADERS="$HEADERS ${BSLASH}${NLINE} $i"
done
}
# appends *.cpp from $1 to $SOURCES
function append_cpp_from()
{
for i in "$1/"*.cpp ; do
SOURCES="$SOURCES ${BSLASH}${NLINE} $i"
done
}
# default flags
gcc_flags="-std=c++0x -pedantic -Wall -Wextra -g -O0 -I/opt/local/include/ -fpermissive -Wno-deprecated-declarations"
# get all g++ binaries
gcc_found=$(find /bin/ /usr/bin /usr/local/bin /opt/bin /opt/local/bin -regex "^.*/g\+\+.*$" 2>/dev/null)
# holds the finally selected g++ binary
gcc_selected=""
# checks if g++ binary $1 is able to compile cpp0x_test.cpp
function compatibility_test()
{
if $1 $gcc_flags -o variadic_templates_test variadic_templates_test.cpp &>/dev/null ; then
if test x"$(./variadic_templates_test)" "!=" "xyes" ; then
return -1
else
return 0
fi
fi
}
# iterates over all found g++ binaries until a suitable binary is found
for i in $gcc_found ; do
version=$($i -v 2>&1 | grep -oE "gcc version [0-9](\.[0-9]){2}" | grep -oE "[0-9](\.[0-9]){2}")
if test "!" $version "<" 4.6.0 ; then
if compatibility_test "$i" ; then
gcc_selected=$i
break
fi
fi
done
# did we found a suitable g++ binary?
if test -z "$gcc_selected" ; then
echo "no GCC >= 4.6.0 found ... quit"
exit
fi
echo "chosen g++ binary: $gcc_selected"
# ok, write makefiles now
echo "build Makefiles..."
# link file descriptor #6 to stdout
exec 6>&1
# redirect stdout to Makefile.rules
exec >Makefile.rules
printf "%b\n" "CXX = $gcc_selected"
printf "%b\n" "CXXFLAGS = $gcc_flags"
if test $(uname) = "Darwin" ; then
printf "%b\n" "LIBS = -L/opt/local/lib -lboost_thread-mt"
else
printf "%b\n" "LIBS = -lboost_thread"
fi
# redirect stdout to libcppa.Makefile
exec >libcppa.Makefile
append_hpp_from "cppa"
append_hpp_from "cppa/detail"
append_hpp_from "cppa/util"
append_cpp_from "src"
printf "%b\n" "include Makefile.rules"
printf "%b\n" "INCLUDE_FLAGS = \$(INCLUDES) -I./"
printf "\n"
printf "%b\n" "HEADERS =$HEADERS"
printf "\n"
printf "%b\n" "SOURCES =$SOURCES"
printf "\n"
printf "%b\n" "OBJECTS = \$(SOURCES:.cpp=.o)"
printf "\n"
printf "%b\n" "LIB_NAME = $LIB_NAME"
printf "\n"
printf "%b\n" "%.o : %.cpp \$(HEADERS)"
printf "%b\n" "\t\$(CXX) \$(CXXFLAGS) \$(INCLUDE_FLAGS) -fPIC -c \$< -o \$@"
printf "\n"
printf "%b\n" "libcppa.so.0.0.0 : \$(OBJECTS) \$(HEADERS)"
if test "$(uname)" "=" "Darwin" ; then
printf "%b\n" "\t\$(CXX) \$(LIBS) -dynamiclib -o libcppa.dylib \$(OBJECTS)"
else
printf "%b\n" "\t\$(CXX) \$(LIBS) -shared -Wl,-soname,libcppa.so.0 -o libcppa.so.0.0.0 \$(OBJECTS)"
printf "%b\n" "\tln -s libcppa.so.0.0.0 libcppa.so.0.0"
printf "%b\n" "\tln -s libcppa.so.0.0.0 libcppa.so.0"
printf "%b\n" "\tln -s libcppa.so.0.0.0 libcppa.so"
fi
printf "\n"
printf "%b\n" "all : libcppa.so.0.0.0 \$(OBJECTS)"
printf "\n"
printf "%b\n" "clean:"
printf "%b\n" "\trm -f libcppa.so libcppa.so.0 libcppa.so.0.0 libcppa.so.0.0.0 \$(OBJECTS)"
# redirect stdout to Makefile
exec >Makefile
printf "%b\n" "all:"
printf "%b\n" "\tmake -f libcppa.Makefile"
printf "%b\n" "\tmake -C unit_testing"
printf "%b\n" "\tmake -C queue_performances"
printf "\n"
printf "%b\n" "clean:"
printf "%b\n" "\tmake -f libcppa.Makefile clean"
printf "%b\n" "\tmake -C unit_testing clean"
printf "%b\n" "\tmake -C queue_performances clean"
# restore stdout
exec 1>&6
echo "done"
AC_INIT([libcppa], [1.0.0])
AM_INIT_AUTOMAKE
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_LANG([C++])
ORIGINAL_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -Werror --std=c++0x"
AC_CACHE_CHECK(
[whether C++ compiler supports variadic templates],
[ac_cv_cpp_variadic_templates],
AC_COMPILE_IFELSE([[#include "variadic_templates_test.cpp"]],
[ac_cv_cpp_variadic_templates=yes],
[ac_cv_cpp_variadic_templates=no]))
AC_CACHE_CHECK(
[whether C++ compiler supports nullptr],
[ac_cv_cpp_nullptr],
AC_COMPILE_IFELSE([[static void* myptr = nullptr;]],
[ac_cv_cpp_nullptr=yes],
[ac_cv_cpp_nullptr=no]))
AS_IF(
[test "x$ac_cv_cpp_variadic_templates" = "xyes" &&
test "x$ac_cv_cpp_nullptr" = "xyes"],
[],
[AC_MSG_ERROR([at least one required C++ compiler feature is not supported])])
CPPFLAGS="$ORIGINAL_CPPFLAGS"
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment