VirtualBox

Changeset 17918 in vbox for trunk/configure


Ignore:
Timestamp:
Mar 16, 2009 11:15:50 AM (16 years ago)
Author:
vboxsync
Message:

configure: error check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r17912 r17918  
    134134cleanup()
    135135{
    136   rm -f $ODIR.tmp_src.cc $ODIR.tmp_src.c $ODIR.tmp_out $ODIR.test_execute.log
     136#  rm -f $ODIR.tmp_src.cc $ODIR.tmp_src.c $ODIR.tmp_out $ODIR.test_execute.log
     137echo "cleanup"
    137138}
    138139
     
    229230  echo "using the following command line:" >> $LOG
    230231  echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc \"$1\"" >> $LOG
    231   $CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc $1 >> $LOG 2>&1
     232  $CXX -g -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc $1 >> $LOG 2>&1
    232233  if [ $? -ne 0 ]; then
    233234    if [ -z "$4" ]; then
     
    12121213
    12131214  dpy = XOpenDisplay(NULL);
    1214   scrn_num = DefaultScreen(dpy);
    1215   scrn     = ScreenOfDisplay(dpy, scrn_num);
    1216   Status status = XmuLookupStandardColormap(dpy, RootWindowOfScreen(scrn), 0,
    1217                   24, XA_RGB_DEFAULT_MAP, False, True);
    1218   printf("Status = %x\n", status);
     1215  if (dpy)
     1216  {
     1217    scrn_num = DefaultScreen(dpy);
     1218    scrn     = ScreenOfDisplay(dpy, scrn_num);
     1219    Status status = XmuLookupStandardColormap(dpy, RootWindowOfScreen(scrn), 0,
     1220                    24, XA_RGB_DEFAULT_MAP, False, True);
     1221    printf("Status = %x\n", status);
     1222  }
    12191223  return 0;
    12201224}
     
    12451249
    12461250  dpy = XOpenDisplay(NULL);
    1247   if (glXQueryVersion(dpy, &major, &minor))
     1251  if (dpy)
    12481252  {
    1249     printf("found version %u.%u, OK.\n", major, minor);
     1253    if (glXQueryVersion(dpy, &major, &minor))
     1254    {
     1255      printf("found version %u.%u, OK.\n", major, minor);
     1256      return 0;
     1257    }
    12501258  }
     1259  printf("found (inactive), OK.\n");
    12511260  return 0;
    12521261}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette