~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: brian
  • Date: 2008-07-13 20:17:42 UTC
  • mfrom: (165.1.1 drizzle-new-port)
  • Revision ID: brian@localhost.localdomain-20080713201742-1orv6valuanlehj2
Merging port work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'`
36
36
 
37
37
# The port should be constant for a LONG time
38
 
MYSQL_TCP_PORT_DEFAULT=3306
 
38
MYSQL_TCP_PORT_DEFAULT=4427
39
39
 
40
40
dnl Include m4 
41
41
sinclude(config/ac-macros/alloca.m4)
550
550
 
551
551
AC_ARG_WITH([tcp-port],
552
552
    [AS_HELP_STRING([--with-tcp-port=port-number],
553
 
            [Which port to use for Drizzle services @<:@default=3306@:>@])],
 
553
            [Which port to use for Drizzle services @<:@default=4427@:>@])],
554
554
    [ MYSQL_TCP_PORT=$withval ],
555
555
    [ MYSQL_TCP_PORT=$MYSQL_TCP_PORT_DEFAULT
556
556
      # if we actually defaulted (as opposed to the pathological case of
562
562
      # testing for MYSQL_TCP_PORT==MYSQL_TCP_PORT_DEFAULT would make a
563
563
      # a port of MYSQL_TCP_PORT_DEFAULT magic even if the builder did not
564
564
      # intend it to mean "use the default, in fact, look up a good default
565
 
      # from /etc/services if you can", but really, really meant 3306 when
566
 
      # they passed in 3306. When they pass in a specific value, let them
 
565
      # from /etc/services if you can", but really, really meant 4427 when
 
566
      # they passed in 4427. When they pass in a specific value, let them
567
567
      # have it; don't second guess user and think we know better, this will
568
568
      # just make people cross.  this makes the the logic work like this
569
569
      # (which is complicated enough):
571
571
      # - if a port was set during build, use that as a default.
572
572
      #
573
573
      # - otherwise, try to look up a port in /etc/services; if that fails,
574
 
      #   use MYSQL_TCP_PORT_DEFAULT (at the time of this writing 3306)
 
574
      #   use MYSQL_TCP_PORT_DEFAULT (at the time of this writing 4427)
575
575
      #
576
576
      # - allow the MYSQL_TCP_PORT environment variable to override that.
577
577
      #