--- nono/configure 2026/04/29 17:04:37 1.1.1.4 +++ nono/configure 2026/04/29 17:04:43 1.1.1.5 @@ -621,8 +621,10 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS +MSGFMT WXWIDGETS_LIBS WXWIDGETS_CPPFLAGS +LIBZ_LIBS LIBKQUEUE_LIBS LIBEDIT_LIBS LIBBSD_LIBS @@ -5371,6 +5373,51 @@ NETDRIVER=$netdriver # libbsd on Linux +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprogname in -lc" >&5 +$as_echo_n "checking for getprogname in -lc... " >&6; } +if ${ac_cv_lib_c_getprogname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char getprogname (); +int +main () +{ +return getprogname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_c_getprogname=yes +else + ac_cv_lib_c_getprogname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getprogname" >&5 +$as_echo "$ac_cv_lib_c_getprogname" >&6; } +if test "x$ac_cv_lib_c_getprogname" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBC 1 +_ACEOF + + LIBS="-lc $LIBS" + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprogname in -lbsd" >&5 $as_echo_n "checking for getprogname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_getprogname+:} false; then : @@ -5412,6 +5459,36 @@ if test "x$ac_cv_lib_bsd_getprogname" = fi +# なければ停止する +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include "confdefs.h" + #if defined(HAVE_BSD_BSD_H) + #include + #endif + +int +main () +{ + + getprogname() + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + # nothing to do on success + +else + as_fn_error $? "*** getprogname is not found. + On Ubuntu, sudo apt install libbsd-dev" "$LINENO" 5 + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # libedit (editline) if test x"$ac_cv_header_histedit_h" = xyes; then @@ -5462,6 +5539,52 @@ if test "x$ac_cv_lib_kqueue_kqueue" = xy fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5 +$as_echo_n "checking for gzclose in -lz... " >&6; } +if ${ac_cv_lib_z_gzclose+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gzclose (); +int +main () +{ +return gzclose (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_z_gzclose=yes +else + ac_cv_lib_z_gzclose=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5 +$as_echo "$ac_cv_lib_z_gzclose" >&6; } +if test "x$ac_cv_lib_z_gzclose" = xyes; then : + LIBZ_LIBS=-lz + +else + as_fn_error $? "*** zlib is not found. + On Ubuntu, sudo apt install zlib1g-dev" "$LINENO" 5 + +fi + + # wxWidgets { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5 $as_echo_n "checking for wx-config... " >&6; } @@ -5505,6 +5628,104 @@ $as_echo "$wxversion" >&6; } fi +# gettext +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}msgfmt", so it can be a program name with args. +set dummy ${ac_tool_prefix}msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MSGFMT"; then + ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MSGFMT="${ac_tool_prefix}msgfmt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MSGFMT=$ac_cv_prog_MSGFMT +if test -n "$MSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MSGFMT"; then + ac_ct_MSGFMT=$MSGFMT + # Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MSGFMT"; then + ac_cv_prog_ac_ct_MSGFMT="$ac_ct_MSGFMT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MSGFMT="msgfmt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MSGFMT=$ac_cv_prog_ac_ct_MSGFMT +if test -n "$ac_ct_MSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MSGFMT" >&5 +$as_echo "$ac_ct_MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MSGFMT" = x; then + MSGFMT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MSGFMT=$ac_ct_MSGFMT + fi +else + MSGFMT="$ac_cv_prog_MSGFMT" +fi + +if test $MSGFMT = :; then + as_fn_error $? "*** msgfmt not found. + On Ubuntu, sudo apt install gettext" "$LINENO" 5 +fi + ac_config_files="$ac_config_files Makefile.cfg host/Makefile wx/Makefile util/mkcgrom/Makefile util/viewcgrom/Makefile" ac_config_headers="$ac_config_headers config-nono.h"