-# We only support GCC and Sun's forte at the moment
-if test "$GCC" = "yes"
-then
- if test "$ENABLE_DEBUG" = "yes"
- then
- CFLAGS="-Wall -ggdb -DMEMCACHED_INTERNAL -DHAVE_DEBUG"
- else
- CFLAGS="-Wall -O3 -DMEMCACHED_INTERNAL "
- fi
-else
- CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64"
- LDFLAGS="-lsocket -lnsl"
- DTRACEFLAGS="-64"
-fi
+AC_CHECK_HEADERS([atomic.h])
+AS_IF([test "x$ac_cv_header_atomic_h" = "xyes"],[
+ AC_CHECK_FUNCS(atomic_add_64)
+ AC_CHECK_FUNCS(atomic_add_32)
+ AS_IF([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"],[
+ AC_DEFINE([USE_ATOMIC_H],
+ [1],
+ [Define to true if you want to use functions from atomic.h])])])
+
+AC_CONFIG_FILES([
+ Makefile
+ docs/Makefile
+ libmemcached/configure.h
+ support/libmemcached.pc
+ support/libmemcached.spec
+ support/libmemcached-fc.spec
+ ])
+AC_OUTPUT
+
+echo "---"
+echo "Configuration summary for $PACKAGE_NAME version $VERSION"
+echo ""
+echo " * Installation prefix: $prefix"
+echo " * System type: $host_vendor-$host_os"
+echo " * Host CPU: $host_cpu"
+echo " * C Compiler: $CC_VERSION"
+echo " * Assertions enabled: $ac_cv_assert"
+echo " * Debug enabled: $with_debug"
+echo " * Warnings as failure: $ac_cv_warnings_as_errors"
+echo ""
+echo "---"