/[emacs]/emacs/configure
ViewVC logotype

Diff of /emacs/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.148 by jhd, Thu Mar 10 17:23:04 2005 UTC revision 1.149 by monnier, Wed Mar 16 22:21:31 2005 UTC
# Line 10680  fi Line 10680  fi
10680  fi  fi
10681    
10682  if test "${USE_X_TOOLKIT}" = "MOTIF"; then  if test "${USE_X_TOOLKIT}" = "MOTIF"; then
   echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5  
 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6  
 if test "${emacs_cv_lesstif+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   # We put this in CFLAGS temporarily to precede other -I options  
   # that might be in CFLAGS temporarily.  
   # We put this in CPPFLAGS where it precedes the other -I options.  
   OLD_CPPFLAGS=$CPPFLAGS  
   OLD_CFLAGS=$CFLAGS  
   CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"  
   CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>  
 int  
 main ()  
 {  
 int x = 5;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   emacs_cv_lesstif=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 emacs_cv_lesstif=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5  
 echo "${ECHO_T}$emacs_cv_lesstif" >&6  
   if test $emacs_cv_lesstif = yes; then  
     # Make sure this -I option remains in CPPFLAGS after it is set  
     # back to REAL_CPPFLAGS.  
     # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not  
     # have those other -I options anyway.  Ultimately, having this  
     # directory ultimately in CPPFLAGS will be enough.  
     REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"  
     LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"  
   else  
     CFLAGS=$OLD_CFLAGS  
     CPPFLAGS=$OLD_CPPFLAGS  
   fi  
10683    echo "$as_me:$LINENO: checking for Motif version 2.1" >&5    echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10684  echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6  echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10685  if test "${emacs_cv_motif_version_2_1+set}" = set; then  if test "${emacs_cv_motif_version_2_1+set}" = set; then
# Line 10892  cat >>confdefs.h <<\_ACEOF Line 10820  cat >>confdefs.h <<\_ACEOF
10820  _ACEOF  _ACEOF
10821    
10822      fi      fi
10823      else
10824        echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10825    echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10826    if test "${emacs_cv_lesstif+set}" = set; then
10827      echo $ECHO_N "(cached) $ECHO_C" >&6
10828    else
10829      # We put this in CFLAGS temporarily to precede other -I options
10830        # that might be in CFLAGS temporarily.
10831        # We put this in CPPFLAGS where it precedes the other -I options.
10832        OLD_CPPFLAGS=$CPPFLAGS
10833        OLD_CFLAGS=$CFLAGS
10834        CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10835        CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10836        cat >conftest.$ac_ext <<_ACEOF
10837    /* confdefs.h.  */
10838    _ACEOF
10839    cat confdefs.h >>conftest.$ac_ext
10840    cat >>conftest.$ac_ext <<_ACEOF
10841    /* end confdefs.h.  */
10842    #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10843    int
10844    main ()
10845    {
10846    int x = 5;
10847      ;
10848      return 0;
10849    }
10850    _ACEOF
10851    rm -f conftest.$ac_objext
10852    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853      (eval $ac_compile) 2>conftest.er1
10854      ac_status=$?
10855      grep -v '^ *+' conftest.er1 >conftest.err
10856      rm -f conftest.er1
10857      cat conftest.err >&5
10858      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859      (exit $ac_status); } &&
10860             { ac_try='test -z "$ac_c_werror_flag"
10861                             || test ! -s conftest.err'
10862      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863      (eval $ac_try) 2>&5
10864      ac_status=$?
10865      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866      (exit $ac_status); }; } &&
10867             { ac_try='test -s conftest.$ac_objext'
10868      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869      (eval $ac_try) 2>&5
10870      ac_status=$?
10871      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872      (exit $ac_status); }; }; then
10873      emacs_cv_lesstif=yes
10874    else
10875      echo "$as_me: failed program was:" >&5
10876    sed 's/^/| /' conftest.$ac_ext >&5
10877    
10878    emacs_cv_lesstif=no
10879    fi
10880    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10881    fi
10882    echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10883    echo "${ECHO_T}$emacs_cv_lesstif" >&6
10884        if test $emacs_cv_lesstif = yes; then
10885          # Make sure this -I option remains in CPPFLAGS after it is set
10886          # back to REAL_CPPFLAGS.
10887          # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10888          # have those other -I options anyway.  Ultimately, having this
10889          # directory ultimately in CPPFLAGS will be enough.
10890          REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10891          LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10892        else
10893          CFLAGS=$OLD_CFLAGS
10894          CPPFLAGS=$OLD_CPPFLAGS
10895        fi
10896    fi    fi
10897  fi  fi
10898    

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26