comparison configure.ac @ 4536:0ed907d0f1e9

configure,configure.ac: Fixed two typos in args of main: char *v -> char **v
author "Vladimir G. Ivanovic" <vgivanovic@comcast.net>
date Sat, 27 Dec 2008 15:28:43 +0000
parents 66411359ce4e
children 7ca6d57ce12d
comparison
equal deleted inserted replaced
4535:69a1eda3da06 4536:0ed907d0f1e9
3432 AC_CHECK_LIB(Xt, XtOpenDisplay, XE_PREPEND(-lXt, libs_x), 3432 AC_CHECK_LIB(Xt, XtOpenDisplay, XE_PREPEND(-lXt, libs_x),
3433 AC_MSG_ERROR([Unable to find X11 libraries.])) 3433 AC_MSG_ERROR([Unable to find X11 libraries.]))
3434 3434
3435 AC_MSG_CHECKING(the version of X11 being used) 3435 AC_MSG_CHECKING(the version of X11 being used)
3436 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <X11/Intrinsic.h> 3436 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <X11/Intrinsic.h>
3437 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }])], 3437 int main(int c, char **v[]) { return c>1 ? XlibSpecificationRelease : 0; }])],
3438 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) 3438 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4])
3439 AC_MSG_RESULT(R${x11_release}) 3439 AC_MSG_RESULT(R${x11_release})
3440 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) 3440 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release})
3441 3441
3442 if test "${x11_release}" = "4"; then 3442 if test "${x11_release}" = "4"; then
5580 5580
5581 dnl Unfortunately, just because we can link doesn't mean we can run. 5581 dnl Unfortunately, just because we can link doesn't mean we can run.
5582 dnl One of the above link tests may have succeeded but caused resulting 5582 dnl One of the above link tests may have succeeded but caused resulting
5583 dnl executables to fail to run. Also any tests using AC_RUN_IFELSE will 5583 dnl executables to fail to run. Also any tests using AC_RUN_IFELSE will
5584 dnl have reported incorrect results. 5584 dnl have reported incorrect results.
5585 AC_RUN_IFELSE([AC_LANG_SOURCE([int main(int c,char *v[]){return 0;}])],[:],[ 5585 AC_RUN_IFELSE([AC_LANG_SOURCE([int main(int c,char **v[]){return 0;}])],[:],[
5586 echo "" 5586 echo ""
5587 echo "*** PANIC *** The C compiler can no longer build working executables." 5587 echo "*** PANIC *** The C compiler can no longer build working executables."
5588 echo "*** PANIC *** Please examine the tail of config.log for runtime errors." 5588 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
5589 echo "*** PANIC *** The most likely reason for this problem is that configure" 5589 echo "*** PANIC *** The most likely reason for this problem is that configure"
5590 echo "*** PANIC *** links with shared libraries, but those libraries cannot be" 5590 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"