+if test "${OSTYPE}" = "cygwin" ; then
+ getopt_long=false
+else
+ echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
+echo "configure:2928: checking for getopt_long" >&5
+if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2933 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char getopt_long(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char getopt_long();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
+choke me
+#else
+getopt_long();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_getopt_long=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_getopt_long=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ getopt_long=true
+else
+ echo "$ac_t""no" 1>&6
+ getopt_long=false
+fi
+
+fi
+
+if test "${getopt_long}" = "false" ; then
+ my_includes="$my_includes -I../getopt"
+ cat >> confdefs.h <<\EOF
+#define HAVE_GETOPT_LONG 1
+EOF
+
+ ctlibs_base="$ctlibs_base -lgetopt"
+ LDFLAGS="$LDFLAGS -L../getopt"
+
+
+if test 1==1; then
+ INCLUDED_GETOPT_LONG_TRUE=
+ INCLUDED_GETOPT_LONG_FALSE='#'
+else
+ INCLUDED_GETOPT_LONG_TRUE='#'
+ INCLUDED_GETOPT_LONG_FALSE=
+fi
+fi
+
+echo $ac_n "checking debug""... $ac_c" 1>&6
+echo "configure:2998: checking debug" >&5
+# Check whether --enable-debug or --disable-debug was given.
+if test "${enable_debug+set}" = set; then
+ enableval="$enable_debug"
+ case "${enableval}" in
+ yes) debug=true
+ echo "$ac_t""yes" 1>&6
+ ;;
+ no) debug=false
+ echo "$ac_t""no" 1>&6
+ ;;
+ *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
+ ;;
+esac
+else
+ debug=false; echo "$ac_t""no" 1>&6
+fi
+
+
+
+if test "$debug" = "true"; then
+ DEBUG_TRUE=
+ DEBUG_FALSE='#'
+else
+ DEBUG_TRUE='#'
+ DEBUG_FALSE=
+fi
+
+if test "$debug" = "true" ; then
+ CFLAGS="-g -DDEBUG"
+ cat >> confdefs.h <<\EOF
+#define DEBUG 1
+EOF
+
+else
+ CFLAGS="-g -O3 -DNDEBUG"
+ cat >> confdefs.h <<\EOF
+#define NDEBUG 1
+EOF
+
+fi
+
+
+