I can do what I want but phpinfo() gibt mir shows no support for png and jpeg. The image-functions end up with
<b>Warning</b>: ImagePng: No PNG support in this PHP build in <b>XYZ.php</b>.
Here's my config:
./configure
--with-mysql \
--with-apache=../apache_1.3.22\
--with-mod_charset \
--disable-unified-odbc \
--enable-magic-quotes \
--enable-discard-path \
--enable-force-cgi-redirect \
--with-bz2 \
--enable-calendar \
--with-gnu-ld \
--with-pgsql \
--enable-track-vars \
--enable-libgcc \
--with-gd=/usr/src/gd-1.8.4 \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr/src/jpeg-6b \
--with-png-dir=/usr/src/libpng-1.2.1