
# Test, um mit ANSI-C zu compilieren
LDFLAGS="+s -L/usr/local/lib -L/usr/local/lib/hpux32"
export LDFLAGS

LIBIDN="/usr/local"
export LIBIDN

# ANSI-C compilieren
CC=/opt/ansic/bin/cc
export CC

#OPT_ZLIB="/usr/local/lib/hpux32"
#export OPT_ZLIB

PATH=/usr/local/bin:$PATH

rm -rf /opt/curl2

gmake clean

# ANSI-C
env PKG_CONFIG_PATH=/opt/openssl/lib/hpux32/pkgconfig ./configure CC=/opt/ansic/bin/cc \
            --exec-prefix=/opt/curl2/bin \
            --prefix=/opt/curl2/bin \
            --with-exec-dir=/opt/curl2/bin \
            --bindir=/opt/curl2/bin \
            --datadir=/opt/curl2/share \
            --mandir=/opt/curl2/man \
            --with-ssl=/opt/openssl \
            --with-libidn=/usr/local \
            --with-zlib=/usr/local/lib/hpux32 \
            --with-libssh2=/usr/local \
            --with-gssapi-includes=/usr/include/krb5 \
            --with-gssapi-libs=/usr/lib/hpux32/gss

gmake clean
gmake install

# `configure' configures curl - to adapt to many kinds of systems.
# 
# Usage: ./configure [OPTION]... [VAR=VALUE]...
# 
# To assign environment variables (e.g., CC, CFLAGS...), specify them as
# VAR=VALUE.  See below for descriptions of some of the useful variables.
# 
# Defaults for the options are specified in brackets.
# 
# Configuration:
#   -h, --help              display this help and exit
#       --help=short        display options specific to this package
#       --help=recursive    display the short help of all the included packages
#   -V, --version           display version information and exit
#   -q, --quiet, --silent   do not print `checking...' messages
#       --cache-file=FILE   cache test results in FILE [disabled]
#   -C, --config-cache      alias for `--cache-file=config.cache'
#   -n, --no-create         do not create output files
#       --srcdir=DIR        find the sources in DIR [configure dir or `..']
# 
# Installation directories:
#   --prefix=PREFIX         install architecture-independent files in PREFIX
#                           [/usr/local]
#   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
#                           [PREFIX]
# 
# By default, `make install' will install all the files in
# `/usr/local/bin', `/usr/local/lib' etc.  You can specify
# an installation prefix other than `/usr/local' using `--prefix',
# for instance `--prefix=$HOME'.
# 
# For better control, use the options below.
# 
# Fine tuning of the installation directories:
#   --bindir=DIR            user executables [EPREFIX/bin]
#   --sbindir=DIR           system admin executables [EPREFIX/sbin]
#   --libexecdir=DIR        program executables [EPREFIX/libexec]
#   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
#   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
#   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
#   --libdir=DIR            object code libraries [EPREFIX/lib]
#   --includedir=DIR        C header files [PREFIX/include]
#   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
#   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
#   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
#   --infodir=DIR           info documentation [DATAROOTDIR/info]
#   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
#   --mandir=DIR            man documentation [DATAROOTDIR/man]
#   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
#   --htmldir=DIR           html documentation [DOCDIR]
#   --dvidir=DIR            dvi documentation [DOCDIR]
#   --pdfdir=DIR            pdf documentation [DOCDIR]
#   --psdir=DIR             ps documentation [DOCDIR]
# 
# Program names:
#   --program-prefix=PREFIX            prepend PREFIX to installed program names
#   --program-suffix=SUFFIX            append SUFFIX to installed program names
#   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
# 
# System types:
#   --build=BUILD     configure for building on BUILD [guessed]
#   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
# 
# Optional Features:
#   --disable-option-checking  ignore unrecognized --enable/--with options
#   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
#   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
#   --enable-maintainer-mode  enable make rules and dependencies not useful
# 			  (and sometimes confusing) to the casual installer
#   --enable-debug          Enable debug build options
#   --disable-debug         Disable debug build options
#   --enable-optimize       Enable compiler optimizations
#   --disable-optimize      Disable compiler optimizations
#   --enable-warnings       Enable strict compiler warnings
#   --disable-warnings      Disable strict compiler warnings
#   --enable-curldebug      Enable curl debug memory tracking
#   --disable-curldebug     Disable curl debug memory tracking
#   --disable-dependency-tracking  speeds up one-time build
#   --enable-dependency-tracking   do not reject slow dependency extractors
#   --disable-largefile     omit support for large files
#   --enable-shared[=PKGS]  build shared libraries [default=yes]
#   --enable-static[=PKGS]  build static libraries [default=yes]
#   --enable-fast-install[=PKGS]
#                           optimize for fast installation [default=yes]
#   --disable-libtool-lock  avoid locking (might break parallel builds)
#   --enable-http           Enable HTTP support
#   --disable-http          Disable HTTP support
#   --enable-ftp            Enable FTP support
#   --disable-ftp           Disable FTP support
#   --enable-file           Enable FILE support
#   --disable-file          Disable FILE support
#   --enable-ldap           Enable LDAP support
#   --disable-ldap          Disable LDAP support
#   --enable-ldaps          Enable LDAPS support
#   --disable-ldaps         Disable LDAPS support
#   --enable-proxy          Enable proxy support
#   --disable-proxy         Disable proxy support
#   --enable-dict           Enable DICT support
#   --disable-dict          Disable DICT support
#   --enable-telnet         Enable TELNET support
#   --disable-telnet        Disable TELNET support
#   --enable-tftp           Enable TFTP support
#   --disable-tftp          Disable TFTP support
#   --enable-manual         Enable built-in manual
#   --disable-manual        Disable built-in manual
#   --enable-libgcc         use libgcc when linking
#   --enable-ipv6           Enable ipv6 (with ipv4) support
#   --disable-ipv6          Disable ipv6 support
#   --disable-thread        don't look for thread-safe functions
#   --enable-thread         look for thread-safe functions
#   --enable-nonblocking    Enable non-blocking communications
#   --disable-nonblocking   Disable non-blocking communications
#   --enable-ares=PATH      Enable c-ares for name lookups
#   --disable-ares          Disable c-ares for name lookups
#   --enable-verbose        Enable verbose strings
#   --disable-verbose       Disable verbose strings
#   --enable-sspi           Enable SSPI
#   --disable-sspi          Disable SSPI
#   --enable-crypto-auth    Enable cryptographic authentication
#   --disable-crypto-auth   Disable cryptographic authentication
#   --enable-cookies        Enable cookies support
#   --disable-cookies       Disable cookies support
#   --enable-hidden-symbols Hide internal symbols in library
#   --disable-hidden-symbols
#                           Leave all symbols with default visibility in library
#   --enable-soname-bump    Enable enforced SONAME bump
#   --disable-soname-bump   Disable enforced SONAME bump
# 
# Optional Packages:
#   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
#   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
#   --with-pic              try to use only PIC/non-PIC objects [default=use
#                           both]
#   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
#   --with-ldap-lib=libname Specify name of ldap lib file
#   --with-lber-lib=libname Specify name of lber lib file
#   --with-krb4-includes=DIR
#                           Specify location of kerberos4 headers
#   --with-krb4-libs=DIR    Specify location of kerberos4 libs
#   --with-krb4=DIR         where to look for Kerberos4
#   --with-spnego=DIR       Specify location of SPNEGO library fbopenssl
#   --with-gssapi-includes=DIR
#                           Specify location of GSSAPI header
#   --with-gssapi-libs=DIR  Specify location of GSSAPI libs
#   --with-gssapi=DIR       Where to look for GSSAPI
#   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
#                           installation (default: /usr/local/ssl); when
#                           possible, set the PKG_CONFIG_PATH environment
#                           variable instead of using this option
#   --without-ssl           disable OpenSSL
#   --with-zlib=PATH        search for zlib in PATH
#   --without-zlib          disable use of zlib
#   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
#                           LIBSSH2 installation (default: /usr/local/lib); when
#                           possible, set the PKG_CONFIG_PATH environment
#                           variable instead of using this option
#   --without-libssh2       disable LIBSSH2
#   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
#   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
#   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
#                           installation root (default: /usr/local/)
#   --without-gnutls        disable GnuTLS detection
#   --with-nss=PATH         where to look for NSS, PATH points to the
#                           installation root (default: /usr/local/)
#   --without-nss           disable NSS detection
#   --with-ca-bundle=FILE   File name to use as CA bundle
#   --without-ca-bundle     Don't use a default CA bundle
#   --with-ca-path=DIRECTORY
#                           Directory to use as CA path
#   --without-ca-path       Don't use a default CA path
#   --with-libidn=PATH      Enable libidn usage
#   --without-libidn        Disable libidn usage
# 
# Some influential environment variables:
#   CC          C compiler command
#   CFLAGS      C compiler flags
#   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
#               nonstandard directory <lib dir>
#   LIBS        libraries to pass to the linker, e.g. -l<library>
#   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
#               you have headers in a nonstandard directory <include dir>
#   CPP         C preprocessor
# 
# Use these variables to override the choices made by `configure' or to help
# it to find libraries and programs with nonstandard names/locations.
# 
# Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
