File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 72
72
dnl this part selects the template from the one in the
73
73
dnl template directory.
74
74
75
+ dnl LOOK FOR EXACT MATCH FIRST,
76
+ dnl then try an OS without a version
77
+
75
78
AC_MSG_CHECKING(setting template to)
76
79
AC_ARG_WITH(template,
77
80
[ --with-template=TEMPLATE
78
81
use operating system template file
79
82
see template directory],
80
83
[ TEMPLATE=$withval ],
81
- [ host_no_ver=`echo "$host" | sed 's/[[0-9.]]*$//'`
82
- GUESS=`grep "$host_no_ver " template/.similar | sed 's/.*=//' | tail -1`
84
+ [
85
+ GUESS=`grep "^$host= " template/.similar | sed 's/.*=//' | tail -1`
83
86
if test "$GUESS"
84
- then TEMPLATE="$GUESS"
85
- else TEMPLATE=`uname -s | tr A-Z a-z`
87
+ then TEMPLATE="$GUESS"
88
+ else
89
+ host_no_ver=`echo "$host" | sed 's/[[0-9.]]*$//'`
90
+ GUESS=`grep "^$host_no_ver" template/.similar | sed 's/.*=//' | tail -1`
91
+ if test "$GUESS"
92
+ then TEMPLATE="$GUESS"
93
+ else TEMPLATE=`uname -s | tr A-Z a-z`
94
+ fi
86
95
fi
87
96
])
88
97
AC_MSG_RESULT($TEMPLATE)
You can’t perform that action at this time.
0 commit comments