# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# envvars-std - default environment variables for apachectl
#
# This file is generated from envvars-std.in
#

if test "x$LD_LIBRARY_PATH" != "x"; then
  LD_LIBRARY_PATH="@@SERVERROOT@@/lib:@@GSK7LIBDIR@@:$LD_LIBRARY_PATH:@@SERVERROOT@@/modules"
else
  LD_LIBRARY_PATH="@@SERVERROOT@@/lib:@@SERVERROOT@@/modules:@@GSK7LIBDIR@@"
fi
export LD_LIBRARY_PATH

# The location of the parent dir of the bundled LDAP codeset definitions for the embedded LDAP Client.
TISDIR=@@SERVERROOT@@
export TISDIR

# Flag required by the embedded LDAP client library
GSKIT_LOCAL_INSTALL_MODE=1
export GSKIT_LOCAL_INSTALL_MODE

# Uncomment the GSK_TRACE_FILE line below to enable GSKit tracing (5x100MB)
# GSK_TRACE_FILE=/tmp/gsktrace_log
GSK_TRACE_FILE_SIZE=104857600
GSK_TRACE_FILE_NUMBER=5

export GSK_TRACE_FILE
export GSK_TRACE_FILE_SIZE
export GSK_TRACE_FILE_NUMBER


OS=`uname`

# Avoid enormous default stack size
if [ $OS = "Linux" ]; then
  ulimit -s 512
fi

# Avoid low soft data segment size limit which limits heap
if [ $OS = "AIX" ]; then
  ULIMITD=`ulimit -Hd`
  if [ $ULIMITD = "unlimited" ]; then
    ulimit -d unlimited
  fi
fi

GSKIT_CLIENT_VERSION=8
export GSKIT_CLIENT_VERSION
