cheusov / mk-configure

Build system on top of bmake
http://sourceforge.net/projects/mk-configure/
66 stars 9 forks source link

mk-configure probably needs a check of PATH_MAX, probably executed always #7

Open andrewshadura opened 10 years ago

andrewshadura commented 10 years ago
checking for compiler type... gcc
checking for function implementation strlcat... yes
checking for function implementation strlcpy... yes
checking for func strlcat... no
checking for func strlcpy... no
checking for program awk... /usr/bin/awk
checking for program cc... /usr/bin/cc
runawk.c:105:22: error: 'PATH_MAX' undeclared here (not in a function)
 static char temp_fn [PATH_MAX] = "/tmp/runawk.XXXXXX";

I suggest to check for PATH_MAX define, if it's not defined, check what getconf says, and if that fails, define some sane default value.

andrewshadura commented 6 years ago

ping @cheusov

cheusov commented 4 years ago

I'll implement new feature (see MKC_FEATURES) for this purposes. Thank you for pointing out.