apxs.in revision e9ab76f3d59c1be02501c291554715e8155c7c81
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# Copyright 1999-2004 The Apache Software Foundation
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# Licensed under the Apache License, Version 2.0 (the "License");
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# you may not use this file except in compliance with the License.
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# You may obtain a copy of the License at
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# http://www.apache.org/licenses/LICENSE-2.0
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# Unless required by applicable law or agreed to in writing, software
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# distributed under the License is distributed on an "AS IS" BASIS,
36398225b44367c89f11f42810e4f79652b09a09Holger Hans Peter Freyther# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
use strict;
my %internal_vars = map {$_ => 1}
my $opt_c = 0;
my $opt_e = 0;
my $opt_i = 0;
my $opt_a = 0;
my $opt_A = 0;
my $opt_q = 0;
my $opt_h = 0;
my $opt_p = 0;
# this subroutine is derived from Perl's getopts.pl with the enhancement of
my $errs = 0;
my @args = split / */, $argumentative;
shift @ARGV;
last;
shift @ARGV;
$errs++;
shift @ARGV;
$errs++;
$errs++;
my $rc;
&usage;
&usage;
$result =~ s|;;$||;
$result =~ s|:| |;
return $result;
foreach $cmd (@cmds) {
notice($cmd);
if ($rc) {
if ($opt_g) {
if (-d $name) {
$data =~ s|%TARGET%|$CFG_TARGET|sg;
$data =~ s|%INSTALLBUILDDIR%|$installbuilddir|sg;
my $dso_file;
my $mod;
my $slo = $s;
my $lo = $s;
my $la = $s;
push(@cmds, "$libtool $ltflags --mode=compile $CFG_CC $cflags -I$CFG_INCLUDEDIR $apr_includedir $apu_includedir $opt -c -o $lo $s && touch $slo");
my $lo;
my $base = $f;
$base =~ s|\.[^.]+$||;
$filename =~ s|^[^/]+/||;
$filename =~ s|^[^/]+/||;
# activate module via LoadModule/AddModule directive
if (not -f "$CFG_SYSCONFDIR/$CFG_TARGET.conf") {
error("Config file $CFG_SYSCONFDIR/$CFG_TARGET.conf not found");
open(FP, "<$CFG_SYSCONFDIR/$CFG_TARGET.conf") || die;
error("Activation failed for custom $CFG_SYSCONFDIR/$CFG_TARGET.conf file.");
my $lmd;
$c = '#' if ($opt_A);
foreach $lmd (@lmd) {
my $found =
$content =~ s!\A ( # string and capture start
if (open(FP, ">$CFG_SYSCONFDIR/$CFG_TARGET.conf.new")) {
system("cp $CFG_SYSCONFDIR/$CFG_TARGET.conf $CFG_SYSCONFDIR/$CFG_TARGET.conf.bak && " .
"cp $CFG_SYSCONFDIR/$CFG_TARGET.conf.new $CFG_SYSCONFDIR/$CFG_TARGET.conf && " .
"rm $CFG_SYSCONFDIR/$CFG_TARGET.conf.new");
include %INSTALLBUILDDIR%/special.mk
lynx -mime_header http://localhost/%NAME%
DISTCLEAN_TARGETS = modules.mk
** $ lynx -mime_header http://localhost/%NAME%
#include "httpd.h"
#include "http_config.h"
#include "http_protocol.h"
#include "ap_config.h"