Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 104667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:19:04+00:00 2026-05-11T01:19:04+00:00

I am writing my first project that will use autoconf and teaching it to

  • 0

I am writing my first project that will use autoconf and teaching it to myself as I go. For the most part, things are going extremely well. I have one last significant hurdle. I am having trouble locating library and header files that may be named differently from one system to the next.

For example, I need to compile with Mozilla’s SpiderMonkey. When compiled from source, SpiderMonkey becomes libjs.so. On my Linux variant, however, SpiderMonkey is installed as libmozjs.so. It’s the same library, just a different name, thus a different linker flag.

Is there a proper way to go about detecting the name of the library? Do I just default it to ‘js’ and give a configure option to override it?

I have the same situation with header files. The header files for SpiderMonkey are installed at /usr/include/mozjs/ on my operating system. I am sure that on other systems, it will be /usr/include/js/ or maybe even simply /usr/include/. How do I find the proper header file location? I was hesitant to do a vanilla ‘find’ since it would be slow and I might find the wrong copy of the file (finding the file in a user’s home directory instead of /usr/include/ for instance.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:19:04+00:00Added an answer on May 11, 2026 at 1:19 am

    In addition to adding an option to specify the path/name explicitly, if there are a few well-known names or locations, you can just try them in order until one succeeds, using something like this:

     AC_TRY_LINK([#include 'mpi.h'],[MPI_Init(0, 0);], [mpi_link='yes'], [mpi_link='no']); 

    Or just use test. I used the following to pick up the boost libraries that were actually built, possible with slightly different names:

    for lib in 'date_time' 'filesystem' 'regex' 'unit_test_framework' 'signals'; do     if test -f ${$1_libdir}/libboost_$lib-gcc$boost_thread_flag.a; then       BOOST_LIBS='$BOOST_LIBS -lboost_$lib-gcc$boost_thread_flag'     elif test -f ${$1_libdir}/libboost_$lib-gcc$boost_thread_flag-s.a; then       BOOST_LIBS='$BOOST_LIBS -lboost_$lib-gcc$boost_thread_flag-s'     elif test -f ${$1_libdir}/libboost_$lib$boost_thread_flag.a; then       BOOST_LIBS='$BOOST_LIBS -lboost_$lib$boost_thread_flag'     elif test -f ${$1_libdir}/libboost_$lib.a; then       BOOST_LIBS='$BOOST_LIBS -lboost_$lib'     fi done 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer In python you want to start with the filecmp module.… May 11, 2026 at 10:07 am
  • added an answer You need to use the new live API added to… May 11, 2026 at 10:07 am
  • added an answer Look at the Form.AcceptButton property. May 11, 2026 at 10:07 am

Related Questions

I am writing my first project that will use autoconf and teaching it to
I am writing my first serious wxWidgets program. I'd like to use the wxConfig
Sorry for the slightly noobish question, as I am writing my first rails app.
Currently, I am writing up a bit of a product-based CMS as my first
I am writing my own Joomla component (MVC), its based heavily on the newsflash
I am writing my own control that will contain a panel with text, images
I am busy writing my thesis (so, I guess this could count as a
I am writing a addressbook module for my software right now. I have the
I am writing a website in my spare time for an educational facility and
I am writing unit tests for some of my code and have run into

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.