]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/at/at-3.1.8/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / at / at-3.1.8 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- at-3.1.8/./configure.in~configure
7 +++ at-3.1.8/./configure.in
8 @@ -1,9 +1,10 @@
9  dnl Process this file with autoconf to produce a configure script.
10  
11 -AC_INIT(at.c)
12 +AC_INIT
13 +AC_CONFIG_SRCDIR([at.c])
14  AC_PREFIX_DEFAULT(/usr)
15  AC_CONFIG_HEADER(config.h)
16 -AC_PREREQ(2.7)
17 +AC_PREREQ(2.57)
18  
19  
20  VERSION="3.1.8"
21 @@ -38,19 +39,16 @@
22      AC_MSG_RESULT(no)
23      ;;
24  esac
25 +if [ X"${cross_compiling}" = Xno ]; then
26  AC_MSG_CHECKING(Trying to compile a trivial ANSI C program)
27 -AC_TRY_RUN([ main(int ac, char **av) { return 0; } ],
28 -    AC_MSG_RESULT(yes),
29 -    AC_MSG_RESULT(no)
30 -    AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.),
31 -    AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.))
32 +AC_RUN_IFELSE([AC_LANG_SOURCE([[ main(int ac, char **av) { return 0; } ]])],[AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
33 +    AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.)],[AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.)])
34 +fi
35  
36  AC_MSG_CHECKING(__attribute__((noreturn)))
37 -AC_TRY_COMPILE([], [void __attribute__((noreturn)) panic(void);],
38 -    AC_MSG_RESULT(yes)
39 -    AC_DEFINE(HAVE_ATTRIBUTE_NORETURN),
40 -    AC_MSG_RESULT(no)
41 -)
42 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void __attribute__((noreturn)) panic(void);]])],[AC_MSG_RESULT(yes)
43 +    AC_DEFINE(HAVE_ATTRIBUTE_NORETURN)],[AC_MSG_RESULT(no)
44 +])
45  dnl Checks for libraries.
46  
47  AC_CHECK_LIB(fl,yywrap,
48 @@ -315,4 +313,5 @@
49  )
50  AC_SUBST(DAEMON_GROUPNAME)
51  
52 -AC_OUTPUT(Makefile atrun atd.8 atrun.8 at.1 batch)
53 +AC_CONFIG_FILES([Makefile atrun atd.8 atrun.8 at.1 batch])
54 +AC_OUTPUT