mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
template cleanup
This commit is contained in:
578
src/configure
vendored
578
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -79,12 +79,10 @@ AC_ARG_WITH(template,
|
|||||||
see template directory],
|
see template directory],
|
||||||
[ TEMPLATE=$withval ],
|
[ TEMPLATE=$withval ],
|
||||||
[ host_no_ver=`echo "$host" | sed 's/[[0-9.]]*$//'`
|
[ host_no_ver=`echo "$host" | sed 's/[[0-9.]]*$//'`
|
||||||
GUESS=`grep "$host_no_ver" template/.similar | sed 's/.*=//' 2>/dev/null`
|
GUESS=`grep "$host_no_ver" template/.similar | sed 's/.*=//' | tail -1`
|
||||||
if test "$GUESS"
|
if test "$GUESS"
|
||||||
then
|
then TEMPLATE="$GUESS"
|
||||||
TEMPLATE=$GUESS
|
else TEMPLATE=`uname -s | tr A-Z a-z`
|
||||||
else
|
|
||||||
TEMPLATE=`uname -s | tr A-Z a-z`
|
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($TEMPLATE)
|
AC_MSG_RESULT($TEMPLATE)
|
||||||
|
Reference in New Issue
Block a user