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

  • SEARCH
  • Home
  • 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 8356813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:17:36+00:00 2026-06-09T10:17:36+00:00

How can I use AS_INIT_GENERATE to generate a script that is not in the

  • 0

How can I use AS_INIT_GENERATE to generate a script that is not in the same directory as the configure script, in particular so that VPATH builds will be honoured?

For example, for a configure.ac file containing

AC_PREREQ([2.68])
AC_INIT([example],[0.1])
AS_INIT_GENERATED([src/file.sh]) || AS_EXIT
AC_OUTPUT

running the commands

~ $ autoreconf .
~ $ mkdir build && cd build
~/build $ ../configure

results in the error message

../configure: line 1648: src/file.sh: No such file or directory
../configure: line 1655: src/file.sh: No such file or directory

I guess I’d have to make sure that the src directory exists before I call AS_INIT_GENERATE to create src/file.sh, or maybe I’m doing it all wrong?

  • 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-09T10:17:37+00:00Added an answer on June 9, 2026 at 10:17 am

    Try something like this:

    AC_PREREQ([2.68])
    AC_INIT([example],[0.1])
    test -d src || AS_MKDIR_P([src]) dnl <----- Create 'src' if it doesn't exist.
    AS_INIT_GENERATED([src/file.sh]) || AS_EXIT
    AC_OUTPUT
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This article on MSDN states that you can use as many try catch blocks
Does anyone know how DbDataReaders actually work. We can use SqlDataReader as an example.
Can I use type as a name for a python function argument? def fun(name,
How can I use displayObjects as animation frames? I have six symbols in my
As we all know,we can use such api as LockWorkStation() in user32.dll to lock
What is safer? I can use either one as I'm using CodeIgniter, but with
In python, is there a way I can use instance variables as optional arguments
I am getting the below perl error. Can't use string () as a symbol
According to the axe book (2nd edition), we can use to_s as follows. class
How Can I use my system as a tomcat server ? Like tomcat server

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.