mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Tweaks to configure.inc to maybe make clang a little less anal about things.
This commit is contained in:
+8
-2
@@ -193,8 +193,8 @@ AC_CHECK_FUNCS () {
|
||||
B=`echo "$1" | sed -e 's/(.*)//'`
|
||||
|
||||
case "$B" in
|
||||
"$1") F="$1()" ;;
|
||||
*) F="$1" ;;
|
||||
"$1") F="$1()"; need_proto=1 ;;
|
||||
*) F="$1" ; unset need_proto ;;
|
||||
esac
|
||||
|
||||
shift
|
||||
@@ -205,6 +205,10 @@ AC_CHECK_FUNCS () {
|
||||
shift
|
||||
done
|
||||
|
||||
if [ "$need_proto" ]; then
|
||||
echo "void $F;" >> ngc$$.c
|
||||
fi
|
||||
|
||||
cat >> ngc$$.c << EOF
|
||||
main()
|
||||
{
|
||||
@@ -1169,6 +1173,8 @@ AC_CHECK_BASENAME() {
|
||||
cat > ngc$$.c << EOF
|
||||
#include <string.h>
|
||||
|
||||
extern char *basename(char*);
|
||||
|
||||
main()
|
||||
{
|
||||
char *a = basename("/a/test");
|
||||
|
||||
Reference in New Issue
Block a user