~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Brian Aker
  • Date: 2009-03-06 07:55:14 UTC
  • mfrom: (917.1.6 mordred)
  • Revision ID: brian@tangent.org-20090306075514-ty4guyeev45fug3p
Merge of Monty's Makefile/configure changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
AC_CXX_HEADER_STDCXX_98
60
60
if test "$ac_cv_cxx_stdcxx_98" = "no"
61
61
then
62
 
  AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
 
62
  AC_MSG_ERROR([No working C++ Compiler has been found. Drizzle requires a C++ compiler that can handle C++98])
63
63
fi
64
64
AC_PROG_CPP
65
65
AM_PROG_CC_C_O
66
66
 
 
67
if test "$am_cv_prog_cc_stdc" = "no"
 
68
then
 
69
  AC_MSG_ERROR([Drizzle requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual.])
 
70
fi
 
71
 
 
72
 
67
73
 
68
74
gl_INIT
69
75
 
174
180
 
175
181
AC_PATH_PROG(GPERF, gperf)
176
182
AS_IF([test "x$GPERF" = "x"],
177
 
      AC_MSG_ERROR("Drizzle requires gperf to build. Please install it."))
 
183
      AC_MSG_ERROR("Drizzle requires gperf to build."))
178
184
 
179
185
AC_PATH_PROG(LCOV, lcov)
180
186
AC_PATH_PROG(GENHTML, genhtml)
318
324
if test "$with_debug" = "yes"
319
325
then
320
326
  # Debuging. No optimization.
321
 
  CFLAGS="${DEBUG_CFLAGS} -DDEBUG ${CFLAGS}"
322
 
  CXXFLAGS="${DEBUG_CXXFLAGS} -DDEBUG ${CXXFLAGS}"
 
327
  CFLAGS="${DEBUG_CFLAGS} ${CFLAGS}"
 
328
  CXXFLAGS="${DEBUG_CXXFLAGS} ${CXXFLAGS}"
323
329
else
324
330
  # Optimized version. No debug
325
331
  CFLAGS="${OPTIMIZE_CFLAGS} ${CFLAGS}"
356
362
],
357
363
[google::protobuf::FileDescriptor* file;])
358
364
AS_IF([test x$ac_cv_libprotobuf = xno],
359
 
      AC_MSG_ERROR([protobuf is required for Drizzle]))
 
365
      AC_MSG_ERROR([protobuf is required for Drizzle. On Debian this can be found in libprotobuf-dev. On RedHat this can be found in protobuf-devel.]))
360
366
 
361
367
AC_CACHE_CHECK([if protobuf is recent enough], [drizzle_cv_protobuf_recent],
362
368
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
375
381
AC_PATH_PROG([PROTOC],[protoc],[no],[$LIBPROTOBUF_PREFIX/bin:$PATH])
376
382
if test "x$PROTOC" = "xno"
377
383
then
378
 
  AC_MSG_ERROR([Couldn't find protoc. Try installing Google Protocol Buffer.])
 
384
  AC_MSG_ERROR([Couldn't find the protoc compiler. On Debian this can be found in protobuf-compiler. On RedHat this can be found in protobuf-compiler.])
379
385
fi
380
386
 
381
387
AC_LANG_POP()
390
396
AC_CHECK_HEADERS(uuid/uuid.h)
391
397
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
392
398
then
393
 
  AC_MSG_ERROR([Couldn't find uuid/uuid.h. Try installing libuuid development packages])
 
399
  AC_MSG_ERROR([Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On Redhat this can be found in e2fsprogs-devel.])
394
400
fi
395
401
AC_LIB_HAVE_LINKFLAGS(uuid,,
396
402
[
456
462
  crc32(0, Z_NULL, 0);
457
463
])
458
464
AS_IF([test x$ac_cv_libz = xno],
459
 
      AC_MSG_ERROR([libz is required for Drizzle]))
 
465
      AC_MSG_ERROR([libz is required for Drizzle. On Debian this can be found in zlib1g-dev. On RedHat this can be found in zlib-devel.]))
460
466
 
461
467
#--------------------------------------------------------------------
462
468
# Check for TBB
485
491
LIBS=""
486
492
VL_LIB_READLINE
487
493
AS_IF([test "x$vl_cv_lib_readline" = "xno"],
488
 
      AC_MSG_ERROR([libreadline is required for Drizzle]))
 
494
      AC_MSG_ERROR([libreadline is required for Drizzle. On Debian this can be found in libreadline5-dev. On RedHat this can be found in readline-devel.]))
489
495
READLINE_LIBS="${LIBS}"
490
496
LIBS="${save_LIBS}"
491
497
AC_SUBST(READLINE_LIBS)
501
507
  unset ac_cv_libpcre
502
508
  AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre/pcre.h>], [pcre *re= NULL])
503
509
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
504
 
        [AC_MSG_ERROR([libpcre is required for Drizzle])]
 
510
        [AC_MSG_ERROR([libpcre is required for Drizzle. On Debian this can be found in libpcre3-dev. On RedHat this can be found in pcre-devel.])]
505
511
        [AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])])
506
512
],[
507
513
  AC_DEFINE(PCRE_HEADER,[<pcre.h>],[Location of pcre header])
624
630
# Check if we need noexec stack for assembler
625
631
AC_CHECK_NOEXECSTACK
626
632
 
627
 
if test "$am_cv_prog_cc_stdc" = "no"
628
 
then
629
 
  AC_MSG_ERROR([Drizzle requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual.])
630
 
fi
631
 
 
632
 
 
633
633
AC_ARG_WITH([server-suffix],
634
634
    [AS_HELP_STRING([--with-server-suffix],
635
635
      [Append value to the version string.])],
1457
1457
 
1458
1458
AC_CONFIG_COMMANDS([timestamp-h], , test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h)
1459
1459
 
1460
 
AC_CONFIG_COMMANDS([po/POTFILES.in],[
 
1460
AC_CONFIG_COMMANDS_PRE([
1461
1461
if test "x$EGREP" != "x"
1462
1462
then
1463
1463
  echo "# This file is auto-generated from configure. Do not edit directly" > po/POTFILES.in.in
1475
1475
  else
1476
1476
    rm po/POTFILES.in.in
1477
1477
  fi
 
1478
else
 
1479
  touch po/POTFILES.in
1478
1480
fi
1479
1481
])
1480
1482