Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1959 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Jun 16, 2004, 5:32:38 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: made adjustments to configure.ac, that should make the trik with windows

Location:
orxonox/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/config.h.in

    r1956 r1959  
    66/* Define to 1 if you have the <inttypes.h> header file. */
    77#undef HAVE_INTTYPES_H
    8 
    9 /* Define to 1 if you have the `GL' library (-lGL). */
    10 #undef HAVE_LIBGL
    11 
    12 /* Define to 1 if you have the `GLU' library (-lGLU). */
    13 #undef HAVE_LIBGLU
    14 
    15 /* Define to 1 if you have the `glut' library (-lglut). */
    16 #undef HAVE_LIBGLUT
    178
    189/* Define to 1 if you have the `m' library (-lm). */
  • orxonox/trunk/configure

    r1956 r1959  
    13211321
    13221322
    1323 
    1324           ac_config_headers="$ac_config_headers config.h"
    1325 
    13261323am__api_version="1.7"
    13271324ac_aux_dir=
     
    17261723
    17271724
     1725          ac_config_headers="$ac_config_headers config.h"
     1726
     1727
    17281728# Checks for programs.
    17291729ac_ext=cc
     
    32833283
    32843284# Checks for libraries.
    3285 # FIXME: Replace `main' with a function in `-lGL':
    3286 
    3287 
    3288 echo "$as_me:$LINENO: checking for main in -lGL" >&5
    3289 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
    3290 if test "${ac_cv_lib_GL_main+set}" = set; then
     3285
     3286#  cheking for libGL
     3287#   checking for Unix GL
     3288
     3289echo "$as_me:$LINENO: checking for glPushMatrix in -lGL" >&5
     3290echo $ECHO_N "checking for glPushMatrix in -lGL... $ECHO_C" >&6
     3291if test "${ac_cv_lib_GL_glPushMatrix+set}" = set; then
    32913292  echo $ECHO_N "(cached) $ECHO_C" >&6
    32923293else
    32933294  ac_check_lib_save_LIBS=$LIBS
    32943295LIBS="-lGL  $LIBS"
     3296cat >conftest.$ac_ext <<_ACEOF
     3297/* confdefs.h.  */
     3298_ACEOF
     3299cat confdefs.h >>conftest.$ac_ext
     3300cat >>conftest.$ac_ext <<_ACEOF
     3301/* end confdefs.h.  */
     3302
     3303/* Override any gcc2 internal prototype to avoid an error.  */
     3304#ifdef __cplusplus
     3305extern "C"
     3306#endif
     3307/* We use char because int might match the return type of a gcc2
     3308   builtin and then its argument prototype would still apply.  */
     3309char glPushMatrix ();
     3310int
     3311main ()
     3312{
     3313glPushMatrix ();
     3314  ;
     3315  return 0;
     3316}
     3317_ACEOF
     3318rm -f conftest.$ac_objext conftest$ac_exeext
     3319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3320  (eval $ac_link) 2>conftest.er1
     3321  ac_status=$?
     3322  grep -v '^ *+' conftest.er1 >conftest.err
     3323  rm -f conftest.er1
     3324  cat conftest.err >&5
     3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3326  (exit $ac_status); } &&
     3327         { ac_try='test -z "$ac_c_werror_flag"
     3328                         || test ! -s conftest.err'
     3329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3330  (eval $ac_try) 2>&5
     3331  ac_status=$?
     3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3333  (exit $ac_status); }; } &&
     3334         { ac_try='test -s conftest$ac_exeext'
     3335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3336  (eval $ac_try) 2>&5
     3337  ac_status=$?
     3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3339  (exit $ac_status); }; }; then
     3340  ac_cv_lib_GL_glPushMatrix=yes
     3341else
     3342  echo "$as_me: failed program was:" >&5
     3343sed 's/^/| /' conftest.$ac_ext >&5
     3344
     3345ac_cv_lib_GL_glPushMatrix=no
     3346fi
     3347rm -f conftest.err conftest.$ac_objext \
     3348      conftest$ac_exeext conftest.$ac_ext
     3349LIBS=$ac_check_lib_save_LIBS
     3350fi
     3351echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glPushMatrix" >&5
     3352echo "${ECHO_T}$ac_cv_lib_GL_glPushMatrix" >&6
     3353if test $ac_cv_lib_GL_glPushMatrix = yes; then
     3354  FOUND_GL=yes
     3355fi
     3356
     3357if test "$FOUND_GL" = "yes" ; then
     3358    LIBS="$LIBS -lGL"
     3359    #   checking for Windows openGl library
     3360else
     3361    echo "We did not find the Linux opengl Library. Checking for Windows Library"
     3362    echo "$as_me:$LINENO: checking for glPushMatrix in -lopengl32" >&5
     3363echo $ECHO_N "checking for glPushMatrix in -lopengl32... $ECHO_C" >&6
     3364if test "${ac_cv_lib_opengl32_glPushMatrix+set}" = set; then
     3365  echo $ECHO_N "(cached) $ECHO_C" >&6
     3366else
     3367  ac_check_lib_save_LIBS=$LIBS
     3368LIBS="-lopengl32  $LIBS"
     3369cat >conftest.$ac_ext <<_ACEOF
     3370/* confdefs.h.  */
     3371_ACEOF
     3372cat confdefs.h >>conftest.$ac_ext
     3373cat >>conftest.$ac_ext <<_ACEOF
     3374/* end confdefs.h.  */
     3375
     3376/* Override any gcc2 internal prototype to avoid an error.  */
     3377#ifdef __cplusplus
     3378extern "C"
     3379#endif
     3380/* We use char because int might match the return type of a gcc2
     3381   builtin and then its argument prototype would still apply.  */
     3382char glPushMatrix ();
     3383int
     3384main ()
     3385{
     3386glPushMatrix ();
     3387  ;
     3388  return 0;
     3389}
     3390_ACEOF
     3391rm -f conftest.$ac_objext conftest$ac_exeext
     3392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3393  (eval $ac_link) 2>conftest.er1
     3394  ac_status=$?
     3395  grep -v '^ *+' conftest.er1 >conftest.err
     3396  rm -f conftest.er1
     3397  cat conftest.err >&5
     3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3399  (exit $ac_status); } &&
     3400         { ac_try='test -z "$ac_c_werror_flag"
     3401                         || test ! -s conftest.err'
     3402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3403  (eval $ac_try) 2>&5
     3404  ac_status=$?
     3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3406  (exit $ac_status); }; } &&
     3407         { ac_try='test -s conftest$ac_exeext'
     3408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3409  (eval $ac_try) 2>&5
     3410  ac_status=$?
     3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3412  (exit $ac_status); }; }; then
     3413  ac_cv_lib_opengl32_glPushMatrix=yes
     3414else
     3415  echo "$as_me: failed program was:" >&5
     3416sed 's/^/| /' conftest.$ac_ext >&5
     3417
     3418ac_cv_lib_opengl32_glPushMatrix=no
     3419fi
     3420rm -f conftest.err conftest.$ac_objext \
     3421      conftest$ac_exeext conftest.$ac_ext
     3422LIBS=$ac_check_lib_save_LIBS
     3423fi
     3424echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_glPushMatrix" >&5
     3425echo "${ECHO_T}$ac_cv_lib_opengl32_glPushMatrix" >&6
     3426if test $ac_cv_lib_opengl32_glPushMatrix = yes; then
     3427  FOUND_opengl=yes
     3428fi
     3429
     3430    if test "$FOUND_opengl" = "yes" ; then
     3431        LIBS="$LIBS -lopengl32"
     3432
     3433        else
     3434         echo "------------------"
     3435         echo "opengl not found."
     3436         echo "please install the opengl package which can be found at http://www.opengl.org"
     3437         echo "------------------"
     3438         exit -1
     3439    fi
     3440fi
     3441
     3442#  cheking for libGLU
     3443echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
     3444echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
     3445if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
     3446  echo $ECHO_N "(cached) $ECHO_C" >&6
     3447else
     3448  ac_check_lib_save_LIBS=$LIBS
     3449LIBS="-lGLU  $LIBS"
     3450cat >conftest.$ac_ext <<_ACEOF
     3451/* confdefs.h.  */
     3452_ACEOF
     3453cat confdefs.h >>conftest.$ac_ext
     3454cat >>conftest.$ac_ext <<_ACEOF
     3455/* end confdefs.h.  */
     3456
     3457/* Override any gcc2 internal prototype to avoid an error.  */
     3458#ifdef __cplusplus
     3459extern "C"
     3460#endif
     3461/* We use char because int might match the return type of a gcc2
     3462   builtin and then its argument prototype would still apply.  */
     3463char gluProject ();
     3464int
     3465main ()
     3466{
     3467gluProject ();
     3468  ;
     3469  return 0;
     3470}
     3471_ACEOF
     3472rm -f conftest.$ac_objext conftest$ac_exeext
     3473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3474  (eval $ac_link) 2>conftest.er1
     3475  ac_status=$?
     3476  grep -v '^ *+' conftest.er1 >conftest.err
     3477  rm -f conftest.er1
     3478  cat conftest.err >&5
     3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3480  (exit $ac_status); } &&
     3481         { ac_try='test -z "$ac_c_werror_flag"
     3482                         || test ! -s conftest.err'
     3483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3484  (eval $ac_try) 2>&5
     3485  ac_status=$?
     3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3487  (exit $ac_status); }; } &&
     3488         { ac_try='test -s conftest$ac_exeext'
     3489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3490  (eval $ac_try) 2>&5
     3491  ac_status=$?
     3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3493  (exit $ac_status); }; }; then
     3494  ac_cv_lib_GLU_gluProject=yes
     3495else
     3496  echo "$as_me: failed program was:" >&5
     3497sed 's/^/| /' conftest.$ac_ext >&5
     3498
     3499ac_cv_lib_GLU_gluProject=no
     3500fi
     3501rm -f conftest.err conftest.$ac_objext \
     3502      conftest$ac_exeext conftest.$ac_ext
     3503LIBS=$ac_check_lib_save_LIBS
     3504fi
     3505echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
     3506echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
     3507if test $ac_cv_lib_GLU_gluProject = yes; then
     3508  FOUND_GLU=yes
     3509fi
     3510
     3511if test "$FOUND_GLU" = "yes" ; then
     3512    LIBS="$LIBS -lGLU"
     3513    #   checking for Windows GLU32 library
     3514else
     3515    echo "We did not find the Linux GLU Library. Checking for Windows Library"
     3516    echo "$as_me:$LINENO: checking for glPushMatrix in -lGLU32" >&5
     3517echo $ECHO_N "checking for glPushMatrix in -lGLU32... $ECHO_C" >&6
     3518if test "${ac_cv_lib_GLU32_glPushMatrix+set}" = set; then
     3519  echo $ECHO_N "(cached) $ECHO_C" >&6
     3520else
     3521  ac_check_lib_save_LIBS=$LIBS
     3522LIBS="-lGLU32  $LIBS"
     3523cat >conftest.$ac_ext <<_ACEOF
     3524/* confdefs.h.  */
     3525_ACEOF
     3526cat confdefs.h >>conftest.$ac_ext
     3527cat >>conftest.$ac_ext <<_ACEOF
     3528/* end confdefs.h.  */
     3529
     3530/* Override any gcc2 internal prototype to avoid an error.  */
     3531#ifdef __cplusplus
     3532extern "C"
     3533#endif
     3534/* We use char because int might match the return type of a gcc2
     3535   builtin and then its argument prototype would still apply.  */
     3536char glPushMatrix ();
     3537int
     3538main ()
     3539{
     3540glPushMatrix ();
     3541  ;
     3542  return 0;
     3543}
     3544_ACEOF
     3545rm -f conftest.$ac_objext conftest$ac_exeext
     3546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3547  (eval $ac_link) 2>conftest.er1
     3548  ac_status=$?
     3549  grep -v '^ *+' conftest.er1 >conftest.err
     3550  rm -f conftest.er1
     3551  cat conftest.err >&5
     3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3553  (exit $ac_status); } &&
     3554         { ac_try='test -z "$ac_c_werror_flag"
     3555                         || test ! -s conftest.err'
     3556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3557  (eval $ac_try) 2>&5
     3558  ac_status=$?
     3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3560  (exit $ac_status); }; } &&
     3561         { ac_try='test -s conftest$ac_exeext'
     3562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3563  (eval $ac_try) 2>&5
     3564  ac_status=$?
     3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3566  (exit $ac_status); }; }; then
     3567  ac_cv_lib_GLU32_glPushMatrix=yes
     3568else
     3569  echo "$as_me: failed program was:" >&5
     3570sed 's/^/| /' conftest.$ac_ext >&5
     3571
     3572ac_cv_lib_GLU32_glPushMatrix=no
     3573fi
     3574rm -f conftest.err conftest.$ac_objext \
     3575      conftest$ac_exeext conftest.$ac_ext
     3576LIBS=$ac_check_lib_save_LIBS
     3577fi
     3578echo "$as_me:$LINENO: result: $ac_cv_lib_GLU32_glPushMatrix" >&5
     3579echo "${ECHO_T}$ac_cv_lib_GLU32_glPushMatrix" >&6
     3580if test $ac_cv_lib_GLU32_glPushMatrix = yes; then
     3581  FOUND_GLU32=yes
     3582fi
     3583
     3584    if test "$FOUND_GLU32" = "yes" ; then
     3585        LIBS="$LIBS -lGLU32"
     3586
     3587        else
     3588         echo "------------------"
     3589         echo "GLU library not found."
     3590         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     3591         echo "------------------"
     3592         exit -1
     3593    fi
     3594fi
     3595# FIXME: Replace `main' with a function in `-lOSMesa':
     3596
     3597echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
     3598echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
     3599if test "${ac_cv_lib_OSMesa_main+set}" = set; then
     3600  echo $ECHO_N "(cached) $ECHO_C" >&6
     3601else
     3602  ac_check_lib_save_LIBS=$LIBS
     3603LIBS="-lOSMesa  $LIBS"
    32953604cat >conftest.$ac_ext <<_ACEOF
    32963605/* confdefs.h.  */
     
    33313640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33323641  (exit $ac_status); }; }; then
    3333   ac_cv_lib_GL_main=yes
     3642  ac_cv_lib_OSMesa_main=yes
    33343643else
    33353644  echo "$as_me: failed program was:" >&5
    33363645sed 's/^/| /' conftest.$ac_ext >&5
    33373646
    3338 ac_cv_lib_GL_main=no
     3647ac_cv_lib_OSMesa_main=no
    33393648fi
    33403649rm -f conftest.err conftest.$ac_objext \
     
    33423651LIBS=$ac_check_lib_save_LIBS
    33433652fi
    3344 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
    3345 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
    3346 if test $ac_cv_lib_GL_main = yes; then
     3653echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
     3654echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
     3655if test $ac_cv_lib_OSMesa_main = yes; then
    33473656  cat >>confdefs.h <<_ACEOF
    3348 #define HAVE_LIBGL 1
    3349 _ACEOF
    3350 
    3351   LIBS="-lGL $LIBS"
    3352 
    3353 fi
    3354 
    3355 # FIXME: Replace `main' with a function in `-lGLU':
    3356 
    3357 echo "$as_me:$LINENO: checking for main in -lGLU" >&5
    3358 echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
    3359 if test "${ac_cv_lib_GLU_main+set}" = set; then
     3657#define HAVE_LIBOSMESA 1
     3658_ACEOF
     3659
     3660  LIBS="-lOSMesa $LIBS"
     3661
     3662fi
     3663
     3664# FIXME: Replace `main' with a function in `-lX11':
     3665
     3666echo "$as_me:$LINENO: checking for main in -lX11" >&5
     3667echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
     3668if test "${ac_cv_lib_X11_main+set}" = set; then
    33603669  echo $ECHO_N "(cached) $ECHO_C" >&6
    33613670else
    33623671  ac_check_lib_save_LIBS=$LIBS
    3363 LIBS="-lGLU  $LIBS"
     3672LIBS="-lX11  $LIBS"
    33643673cat >conftest.$ac_ext <<_ACEOF
    33653674/* confdefs.h.  */
     
    34003709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    34013710  (exit $ac_status); }; }; then
    3402   ac_cv_lib_GLU_main=yes
     3711  ac_cv_lib_X11_main=yes
    34033712else
    34043713  echo "$as_me: failed program was:" >&5
    34053714sed 's/^/| /' conftest.$ac_ext >&5
    34063715
    3407 ac_cv_lib_GLU_main=no
     3716ac_cv_lib_X11_main=no
    34083717fi
    34093718rm -f conftest.err conftest.$ac_objext \
     
    34113720LIBS=$ac_check_lib_save_LIBS
    34123721fi
    3413 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
    3414 echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
    3415 if test $ac_cv_lib_GLU_main = yes; then
     3722echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
     3723echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
     3724if test $ac_cv_lib_X11_main = yes; then
    34163725  cat >>confdefs.h <<_ACEOF
    3417 #define HAVE_LIBGLU 1
    3418 _ACEOF
    3419 
    3420   LIBS="-lGLU $LIBS"
    3421 
    3422 fi
    3423 
    3424 # FIXME: Replace `main' with a function in `-lOSMesa':
    3425 
    3426 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
    3427 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
    3428 if test "${ac_cv_lib_OSMesa_main+set}" = set; then
     3726#define HAVE_LIBX11 1
     3727_ACEOF
     3728
     3729  LIBS="-lX11 $LIBS"
     3730
     3731fi
     3732
     3733# FIXME: Replace `main' with a function in `-lXt':
     3734
     3735echo "$as_me:$LINENO: checking for main in -lXt" >&5
     3736echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
     3737if test "${ac_cv_lib_Xt_main+set}" = set; then
    34293738  echo $ECHO_N "(cached) $ECHO_C" >&6
    34303739else
    34313740  ac_check_lib_save_LIBS=$LIBS
    3432 LIBS="-lOSMesa  $LIBS"
     3741LIBS="-lXt  $LIBS"
    34333742cat >conftest.$ac_ext <<_ACEOF
    34343743/* confdefs.h.  */
     
    34693778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    34703779  (exit $ac_status); }; }; then
    3471   ac_cv_lib_OSMesa_main=yes
     3780  ac_cv_lib_Xt_main=yes
    34723781else
    34733782  echo "$as_me: failed program was:" >&5
    34743783sed 's/^/| /' conftest.$ac_ext >&5
    34753784
    3476 ac_cv_lib_OSMesa_main=no
     3785ac_cv_lib_Xt_main=no
    34773786fi
    34783787rm -f conftest.err conftest.$ac_objext \
     
    34803789LIBS=$ac_check_lib_save_LIBS
    34813790fi
    3482 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
    3483 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
    3484 if test $ac_cv_lib_OSMesa_main = yes; then
     3791echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
     3792echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
     3793if test $ac_cv_lib_Xt_main = yes; then
    34853794  cat >>confdefs.h <<_ACEOF
    3486 #define HAVE_LIBOSMESA 1
    3487 _ACEOF
    3488 
    3489   LIBS="-lOSMesa $LIBS"
    3490 
    3491 fi
    3492 
    3493 # FIXME: Replace `main' with a function in `-lX11':
    3494 
    3495 echo "$as_me:$LINENO: checking for main in -lX11" >&5
    3496 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
    3497 if test "${ac_cv_lib_X11_main+set}" = set; then
     3795#define HAVE_LIBXT 1
     3796_ACEOF
     3797
     3798  LIBS="-lXt $LIBS"
     3799
     3800fi
     3801
     3802
     3803#  cheking for libglut32
     3804echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
     3805echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6
     3806if test "${ac_cv_lib_glut_glutInit+set}" = set; then
    34983807  echo $ECHO_N "(cached) $ECHO_C" >&6
    34993808else
    35003809  ac_check_lib_save_LIBS=$LIBS
    3501 LIBS="-lX11  $LIBS"
     3810LIBS="-lglut  $LIBS"
    35023811cat >conftest.$ac_ext <<_ACEOF
    35033812/* confdefs.h.  */
     
    35073816/* end confdefs.h.  */
    35083817
    3509 
     3818/* Override any gcc2 internal prototype to avoid an error.  */
     3819#ifdef __cplusplus
     3820extern "C"
     3821#endif
     3822/* We use char because int might match the return type of a gcc2
     3823   builtin and then its argument prototype would still apply.  */
     3824char glutInit ();
    35103825int
    35113826main ()
    35123827{
    3513 main ();
     3828glutInit ();
    35143829  ;
    35153830  return 0;
     
    35383853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35393854  (exit $ac_status); }; }; then
    3540   ac_cv_lib_X11_main=yes
     3855  ac_cv_lib_glut_glutInit=yes
    35413856else
    35423857  echo "$as_me: failed program was:" >&5
    35433858sed 's/^/| /' conftest.$ac_ext >&5
    35443859
    3545 ac_cv_lib_X11_main=no
     3860ac_cv_lib_glut_glutInit=no
    35463861fi
    35473862rm -f conftest.err conftest.$ac_objext \
     
    35493864LIBS=$ac_check_lib_save_LIBS
    35503865fi
    3551 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
    3552 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
    3553 if test $ac_cv_lib_X11_main = yes; then
    3554   cat >>confdefs.h <<_ACEOF
    3555 #define HAVE_LIBX11 1
    3556 _ACEOF
    3557 
    3558   LIBS="-lX11 $LIBS"
    3559 
    3560 fi
    3561 
    3562 # FIXME: Replace `main' with a function in `-lXt':
    3563 
    3564 echo "$as_me:$LINENO: checking for main in -lXt" >&5
    3565 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
    3566 if test "${ac_cv_lib_Xt_main+set}" = set; then
     3866echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
     3867echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6
     3868if test $ac_cv_lib_glut_glutInit = yes; then
     3869  FOUND_glut=yes
     3870fi
     3871
     3872if test "$FOUND_glut" = "yes" ; then
     3873    LIBS="$LIBS -lglut"
     3874    #   checking for Windows glut32 library
     3875else
     3876    echo "We did not find the Linux glut Library. Checking for Windows Library"
     3877    echo "$as_me:$LINENO: checking for glPushMatrix in -lglut32" >&5
     3878echo $ECHO_N "checking for glPushMatrix in -lglut32... $ECHO_C" >&6
     3879if test "${ac_cv_lib_glut32_glPushMatrix+set}" = set; then
    35673880  echo $ECHO_N "(cached) $ECHO_C" >&6
    35683881else
    35693882  ac_check_lib_save_LIBS=$LIBS
    3570 LIBS="-lXt  $LIBS"
     3883LIBS="-lglut32  $LIBS"
    35713884cat >conftest.$ac_ext <<_ACEOF
    35723885/* confdefs.h.  */
     
    35763889/* end confdefs.h.  */
    35773890
    3578 
     3891/* Override any gcc2 internal prototype to avoid an error.  */
     3892#ifdef __cplusplus
     3893extern "C"
     3894#endif
     3895/* We use char because int might match the return type of a gcc2
     3896   builtin and then its argument prototype would still apply.  */
     3897char glPushMatrix ();
    35793898int
    35803899main ()
    35813900{
    3582 main ();
     3901glPushMatrix ();
    35833902  ;
    35843903  return 0;
     
    36073926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36083927  (exit $ac_status); }; }; then
    3609   ac_cv_lib_Xt_main=yes
     3928  ac_cv_lib_glut32_glPushMatrix=yes
    36103929else
    36113930  echo "$as_me: failed program was:" >&5
    36123931sed 's/^/| /' conftest.$ac_ext >&5
    36133932
    3614 ac_cv_lib_Xt_main=no
     3933ac_cv_lib_glut32_glPushMatrix=no
    36153934fi
    36163935rm -f conftest.err conftest.$ac_objext \
     
    36183937LIBS=$ac_check_lib_save_LIBS
    36193938fi
    3620 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
    3621 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
    3622 if test $ac_cv_lib_Xt_main = yes; then
    3623   cat >>confdefs.h <<_ACEOF
    3624 #define HAVE_LIBXT 1
    3625 _ACEOF
    3626 
    3627   LIBS="-lXt $LIBS"
    3628 
    3629 fi
    3630 
    3631 # FIXME: Replace `main' with a function in `-lglut':
    3632 
    3633 echo "$as_me:$LINENO: checking for main in -lglut" >&5
    3634 echo $ECHO_N "checking for main in -lglut... $ECHO_C" >&6
    3635 if test "${ac_cv_lib_glut_main+set}" = set; then
    3636   echo $ECHO_N "(cached) $ECHO_C" >&6
    3637 else
    3638   ac_check_lib_save_LIBS=$LIBS
    3639 LIBS="-lglut  $LIBS"
    3640 cat >conftest.$ac_ext <<_ACEOF
    3641 /* confdefs.h.  */
    3642 _ACEOF
    3643 cat confdefs.h >>conftest.$ac_ext
    3644 cat >>conftest.$ac_ext <<_ACEOF
    3645 /* end confdefs.h.  */
    3646 
    3647 
    3648 int
    3649 main ()
    3650 {
    3651 main ();
    3652   ;
    3653   return 0;
    3654 }
    3655 _ACEOF
    3656 rm -f conftest.$ac_objext conftest$ac_exeext
    3657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3658   (eval $ac_link) 2>conftest.er1
    3659   ac_status=$?
    3660   grep -v '^ *+' conftest.er1 >conftest.err
    3661   rm -f conftest.er1
    3662   cat conftest.err >&5
    3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3664   (exit $ac_status); } &&
    3665          { ac_try='test -z "$ac_c_werror_flag"
    3666                          || test ! -s conftest.err'
    3667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3668   (eval $ac_try) 2>&5
    3669   ac_status=$?
    3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3671   (exit $ac_status); }; } &&
    3672          { ac_try='test -s conftest$ac_exeext'
    3673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3674   (eval $ac_try) 2>&5
    3675   ac_status=$?
    3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3677   (exit $ac_status); }; }; then
    3678   ac_cv_lib_glut_main=yes
    3679 else
    3680   echo "$as_me: failed program was:" >&5
    3681 sed 's/^/| /' conftest.$ac_ext >&5
    3682 
    3683 ac_cv_lib_glut_main=no
    3684 fi
    3685 rm -f conftest.err conftest.$ac_objext \
    3686       conftest$ac_exeext conftest.$ac_ext
    3687 LIBS=$ac_check_lib_save_LIBS
    3688 fi
    3689 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_main" >&5
    3690 echo "${ECHO_T}$ac_cv_lib_glut_main" >&6
    3691 if test $ac_cv_lib_glut_main = yes; then
    3692   cat >>confdefs.h <<_ACEOF
    3693 #define HAVE_LIBGLUT 1
    3694 _ACEOF
    3695 
    3696   LIBS="-lglut $LIBS"
    3697 
     3939echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_glPushMatrix" >&5
     3940echo "${ECHO_T}$ac_cv_lib_glut32_glPushMatrix" >&6
     3941if test $ac_cv_lib_glut32_glPushMatrix = yes; then
     3942  FOUND_glut32=yes
     3943fi
     3944
     3945    if test "$FOUND_glut32" = "yes" ; then
     3946        LIBS="$LIBS -lglut32"
     3947    else
     3948         echo "------------------"
     3949         echo "glut library not found."
     3950         echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html"
     3951         echo "------------------"
     3952         exit -1
     3953    fi
    36983954fi
    36993955
  • orxonox/trunk/configure.ac

    r1956 r1959  
    44AC_PREREQ(2.59)
    55AC_INIT(orxonox, 0.1-pre-alpha, orxonox-dev@mail.datacore.ch)
     6AM_INIT_AUTOMAKE
    67AC_CONFIG_SRCDIR([.])
    78AC_CONFIG_HEADER([config.h])
    8 AM_INIT_AUTOMAKE
    99
    1010# Checks for programs.
     
    1313
    1414# Checks for libraries.
    15 # FIXME: Replace `main' with a function in `-lGL':
    16 AC_CHECK_LIB([GL], [main])
    17 # FIXME: Replace `main' with a function in `-lGLU':
    18 AC_CHECK_LIB([GLU], [main])
     15
     16#  cheking for libGL
     17#   checking for Unix GL
     18AC_CHECK_LIB([GL], [glPushMatrix], FOUND_GL=yes)
     19if test "$FOUND_GL" = "yes" ; then
     20    LIBS="$LIBS -lGL"
     21    #   checking for Windows openGl library
     22else
     23    echo "We did not find the Linux opengl Library. Checking for Windows Library"
     24    AC_CHECK_LIB([opengl32], [glPushMatrix], FOUND_opengl=yes)
     25    if test "$FOUND_opengl" = "yes" ; then
     26        LIBS="$LIBS -lopengl32"
     27       
     28        else
     29         echo "------------------"
     30         echo "opengl not found."
     31         echo "please install the opengl package which can be found at http://www.opengl.org"
     32         echo "------------------"
     33         exit -1
     34    fi
     35fi
     36
     37#  cheking for libGLU
     38AC_CHECK_LIB([GLU], [gluProject], FOUND_GLU=yes)
     39if test "$FOUND_GLU" = "yes" ; then
     40    LIBS="$LIBS -lGLU"
     41    #   checking for Windows GLU32 library
     42else
     43    echo "We did not find the Linux GLU Library. Checking for Windows Library"
     44    AC_CHECK_LIB([GLU32], [glPushMatrix], FOUND_GLU32=yes)
     45    if test "$FOUND_GLU32" = "yes" ; then
     46        LIBS="$LIBS -lGLU32"
     47       
     48        else
     49         echo "------------------"
     50         echo "GLU library not found."
     51         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     52         echo "------------------"
     53         exit -1
     54    fi
     55fi
    1956# FIXME: Replace `main' with a function in `-lOSMesa':
    2057AC_CHECK_LIB([OSMesa], [main])
     
    2360# FIXME: Replace `main' with a function in `-lXt':
    2461AC_CHECK_LIB([Xt], [main])
    25 # FIXME: Replace `main' with a function in `-lglut':
    26 AC_CHECK_LIB([glut], [main])
     62
     63#  cheking for libglut32
     64AC_CHECK_LIB([glut], [glutInit], FOUND_glut=yes)
     65if test "$FOUND_glut" = "yes" ; then
     66    LIBS="$LIBS -lglut"
     67    #   checking for Windows glut32 library
     68else
     69    echo "We did not find the Linux glut Library. Checking for Windows Library"
     70    AC_CHECK_LIB([glut32], [glPushMatrix], FOUND_glut32=yes)
     71    if test "$FOUND_glut32" = "yes" ; then
     72        LIBS="$LIBS -lglut32"
     73    else
     74         echo "------------------"
     75         echo "glut library not found."
     76         echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html"
     77         echo "------------------"
     78         exit -1
     79    fi
     80fi
     81
    2782# FIXME: Replace `main' with a function in `-lm':
    2883AC_CHECK_LIB([m], [main])
  • orxonox/trunk/src/Makefile.am

    r1958 r1959  
    11AM_CXXFLAGS="-I/usr/X11R6/include"
    2 AM_LDFLAGS="-L/usr/Mesa-6.0.1/lib -lglut32 -lGLU32 -lopengl32 -lm -L/usr/X11R6/lib -lXt -lX11"
     2AM_LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11"
    33
    44#"-O3 -pedantic -fPIC -ffast-math -I/usr/X11R6/include"
  • orxonox/trunk/src/Makefile.in

    r1958 r1959  
    111111target_alias = @target_alias@
    112112AM_CXXFLAGS = "-I/usr/X11R6/include"
    113 AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -lglut32 -lGLU32 -lopengl32 -lm -L/usr/X11R6/lib -lXt -lX11"
     113AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11"
    114114
    115115
Note: See TracChangeset for help on using the changeset viewer.