You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ra...@hyperreal.org on 1998/12/02 07:12:17 UTC

cvs commit: apache-1.3/src CHANGES

randy       98/12/01 22:12:12

  Modified:    .        configure
               src      CHANGES
  Added:       .        config.layout
  Log:
  There is no longer a _default_ path layout for APACI configure.
  This means the user _HAS_ to specifiy a path layout _explicitly_.
  
  Added a generic --with-layout=[FILE:]ID option. ID here is a layout
  identifier, currently "Apache" and "GNU" are pre-defined in the file
  config.layout.  Custom layouts are possible by using FILE:ID as the
  argument where the layout ID is taken from FILE.
  
  The config.layout file consists of <Layout ID>..</Layout> sections
  where inside those sections "path_variable: path_value" pairs can be
  specified. These lines are converted to path_variable='path_value'.
  
  These are primarily Ralf's changes that I am commiting to allow me to
  begin working on another phase of these configure changes.
  
  Reviewed by:	Randy Terbush, Ken Coar, Jim Jagielski
  
  Revision  Changes    Path
  1.52      +70 -53    apache-1.3/configure
  
  Index: configure
  ===================================================================
  RCS file: /home/cvs/apache-1.3/configure,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- configure	1998/12/01 23:59:52	1.51
  +++ configure	1998/12/02 06:11:52	1.52
  @@ -76,6 +76,8 @@
   sedsubst=src/.apaci.sedsubst
   addconf=src/.apaci.addconf
   tplconf=src/.apaci.tplconf
  +pldconf=src/.apaci.pldconf
  +configlayout=config.layout
   configstatus=config.status
   
   ##
  @@ -170,19 +172,7 @@
   fi
   
   #   default paths
  -prefix='/usr/local/apache'
  -exec_prefix='$prefix'
  -bindir='$exec_prefix/bin'
  -sbindir='$exec_prefix/sbin'
  -libexecdir='$exec_prefix/libexec'
  -mandir='$prefix/man'
  -sysconfdir='$prefix/etc'
  -datadir='$prefix/share'
  -includedir='$prefix/include'
  -localstatedir='$prefix/var'
  -runtimedir='$localstatedir/run'
  -logfiledir='$localstatedir/log'
  -proxycachedir='$localstatedir/proxy'
  +prefix=UNSET
   
   #   customization flags for
   #   automatic "apache" suffix 
  @@ -191,8 +181,9 @@
   customized_localstatedir=0
   customized_includedir=0
   
  -#   check and debug
  -layout=0
  +#   layout configuration
  +with_layout=0
  +show_layout=0
   
   #   suexec defaults
   suexec=0
  @@ -396,24 +387,26 @@
               echo ""
               echo "Stand-alone options:"
               echo " --help, -h             print this message"
  -            echo " --layout               print installation layout (check and debug)"
  +            echo " --show-layout          print installation path layout (check and debug)"
  +            echo " --layout               backward compat use --show-layout"
               echo ""
               echo "Installation layout options:"
  -	    echo " --target=TARGET        install server executable and associated files using basename TARGET"
  +            echo " --with-layout=[F:]ID   use installation path layout ID (from file F)"
  +            echo " --target=TARGET        install server executable and associated files using basename TARGET"
               echo " --prefix=PREFIX        install architecture-independent files in PREFIX"
               echo " --exec-prefix=EPREFIX  install architecture-dependent files in EPREFIX"
  -            echo " --bindir=DIR           install user     executables in DIR  [EPREFIX/bin]"
  -            echo " --sbindir=DIR          install sysadmin executables in DIR  [EPREFIX/sbin]"
  -            echo " --libexecdir=DIR       install program  executables in DIR  [EPREFIX/libexec]"
  -            echo " --mandir=DIR           install manual pages in DIR          [PREFIX/man]"
  -            echo " --sysconfdir=DIR       install configuration files in DIR   [PREFIX/etc]"
  -            echo " --datadir=DIR          install read-only  data files in DIR [PREFIX/share]"
  -            echo " --includedir=DIR       install includes files in DIR        [PREFIX/include]"
  -            echo " --localstatedir=DIR    install modifiable data files in DIR [PREFIX/var]"
  -            echo " --runtimedir=DIR       install runtime data in DIR          [PREFIX/var/run]"
  -            echo " --logfiledir=DIR       install logfile data in DIR          [PREFIX/var/log]"
  -            echo " --proxycachedir=DIR    install proxy cache data in DIR      [PREFIX/var/proxy]"
  -            echo " --compat               install with old Apache 1.2 installation paths"
  +            echo " --bindir=DIR           install user     executables in DIR"
  +            echo " --sbindir=DIR          install sysadmin executables in DIR"
  +            echo " --libexecdir=DIR       install program  executables in DIR"
  +            echo " --mandir=DIR           install manual pages in DIR"
  +            echo " --sysconfdir=DIR       install configuration files in DIR"
  +            echo " --datadir=DIR          install read-only  data files in DIR"
  +            echo " --includedir=DIR       install includes files in DIR"
  +            echo " --localstatedir=DIR    install modifiable data files in DIR"
  +            echo " --runtimedir=DIR       install runtime data in DIR"
  +            echo " --logfiledir=DIR       install logfile data in DIR"
  +            echo " --proxycachedir=DIR    install proxy cache data in DIR"
  +            echo " --compat               backward compat use --with-layout=Apache"
               echo ""
               echo "Configuration options:"
               echo " --enable-rule=NAME     enable  a particular Rule named 'NAME'"
  @@ -443,12 +436,48 @@
               echo ""
               exit 0
               ;;
  -        --layout)
  -            layout=1
  +        --with-layout=*|--compat)
  +            case $apc_optarg in
  +                *:* ) 
  +                    file=`echo $apc_optarg | sed -e 's/:.*//'`
  +                    name=`echo $apc_optarg | sed -e 's/.*://'`
  +                    ;;
  +                * ) 
  +		    if [ ".$apc_option" = ".--compat" ]; then
  +			name=Apache
  +		    else
  +			name=$apc_optarg
  +		    fi
  +		    file=$configlayout
  +                    ;;
  +            esac
  +            if [ ! -f "$file" ]; then
  +                echo "configure:Error: Path layout definition file $file not found" 1>&2
  +                exit 1
  +            fi
  +            sed -e "1,/[ 	]*<[Ll]ayout[ 	]*$name[ 	]*>[ 	]*/d" \
  +                -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
  +				-e "s/^[ 	]*//g" \
  +				-e "s/:[ 	]*/=\'/g" \
  +				-e "s/[ 	]*$/'/g" \
  +                $file >$pldconf
  +            . $pldconf
  +            rm -f $pldconf 2>/dev/null
  +            if [ ".$prefix" = .UNSET ]; then
  +                echo "configure:Error: Path layout definition not found or incorrect" 1>&2
  +                exit 1
  +            fi
  +            if [ ".$quiet" = .no ]; then
  +                echo " + using installation path layout: $name ($file)"
  +            fi
  +            with_layout=1
               ;;
  -	--target=*)
  -	    TARGET="$apc_optarg"
  -	    ;;
  +        --layout|--show-layout)
  +            show_layout=1
  +            ;;
  +        --target=*)
  +            TARGET="$apc_optarg"
  +            ;;
           --prefix=*)
               prefix="$apc_optarg"
               ;;
  @@ -492,24 +521,6 @@
           --proxycachedir=*) 
               proxycachedir="$apc_optarg" 
               ;;
  -        --compat) 
  -            exec_prefix='$prefix'
  -            bindir='$exec_prefix/bin'
  -            sbindir='$exec_prefix/bin'
  -            libexecdir='$exec_prefix/libexec'
  -            mandir='$prefix/man'
  -            sysconfdir='$prefix/conf'
  -            datadir='$prefix'
  -            includedir='$prefix/include'
  -            localstatedir='$prefix'
  -            runtimedir='$localstatedir/logs'
  -            logfiledir='$localstatedir/logs'
  -            proxycachedir='$localstatedir/proxy'
  -            customized_sysconfdir=1
  -            customized_datadir=1
  -            customized_localstatedir=1
  -            customized_includedir=1
  -            ;;
           --add-module=*) 
               file="$apc_optarg"
               if [ ".`echo $file | egrep '/?mod_[a-zA-Z0-9][a-zA-Z0-9_]*\.c$'`" = . ]; then
  @@ -798,6 +809,12 @@
           exit 1
       fi
   fi
  +if [ ".$with_layout" = .0 ]; then
  +    echo "configure:Error: Please select an installation path layout with"
  +    echo "                 the --with-layout=[FILE:]ID option. Use 'Apache' or"
  +    echo "                 'GNU' for ID to select the two predefined layouts."
  +    exit 1
  +fi
   
   ##
   ##  a few warnings
  @@ -896,7 +913,7 @@
   ##
   ##  check and debug
   ##
  -if [ ".$layout" = .1 ]; then
  +if [ ".$show_layout" = .1 ]; then
       echo ""
       echo "Installation paths:"
       echo "               prefix: $prefix"
  
  
  
  1.1                  apache-1.3/config.layout
  
  Index: config.layout
  ===================================================================
  ##
  ##  config.layout -- APACI Pre-defined Installation Path Layouts
  ##  (selectable with APACI's --with-layout=ID option)
  ##
  
  #   Classical Apache path layout
  <Layout Apache>
      prefix:        /usr/local/apache
      exec_prefix:   $prefix
      bindir:        $exec_prefix/bin
      sbindir:       $exec_prefix/bin
      libexecdir:    $exec_prefix/libexec
      mandir:        $prefix/man
      sysconfdir:    $prefix/conf
      datadir:       $prefix
      includedir:    $prefix/include
      localstatedir: $prefix
      runtimedir:    $localstatedir/logs
      logfiledir:    $localstatedir/logs
      proxycachedir: $localstatedir/proxy
  </Layout>
  
  #   GNU standards conforming path layout
  <Layout GNU>
      prefix:        /usr/local
      exec_prefix:   $prefix
      bindir:        $exec_prefix/bin
      sbindir:       $exec_prefix/sbin
      libexecdir:    $exec_prefix/libexec
      mandir:        $prefix/man
      sysconfdir:    $prefix/etc
      datadir:       $prefix/share
      includedir:    $prefix/include
      localstatedir: $prefix/var
      runtimedir:    $localstatedir/run
      logfiledir:    $localstatedir/log
      proxycachedir: $localstatedir/proxy
  </Layout>
  
  
  
  
  1.1155    +12 -0     apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1154
  retrieving revision 1.1155
  diff -u -r1.1154 -r1.1155
  --- CHANGES	1998/12/02 03:45:52	1.1154
  +++ CHANGES	1998/12/02 06:12:09	1.1155
  @@ -1,5 +1,17 @@
   Changes with Apache 1.3.4
   
  +  *) There is no longer a _default_ path layout for APACI configure.
  +     This means the user _HAS_ to specifiy a path layout _explicitly_.
  +
  +     Added a generic --with-layout=[FILE:]ID option. ID here is a layout
  +     identifier, currently "Apache" and "GNU" are pre-defined in the file
  +     config.layout.  Custom layouts are possible by using FILE:ID as the
  +     argument where the layout ID is taken from FILE.
  +
  +     The config.layout file consists of <Layout ID>..</Layout> sections
  +     where inside those sections "path_variable: path_value" pairs can be
  +     specified. These lines are converted to path_variable='path_value'.
  +
     *) Add a DefaultLanguage directive so that files missing a language
        extension (e.g., .fr, .de) can be labelled as being some other
        language than English by default.  DefaultLanguage can appear in
  
  
  

