xrdp: print configure options to --version more pretty

This commit is contained in:
Koichiro IWAO
2018-06-26 17:26:32 +09:00
parent dbee05d9ed
commit be05afb30b
2 changed files with 13 additions and 5 deletions
+6 -1
View File
@@ -397,4 +397,9 @@ echo " exec_prefix $exec_prefix"
echo " libdir $libdir"
echo " bindir $bindir"
echo " sysconfdir $sysconfdir"
echo "#define CONFIGURE_STRING \"$@\"" > configure_params.h
# configure_params.h will be written to the build directory, not the source directory
echo '#define CONFIGURE_STRING \' > ./configure_params.h
./config.status --config | xargs -n 1 | sed -e 's/^/" /' -e 's/$/\\n" \\/' >> ./configure_params.h
echo '""' >> ./configure_params.h