Skip to content

Commit

Permalink
Fix configure script datadir/datarootdir definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Oct 6, 2023
1 parent 74c340c commit 6fe4c09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -5584,7 +5584,7 @@ then :

else $as_nop

datarootdir="$prefix/share"
datarootdir="$realprefix/share"

fi

Expand All @@ -5600,7 +5600,7 @@ then :

else $as_nop

datadir="$prefix/share"
datadir="$realprefix/share"

fi

Expand Down Expand Up @@ -5643,7 +5643,7 @@ fi

else $as_nop

sysconfdir="$prefix/etc"
sysconfdir="$realprefix/etc"

fi

Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -619,15 +619,15 @@ AS_IF([test "$datarootdir" = "\${prefix}/share"], [
AS_IF([test "$prefix" = "/"], [
datarootdir="/usr/share"
], [
datarootdir="$prefix/share"
datarootdir="$realprefix/share"
])
])

AS_IF([test "$datadir" = "\${prefix}/share"], [
AS_IF([test "$prefix" = "/"], [
datadir="/usr/share"
], [
datadir="$prefix/share"
datadir="$realprefix/share"
])
], [test "$datadir" = "\${datarootdir}"], [
datadir="$datarootdir"
Expand All @@ -648,7 +648,7 @@ AS_IF([test "$sysconfdir" = "\${prefix}/etc"], [
sysconfdir="/etc"
])
], [
sysconfdir="$prefix/etc"
sysconfdir="$realprefix/etc"
])
])

Expand Down

0 comments on commit 6fe4c09

Please sign in to comment.