Results 1 to 1 of 1

Thread: Setting Up config.h Defines from configure Script

  1. #1
    Join Date
    May 2008
    Beans
    1,029

    Question Setting Up config.h Defines from configure Script

    Is there a way to change the defines in a setup.h file from the configure command? I have compiled an older version of guile in a Unix-like environment but after I run configure I have to manually edit the setup.h file to comment out the line:
    Code:
    #define HAVE_STRUCT_TIMESPEC 1
    Because it is already defined in pthread.h and throws an error during make if I don't. So if I could do this from the configure command it would save me a step.

    ----- Edit -----

    I understand that you can use something like "CFLAGS=-D<macro>" to define a macro. But can it be undefined for the config.h file without affecting the macro defined in pthreads.h?
    Last edited by dodle; November 14th, 2012 at 06:23 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •