~ubuntu-branches/ubuntu/natty/mysql-5.1/natty

« back to all changes in this revision

Viewing changes to configure.in

Tags: 5.1.54-1ubuntu1
* Synchronize from Debian Experimental:
* Merge from debian unstable:
  + debian/control:
     * Update maintainer according to spec.
     * Move section from "misc" to "database".
     * Added libmysqlclient16-dev an empty transitional package. 
     * Added mysql-client-core-5.1 package.
     * Suggest mailx for mysql-server-5.1
     * Add mysql-testsuite package so you can run the testsuite seperately.
  + debian/additions/my.cnf:
    * Remove language options. Error message files are located in a different directory in Mysql
      5.0. Setting the language option to use /usr/share/mysql/english breaks Mysql 5.0. Both 5.0
      and 5.1 use a different value that works. (LP: #316974)
  + Add apparmor profile:
    + debian/apparmor-profile: apparmor-profile
    + debian/rules, debian/mysql-server-5.1.files: install apparmor profile
    + debian/mysql-server-5.1.dirs: add etc/apparmor.d/fore-complain
    + debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on purge.
    + debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    + debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    + debian/mysql-server-5.1.postinst: reload apparmor profiles
  * Convert the package from sysvinit to upstart:
    + debian/mysql-server-5.1.mysql.upstart: Add upstart script.
    + debian/mysql-server-5.1.mysql.init: Dropped, unused now with upstart.
    + debian/additions/mysqld_safe_syslog.cnf: Dropped, unused now with upstart.
    + debian/additons/my.cnf: Remove pid declaration and setup error logging to /var/log/mysql since
      we're not piping anything around logger anymore.
    + debian/rules, debian/mysql-server-5.1.logcheck.ignore.{paranoid,worstation},
      debian/mysql-server-5.1.logcheck.ignore.server: : Remove references to mysqld_safe
    + debian/patches/38_scripts_mysqld_safe.sh_signals.dpatch: Dropped
  * Added -fno-strict-aliasing to CFLAGS to get around mysql testsuite build failures.
  * Add Apport hook (LP: #354188):
    + debian/mysql-server-5.1.py: apport package hook
    + debian/rules: Make it installable
  * debian/mysql-server-5.1.mysql-server.logrotate: Check to see if mysql is running before
    running logrotate. (LP: #513135)
  * Make the testsuite installable. (LP: #530752)
    + debian/mysql-server-5.1.files, debian/rules: install apport package hook
  * debian/mysql-server-5.1.preinst: Set mysql user's home directory
    to /nonexistent to protect against having the /var/lib/mysql
    user-writeable. If an attacker can trick mysqld into creating
    dot files in the home directory, he could do .rhost-like attacks
    on the system. (LP: #293258)
  * debian/control: mysql-client-5.1 should depend on mysql-core-client-5.1.
    (LP: #590952)
  * debian/mysql-server.5.1.postinst: Specify the mysql user when installing 
    the mysql databases. (LP: #591875)
  * Installing mysql_config_pic in /usr/bin so users of libmysqld-pic
    can extract the appropriate compile flags. (LP: #605021) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
dnl When changing the major version number please also check the switch
13
13
dnl statement in mysqlbinlog::check_master_version().  You may also need
14
14
dnl to update version.c in ndb.
15
 
AC_INIT([MySQL Server], [5.1.49], [], [mysql])
 
15
AC_INIT([MySQL Server], [5.1.54], [], [mysql])
16
16
 
17
17
AC_CONFIG_SRCDIR([sql/mysqld.cc])
18
18
AC_CANONICAL_SYSTEM
65
65
MYSQL_UNIX_ADDR_DEFAULT="/tmp/mysql.sock"
66
66
 
67
67
dnl Include m4 
 
68
sinclude(config/ac-macros/maintainer.m4)
68
69
sinclude(config/ac-macros/alloca.m4)
69
70
sinclude(config/ac-macros/check_cpu.m4)
70
71
sinclude(config/ac-macros/character_sets.m4)
102
103
AC_SUBST(SHARED_LIB_VERSION)
103
104
AC_SUBST(AVAILABLE_LANGUAGES)
104
105
 
 
106
# Check whether a debug mode should be enabled.
 
107
AC_ARG_WITH([debug],
 
108
    AS_HELP_STRING([--with-debug@<:@=full@:>@],
 
109
      [Enable various amounts of debugging support (full adds a slow memory checker).]),
 
110
    [with_debug=$withval],
 
111
    [with_debug=no])
 
112
 
 
113
# Whether the maintainer mode should be enabled.
 
114
MY_MAINTAINER_MODE
105
115
 
106
116
# Canonicalize the configuration name.
107
117
 
275
285
AC_CHECK_PROG(PDFMANUAL, pdftex, manual.pdf)
276
286
AC_CHECK_PROG(DVIS,      tex,    manual.dvi)
277
287
 
278
 
#check the return type of sprintf
279
 
AC_MSG_CHECKING("return type of sprintf")
280
 
AC_TRY_RUN([
281
 
  int main()
282
 
    {
283
 
      char* s = "hello";
284
 
      char buf[6];
285
 
      if((int)sprintf(buf, s) == strlen(s))
286
 
        return 0;
287
 
      
288
 
      return -1;
289
 
     }
290
 
   ],
291
 
   [AC_DEFINE(SPRINTF_RETURNS_INT, [1], [POSIX sprintf])
292
 
   AC_MSG_RESULT("int")],
293
 
   [AC_TRY_RUN([
294
 
 int main()
295
 
   {
296
 
     char* s = "hello";
297
 
     char buf[6];
298
 
     if((char*)sprintf(buf,s) == buf + strlen(s))
299
 
       return 0;
300
 
     return -1;
301
 
   }           ],
302
 
               [AC_DEFINE(SPRINTF_RETURNS_PTR, [1], [Broken sprintf])
303
 
                AC_MSG_RESULT("ptr")],
304
 
               [AC_DEFINE(SPRINTF_RETURNS_GARBAGE, [1], [Broken sprintf])
305
 
                AC_MSG_RESULT("garbage")]
306
 
   )],
307
 
   # Cross compile, assume POSIX
308
 
   [AC_DEFINE(SPRINTF_RETURNS_INT, [1], [POSIX sprintf])
309
 
    AC_MSG_RESULT("int (we assume)")]
310
 
)
311
 
 
312
288
AC_PATH_PROG(uname_prog, uname, no)
313
289
 
314
290
# We should go through this and put all the explictly system dependent
934
910
])
935
911
AC_SUBST(WRAPLIBS)
936
912
 
937
 
if test "$TARGET_LINUX" = "true"; then
938
 
  AC_ARG_WITH(pstack,
939
 
    [  --with-pstack           Use the pstack backtrace library],
940
 
    [ USE_PSTACK=$withval ],
941
 
    [ USE_PSTACK=no ])
942
 
  pstack_libs=
943
 
  pstack_dir=
944
 
  if test "$USE_PSTACK" = yes -a "$TARGET_LINUX" = "true" -a "$BASE_MACHINE_TYPE" = "i386"
945
 
  then
946
 
    have_libiberty= have_libbfd=
947
 
    my_save_LIBS="$LIBS"
948
 
dnl I have no idea if this is a good test - can not find docs for libiberty  
949
 
    AC_CHECK_LIB([iberty], [fdmatch],
950
 
      [have_libiberty=yes
951
 
       AC_CHECK_LIB([bfd], [bfd_openr], [have_libbfd=yes], , [-liberty])])
952
 
    LIBS="$my_save_LIBS"
953
 
 
954
 
    if test x"$have_libiberty" = xyes -a x"$have_libbfd" = xyes
955
 
    then
956
 
      pstack_dir="pstack"
957
 
      pstack_libs="../pstack/libpstack.a -lbfd -liberty"
958
 
      # We must link staticly when using pstack
959
 
      with_mysqld_ldflags="-all-static"
960
 
      AC_SUBST([pstack_dir])
961
 
      AC_SUBST([pstack_libs])
962
 
      AC_DEFINE([USE_PSTACK], [1], [the pstack backtrace library])
963
 
dnl This check isn't needed, but might be nice to give some feedback....
964
 
dnl    AC_CHECK_HEADER(libiberty.h,
965
 
dnl      have_libiberty_h=yes,
966
 
dnl      have_libiberty_h=no)
967
 
    else
968
 
      USE_PSTACK="no"
969
 
    fi
970
 
  else
971
 
    USE_PSTACK="no"
972
 
  fi
973
 
fi
974
 
AC_MSG_CHECKING([if we should use pstack])
975
 
AC_MSG_RESULT([$USE_PSTACK])
976
 
 
977
913
# Check for gtty if termio.h doesn't exists
978
914
if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
979
915
then
1202
1138
        sql/Makefile.in)
1203
1139
          # Use gen_lex_hash.linux instead of gen_lex_hash
1204
1140
          # Add library dependencies to mysqld_DEPENDENCIES
1205
 
          lib_DEPENDENCIES="\$(pstack_libs) \$(openssl_libs) \$(yassl_libs)"
 
1141
          lib_DEPENDENCIES="\$(openssl_libs) \$(yassl_libs)"
1206
1142
          cat > $filesed << EOF
1207
1143
s,\(\./gen_lex_hash\)\$(EXEEXT),\1.linux,
1208
1144
s%\(mysqld_DEPENDENCIES = \)%\1$lib_DEPENDENCIES %
1705
1641
  DEBUG_OPTIMIZE_CXX=""
1706
1642
fi
1707
1643
 
1708
 
AC_ARG_WITH(debug,
1709
 
    [  --with-debug            Add debug code
1710
 
  --with-debug=full       Add debug code (adds memory checker, very slow)],
1711
 
    [with_debug=$withval],
1712
 
    [with_debug=no])
1713
1644
if test "$with_debug" = "yes"
1714
1645
then
1715
1646
  # Medium debug.
2102
2033
AC_FUNC_UTIME_NULL
2103
2034
AC_FUNC_VPRINTF
2104
2035
 
2105
 
AC_CHECK_FUNCS(alarm bcmp bfill bmove bsearch bzero \
 
2036
AC_CHECK_DECLS([fdatasync],,,
 
2037
[
 
2038
#ifdef HAVE_UNISTD_H
 
2039
# include <unistd.h>
 
2040
#endif
 
2041
])
 
2042
 
 
2043
AC_CHECK_FUNCS(alarm bfill bmove bsearch bzero \
2106
2044
  chsize cuserid fchmod fcntl \
2107
2045
  fconvert fdatasync fesetround finite fpresetsticky fpsetmask fsync ftruncate \
2108
2046
  getcwd gethostbyaddr_r gethostbyname_r getpass getpassphrase getpwnam \
2880
2818
done
2881
2819
AC_SUBST(sql_union_dirs)
2882
2820
 
 
2821
#
 
2822
# Setup maintainer mode options by the end to not disturb
 
2823
# system and other checks.
 
2824
#
 
2825
MY_MAINTAINER_MODE_SETUP
 
2826
 
2883
2827
# Some usefull subst
2884
2828
AC_SUBST(CC)
2885
2829
AC_SUBST(GXX)
2896
2840
AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
2897
2841
 
2898
2842
# Output results
2899
 
if test -d "$srcdir/pstack" ; then
2900
 
  AC_CONFIG_FILES(pstack/Makefile pstack/aout/Makefile)
2901
 
fi
2902
2843
if test -d "$srcdir/cmd-line-utils/readline" ; then
2903
2844
  AC_CONFIG_FILES(cmd-line-utils/readline/Makefile)
2904
2845
fi
2905
2846
 
2906
2847
AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
2907
2848
 unittest/Makefile unittest/mytap/Makefile unittest/mytap/t/Makefile dnl
2908
 
 unittest/mysys/Makefile unittest/examples/Makefile dnl
 
2849
 unittest/mysys/Makefile unittest/strings/Makefile dnl
 
2850
 unittest/examples/Makefile dnl
2909
2851
 strings/Makefile regex/Makefile storage/Makefile dnl
2910
2852
 man/Makefile BUILD/Makefile vio/Makefile dnl
2911
2853
 libmysql/Makefile libmysql_r/Makefile client/Makefile dnl