# HG changeset patch # User Mike Becker # Date 1763054662 -3600 # Node ID b0344d89ade63c63a488db93bac7e0f956891b06 # Parent 10c95fc0232630e9b7e5dedd66e8564b6b90bcc4 add special treatment of sysconfdir, localstatedir, and runstatedir even when no config.site exists diff -r 10c95fc02326 -r b0344d89ade6 src/main/resources/make/configure.vm --- a/src/main/resources/make/configure.vm Wed Nov 12 20:26:42 2025 +0100 +++ b/src/main/resources/make/configure.vm Thu Nov 13 18:24:22 2025 +0100 @@ -236,10 +236,34 @@ : ${libexecdir:='${exec_prefix}/libexec'} : ${datarootdir:='${prefix}/share'} : ${datadir:='${datarootdir}'} -: ${sysconfdir:='${prefix}/etc'} : ${sharedstatedir:='${prefix}/com'} -: ${localstatedir:='${prefix}/var'} -: ${runstatedir:='${localstatedir}/run'} +if [ -z "$sysconfdir" ]; then + if [ "$prefix" = '/usr' ]; then + sysconfdir='/etc' + elif [ "$prefix" = '/opt' ]; then + sysconfdir='/etc/opt' + else + sysconfdir='${prefix}/etc' + fi +fi +if [ -z "$localstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + localstatedir='/var' + elif [ "$prefix" = '/opt' ]; then + localstatedir='/var/opt' + else + localstatedir='${prefix}/var' + fi +fi +if [ -z "$runstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + runstatedir='/var/run' + elif [ "$prefix" = '/opt' ]; then + runstatedir='/var/run/opt' + else + runstatedir='${prefix}/var' + fi +fi : ${includedir:='${prefix}/include'} : ${infodir:='${datarootdir}/info'} : ${mandir:='${datarootdir}/man'} diff -r 10c95fc02326 -r b0344d89ade6 test/configure --- a/test/configure Wed Nov 12 20:26:42 2025 +0100 +++ b/test/configure Thu Nov 13 18:24:22 2025 +0100 @@ -153,17 +153,16 @@ if true \ && notisplatform "mingw" \ ; then - prefix="`pwd`/work" + PWD="pwd" fi if true \ && isplatform "mingw" \ ; then - prefix="`pwd -W`/work" + PWD="pwd -W" fi if true \ ; then HOST=`uname -n` - install_dir="$prefix" fi # features @@ -210,10 +209,34 @@ : ${libexecdir:='${exec_prefix}/libexec'} : ${datarootdir:='${prefix}/share'} : ${datadir:='${datarootdir}'} -: ${sysconfdir:='${prefix}/etc'} : ${sharedstatedir:='${prefix}/com'} -: ${localstatedir:='${prefix}/var'} -: ${runstatedir:='${localstatedir}/run'} +if [ -z "$sysconfdir" ]; then + if [ "$prefix" = '/usr' ]; then + sysconfdir='/etc' + elif [ "$prefix" = '/opt' ]; then + sysconfdir='/etc/opt' + else + sysconfdir='${prefix}/etc' + fi +fi +if [ -z "$localstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + localstatedir='/var' + elif [ "$prefix" = '/opt' ]; then + localstatedir='/var/opt' + else + localstatedir='${prefix}/var' + fi +fi +if [ -z "$runstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + runstatedir='/var/run' + elif [ "$prefix" = '/opt' ]; then + runstatedir='/var/run/opt' + else + runstatedir='${prefix}/var' + fi +fi : ${includedir:='${prefix}/include'} : ${infodir:='${datarootdir}/info'} : ${mandir:='${datarootdir}/man'} diff -r 10c95fc02326 -r b0344d89ade6 test/configure2 --- a/test/configure2 Wed Nov 12 20:26:42 2025 +0100 +++ b/test/configure2 Thu Nov 13 18:24:22 2025 +0100 @@ -207,10 +207,34 @@ : ${libexecdir:='${exec_prefix}/libexec'} : ${datarootdir:='${prefix}/share'} : ${datadir:='${datarootdir}'} -: ${sysconfdir:='${prefix}/etc'} : ${sharedstatedir:='${prefix}/com'} -: ${localstatedir:='${prefix}/var'} -: ${runstatedir:='${localstatedir}/run'} +if [ -z "$sysconfdir" ]; then + if [ "$prefix" = '/usr' ]; then + sysconfdir='/etc' + elif [ "$prefix" = '/opt' ]; then + sysconfdir='/etc/opt' + else + sysconfdir='${prefix}/etc' + fi +fi +if [ -z "$localstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + localstatedir='/var' + elif [ "$prefix" = '/opt' ]; then + localstatedir='/var/opt' + else + localstatedir='${prefix}/var' + fi +fi +if [ -z "$runstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + runstatedir='/var/run' + elif [ "$prefix" = '/opt' ]; then + runstatedir='/var/run/opt' + else + runstatedir='${prefix}/var' + fi +fi : ${includedir:='${prefix}/include'} : ${infodir:='${datarootdir}/info'} : ${mandir:='${datarootdir}/man'} diff -r 10c95fc02326 -r b0344d89ade6 test/make/configure.vm --- a/test/make/configure.vm Wed Nov 12 20:26:42 2025 +0100 +++ b/test/make/configure.vm Thu Nov 13 18:24:22 2025 +0100 @@ -236,10 +236,34 @@ : ${libexecdir:='${exec_prefix}/libexec'} : ${datarootdir:='${prefix}/share'} : ${datadir:='${datarootdir}'} -: ${sysconfdir:='${prefix}/etc'} : ${sharedstatedir:='${prefix}/com'} -: ${localstatedir:='${prefix}/var'} -: ${runstatedir:='${localstatedir}/run'} +if [ -z "$sysconfdir" ]; then + if [ "$prefix" = '/usr' ]; then + sysconfdir='/etc' + elif [ "$prefix" = '/opt' ]; then + sysconfdir='/etc/opt' + else + sysconfdir='${prefix}/etc' + fi +fi +if [ -z "$localstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + localstatedir='/var' + elif [ "$prefix" = '/opt' ]; then + localstatedir='/var/opt' + else + localstatedir='${prefix}/var' + fi +fi +if [ -z "$runstatedir" ]; then + if [ "$prefix" = '/usr' ]; then + runstatedir='/var/run' + elif [ "$prefix" = '/opt' ]; then + runstatedir='/var/run/opt' + else + runstatedir='${prefix}/var' + fi +fi : ${includedir:='${prefix}/include'} : ${infodir:='${datarootdir}/info'} : ${mandir:='${datarootdir}/man'} diff -r 10c95fc02326 -r b0344d89ade6 test/make/project.xml --- a/test/make/project.xml Wed Nov 12 20:26:42 2025 +0100 +++ b/test/make/project.xml Thu Nov 13 18:24:22 2025 +0100 @@ -1,15 +1,14 @@ - + - `pwd`/work + pwd - `pwd -W`/work + pwd -W uname -n - $prefix diff -r 10c95fc02326 -r b0344d89ade6 test/make/project2.xml --- a/test/make/project2.xml Wed Nov 12 20:26:42 2025 +0100 +++ b/test/make/project2.xml Thu Nov 13 18:24:22 2025 +0100 @@ -1,5 +1,5 @@ - + -I/mingw/include -lcurl