Re: cvs commit: apache-1.3/src CHANGES

Posted by Randy Terbush <ra...@Covalent.NET>.
I'll commit a fix for this before I go to bed today.

Paul Sutton <pa...@c2.net> writes:
> On 2 Dec 1998 randy@hyperreal.org wrote:
> > randy       98/12/01 22:12:12
> > 
> >   Modified:    .        configure
> >                src      CHANGES
> >   Added:       .        config.layout
> >   Log:
> >   There is no longer a _default_ path layout for APACI configure.
> >   This means the user _HAS_ to specifiy a path layout _explicitly_.
> >   
> >   Added a generic --with-layout=[FILE:]ID option. ID here is a layout
> >   identifier, currently "Apache" and "GNU" are pre-defined in the file
> >   config.layout.  Custom layouts are possible by using FILE:ID as the
> >   argument where the layout ID is taken from FILE.
> 
> --with-layout=Apache does not work:
> 
> % ./configure --with-layout=Apache --prefix=/home2/paul/t3 --layout
> Configuring for Apache, Version 1.3.4-dev
>  + using installation path layout: Apache (config.layout)
> 
> Installation paths:
>                prefix: /home2/paul/t3
>           exec_prefix: /home2/paul/t3
>                bindir: /home2/paul/t3/bin
>               sbindir: /home2/paul/t3/bin
>            libexecdir: /home2/paul/t3/libexec
>                mandir: /home2/paul/t3/man
>            sysconfdir: /home2/paul/t3/conf/apache
>               datadir: /home2/paul/t3/apache
>            includedir: /home2/paul/t3/include/apache
>         localstatedir: /home2/paul/t3/apache
>            runtimedir: /home2/paul/t3/apache/logs
>            logfiledir: /home2/paul/t3/apache/logs
>         proxycachedir: /home2/paul/t3/apache/proxy
> 
> Compilation paths:
>            HTTPD_ROOT: /home2/paul/t3
>       SHARED_CORE_DIR: /home2/paul/t3/libexec
>        DEFAULT_PIDLOG: apache/logs/httpd.pid
>    DEFAULT_SCOREBOARD: apache/logs/httpd.scoreboard
>      DEFAULT_LOCKFILE: apache/logs/httpd.lock
>       DEFAULT_XFERLOG: apache/logs/access_log
>      DEFAULT_ERRORLOG: apache/logs/error_log
>     TYPES_CONFIG_FILE: conf/apache/mime.types
>    SERVER_CONFIG_FILE: conf/apache/httpd.conf
>    ACCESS_CONFIG_FILE: conf/apache/access.conf
>  RESOURCE_CONFIG_FILE: conf/apache/srm.conf
> %
> 
> Note the use of "apache" in the paths: so for example, the logs
> directory should be "logs", not "apache/logs".
> 
> Here is what it should be (from Apache 1.3.3's configure):
> 
> ./configure --compat --prefix=/home2/paul/t3 --layout
> Configuring for Apache, Version 1.3.3
> 
> Installation paths:
>                prefix: /home2/paul/t3
>           exec_prefix: /home2/paul/t3
>                bindir: /home2/paul/t3/bin
>               sbindir: /home2/paul/t3/bin
>            libexecdir: /home2/paul/t3/libexec
>                mandir: /home2/paul/t3/man
>            sysconfdir: /home2/paul/t3/conf
>               datadir: /home2/paul/t3
>            includedir: /home2/paul/t3/include
>         localstatedir: /home2/paul/t3
>            runtimedir: /home2/paul/t3/logs
>            logfiledir: /home2/paul/t3/logs
>         proxycachedir: /home2/paul/t3/proxy
> 
> Compilation paths:
>            HTTPD_ROOT: /home2/paul/t3
>            SUEXEC_BIN: /home2/paul/t3/bin/suexec
>       SHARED_CORE_DIR: /home2/paul/t3/libexec
>        DEFAULT_PIDLOG: logs/httpd.pid
>    DEFAULT_SCOREBOARD: logs/httpd.scoreboard
>      DEFAULT_LOCKFILE: logs/httpd.lock
>       DEFAULT_XFERLOG: logs/access_log
>      DEFAULT_ERRORLOG: logs/error_log
>     TYPES_CONFIG_FILE: conf/mime.types
>    SERVER_CONFIG_FILE: conf/httpd.conf
>    ACCESS_CONFIG_FILE: conf/access.conf
>  RESOURCE_CONFIG_FILE: conf/srm.conf
> 
> Paul

Re: cvs commit: apache-1.3/src CHANGES

Posted by Paul Sutton <pa...@c2.net>.
On 2 Dec 1998 randy@hyperreal.org wrote:
> randy       98/12/01 22:12:12
> 
>   Modified:    .        configure
>                src      CHANGES
>   Added:       .        config.layout
>   Log:
>   There is no longer a _default_ path layout for APACI configure.
>   This means the user _HAS_ to specifiy a path layout _explicitly_.
>   
>   Added a generic --with-layout=[FILE:]ID option. ID here is a layout
>   identifier, currently "Apache" and "GNU" are pre-defined in the file
>   config.layout.  Custom layouts are possible by using FILE:ID as the
>   argument where the layout ID is taken from FILE.

--with-layout=Apache does not work:

% ./configure --with-layout=Apache --prefix=/home2/paul/t3 --layout
Configuring for Apache, Version 1.3.4-dev
 + using installation path layout: Apache (config.layout)

Installation paths:
               prefix: /home2/paul/t3
          exec_prefix: /home2/paul/t3
               bindir: /home2/paul/t3/bin
              sbindir: /home2/paul/t3/bin
           libexecdir: /home2/paul/t3/libexec
               mandir: /home2/paul/t3/man
           sysconfdir: /home2/paul/t3/conf/apache
              datadir: /home2/paul/t3/apache
           includedir: /home2/paul/t3/include/apache
        localstatedir: /home2/paul/t3/apache
           runtimedir: /home2/paul/t3/apache/logs
           logfiledir: /home2/paul/t3/apache/logs
        proxycachedir: /home2/paul/t3/apache/proxy

Compilation paths:
           HTTPD_ROOT: /home2/paul/t3
      SHARED_CORE_DIR: /home2/paul/t3/libexec
       DEFAULT_PIDLOG: apache/logs/httpd.pid
   DEFAULT_SCOREBOARD: apache/logs/httpd.scoreboard
     DEFAULT_LOCKFILE: apache/logs/httpd.lock
      DEFAULT_XFERLOG: apache/logs/access_log
     DEFAULT_ERRORLOG: apache/logs/error_log
    TYPES_CONFIG_FILE: conf/apache/mime.types
   SERVER_CONFIG_FILE: conf/apache/httpd.conf
   ACCESS_CONFIG_FILE: conf/apache/access.conf
 RESOURCE_CONFIG_FILE: conf/apache/srm.conf
%

Note the use of "apache" in the paths: so for example, the logs
directory should be "logs", not "apache/logs".

Here is what it should be (from Apache 1.3.3's configure):

./configure --compat --prefix=/home2/paul/t3 --layout
Configuring for Apache, Version 1.3.3

Installation paths:
               prefix: /home2/paul/t3
          exec_prefix: /home2/paul/t3
               bindir: /home2/paul/t3/bin
              sbindir: /home2/paul/t3/bin
           libexecdir: /home2/paul/t3/libexec
               mandir: /home2/paul/t3/man
           sysconfdir: /home2/paul/t3/conf
              datadir: /home2/paul/t3
           includedir: /home2/paul/t3/include
        localstatedir: /home2/paul/t3
           runtimedir: /home2/paul/t3/logs
           logfiledir: /home2/paul/t3/logs
        proxycachedir: /home2/paul/t3/proxy

Compilation paths:
           HTTPD_ROOT: /home2/paul/t3
           SUEXEC_BIN: /home2/paul/t3/bin/suexec
      SHARED_CORE_DIR: /home2/paul/t3/libexec
       DEFAULT_PIDLOG: logs/httpd.pid
   DEFAULT_SCOREBOARD: logs/httpd.scoreboard
     DEFAULT_LOCKFILE: logs/httpd.lock
      DEFAULT_XFERLOG: logs/access_log
     DEFAULT_ERRORLOG: logs/error_log
    TYPES_CONFIG_FILE: conf/mime.types
   SERVER_CONFIG_FILE: conf/httpd.conf
   ACCESS_CONFIG_FILE: conf/access.conf
 RESOURCE_CONFIG_FILE: conf/srm.conf

Paul