]> git.draconx.ca Git - dxcommon.git/blobdiff - configure.ac
help_print_optstring: Test fullwidth/halfwidth character output.
[dxcommon.git] / configure.ac
index 75a4b949139837f34e66fb6f776494bdef3ec4d4..0aabe4737d3d8e1001eaea6b2756cea7615d4d66 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright © 2015, 2019-2021 Nick Bowler
+dnl Copyright © 2015, 2019-2023 Nick Bowler
 dnl
 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
 dnl This is free software: you are free to do what the fuck you want to.
@@ -20,6 +20,10 @@ AM_SILENT_RULES([yes])
 
 DX_INIT([.])
 
+AC_USE_SYSTEM_EXTENSIONS
+AC_CHECK_FUNCS_ONCE([wcwidth])
+AM_CONDITIONAL([HAVE_WCWIDTH], [test x"$ac_cv_func_wcwidth" = x"yes"])
+
 AC_CONFIG_TESTDIR([.])
 DX_PROG_AUTOTEST
 AM_CONDITIONAL([HAVE_AUTOTEST], [test x"$dx_cv_autotest_works" = x"yes"])
@@ -32,5 +36,8 @@ return opt.name[opt.flag ? opt.val : opt.has_arg];]])],
 AM_CONDITIONAL([HAVE_STRUCT_OPTION],
   [test x"$dx_cv_have_struct_option" = x"yes"])
 
+AC_ARG_VAR([PERL], [command to execute perl programs])
+AC_CHECK_PROGS([PERL], [perl], [false])
+
 AC_CONFIG_FILES([Makefile atlocal])
 AC_OUTPUT