+# -- Definitionen --
+
+AC_DEFINE_UNQUOTED(TARGET_CPU, "$target_cpu" )
+AC_DEFINE_UNQUOTED(TARGET_VENDOR, "$target_vendor" )
+AC_DEFINE_UNQUOTED(TARGET_OS, "$target_os" )
+
+# -- Variablen --
+
+if test "$GCC" = "yes"; then
+ the_CFLAGS="-Wall -Wtraditional -Wpointer-arith -Wstrict-prototypes"
+ add_CFLAGS="$CFLAGS $CFLAGS_ADD"
+else
+ the_CFLAGS="$CFLAGS"
+ add_CFLAGS="$CFLAGS_ADD"
+fi
+
+CFLAGS="$the_CFLAGS $add_CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
+
+# -- Ausgabe der Dateien --
+
+AC_OUTPUT([ \
+ Makefile \
+ doc/Makefile \
+ MacOSX/Makefile \
+ MacOSX/ngircd.pbproj/Makefile \
+ src/Makefile \
+ src/portab/Makefile \
+ src/tool/Makefile \
+ src/ngircd/Makefile \
+ src/testsuite/Makefile \
+ man/Makefile \
+ contrib/Makefile \
+])
+
+# -- Result --
+
+echo
+echo "ngIRCd has been configured with the following options:"
+echo
+
+# Someone please show me a better way :) [borrowed by OpenSSH]
+B=`eval echo ${bindir}` ; B=`eval echo ${B}`
+S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
+C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
+M=`eval echo ${mandir}` ; M=`eval echo ${M}`
+
+echo " Host: ${host}"
+echo " Compiler: ${CC}"
+echo " Compiler flags: ${the_CFLAGS}"
+test -n "$add_CFLAGS" && echo " ${add_CFLAGS}"
+echo " Preprocessor flags: ${CPPFLAGS}"
+echo " Linker flags: ${LDFLAGS}"
+echo " Libraries: ${LIBS}"
+echo
+echo " 'ngircd' binary: $S"
+echo " Configuration file: $C"
+echo " Manual pages: $M"
+echo