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 8030405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:45:26+00:00 2026-06-05T00:45:26+00:00

I perform some checks during configure, which i set up with autoconf using the

  • 0

I perform some checks during configure, which i set up with autoconf using the AC_CACHE_CHECK macro. Some checks are critical, so if they donÄt pass, I want configure to fail. How can I achieve this?

Thanks, Steffen

  • 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. Editorial Team
    Editorial Team
    2026-06-05T00:45:28+00:00Added an answer on June 5, 2026 at 12:45 am

    Not sure what you mean. Do you want to abort if the result is not cached? Or, if the result is not cached, do you want to attempt to assign a value but abort if unsuccesful? For the latter, just do:

    # Replace 3rd argument with commands to assign the cache variable
    # See autoconf documentation for how to name the cache variable
    AC_CACHE_CHECK([myvariable], [sss_cv_type_myvar], [sss_cv_type_myvar=yes])
    myvariable=$sss_cv_type_myvar
    AS_IF([test x"$myvariable" != xyes],[AC_MSG_ERROR(
        [myvariable not yes])])
    

    If you want to abort merely because the variable is not cached, you could put an exit in the 3rd argument to AC_CACHE_CHECK. The commands in that option are used to assign the cache variable, and are not supposed to have side effects. Exiting the configure script is definitely a side effect, but that may be the behavior you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using hibernate as ORM tool, i want to perform some common stuff
I've got a DialogPreference (more precisely an EditTextPreference) and want to perform some checks
I perform some checks in my Window class constructor, and if they fail I
I need to perform some operations on all folders within a file share which
I am using RandomAccessFile to perform some writes to a file as part of
A winforms dialog is using BackgroundWorker to perform some asynchronous operations with significant success.
I'm using Talend to perform some ETL and I'm getting the following error when
I'm using the javax.xml.transform.Transformer class to perform some XSLT translations, like so: TransformerFactory factory
I'm working on an application which uses a bootscrapper object to perform some operations
I have a HttpHandler which will do some checks on the incoming requests and

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.