+ ac_safe=`echo "-W" | sed 'y%./+-%__p_%'`
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC-gcc} accepts -W" >&5
+printf %s "checking whether ${CC-gcc} accepts -W... " >&6; }
+ if eval test \${libviterbi_cv_cc_flag_$ac_safe+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+
+
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ XCCFLAGS="$CCFLAGS"
+ CCFLAGS="$CCFLAGS -W"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"
+then :
+ eval "libviterbi_cv_cc_flag_$ac_safe=yes"
+else $as_nop
+ eval "libviterbi_cv_cc_flag_$ac_safe=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ CCFLAGS="$XCCFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+
+ if eval "test \"`echo '$libviterbi_cv_cc_flag_'$ac_safe`\" = yes"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+ CCFLAGS="$CCFLAGS -W"
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ fi
+
+
ac_safe=`echo "-Wall" | sed 'y%./+-%__p_%'`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC-gcc} accepts -Wall" >&5
printf %s "checking whether ${CC-gcc} accepts -Wall... " >&6; }
fi
+ ac_safe=`echo "-Wextra" | sed 'y%./+-%__p_%'`
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC-gcc} accepts -Wextra" >&5
+printf %s "checking whether ${CC-gcc} accepts -Wextra... " >&6; }
+ if eval test \${libviterbi_cv_cc_flag_$ac_safe+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+
+
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ XCCFLAGS="$CCFLAGS"
+ CCFLAGS="$CCFLAGS -Wextra"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"
+then :
+ eval "libviterbi_cv_cc_flag_$ac_safe=yes"
+else $as_nop
+ eval "libviterbi_cv_cc_flag_$ac_safe=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ CCFLAGS="$XCCFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+
+ if eval "test \"`echo '$libviterbi_cv_cc_flag_'$ac_safe`\" = yes"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+ CCFLAGS="$CCFLAGS -Wextra"
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ fi
+
+
# Find a good install program. We prefer a C program (faster),
withval=$with_debug; if test "$withval" = no; then DEBUG=false;
else DEBUG=true; fi
else $as_nop
- DEBUG=false
+ DEBUG=true
fi
printf "%s\n" "no" >&6; }
fi
+
+ ac_safe=`echo "-g" | sed 'y%./+-%__p_%'`
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC-gcc} accepts -g" >&5
+printf %s "checking whether ${CC-gcc} accepts -g... " >&6; }
+ if eval test \${libviterbi_cv_cc_ldflag_$ac_safe+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+
+
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ XLDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"
+then :
+ eval "libviterbi_cv_cc_ldflag_$ac_safe=yes"
+else $as_nop
+ eval "libviterbi_cv_cc_ldflag_$ac_safe=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$XLDFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+
+ if eval "test \"`echo '$libviterbi_cv_cc_ldflag_'$ac_safe`\" = yes"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+ LDFLAGS="$LDFLAGS -g"
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ fi
+
if test "$libviterbi_cv_cc_flag__g" = "no"; then
as_fn_error $? "Can't add debugging information with this compiler!" "$LINENO" 5
fi