XEmacs / lwlib / lwlib-config.c

/* Flags indicating how lwlib was compiled.
   Copyright (C) 1994 Lucid, Inc.

This file is part of the Lucid Widget Library.

The Lucid Widget Library is free software; you can redistribute it and/or 
modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

The Lucid Widget Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with XEmacs; see the file COPYING.  If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.  */

/* This is a kludge to make sure emacs can only link against a version of
   lwlib that was compiled in the right way.  Emacs references symbols which
   correspond to the way it thinks lwlib was compiled, and if lwlib wasn't
   compiled in that way, then somewhat meaningful link errors will result.
   The alternatives to this range from obscure link errors, to obscure
   runtime errors that look a lot like bugs. */

#include <config.h>
#include "lwlib.h"

#include <X11/Xlib.h>	/* to get XlibSpecificationRelease */
#ifdef NEED_MOTIF
#include <Xm/Xm.h>	/* to get XmVersion */
#endif

#if (XlibSpecificationRelease == 4)
int lwlib_uses_x11r4;
#elif (XlibSpecificationRelease == 5)
int lwlib_uses_x11r5;
#elif (XlibSpecificationRelease == 6)
int lwlib_uses_x11r6;
#else
int lwlib_uses_unknown_x11;
#endif

#ifdef NEED_MOTIF
int lwlib_uses_motif;
#else
int lwlib_does_not_use_motif;
#endif

#if (XmVersion >= 1002)
int lwlib_uses_motif_1_2;
#else
int lwlib_does_not_use_motif_1_2;
#endif

#ifdef LWLIB_MENUBARS_LUCID
int lwlib_menubars_lucid;
#else
# ifdef LWLIB_MENUBARS_MOTIF
int lwlib_menubars_motif;
# else
int lwlib_does_not_support_menubars;
# endif
#endif

#ifdef LWLIB_SCROLLBARS_LUCID
int lwlib_scrollbars_lucid;
#else
# ifdef LWLIB_SCROLLBARS_MOTIF
int lwlib_scrollbars_motif;
# else
#  ifdef LWLIB_SCROLLBARS_ATHENA
int lwlib_scrollbars_athena;
#  else
int lwlib_does_not_support_scrollbars;
#  endif
# endif
#endif

#ifdef LWLIB_DIALOGS_MOTIF
int lwlib_dialogs_motif;
#else
# ifdef LWLIB_DIALOGS_ATHENA
int lwlib_dialogs_athena;
# else
int lwlib_does_not_support_dialogs;
# endif
#endif

#ifdef LWLIB_WIDGETS_MOTIF
int lwlib_widgets_motif;
#else
# ifdef LWLIB_WIDGETS_ATHENA
int lwlib_widgets_athena;
# else
int lwlib_does_not_support_widgets;
# endif
#endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.