1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(localizationArchive, 1.0.0, swoprogrammers@soe.sony.com)
3 AC_CONFIG_AUX_DIR(config)
8 AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug\[=yes\|no\] ], [defines _DEBUG and enables debugging features]), AC_DEFINE(_DEBUG) CXXFLAGS="$CXXFLAGS -g", CXXFLAGS="$CXXFLAGS -O2")
10 # todo - when using gcc-3, pick more optimizations for use
11 AC_ARG_ENABLE([optimized], AC_HELP_STRING([--enable-optimized\[=yes\|no\] ], [enables optimizations]), CXXFLAGS="$CXXFLAGS -O2", [])
13 # Checks for programs.
20 # Checks for libraries.
22 # Checks for header files.
23 AC_DEFUN([REQUIRE_PACKAGE], [if ! test $$3; then AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=path/to/$1], [where to find $1]), AC_SUBST($3, $withval), AC_SUBST($3, $2)) AC_CHECK_FILE($4, [], AC_MSG_ERROR([$1 is required but was not found in $$3])) fi])
25 REQUIRE_PACKAGE(stlport, [`pwd`/../../../3rd/library/stlport453], stlport_dir, [$stlport_dir/stlport/algorithm]) AC_SUBST(stlport_dir)
26 REQUIRE_PACKAGE(localization, [`pwd`/../localization], localization_dir, [$localization_dir/include/FirstLocalization.h]) AC_SUBST(localization_dir)
27 REQUIRE_PACKAGE(unicode, [`pwd`/../unicode], unicode_dir, [$unicode_dir/include/Unicode.h]) AC_SUBST(unicode_dir)
28 REQUIRE_PACKAGE(archive, [`pwd`/../archive], archive_dir, [$archive_dir/include/Archive/Archive.h]) AC_SUBST(archive_dir)
31 # Checks for typedefs, structures, and compiler characteristics.
34 # Checks for library functions.
36 AC_CHECK_FUNCS([strncasecmp])