+AC_ARG_ENABLE(debug,
+ [ --enable-debug show additional debug output],
+ if test "$enableval" = "yes"; then x_debug_on=yes; fi
+)
+if test "$x_debug_on" = "yes"; then
+ AC_DEFINE(DEBUG, 1)
+fi
+
+AC_ARG_ENABLE(strict-rfc,
+ [ --enable-strict-rfc strict RFC conformance -- may break clients!],
+ if test "$enableval" = "yes"; then
+ AC_DEFINE(STRICT_RFC, 1)
+ x_strict_rfc_on=yes
+ fi
+)
+
+
+# -- 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 \
+ doc/en/Makefile \
+ MacOSX/Makefile \
+ MacOSX/ngircd.pbproj/Makefile \
+ src/Makefile \
+ src/portab/Makefile \
+ src/ngircd/Makefile \
+ src/testsuite/Makefile \
+ man/Makefile \
+ contrib/Makefile \
+])
+
+# -- Ergebnis --
+
+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