Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.69. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 30 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | |
| 33 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 58 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 90 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 91 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 100 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 111 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 112 | fi |
| 113 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 131 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 407 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 408 | as_fn_error () |
| 409 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 414 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 415 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 442 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 463 | |
| 464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 474 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 479 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 482 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 487 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 502 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 511 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 518 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 526 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 528 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 532 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 533 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 534 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 535 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | |
| 560 | # Name of the host. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # |
| 566 | # Initializations. |
| 567 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 569 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 570 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 571 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | cross_compiling=no |
| 573 | subdirs= |
| 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 583 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | |
| 585 | ac_unique_file="version.h" |
| 586 | # Factoring default headers for most tests. |
| 587 | ac_includes_default="\ |
| 588 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <sys/types.h> |
| 591 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 592 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 593 | # include <sys/stat.h> |
| 594 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 595 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 596 | # include <stdlib.h> |
| 597 | # include <stddef.h> |
| 598 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 599 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # endif |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRING_H |
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 605 | # include <memory.h> |
| 606 | # endif |
| 607 | # include <string.h> |
| 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 610 | # include <strings.h> |
| 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 614 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 615 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 617 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 618 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 619 | # include <unistd.h> |
| 620 | #endif" |
| 621 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 622 | ac_header_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 623 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 624 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 625 | BUILD_LDFLAGS |
| 626 | BUILD_CFLAGS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 627 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 628 | DO_TEST_SUITE |
| 629 | ET_DIR |
| 630 | SS_DIR |
| 631 | LDFLAG_STATIC |
| 632 | root_sysconfdir |
| 633 | root_libdir |
| 634 | root_sbindir |
| 635 | root_bindir |
| 636 | root_prefix |
| 637 | UNIX_CMT |
| 638 | CYGWIN_CMT |
| 639 | LINUX_CMT |
| 640 | UNI_DIFF_OPTS |
| 641 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 642 | SOCKET_LIB |
| 643 | SIZEOF_LONG_LONG |
| 644 | SIZEOF_LONG |
| 645 | SIZEOF_INT |
| 646 | SIZEOF_SHORT |
| 647 | BUILD_CC |
| 648 | MAKEINFO |
| 649 | STRIP |
| 650 | AR |
| 651 | LDCONFIG |
| 652 | PERL |
| 653 | SED |
| 654 | AWK |
| 655 | CHMOD |
| 656 | RM |
| 657 | CP |
| 658 | MV |
| 659 | LN_S |
| 660 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 661 | ifNotGNUmake |
| 662 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 663 | BINARY_TYPE |
| 664 | POSUB |
| 665 | LTLIBINTL |
| 666 | LIBINTL |
| 667 | INTLLIBS |
| 668 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 669 | INTLOBJS |
| 670 | GENCAT |
| 671 | INSTOBJEXT |
| 672 | DATADIRNAME |
| 673 | CATOBJEXT |
| 674 | USE_INCLUDED_LIBINTL |
| 675 | BUILD_INCLUDED_LIBINTL |
| 676 | INTLBISON |
| 677 | LTLIBICONV |
| 678 | LIBICONV |
| 679 | HAVE_WPRINTF |
| 680 | HAVE_SNPRINTF |
| 681 | HAVE_ASPRINTF |
| 682 | HAVE_POSIX_PRINTF |
| 683 | GLIBC21 |
| 684 | ALLOCA |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 685 | EGREP |
| 686 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 687 | RANLIB |
| 688 | MSGMERGE |
| 689 | XGETTEXT |
| 690 | GMSGFMT |
| 691 | MSGFMT |
| 692 | USE_NLS |
| 693 | MKINSTALLDIRS |
| 694 | INSTALL_DATA |
| 695 | INSTALL_SCRIPT |
| 696 | INSTALL_PROGRAM |
| 697 | SET_MAKE |
| 698 | VERSION |
| 699 | PACKAGE |
| 700 | GETTEXT_PACKAGE |
| 701 | UUIDD_CMT |
| 702 | E2INITRD_MAN |
| 703 | E2INITRD_PROG |
| 704 | FSCK_MAN |
| 705 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 706 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 707 | RESIZER_CMT |
| 708 | IMAGER_CMT |
| 709 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 710 | QUOTA_CMT |
| 711 | DEPPROFILED_LIBQUOTA |
| 712 | PROFILED_LIBQUOTA |
| 713 | DEPSTATIC_LIBQUOTA |
| 714 | STATIC_LIBQUOTA |
| 715 | DEPLIBQUOTA |
| 716 | LIBQUOTA |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 717 | BLKID_CMT |
| 718 | DEPPROFILED_LIBBLKID |
| 719 | PROFILED_LIBBLKID |
| 720 | DEPSTATIC_LIBBLKID |
| 721 | STATIC_LIBBLKID |
| 722 | DEPLIBBLKID |
| 723 | LIBBLKID |
| 724 | UUID_CMT |
| 725 | DEPPROFILED_LIBUUID |
| 726 | PROFILED_LIBUUID |
| 727 | DEPSTATIC_LIBUUID |
| 728 | STATIC_LIBUUID |
| 729 | DEPLIBUUID |
| 730 | LIBUUID |
| 731 | PKG_CONFIG |
| 732 | TEST_IO_CMT |
| 733 | PRIVATE_LIBS_CMT |
| 734 | LDFLAG_DYNAMIC |
| 735 | PROFILED_LIB_EXT |
| 736 | STATIC_LIB_EXT |
| 737 | LIB_EXT |
| 738 | CHECKER_CMT |
| 739 | PROFILE_CMT |
| 740 | BSDLIB_CMT |
| 741 | ELF_CMT |
| 742 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 743 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 744 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 745 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 746 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 747 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 748 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 749 | MAINTAINER_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 750 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 751 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 752 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 753 | OBJEXT |
| 754 | EXEEXT |
| 755 | ac_ct_CC |
| 756 | CPPFLAGS |
| 757 | LDFLAGS |
| 758 | CFLAGS |
| 759 | CC |
| 760 | host_os |
| 761 | host_vendor |
| 762 | host_cpu |
| 763 | host |
| 764 | build_os |
| 765 | build_vendor |
| 766 | build_cpu |
| 767 | build |
| 768 | E2FSPROGS_PKGVER |
| 769 | E2FSPROGS_VERSION |
| 770 | E2FSPROGS_DAY |
| 771 | E2FSPROGS_MONTH |
| 772 | E2FSPROGS_YEAR |
| 773 | target_alias |
| 774 | host_alias |
| 775 | build_alias |
| 776 | LIBS |
| 777 | ECHO_T |
| 778 | ECHO_N |
| 779 | ECHO_C |
| 780 | DEFS |
| 781 | mandir |
| 782 | localedir |
| 783 | libdir |
| 784 | psdir |
| 785 | pdfdir |
| 786 | dvidir |
| 787 | htmldir |
| 788 | infodir |
| 789 | docdir |
| 790 | oldincludedir |
| 791 | includedir |
| 792 | localstatedir |
| 793 | sharedstatedir |
| 794 | sysconfdir |
| 795 | datadir |
| 796 | datarootdir |
| 797 | libexecdir |
| 798 | sbindir |
| 799 | bindir |
| 800 | program_transform_name |
| 801 | prefix |
| 802 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 803 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 804 | PACKAGE_BUGREPORT |
| 805 | PACKAGE_STRING |
| 806 | PACKAGE_VERSION |
| 807 | PACKAGE_TARNAME |
| 808 | PACKAGE_NAME |
| 809 | PATH_SEPARATOR |
| 810 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 811 | ac_subst_files='MCONFIG |
| 812 | MAKEFILE_ELF |
| 813 | MAKEFILE_BSDLIB |
| 814 | MAKEFILE_PROFILE |
| 815 | MAKEFILE_CHECKER |
| 816 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 817 | ASM_TYPES_HEADER |
| 818 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 819 | ac_user_opts=' |
| 820 | enable_option_checking |
| 821 | with_diet_libc |
| 822 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 823 | with_ccopts |
| 824 | with_ldopts |
| 825 | with_root_prefix |
| 826 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 827 | enable_symlink_install |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 828 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 829 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 830 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 831 | enable_compression |
| 832 | enable_htree |
| 833 | enable_elf_shlibs |
| 834 | enable_bsd_shlibs |
| 835 | enable_profile |
| 836 | enable_checker |
| 837 | enable_jbd_debug |
| 838 | enable_blkid_debug |
| 839 | enable_testio_debug |
| 840 | enable_libuuid |
| 841 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 842 | enable_quota |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 843 | enable_debugfs |
| 844 | enable_imager |
| 845 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 846 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 847 | enable_fsck |
| 848 | enable_e2initrd_helper |
| 849 | enable_tls |
| 850 | enable_uuidd |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 851 | enable_mmp |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 852 | enable_nls |
| 853 | with_gnu_ld |
| 854 | enable_rpath |
| 855 | with_libiconv_prefix |
| 856 | with_included_gettext |
| 857 | with_libintl_prefix |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 858 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 859 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 860 | ac_precious_vars='build_alias |
| 861 | host_alias |
| 862 | target_alias |
| 863 | CC |
| 864 | CFLAGS |
| 865 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 866 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 867 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 868 | CPP |
| 869 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 870 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 871 | |
| 872 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 873 | ac_init_help= |
| 874 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 875 | ac_unrecognized_opts= |
| 876 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 877 | # The variables have the same names as the options, with |
| 878 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 879 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 880 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 881 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 882 | no_recursion= |
| 883 | prefix=NONE |
| 884 | program_prefix=NONE |
| 885 | program_suffix=NONE |
| 886 | program_transform_name=s,x,x, |
| 887 | silent= |
| 888 | site= |
| 889 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 890 | verbose= |
| 891 | x_includes=NONE |
| 892 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 893 | |
| 894 | # Installation directory options. |
| 895 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 896 | # and all the variables that are supposed to be based on exec_prefix |
| 897 | # by default will actually change. |
| 898 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 899 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 900 | bindir='${exec_prefix}/bin' |
| 901 | sbindir='${exec_prefix}/sbin' |
| 902 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 903 | datarootdir='${prefix}/share' |
| 904 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 905 | sysconfdir='${prefix}/etc' |
| 906 | sharedstatedir='${prefix}/com' |
| 907 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 908 | includedir='${prefix}/include' |
| 909 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 910 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 911 | infodir='${datarootdir}/info' |
| 912 | htmldir='${docdir}' |
| 913 | dvidir='${docdir}' |
| 914 | pdfdir='${docdir}' |
| 915 | psdir='${docdir}' |
| 916 | libdir='${exec_prefix}/lib' |
| 917 | localedir='${datarootdir}/locale' |
| 918 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 920 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 921 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | for ac_option |
| 923 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 924 | # If the previous option needs an argument, assign it. |
| 925 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 926 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 927 | ac_prev= |
| 928 | continue |
| 929 | fi |
| 930 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 931 | case $ac_option in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 932 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 933 | *=) ac_optarg= ;; |
| 934 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 935 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 936 | |
| 937 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 939 | case $ac_dashdash$ac_option in |
| 940 | --) |
| 941 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 942 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 943 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 944 | ac_prev=bindir ;; |
| 945 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 946 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 947 | |
| 948 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 949 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 950 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 951 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 952 | |
| 953 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 954 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 955 | ac_prev=cache_file ;; |
| 956 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 957 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 958 | cache_file=$ac_optarg ;; |
| 959 | |
| 960 | --config-cache | -C) |
| 961 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 962 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 963 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 964 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 965 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 966 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 967 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 968 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 969 | | --dataroo | --dataro | --datar) |
| 970 | ac_prev=datarootdir ;; |
| 971 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 972 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 973 | datarootdir=$ac_optarg ;; |
| 974 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 975 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 976 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 977 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 979 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 980 | ac_useropt_orig=$ac_useropt |
| 981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 982 | case $ac_user_opts in |
| 983 | *" |
| 984 | "enable_$ac_useropt" |
| 985 | "*) ;; |
| 986 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 987 | ac_unrecognized_sep=', ';; |
| 988 | esac |
| 989 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 990 | |
| 991 | -docdir | --docdir | --docdi | --doc | --do) |
| 992 | ac_prev=docdir ;; |
| 993 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 994 | docdir=$ac_optarg ;; |
| 995 | |
| 996 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 997 | ac_prev=dvidir ;; |
| 998 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 999 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1000 | |
| 1001 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1002 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1003 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1004 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1005 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1006 | ac_useropt_orig=$ac_useropt |
| 1007 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1008 | case $ac_user_opts in |
| 1009 | *" |
| 1010 | "enable_$ac_useropt" |
| 1011 | "*) ;; |
| 1012 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1013 | ac_unrecognized_sep=', ';; |
| 1014 | esac |
| 1015 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1016 | |
| 1017 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1018 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1019 | | --exec | --exe | --ex) |
| 1020 | ac_prev=exec_prefix ;; |
| 1021 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1022 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1023 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1024 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1025 | |
| 1026 | -gas | --gas | --ga | --g) |
| 1027 | # Obsolete; use --with-gas. |
| 1028 | with_gas=yes ;; |
| 1029 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1030 | -help | --help | --hel | --he | -h) |
| 1031 | ac_init_help=long ;; |
| 1032 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1033 | ac_init_help=recursive ;; |
| 1034 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1035 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1036 | |
| 1037 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1038 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1039 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1040 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1042 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1043 | ac_prev=htmldir ;; |
| 1044 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1045 | | --ht=*) |
| 1046 | htmldir=$ac_optarg ;; |
| 1047 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1048 | -includedir | --includedir | --includedi | --included | --include \ |
| 1049 | | --includ | --inclu | --incl | --inc) |
| 1050 | ac_prev=includedir ;; |
| 1051 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1052 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1053 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1054 | |
| 1055 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1056 | ac_prev=infodir ;; |
| 1057 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1058 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1059 | |
| 1060 | -libdir | --libdir | --libdi | --libd) |
| 1061 | ac_prev=libdir ;; |
| 1062 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1063 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1064 | |
| 1065 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1066 | | --libexe | --libex | --libe) |
| 1067 | ac_prev=libexecdir ;; |
| 1068 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1069 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1070 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1071 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1072 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1073 | ac_prev=localedir ;; |
| 1074 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1075 | localedir=$ac_optarg ;; |
| 1076 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1077 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1078 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1079 | ac_prev=localstatedir ;; |
| 1080 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1081 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1082 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1083 | |
| 1084 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1085 | ac_prev=mandir ;; |
| 1086 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1088 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1089 | -nfp | --nfp | --nf) |
| 1090 | # Obsolete; use --without-fp. |
| 1091 | with_fp=no ;; |
| 1092 | |
| 1093 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1095 | no_create=yes ;; |
| 1096 | |
| 1097 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1098 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1099 | no_recursion=yes ;; |
| 1100 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1101 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1102 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1103 | | --oldin | --oldi | --old | --ol | --o) |
| 1104 | ac_prev=oldincludedir ;; |
| 1105 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1106 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1107 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1108 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1109 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1110 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1111 | ac_prev=prefix ;; |
| 1112 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1113 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1114 | |
| 1115 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1116 | | --program-pre | --program-pr | --program-p) |
| 1117 | ac_prev=program_prefix ;; |
| 1118 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1119 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1120 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1121 | |
| 1122 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1123 | | --program-suf | --program-su | --program-s) |
| 1124 | ac_prev=program_suffix ;; |
| 1125 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1126 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1127 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1128 | |
| 1129 | -program-transform-name | --program-transform-name \ |
| 1130 | | --program-transform-nam | --program-transform-na \ |
| 1131 | | --program-transform-n | --program-transform- \ |
| 1132 | | --program-transform | --program-transfor \ |
| 1133 | | --program-transfo | --program-transf \ |
| 1134 | | --program-trans | --program-tran \ |
| 1135 | | --progr-tra | --program-tr | --program-t) |
| 1136 | ac_prev=program_transform_name ;; |
| 1137 | -program-transform-name=* | --program-transform-name=* \ |
| 1138 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1139 | | --program-transform-n=* | --program-transform-=* \ |
| 1140 | | --program-transform=* | --program-transfor=* \ |
| 1141 | | --program-transfo=* | --program-transf=* \ |
| 1142 | | --program-trans=* | --program-tran=* \ |
| 1143 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1144 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1145 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1146 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1147 | ac_prev=pdfdir ;; |
| 1148 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1149 | pdfdir=$ac_optarg ;; |
| 1150 | |
| 1151 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1152 | ac_prev=psdir ;; |
| 1153 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1154 | psdir=$ac_optarg ;; |
| 1155 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1156 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1157 | | -silent | --silent | --silen | --sile | --sil) |
| 1158 | silent=yes ;; |
| 1159 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1160 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1161 | ac_prev=sbindir ;; |
| 1162 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1163 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1164 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1165 | |
| 1166 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1167 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1168 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1169 | | --sha | --sh) |
| 1170 | ac_prev=sharedstatedir ;; |
| 1171 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1172 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1173 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1174 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1175 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1176 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1177 | -site | --site | --sit) |
| 1178 | ac_prev=site ;; |
| 1179 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1180 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1181 | |
| 1182 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1183 | ac_prev=srcdir ;; |
| 1184 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1185 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1186 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1187 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1188 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1189 | ac_prev=sysconfdir ;; |
| 1190 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1191 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1192 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1193 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1194 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1195 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1196 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1197 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1198 | |
| 1199 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1200 | verbose=yes ;; |
| 1201 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1202 | -version | --version | --versio | --versi | --vers | -V) |
| 1203 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1204 | |
| 1205 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1206 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1207 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1208 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1209 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1210 | ac_useropt_orig=$ac_useropt |
| 1211 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1212 | case $ac_user_opts in |
| 1213 | *" |
| 1214 | "with_$ac_useropt" |
| 1215 | "*) ;; |
| 1216 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1217 | ac_unrecognized_sep=', ';; |
| 1218 | esac |
| 1219 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1220 | |
| 1221 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1222 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1223 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1224 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1225 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1226 | ac_useropt_orig=$ac_useropt |
| 1227 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1228 | case $ac_user_opts in |
| 1229 | *" |
| 1230 | "with_$ac_useropt" |
| 1231 | "*) ;; |
| 1232 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1233 | ac_unrecognized_sep=', ';; |
| 1234 | esac |
| 1235 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1236 | |
| 1237 | --x) |
| 1238 | # Obsolete; use --with-x. |
| 1239 | with_x=yes ;; |
| 1240 | |
| 1241 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1242 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1243 | ac_prev=x_includes ;; |
| 1244 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1245 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1246 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1247 | |
| 1248 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1249 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1250 | ac_prev=x_libraries ;; |
| 1251 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1252 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1253 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1254 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1255 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1256 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1257 | ;; |
| 1258 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1259 | *=*) |
| 1260 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1261 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1262 | case $ac_envvar in #( |
| 1263 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1264 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1265 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1266 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1267 | export $ac_envvar ;; |
| 1268 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1269 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1270 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1271 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1272 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1273 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1274 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1275 | ;; |
| 1276 | |
| 1277 | esac |
| 1278 | done |
| 1279 | |
| 1280 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1281 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1282 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1283 | fi |
| 1284 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1285 | if test -n "$ac_unrecognized_opts"; then |
| 1286 | case $enable_option_checking in |
| 1287 | no) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1288 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1289 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1290 | esac |
| 1291 | fi |
| 1292 | |
| 1293 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1294 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1295 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1296 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1297 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1298 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1299 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1300 | # Remove trailing slashes. |
| 1301 | case $ac_val in |
| 1302 | */ ) |
| 1303 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1304 | eval $ac_var=\$ac_val;; |
| 1305 | esac |
| 1306 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1307 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1308 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1309 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1310 | esac |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1311 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1312 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1313 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1314 | # There might be people who depend on the old broken behavior: `$host' |
| 1315 | # used to hold the argument of --host etc. |
| 1316 | # FIXME: To remove some day. |
| 1317 | build=$build_alias |
| 1318 | host=$host_alias |
| 1319 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1321 | # FIXME: To remove some day. |
| 1322 | if test "x$host_alias" != x; then |
| 1323 | if test "x$build_alias" = x; then |
| 1324 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1325 | elif test "x$build_alias" != "x$host_alias"; then |
| 1326 | cross_compiling=yes |
| 1327 | fi |
| 1328 | fi |
| 1329 | |
| 1330 | ac_tool_prefix= |
| 1331 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1332 | |
| 1333 | test "$silent" = yes && exec 6>/dev/null |
| 1334 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1335 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1336 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1337 | ac_ls_di=`ls -di .` && |
| 1338 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1339 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1340 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1341 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1342 | |
| 1343 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1344 | # Find the source files, if location was not specified. |
| 1345 | if test -z "$srcdir"; then |
| 1346 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1347 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1348 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1349 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1350 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1351 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1352 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1353 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1354 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1355 | s//\1/ |
| 1356 | q |
| 1357 | } |
| 1358 | /^X\(\/\/\)[^/].*/{ |
| 1359 | s//\1/ |
| 1360 | q |
| 1361 | } |
| 1362 | /^X\(\/\/\)$/{ |
| 1363 | s//\1/ |
| 1364 | q |
| 1365 | } |
| 1366 | /^X\(\/\).*/{ |
| 1367 | s//\1/ |
| 1368 | q |
| 1369 | } |
| 1370 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1371 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1372 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1373 | srcdir=.. |
| 1374 | fi |
| 1375 | else |
| 1376 | ac_srcdir_defaulted=no |
| 1377 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1378 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1379 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1380 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1381 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1382 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1383 | ac_abs_confdir=`( |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1384 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1385 | pwd)` |
| 1386 | # When building in place, set srcdir=. |
| 1387 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1388 | srcdir=. |
| 1389 | fi |
| 1390 | # Remove unnecessary trailing slashes from srcdir. |
| 1391 | # Double slashes in file names in object file debugging info |
| 1392 | # mess up M-x gdb in Emacs. |
| 1393 | case $srcdir in |
| 1394 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1395 | esac |
| 1396 | for ac_var in $ac_precious_vars; do |
| 1397 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1398 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1399 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1400 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1401 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1402 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1403 | # |
| 1404 | # Report the --help message. |
| 1405 | # |
| 1406 | if test "$ac_init_help" = "long"; then |
| 1407 | # Omit some internal or obsolete options to make the list less imposing. |
| 1408 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1409 | cat <<_ACEOF |
| 1410 | \`configure' configures this package to adapt to many kinds of systems. |
| 1411 | |
| 1412 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1413 | |
| 1414 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1415 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1416 | |
| 1417 | Defaults for the options are specified in brackets. |
| 1418 | |
| 1419 | Configuration: |
| 1420 | -h, --help display this help and exit |
| 1421 | --help=short display options specific to this package |
| 1422 | --help=recursive display the short help of all the included packages |
| 1423 | -V, --version display version information and exit |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1424 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1425 | --cache-file=FILE cache test results in FILE [disabled] |
| 1426 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1427 | -n, --no-create do not create output files |
| 1428 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1429 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1430 | Installation directories: |
| 1431 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1432 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1433 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1434 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1435 | |
| 1436 | By default, \`make install' will install all the files in |
| 1437 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1438 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1439 | for instance \`--prefix=\$HOME'. |
| 1440 | |
| 1441 | For better control, use the options below. |
| 1442 | |
| 1443 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1444 | --bindir=DIR user executables [EPREFIX/bin] |
| 1445 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1446 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1447 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1448 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1449 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1450 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1451 | --includedir=DIR C header files [PREFIX/include] |
| 1452 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1453 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1454 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1455 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1456 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1457 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1458 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1459 | --htmldir=DIR html documentation [DOCDIR] |
| 1460 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1461 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1462 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1463 | _ACEOF |
| 1464 | |
| 1465 | cat <<\_ACEOF |
| 1466 | |
| 1467 | System types: |
| 1468 | --build=BUILD configure for building on BUILD [guessed] |
| 1469 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1470 | _ACEOF |
| 1471 | fi |
| 1472 | |
| 1473 | if test -n "$ac_init_help"; then |
| 1474 | |
| 1475 | cat <<\_ACEOF |
| 1476 | |
| 1477 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1478 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1479 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1480 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1481 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1482 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1483 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1484 | --enable-symlink-build use symlinks while building instead of hard links |
| 1485 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1486 | --enable-compression enable EXPERIMENTAL compression support |
| 1487 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1488 | --enable-elf-shlibs select ELF shared libraries |
| 1489 | --enable-bsd-shlibs select BSD shared libraries |
| 1490 | --enable-profile build profiling libraries |
| 1491 | --enable-checker build checker libraries |
| 1492 | --enable-jbd-debug enable journal debugging |
| 1493 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1494 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1495 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1496 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 1497 | --enable-libquota enable quota support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1498 | --disable-debugfs disable support of debugfs program |
| 1499 | --disable-imager disable support of e2image program |
| 1500 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1501 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1502 | --enable-fsck build fsck wrapper program |
| 1503 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1504 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1505 | --disable-uuidd disable building the uuid daemon |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1506 | --disable-mmp disable support mmp, Multi Mount Protection |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1507 | --disable-nls do not use Native Language Support |
| 1508 | --disable-rpath do not hardcode runtime library paths |
| 1509 | |
| 1510 | Optional Packages: |
| 1511 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1512 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1513 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1514 | --with-cc no longer supported, use CC= instead |
| 1515 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1516 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1517 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1518 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1519 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1520 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1521 | --with-included-gettext use the GNU gettext library included here |
| 1522 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1523 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1524 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1525 | |
| 1526 | Some influential environment variables: |
| 1527 | CC C compiler command |
| 1528 | CFLAGS C compiler flags |
| 1529 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1530 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1531 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1532 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1533 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1534 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1535 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1536 | |
| 1537 | Use these variables to override the choices made by `configure' or to help |
| 1538 | it to find libraries and programs with nonstandard names/locations. |
| 1539 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1540 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1541 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1542 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1543 | fi |
| 1544 | |
| 1545 | if test "$ac_init_help" = "recursive"; then |
| 1546 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1547 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1548 | test -d "$ac_dir" || |
| 1549 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1550 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1551 | ac_builddir=. |
| 1552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1553 | case "$ac_dir" in |
| 1554 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1555 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1556 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1557 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1558 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1559 | case $ac_top_builddir_sub in |
| 1560 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1561 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1562 | esac ;; |
| 1563 | esac |
| 1564 | ac_abs_top_builddir=$ac_pwd |
| 1565 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1566 | # for backward compatibility: |
| 1567 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1568 | |
| 1569 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1570 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1571 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1572 | ac_top_srcdir=$ac_top_builddir_sub |
| 1573 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1574 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1575 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1576 | ac_top_srcdir=$srcdir |
| 1577 | ac_abs_top_srcdir=$srcdir ;; |
| 1578 | *) # Relative name. |
| 1579 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1580 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1581 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1582 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1583 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1584 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1585 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1586 | # Check for guested configure. |
| 1587 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1588 | echo && |
| 1589 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1590 | elif test -f "$ac_srcdir/configure"; then |
| 1591 | echo && |
| 1592 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1593 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1594 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1595 | fi || ac_status=$? |
| 1596 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1597 | done |
| 1598 | fi |
| 1599 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1600 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1601 | if $ac_init_version; then |
| 1602 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1603 | configure |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1604 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1605 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1606 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1607 | This configure script is free software; the Free Software Foundation |
| 1608 | gives unlimited permission to copy, distribute and modify it. |
| 1609 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1610 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1611 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1612 | |
| 1613 | ## ------------------------ ## |
| 1614 | ## Autoconf initialization. ## |
| 1615 | ## ------------------------ ## |
| 1616 | |
| 1617 | # ac_fn_c_try_compile LINENO |
| 1618 | # -------------------------- |
| 1619 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1620 | ac_fn_c_try_compile () |
| 1621 | { |
| 1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1623 | rm -f conftest.$ac_objext |
| 1624 | if { { ac_try="$ac_compile" |
| 1625 | case "(($ac_try" in |
| 1626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1627 | *) ac_try_echo=$ac_try;; |
| 1628 | esac |
| 1629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1630 | $as_echo "$ac_try_echo"; } >&5 |
| 1631 | (eval "$ac_compile") 2>conftest.err |
| 1632 | ac_status=$? |
| 1633 | if test -s conftest.err; then |
| 1634 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1635 | cat conftest.er1 >&5 |
| 1636 | mv -f conftest.er1 conftest.err |
| 1637 | fi |
| 1638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1639 | test $ac_status = 0; } && { |
| 1640 | test -z "$ac_c_werror_flag" || |
| 1641 | test ! -s conftest.err |
| 1642 | } && test -s conftest.$ac_objext; then : |
| 1643 | ac_retval=0 |
| 1644 | else |
| 1645 | $as_echo "$as_me: failed program was:" >&5 |
| 1646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1647 | |
| 1648 | ac_retval=1 |
| 1649 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1650 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1651 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1652 | |
| 1653 | } # ac_fn_c_try_compile |
| 1654 | |
| 1655 | # ac_fn_c_try_link LINENO |
| 1656 | # ----------------------- |
| 1657 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1658 | ac_fn_c_try_link () |
| 1659 | { |
| 1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1661 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1662 | if { { ac_try="$ac_link" |
| 1663 | case "(($ac_try" in |
| 1664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1665 | *) ac_try_echo=$ac_try;; |
| 1666 | esac |
| 1667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1668 | $as_echo "$ac_try_echo"; } >&5 |
| 1669 | (eval "$ac_link") 2>conftest.err |
| 1670 | ac_status=$? |
| 1671 | if test -s conftest.err; then |
| 1672 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1673 | cat conftest.er1 >&5 |
| 1674 | mv -f conftest.er1 conftest.err |
| 1675 | fi |
| 1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1677 | test $ac_status = 0; } && { |
| 1678 | test -z "$ac_c_werror_flag" || |
| 1679 | test ! -s conftest.err |
| 1680 | } && test -s conftest$ac_exeext && { |
| 1681 | test "$cross_compiling" = yes || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1682 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1683 | }; then : |
| 1684 | ac_retval=0 |
| 1685 | else |
| 1686 | $as_echo "$as_me: failed program was:" >&5 |
| 1687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1688 | |
| 1689 | ac_retval=1 |
| 1690 | fi |
| 1691 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1692 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1693 | # interfere with the next link command; also delete a directory that is |
| 1694 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1695 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1696 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1697 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1698 | |
| 1699 | } # ac_fn_c_try_link |
| 1700 | |
| 1701 | # ac_fn_c_try_cpp LINENO |
| 1702 | # ---------------------- |
| 1703 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1704 | ac_fn_c_try_cpp () |
| 1705 | { |
| 1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1707 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1708 | case "(($ac_try" in |
| 1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1710 | *) ac_try_echo=$ac_try;; |
| 1711 | esac |
| 1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1713 | $as_echo "$ac_try_echo"; } >&5 |
| 1714 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1715 | ac_status=$? |
| 1716 | if test -s conftest.err; then |
| 1717 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1718 | cat conftest.er1 >&5 |
| 1719 | mv -f conftest.er1 conftest.err |
| 1720 | fi |
| 1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1722 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1723 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1724 | test ! -s conftest.err |
| 1725 | }; then : |
| 1726 | ac_retval=0 |
| 1727 | else |
| 1728 | $as_echo "$as_me: failed program was:" >&5 |
| 1729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1730 | |
| 1731 | ac_retval=1 |
| 1732 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1733 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1734 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1735 | |
| 1736 | } # ac_fn_c_try_cpp |
| 1737 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1738 | # ac_fn_c_try_run LINENO |
| 1739 | # ---------------------- |
| 1740 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1741 | # that executables *can* be run. |
| 1742 | ac_fn_c_try_run () |
| 1743 | { |
| 1744 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1745 | if { { ac_try="$ac_link" |
| 1746 | case "(($ac_try" in |
| 1747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1748 | *) ac_try_echo=$ac_try;; |
| 1749 | esac |
| 1750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1751 | $as_echo "$ac_try_echo"; } >&5 |
| 1752 | (eval "$ac_link") 2>&5 |
| 1753 | ac_status=$? |
| 1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1755 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1756 | { { case "(($ac_try" in |
| 1757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1758 | *) ac_try_echo=$ac_try;; |
| 1759 | esac |
| 1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1761 | $as_echo "$ac_try_echo"; } >&5 |
| 1762 | (eval "$ac_try") 2>&5 |
| 1763 | ac_status=$? |
| 1764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1765 | test $ac_status = 0; }; }; then : |
| 1766 | ac_retval=0 |
| 1767 | else |
| 1768 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1769 | $as_echo "$as_me: failed program was:" >&5 |
| 1770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1771 | |
| 1772 | ac_retval=$ac_status |
| 1773 | fi |
| 1774 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1775 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1776 | as_fn_set_status $ac_retval |
| 1777 | |
| 1778 | } # ac_fn_c_try_run |
| 1779 | |
| 1780 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1781 | # ------------------------------------------- |
| 1782 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1783 | # variable VAR accordingly. |
| 1784 | ac_fn_c_check_type () |
| 1785 | { |
| 1786 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1788 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1789 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1790 | $as_echo_n "(cached) " >&6 |
| 1791 | else |
| 1792 | eval "$3=no" |
| 1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1794 | /* end confdefs.h. */ |
| 1795 | $4 |
| 1796 | int |
| 1797 | main () |
| 1798 | { |
| 1799 | if (sizeof ($2)) |
| 1800 | return 0; |
| 1801 | ; |
| 1802 | return 0; |
| 1803 | } |
| 1804 | _ACEOF |
| 1805 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1807 | /* end confdefs.h. */ |
| 1808 | $4 |
| 1809 | int |
| 1810 | main () |
| 1811 | { |
| 1812 | if (sizeof (($2))) |
| 1813 | return 0; |
| 1814 | ; |
| 1815 | return 0; |
| 1816 | } |
| 1817 | _ACEOF |
| 1818 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1819 | |
| 1820 | else |
| 1821 | eval "$3=yes" |
| 1822 | fi |
| 1823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1824 | fi |
| 1825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1826 | fi |
| 1827 | eval ac_res=\$$3 |
| 1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1829 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1830 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1831 | |
| 1832 | } # ac_fn_c_check_type |
| 1833 | |
| 1834 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1835 | # ------------------------------------------------------- |
| 1836 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1837 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1838 | ac_fn_c_check_header_compile () |
| 1839 | { |
| 1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1842 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1843 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1844 | $as_echo_n "(cached) " >&6 |
| 1845 | else |
| 1846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1847 | /* end confdefs.h. */ |
| 1848 | $4 |
| 1849 | #include <$2> |
| 1850 | _ACEOF |
| 1851 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1852 | eval "$3=yes" |
| 1853 | else |
| 1854 | eval "$3=no" |
| 1855 | fi |
| 1856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1857 | fi |
| 1858 | eval ac_res=\$$3 |
| 1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1860 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1861 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1862 | |
| 1863 | } # ac_fn_c_check_header_compile |
| 1864 | |
| 1865 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1866 | # ---------------------------------- |
| 1867 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1868 | ac_fn_c_check_func () |
| 1869 | { |
| 1870 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1872 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1873 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1874 | $as_echo_n "(cached) " >&6 |
| 1875 | else |
| 1876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1877 | /* end confdefs.h. */ |
| 1878 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1880 | #define $2 innocuous_$2 |
| 1881 | |
| 1882 | /* System header to define __stub macros and hopefully few prototypes, |
| 1883 | which can conflict with char $2 (); below. |
| 1884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1885 | <limits.h> exists even on freestanding compilers. */ |
| 1886 | |
| 1887 | #ifdef __STDC__ |
| 1888 | # include <limits.h> |
| 1889 | #else |
| 1890 | # include <assert.h> |
| 1891 | #endif |
| 1892 | |
| 1893 | #undef $2 |
| 1894 | |
| 1895 | /* Override any GCC internal prototype to avoid an error. |
| 1896 | Use char because int might match the return type of a GCC |
| 1897 | builtin and then its argument prototype would still apply. */ |
| 1898 | #ifdef __cplusplus |
| 1899 | extern "C" |
| 1900 | #endif |
| 1901 | char $2 (); |
| 1902 | /* The GNU C library defines this for functions which it implements |
| 1903 | to always fail with ENOSYS. Some functions are actually named |
| 1904 | something starting with __ and the normal name is an alias. */ |
| 1905 | #if defined __stub_$2 || defined __stub___$2 |
| 1906 | choke me |
| 1907 | #endif |
| 1908 | |
| 1909 | int |
| 1910 | main () |
| 1911 | { |
| 1912 | return $2 (); |
| 1913 | ; |
| 1914 | return 0; |
| 1915 | } |
| 1916 | _ACEOF |
| 1917 | if ac_fn_c_try_link "$LINENO"; then : |
| 1918 | eval "$3=yes" |
| 1919 | else |
| 1920 | eval "$3=no" |
| 1921 | fi |
| 1922 | rm -f core conftest.err conftest.$ac_objext \ |
| 1923 | conftest$ac_exeext conftest.$ac_ext |
| 1924 | fi |
| 1925 | eval ac_res=\$$3 |
| 1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1927 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1929 | |
| 1930 | } # ac_fn_c_check_func |
| 1931 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1932 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1933 | # ------------------------------------------------------- |
| 1934 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1935 | # the include files in INCLUDES and setting the cache variable VAR |
| 1936 | # accordingly. |
| 1937 | ac_fn_c_check_header_mongrel () |
| 1938 | { |
| 1939 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1940 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1942 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1943 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1944 | $as_echo_n "(cached) " >&6 |
| 1945 | fi |
| 1946 | eval ac_res=\$$3 |
| 1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1948 | $as_echo "$ac_res" >&6; } |
| 1949 | else |
| 1950 | # Is the header compilable? |
| 1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1952 | $as_echo_n "checking $2 usability... " >&6; } |
| 1953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1954 | /* end confdefs.h. */ |
| 1955 | $4 |
| 1956 | #include <$2> |
| 1957 | _ACEOF |
| 1958 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1959 | ac_header_compiler=yes |
| 1960 | else |
| 1961 | ac_header_compiler=no |
| 1962 | fi |
| 1963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1965 | $as_echo "$ac_header_compiler" >&6; } |
| 1966 | |
| 1967 | # Is the header present? |
| 1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1969 | $as_echo_n "checking $2 presence... " >&6; } |
| 1970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1971 | /* end confdefs.h. */ |
| 1972 | #include <$2> |
| 1973 | _ACEOF |
| 1974 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1975 | ac_header_preproc=yes |
| 1976 | else |
| 1977 | ac_header_preproc=no |
| 1978 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 1979 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1981 | $as_echo "$ac_header_preproc" >&6; } |
| 1982 | |
| 1983 | # So? What about this header? |
| 1984 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1985 | yes:no: ) |
| 1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1987 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1989 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1990 | ;; |
| 1991 | no:yes:* ) |
| 1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1993 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1995 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1997 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1999 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2001 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2002 | ;; |
| 2003 | esac |
| 2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2005 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2006 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2007 | $as_echo_n "(cached) " >&6 |
| 2008 | else |
| 2009 | eval "$3=\$ac_header_compiler" |
| 2010 | fi |
| 2011 | eval ac_res=\$$3 |
| 2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2013 | $as_echo "$ac_res" >&6; } |
| 2014 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2015 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2016 | |
| 2017 | } # ac_fn_c_check_header_mongrel |
| 2018 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2019 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2020 | # -------------------------------------------- |
| 2021 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2022 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2023 | # computed |
| 2024 | ac_fn_c_compute_int () |
| 2025 | { |
| 2026 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2027 | if test "$cross_compiling" = yes; then |
| 2028 | # Depending upon the size, compute the lo and hi bounds. |
| 2029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2030 | /* end confdefs.h. */ |
| 2031 | $4 |
| 2032 | int |
| 2033 | main () |
| 2034 | { |
| 2035 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2036 | test_array [0] = 0; |
| 2037 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2038 | |
| 2039 | ; |
| 2040 | return 0; |
| 2041 | } |
| 2042 | _ACEOF |
| 2043 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2044 | ac_lo=0 ac_mid=0 |
| 2045 | while :; do |
| 2046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2047 | /* end confdefs.h. */ |
| 2048 | $4 |
| 2049 | int |
| 2050 | main () |
| 2051 | { |
| 2052 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2053 | test_array [0] = 0; |
| 2054 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2055 | |
| 2056 | ; |
| 2057 | return 0; |
| 2058 | } |
| 2059 | _ACEOF |
| 2060 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2061 | ac_hi=$ac_mid; break |
| 2062 | else |
| 2063 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2064 | if test $ac_lo -le $ac_mid; then |
| 2065 | ac_lo= ac_hi= |
| 2066 | break |
| 2067 | fi |
| 2068 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2069 | fi |
| 2070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2071 | done |
| 2072 | else |
| 2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2074 | /* end confdefs.h. */ |
| 2075 | $4 |
| 2076 | int |
| 2077 | main () |
| 2078 | { |
| 2079 | static int test_array [1 - 2 * !(($2) < 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2080 | test_array [0] = 0; |
| 2081 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2082 | |
| 2083 | ; |
| 2084 | return 0; |
| 2085 | } |
| 2086 | _ACEOF |
| 2087 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2088 | ac_hi=-1 ac_mid=-1 |
| 2089 | while :; do |
| 2090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2091 | /* end confdefs.h. */ |
| 2092 | $4 |
| 2093 | int |
| 2094 | main () |
| 2095 | { |
| 2096 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2097 | test_array [0] = 0; |
| 2098 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2099 | |
| 2100 | ; |
| 2101 | return 0; |
| 2102 | } |
| 2103 | _ACEOF |
| 2104 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2105 | ac_lo=$ac_mid; break |
| 2106 | else |
| 2107 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2108 | if test $ac_mid -le $ac_hi; then |
| 2109 | ac_lo= ac_hi= |
| 2110 | break |
| 2111 | fi |
| 2112 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2113 | fi |
| 2114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2115 | done |
| 2116 | else |
| 2117 | ac_lo= ac_hi= |
| 2118 | fi |
| 2119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2120 | fi |
| 2121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2122 | # Binary search between lo and hi bounds. |
| 2123 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2124 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2126 | /* end confdefs.h. */ |
| 2127 | $4 |
| 2128 | int |
| 2129 | main () |
| 2130 | { |
| 2131 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2132 | test_array [0] = 0; |
| 2133 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2134 | |
| 2135 | ; |
| 2136 | return 0; |
| 2137 | } |
| 2138 | _ACEOF |
| 2139 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2140 | ac_hi=$ac_mid |
| 2141 | else |
| 2142 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2143 | fi |
| 2144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2145 | done |
| 2146 | case $ac_lo in #(( |
| 2147 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2148 | '') ac_retval=1 ;; |
| 2149 | esac |
| 2150 | else |
| 2151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2152 | /* end confdefs.h. */ |
| 2153 | $4 |
| 2154 | static long int longval () { return $2; } |
| 2155 | static unsigned long int ulongval () { return $2; } |
| 2156 | #include <stdio.h> |
| 2157 | #include <stdlib.h> |
| 2158 | int |
| 2159 | main () |
| 2160 | { |
| 2161 | |
| 2162 | FILE *f = fopen ("conftest.val", "w"); |
| 2163 | if (! f) |
| 2164 | return 1; |
| 2165 | if (($2) < 0) |
| 2166 | { |
| 2167 | long int i = longval (); |
| 2168 | if (i != ($2)) |
| 2169 | return 1; |
| 2170 | fprintf (f, "%ld", i); |
| 2171 | } |
| 2172 | else |
| 2173 | { |
| 2174 | unsigned long int i = ulongval (); |
| 2175 | if (i != ($2)) |
| 2176 | return 1; |
| 2177 | fprintf (f, "%lu", i); |
| 2178 | } |
| 2179 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2180 | on some platforms. */ |
| 2181 | return ferror (f) || fclose (f) != 0; |
| 2182 | |
| 2183 | ; |
| 2184 | return 0; |
| 2185 | } |
| 2186 | _ACEOF |
| 2187 | if ac_fn_c_try_run "$LINENO"; then : |
| 2188 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2189 | else |
| 2190 | ac_retval=1 |
| 2191 | fi |
| 2192 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2193 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2194 | rm -f conftest.val |
| 2195 | |
| 2196 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2197 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2198 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2199 | |
| 2200 | } # ac_fn_c_compute_int |
| 2201 | |
| 2202 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2203 | # ---------------------------------------------------- |
| 2204 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2205 | # INCLUDES, setting cache variable VAR accordingly. |
| 2206 | ac_fn_c_check_member () |
| 2207 | { |
| 2208 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2210 | $as_echo_n "checking for $2.$3... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2211 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2212 | $as_echo_n "(cached) " >&6 |
| 2213 | else |
| 2214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2215 | /* end confdefs.h. */ |
| 2216 | $5 |
| 2217 | int |
| 2218 | main () |
| 2219 | { |
| 2220 | static $2 ac_aggr; |
| 2221 | if (ac_aggr.$3) |
| 2222 | return 0; |
| 2223 | ; |
| 2224 | return 0; |
| 2225 | } |
| 2226 | _ACEOF |
| 2227 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2228 | eval "$4=yes" |
| 2229 | else |
| 2230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2231 | /* end confdefs.h. */ |
| 2232 | $5 |
| 2233 | int |
| 2234 | main () |
| 2235 | { |
| 2236 | static $2 ac_aggr; |
| 2237 | if (sizeof ac_aggr.$3) |
| 2238 | return 0; |
| 2239 | ; |
| 2240 | return 0; |
| 2241 | } |
| 2242 | _ACEOF |
| 2243 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2244 | eval "$4=yes" |
| 2245 | else |
| 2246 | eval "$4=no" |
| 2247 | fi |
| 2248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2249 | fi |
| 2250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2251 | fi |
| 2252 | eval ac_res=\$$4 |
| 2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2254 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2255 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2256 | |
| 2257 | } # ac_fn_c_check_member |
| 2258 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2259 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2260 | # --------------------------------------------- |
| 2261 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2262 | # accordingly. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2263 | ac_fn_c_check_decl () |
| 2264 | { |
| 2265 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2266 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2267 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2269 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2270 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2271 | $as_echo_n "(cached) " >&6 |
| 2272 | else |
| 2273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2274 | /* end confdefs.h. */ |
| 2275 | $4 |
| 2276 | int |
| 2277 | main () |
| 2278 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2279 | #ifndef $as_decl_name |
| 2280 | #ifdef __cplusplus |
| 2281 | (void) $as_decl_use; |
| 2282 | #else |
| 2283 | (void) $as_decl_name; |
| 2284 | #endif |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2285 | #endif |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2292 | eval "$3=yes" |
| 2293 | else |
| 2294 | eval "$3=no" |
| 2295 | fi |
| 2296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2297 | fi |
| 2298 | eval ac_res=\$$3 |
| 2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2300 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2301 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2302 | |
| 2303 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2304 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2305 | This file contains any messages produced by compilers while |
| 2306 | running configure, to aid debugging if configure makes a mistake. |
| 2307 | |
| 2308 | It was created by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2309 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2310 | |
| 2311 | $ $0 $@ |
| 2312 | |
| 2313 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2314 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2315 | { |
| 2316 | cat <<_ASUNAME |
| 2317 | ## --------- ## |
| 2318 | ## Platform. ## |
| 2319 | ## --------- ## |
| 2320 | |
| 2321 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2322 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2323 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2324 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2325 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2326 | |
| 2327 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2328 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2329 | |
| 2330 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2331 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2332 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2333 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2334 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2335 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2336 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2337 | |
| 2338 | _ASUNAME |
| 2339 | |
| 2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2341 | for as_dir in $PATH |
| 2342 | do |
| 2343 | IFS=$as_save_IFS |
| 2344 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2345 | $as_echo "PATH: $as_dir" |
| 2346 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2347 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2348 | |
| 2349 | } >&5 |
| 2350 | |
| 2351 | cat >&5 <<_ACEOF |
| 2352 | |
| 2353 | |
| 2354 | ## ----------- ## |
| 2355 | ## Core tests. ## |
| 2356 | ## ----------- ## |
| 2357 | |
| 2358 | _ACEOF |
| 2359 | |
| 2360 | |
| 2361 | # Keep a trace of the command line. |
| 2362 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2363 | # Strip out --silent because we don't want to record it for future runs. |
| 2364 | # Also quote any args containing shell meta-characters. |
| 2365 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2366 | ac_configure_args= |
| 2367 | ac_configure_args0= |
| 2368 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2369 | ac_must_keep_next=false |
| 2370 | for ac_pass in 1 2 |
| 2371 | do |
| 2372 | for ac_arg |
| 2373 | do |
| 2374 | case $ac_arg in |
| 2375 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2376 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2377 | | -silent | --silent | --silen | --sile | --sil) |
| 2378 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2379 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2380 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2381 | esac |
| 2382 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2383 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2384 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2385 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2386 | if test $ac_must_keep_next = true; then |
| 2387 | ac_must_keep_next=false # Got value, back to normal. |
| 2388 | else |
| 2389 | case $ac_arg in |
| 2390 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2391 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2392 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2393 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2394 | case "$ac_configure_args0 " in |
| 2395 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2396 | esac |
| 2397 | ;; |
| 2398 | -* ) ac_must_keep_next=true ;; |
| 2399 | esac |
| 2400 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2401 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2402 | ;; |
| 2403 | esac |
| 2404 | done |
| 2405 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2406 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2407 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2408 | |
| 2409 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2410 | # config.log. We remove comments because anyway the quotes in there |
| 2411 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2412 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2413 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2414 | trap 'exit_status=$? |
| 2415 | # Save into config.log some information that might help in debugging. |
| 2416 | { |
| 2417 | echo |
| 2418 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2419 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2420 | ## Cache variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2421 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2422 | echo |
| 2423 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2424 | ( |
| 2425 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2426 | eval ac_val=\$$ac_var |
| 2427 | case $ac_val in #( |
| 2428 | *${as_nl}*) |
| 2429 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2430 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2431 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2432 | esac |
| 2433 | case $ac_var in #( |
| 2434 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2435 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2436 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2437 | esac ;; |
| 2438 | esac |
| 2439 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2440 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2441 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2442 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2443 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2444 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2445 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2446 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2447 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2448 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2449 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2450 | esac | |
| 2451 | sort |
| 2452 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | echo |
| 2454 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2455 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2456 | ## Output variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2457 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2458 | echo |
| 2459 | for ac_var in $ac_subst_vars |
| 2460 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2461 | eval ac_val=\$$ac_var |
| 2462 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2463 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2464 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2465 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2466 | done | sort |
| 2467 | echo |
| 2468 | |
| 2469 | if test -n "$ac_subst_files"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2470 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2471 | ## File substitutions. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2472 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2473 | echo |
| 2474 | for ac_var in $ac_subst_files |
| 2475 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2476 | eval ac_val=\$$ac_var |
| 2477 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2478 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2479 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2480 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2481 | done | sort |
| 2482 | echo |
| 2483 | fi |
| 2484 | |
| 2485 | if test -s confdefs.h; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2486 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2487 | ## confdefs.h. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2488 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2489 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2490 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2491 | echo |
| 2492 | fi |
| 2493 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2494 | $as_echo "$as_me: caught signal $ac_signal" |
| 2495 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2496 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2497 | rm -f core *.core core.conftest.* && |
| 2498 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2499 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2500 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2501 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2502 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2503 | done |
| 2504 | ac_signal=0 |
| 2505 | |
| 2506 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2507 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2508 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2509 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2511 | # Predefined preprocessor variables. |
| 2512 | |
| 2513 | cat >>confdefs.h <<_ACEOF |
| 2514 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2515 | _ACEOF |
| 2516 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2517 | cat >>confdefs.h <<_ACEOF |
| 2518 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2519 | _ACEOF |
| 2520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2521 | cat >>confdefs.h <<_ACEOF |
| 2522 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2523 | _ACEOF |
| 2524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2525 | cat >>confdefs.h <<_ACEOF |
| 2526 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2527 | _ACEOF |
| 2528 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2529 | cat >>confdefs.h <<_ACEOF |
| 2530 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2531 | _ACEOF |
| 2532 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2533 | cat >>confdefs.h <<_ACEOF |
| 2534 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2535 | _ACEOF |
| 2536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2537 | |
| 2538 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2539 | # Prefer an explicitly selected file to automatically selected ones. |
| 2540 | ac_site_file1=NONE |
| 2541 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2542 | if test -n "$CONFIG_SITE"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2543 | # We do not want a PATH search for config.site. |
| 2544 | case $CONFIG_SITE in #(( |
| 2545 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2546 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2547 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2548 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2549 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2550 | ac_site_file1=$prefix/share/config.site |
| 2551 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2552 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2553 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2554 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2555 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2556 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2557 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2558 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2559 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2561 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2562 | sed 's/^/| /' "$ac_site_file" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2563 | . "$ac_site_file" \ |
| 2564 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2565 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2566 | as_fn_error $? "failed to load site script $ac_site_file |
| 2567 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2568 | fi |
| 2569 | done |
| 2570 | |
| 2571 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2572 | # Some versions of bash will fail to source /dev/null (special files |
| 2573 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2574 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2576 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2577 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2578 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2579 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2580 | esac |
| 2581 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2582 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2584 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2585 | >$cache_file |
| 2586 | fi |
| 2587 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2588 | as_fn_append ac_header_list " stdlib.h" |
| 2589 | as_fn_append ac_header_list " unistd.h" |
| 2590 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | # Check that the precious variables saved in the cache have kept the same |
| 2592 | # value. |
| 2593 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2594 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2595 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2596 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2597 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2598 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2599 | case $ac_old_set,$ac_new_set in |
| 2600 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2602 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2603 | ac_cache_corrupted=: ;; |
| 2604 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2606 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2607 | ac_cache_corrupted=: ;; |
| 2608 | ,);; |
| 2609 | *) |
| 2610 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2611 | # differences in whitespace do not lead to failure. |
| 2612 | ac_old_val_w=`echo x $ac_old_val` |
| 2613 | ac_new_val_w=`echo x $ac_new_val` |
| 2614 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2616 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2617 | ac_cache_corrupted=: |
| 2618 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2620 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2621 | eval $ac_var=\$ac_old_val |
| 2622 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2624 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2626 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2627 | fi;; |
| 2628 | esac |
| 2629 | # Pass precious variables to config.status. |
| 2630 | if test "$ac_new_set" = set; then |
| 2631 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2632 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2633 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2634 | esac |
| 2635 | case " $ac_configure_args " in |
| 2636 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2637 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2638 | esac |
| 2639 | fi |
| 2640 | done |
| 2641 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2645 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2646 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2647 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2648 | ## -------------------- ## |
| 2649 | ## Main body of script. ## |
| 2650 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2651 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2652 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2653 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2657 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | |
| 2659 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2660 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2661 | for ac_dir in config "$srcdir"/config; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2662 | if test -f "$ac_dir/install-sh"; then |
| 2663 | ac_aux_dir=$ac_dir |
| 2664 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2665 | break |
| 2666 | elif test -f "$ac_dir/install.sh"; then |
| 2667 | ac_aux_dir=$ac_dir |
| 2668 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2669 | break |
| 2670 | elif test -f "$ac_dir/shtool"; then |
| 2671 | ac_aux_dir=$ac_dir |
| 2672 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2673 | break |
| 2674 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2675 | done |
| 2676 | if test -z "$ac_aux_dir"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2677 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2678 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2679 | |
| 2680 | # These three variables are undocumented and unsupported, |
| 2681 | # and are intended to be withdrawn in a future Autoconf release. |
| 2682 | # They can cause serious problems if a builder's source tree is in a directory |
| 2683 | # whose full name contains unusual characters. |
| 2684 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2685 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2686 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2687 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2688 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2689 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2690 | |
| 2691 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2692 | MCONFIG=./MCONFIG |
| 2693 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2694 | BINARY_TYPE=bin |
| 2695 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2696 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2697 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2698 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2699 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2700 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2701 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2702 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2703 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2704 | E2FSPROGS_YEAR=$YEAR |
| 2705 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2706 | E2FSPROGS_YEAR=19$YEAR |
| 2707 | else |
| 2708 | E2FSPROGS_YEAR=20$YEAR |
| 2709 | fi |
| 2710 | |
| 2711 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2712 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2713 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2714 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2715 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2716 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2717 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2718 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2719 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2720 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2721 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2722 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2723 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2724 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2725 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2726 | esac |
| 2727 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2728 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2729 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2730 | |
| 2731 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2732 | |
| 2733 | case $E2FSPROGS_VERSION in |
| 2734 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2735 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2736 | ;; |
| 2737 | *) |
| 2738 | E2FSPROGS_PKGVER="$base_ver" |
| 2739 | ;; |
| 2740 | esac |
| 2741 | |
| 2742 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2744 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2746 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2747 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2748 | |
| 2749 | |
| 2750 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2751 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2752 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2753 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2754 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2755 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2757 | $as_echo_n "checking build system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2758 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2759 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2760 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2761 | ac_build_alias=$build_alias |
| 2762 | test "x$ac_build_alias" = x && |
| 2763 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2764 | test "x$ac_build_alias" = x && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2765 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2766 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2767 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2768 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2769 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2771 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2772 | case $ac_cv_build in |
| 2773 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2774 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2775 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2776 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2777 | ac_save_IFS=$IFS; IFS='-' |
| 2778 | set x $ac_cv_build |
| 2779 | shift |
| 2780 | build_cpu=$1 |
| 2781 | build_vendor=$2 |
| 2782 | shift; shift |
| 2783 | # Remember, the first character of IFS is used to create $*, |
| 2784 | # except with old shells: |
| 2785 | build_os=$* |
| 2786 | IFS=$ac_save_IFS |
| 2787 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2788 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2789 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2791 | $as_echo_n "checking host system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2792 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2793 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2794 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2795 | if test "x$host_alias" = x; then |
| 2796 | ac_cv_host=$ac_cv_build |
| 2797 | else |
| 2798 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2799 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2800 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2801 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2802 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2804 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2805 | case $ac_cv_host in |
| 2806 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2807 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2808 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2809 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2810 | ac_save_IFS=$IFS; IFS='-' |
| 2811 | set x $ac_cv_host |
| 2812 | shift |
| 2813 | host_cpu=$1 |
| 2814 | host_vendor=$2 |
| 2815 | shift; shift |
| 2816 | # Remember, the first character of IFS is used to create $*, |
| 2817 | # except with old shells: |
| 2818 | host_os=$* |
| 2819 | IFS=$ac_save_IFS |
| 2820 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2821 | |
| 2822 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2823 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2824 | ac_ext=c |
| 2825 | ac_cpp='$CPP $CPPFLAGS' |
| 2826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2829 | if test -n "$ac_tool_prefix"; then |
| 2830 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2831 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2833 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2834 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2835 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2836 | else |
| 2837 | if test -n "$CC"; then |
| 2838 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2839 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2841 | for as_dir in $PATH |
| 2842 | do |
| 2843 | IFS=$as_save_IFS |
| 2844 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2845 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2847 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2849 | break 2 |
| 2850 | fi |
| 2851 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2852 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2853 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2854 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2855 | fi |
| 2856 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2857 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2858 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2860 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2861 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2863 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2864 | fi |
| 2865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2866 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2867 | fi |
| 2868 | if test -z "$ac_cv_prog_CC"; then |
| 2869 | ac_ct_CC=$CC |
| 2870 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2871 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2873 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2874 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2875 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2876 | else |
| 2877 | if test -n "$ac_ct_CC"; then |
| 2878 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2879 | else |
| 2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2881 | for as_dir in $PATH |
| 2882 | do |
| 2883 | IFS=$as_save_IFS |
| 2884 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2885 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2887 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2889 | break 2 |
| 2890 | fi |
| 2891 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2892 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2893 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2894 | |
| 2895 | fi |
| 2896 | fi |
| 2897 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2898 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2900 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2901 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2903 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2904 | fi |
| 2905 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2906 | if test "x$ac_ct_CC" = x; then |
| 2907 | CC="" |
| 2908 | else |
| 2909 | case $cross_compiling:$ac_tool_warned in |
| 2910 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2912 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2913 | ac_tool_warned=yes ;; |
| 2914 | esac |
| 2915 | CC=$ac_ct_CC |
| 2916 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2917 | else |
| 2918 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2919 | fi |
| 2920 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2921 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2922 | if test -n "$ac_tool_prefix"; then |
| 2923 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2924 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2926 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2927 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2928 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2929 | else |
| 2930 | if test -n "$CC"; then |
| 2931 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2932 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2934 | for as_dir in $PATH |
| 2935 | do |
| 2936 | IFS=$as_save_IFS |
| 2937 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2938 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2940 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2942 | break 2 |
| 2943 | fi |
| 2944 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2945 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2946 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2947 | |
| 2948 | fi |
| 2949 | fi |
| 2950 | CC=$ac_cv_prog_CC |
| 2951 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2953 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2954 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2956 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | fi |
| 2958 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2959 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2960 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2961 | fi |
| 2962 | if test -z "$CC"; then |
| 2963 | # Extract the first word of "cc", so it can be a program name with args. |
| 2964 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2966 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2967 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2968 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2969 | else |
| 2970 | if test -n "$CC"; then |
| 2971 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2972 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2973 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2975 | for as_dir in $PATH |
| 2976 | do |
| 2977 | IFS=$as_save_IFS |
| 2978 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2979 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 2980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2981 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2982 | ac_prog_rejected=yes |
| 2983 | continue |
| 2984 | fi |
| 2985 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2987 | break 2 |
| 2988 | fi |
| 2989 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2990 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2991 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2992 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2993 | if test $ac_prog_rejected = yes; then |
| 2994 | # We found a bogon in the path, so make sure we never use it. |
| 2995 | set dummy $ac_cv_prog_CC |
| 2996 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2997 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2998 | # We chose a different compiler from the bogus one. |
| 2999 | # However, it has the same basename, so the bogon will be chosen |
| 3000 | # first if we set CC to just the basename; use the full file name. |
| 3001 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3002 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3003 | fi |
| 3004 | fi |
| 3005 | fi |
| 3006 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3008 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3010 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3011 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3013 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3014 | fi |
| 3015 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3016 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3017 | fi |
| 3018 | if test -z "$CC"; then |
| 3019 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | do |
| 3022 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3023 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3025 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3026 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3027 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3028 | else |
| 3029 | if test -n "$CC"; then |
| 3030 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3031 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3033 | for as_dir in $PATH |
| 3034 | do |
| 3035 | IFS=$as_save_IFS |
| 3036 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3037 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3039 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3041 | break 2 |
| 3042 | fi |
| 3043 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3044 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3045 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3046 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3047 | fi |
| 3048 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3049 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3050 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3052 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3053 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3055 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3056 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3057 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3058 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3059 | test -n "$CC" && break |
| 3060 | done |
| 3061 | fi |
| 3062 | if test -z "$CC"; then |
| 3063 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3064 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3065 | do |
| 3066 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3067 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3069 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3070 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3071 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3072 | else |
| 3073 | if test -n "$ac_ct_CC"; then |
| 3074 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3075 | else |
| 3076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3077 | for as_dir in $PATH |
| 3078 | do |
| 3079 | IFS=$as_save_IFS |
| 3080 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3081 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3083 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3085 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3086 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3087 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3088 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3089 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3090 | |
| 3091 | fi |
| 3092 | fi |
| 3093 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3094 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3096 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3097 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3099 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3100 | fi |
| 3101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3102 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3103 | test -n "$ac_ct_CC" && break |
| 3104 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3106 | if test "x$ac_ct_CC" = x; then |
| 3107 | CC="" |
| 3108 | else |
| 3109 | case $cross_compiling:$ac_tool_warned in |
| 3110 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3112 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3113 | ac_tool_warned=yes ;; |
| 3114 | esac |
| 3115 | CC=$ac_ct_CC |
| 3116 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3117 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3118 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3119 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3120 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3121 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3122 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3123 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3124 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3125 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3126 | |
| 3127 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3128 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3129 | set X $ac_compile |
| 3130 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3131 | for ac_option in --version -v -V -qversion; do |
| 3132 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3133 | case "(($ac_try" in |
| 3134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3135 | *) ac_try_echo=$ac_try;; |
| 3136 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3137 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3138 | $as_echo "$ac_try_echo"; } >&5 |
| 3139 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3140 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3141 | if test -s conftest.err; then |
| 3142 | sed '10a\ |
| 3143 | ... rest of stderr output deleted ... |
| 3144 | 10q' conftest.err >conftest.er1 |
| 3145 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3146 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3147 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3149 | test $ac_status = 0; } |
| 3150 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3151 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3153 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3154 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3155 | int |
| 3156 | main () |
| 3157 | { |
| 3158 | |
| 3159 | ; |
| 3160 | return 0; |
| 3161 | } |
| 3162 | _ACEOF |
| 3163 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3164 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3165 | # Try to create an executable without -o first, disregard a.out. |
| 3166 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3167 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3169 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3170 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3171 | |
| 3172 | # The possible output files: |
| 3173 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3174 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3175 | ac_rmfiles= |
| 3176 | for ac_file in $ac_files |
| 3177 | do |
| 3178 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3179 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3180 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3181 | esac |
| 3182 | done |
| 3183 | rm -f $ac_rmfiles |
| 3184 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3185 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3186 | case "(($ac_try" in |
| 3187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3188 | *) ac_try_echo=$ac_try;; |
| 3189 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3190 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3191 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3192 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3193 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3195 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3196 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3197 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3198 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3199 | # so that the user can short-circuit this test for compilers unknown to |
| 3200 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3201 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3202 | do |
| 3203 | test -f "$ac_file" || continue |
| 3204 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3205 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3206 | ;; |
| 3207 | [ab].out ) |
| 3208 | # We found the default executable, but exeext='' is most |
| 3209 | # certainly right. |
| 3210 | break;; |
| 3211 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3212 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3213 | then :; else |
| 3214 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3215 | fi |
| 3216 | # We set ac_cv_exeext here because the later test for it is not |
| 3217 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3218 | # argument, so we may need to know it at that point already. |
| 3219 | # Even if this section looks crufty: it has the advantage of |
| 3220 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3221 | break;; |
| 3222 | * ) |
| 3223 | break;; |
| 3224 | esac |
| 3225 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3226 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3227 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3228 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3229 | ac_file='' |
| 3230 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3231 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3233 | $as_echo "no" >&6; } |
| 3234 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3236 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3237 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3239 | as_fn_error 77 "C compiler cannot create executables |
| 3240 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3241 | else |
| 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3243 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3244 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3246 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3248 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3249 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3250 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3251 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3252 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3254 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3255 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3256 | case "(($ac_try" in |
| 3257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3258 | *) ac_try_echo=$ac_try;; |
| 3259 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3260 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3261 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3262 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3263 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3265 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3266 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3267 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3268 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3269 | # `rm'. |
| 3270 | for ac_file in conftest.exe conftest conftest.*; do |
| 3271 | test -f "$ac_file" || continue |
| 3272 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3273 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3274 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3275 | break;; |
| 3276 | * ) break;; |
| 3277 | esac |
| 3278 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3279 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3280 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3281 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3282 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3283 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3284 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3285 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3287 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3288 | |
| 3289 | rm -f conftest.$ac_ext |
| 3290 | EXEEXT=$ac_cv_exeext |
| 3291 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3293 | /* end confdefs.h. */ |
| 3294 | #include <stdio.h> |
| 3295 | int |
| 3296 | main () |
| 3297 | { |
| 3298 | FILE *f = fopen ("conftest.out", "w"); |
| 3299 | return ferror (f) || fclose (f) != 0; |
| 3300 | |
| 3301 | ; |
| 3302 | return 0; |
| 3303 | } |
| 3304 | _ACEOF |
| 3305 | ac_clean_files="$ac_clean_files conftest.out" |
| 3306 | # Check that the compiler produces executables we can run. If not, either |
| 3307 | # the compiler is broken, or we cross compile. |
| 3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3309 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3310 | if test "$cross_compiling" != yes; then |
| 3311 | { { ac_try="$ac_link" |
| 3312 | case "(($ac_try" in |
| 3313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3314 | *) ac_try_echo=$ac_try;; |
| 3315 | esac |
| 3316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3317 | $as_echo "$ac_try_echo"; } >&5 |
| 3318 | (eval "$ac_link") 2>&5 |
| 3319 | ac_status=$? |
| 3320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3321 | test $ac_status = 0; } |
| 3322 | if { ac_try='./conftest$ac_cv_exeext' |
| 3323 | { { case "(($ac_try" in |
| 3324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3325 | *) ac_try_echo=$ac_try;; |
| 3326 | esac |
| 3327 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3328 | $as_echo "$ac_try_echo"; } >&5 |
| 3329 | (eval "$ac_try") 2>&5 |
| 3330 | ac_status=$? |
| 3331 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3332 | test $ac_status = 0; }; }; then |
| 3333 | cross_compiling=no |
| 3334 | else |
| 3335 | if test "$cross_compiling" = maybe; then |
| 3336 | cross_compiling=yes |
| 3337 | else |
| 3338 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3339 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3340 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3341 | If you meant to cross compile, use \`--host'. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3342 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3343 | fi |
| 3344 | fi |
| 3345 | fi |
| 3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3347 | $as_echo "$cross_compiling" >&6; } |
| 3348 | |
| 3349 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3350 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3352 | $as_echo_n "checking for suffix of object files... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3353 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3354 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3355 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3357 | /* end confdefs.h. */ |
| 3358 | |
| 3359 | int |
| 3360 | main () |
| 3361 | { |
| 3362 | |
| 3363 | ; |
| 3364 | return 0; |
| 3365 | } |
| 3366 | _ACEOF |
| 3367 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3368 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3369 | case "(($ac_try" in |
| 3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3371 | *) ac_try_echo=$ac_try;; |
| 3372 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3373 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3374 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3375 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3376 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3378 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3379 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3380 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3381 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3382 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3383 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3384 | break;; |
| 3385 | esac |
| 3386 | done |
| 3387 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3388 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3390 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3391 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3392 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3393 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3394 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3395 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3396 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3397 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3399 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3400 | OBJEXT=$ac_cv_objext |
| 3401 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3403 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3404 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3405 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3406 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3408 | /* end confdefs.h. */ |
| 3409 | |
| 3410 | int |
| 3411 | main () |
| 3412 | { |
| 3413 | #ifndef __GNUC__ |
| 3414 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3415 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3416 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3417 | ; |
| 3418 | return 0; |
| 3419 | } |
| 3420 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3421 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3422 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3423 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3424 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3425 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3427 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3428 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3429 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3431 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3432 | if test $ac_compiler_gnu = yes; then |
| 3433 | GCC=yes |
| 3434 | else |
| 3435 | GCC= |
| 3436 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3437 | ac_test_CFLAGS=${CFLAGS+set} |
| 3438 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3440 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3441 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3442 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3443 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3444 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3445 | ac_c_werror_flag=yes |
| 3446 | ac_cv_prog_cc_g=no |
| 3447 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3449 | /* end confdefs.h. */ |
| 3450 | |
| 3451 | int |
| 3452 | main () |
| 3453 | { |
| 3454 | |
| 3455 | ; |
| 3456 | return 0; |
| 3457 | } |
| 3458 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3459 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3460 | ac_cv_prog_cc_g=yes |
| 3461 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3462 | CFLAGS="" |
| 3463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3464 | /* end confdefs.h. */ |
| 3465 | |
| 3466 | int |
| 3467 | main () |
| 3468 | { |
| 3469 | |
| 3470 | ; |
| 3471 | return 0; |
| 3472 | } |
| 3473 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3474 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3475 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3476 | else |
| 3477 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3478 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3480 | /* end confdefs.h. */ |
| 3481 | |
| 3482 | int |
| 3483 | main () |
| 3484 | { |
| 3485 | |
| 3486 | ; |
| 3487 | return 0; |
| 3488 | } |
| 3489 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3490 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3491 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3492 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3494 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3496 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3498 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3499 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3501 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3502 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3503 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3504 | elif test $ac_cv_prog_cc_g = yes; then |
| 3505 | if test "$GCC" = yes; then |
| 3506 | CFLAGS="-g -O2" |
| 3507 | else |
| 3508 | CFLAGS="-g" |
| 3509 | fi |
| 3510 | else |
| 3511 | if test "$GCC" = yes; then |
| 3512 | CFLAGS="-O2" |
| 3513 | else |
| 3514 | CFLAGS= |
| 3515 | fi |
| 3516 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3518 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3519 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3520 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3521 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3522 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3523 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3525 | /* end confdefs.h. */ |
| 3526 | #include <stdarg.h> |
| 3527 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3528 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3529 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3530 | struct buf { int x; }; |
| 3531 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3532 | static char *e (p, i) |
| 3533 | char **p; |
| 3534 | int i; |
| 3535 | { |
| 3536 | return p[i]; |
| 3537 | } |
| 3538 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3539 | { |
| 3540 | char *s; |
| 3541 | va_list v; |
| 3542 | va_start (v,p); |
| 3543 | s = g (p, va_arg (v,int)); |
| 3544 | va_end (v); |
| 3545 | return s; |
| 3546 | } |
| 3547 | |
| 3548 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3549 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3550 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3551 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3552 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3553 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3554 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3555 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3556 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3557 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3558 | inside strings and character constants. */ |
| 3559 | #define FOO(x) 'x' |
| 3560 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3561 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3562 | int test (int i, double x); |
| 3563 | struct s1 {int (*f) (int a);}; |
| 3564 | struct s2 {int (*f) (double a);}; |
| 3565 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3566 | int argc; |
| 3567 | char **argv; |
| 3568 | int |
| 3569 | main () |
| 3570 | { |
| 3571 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3572 | ; |
| 3573 | return 0; |
| 3574 | } |
| 3575 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3576 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3577 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3578 | do |
| 3579 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3580 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3581 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3582 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3583 | rm -f core conftest.err conftest.$ac_objext |
| 3584 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3585 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3586 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3587 | CC=$ac_save_CC |
| 3588 | |
| 3589 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3590 | # AC_CACHE_VAL |
| 3591 | case "x$ac_cv_prog_cc_c89" in |
| 3592 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3594 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3595 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3597 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3598 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3599 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3601 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3602 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3603 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3604 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3605 | fi |
| 3606 | |
| 3607 | ac_ext=c |
| 3608 | ac_cpp='$CPP $CPPFLAGS' |
| 3609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3612 | |
| 3613 | |
| 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3615 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3616 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3617 | $as_echo_n "(cached) " >&6 |
| 3618 | else |
| 3619 | ac_check_lib_save_LIBS=$LIBS |
| 3620 | LIBS="-ldl $LIBS" |
| 3621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3622 | /* end confdefs.h. */ |
| 3623 | |
| 3624 | /* Override any GCC internal prototype to avoid an error. |
| 3625 | Use char because int might match the return type of a GCC |
| 3626 | builtin and then its argument prototype would still apply. */ |
| 3627 | #ifdef __cplusplus |
| 3628 | extern "C" |
| 3629 | #endif |
| 3630 | char dlopen (); |
| 3631 | int |
| 3632 | main () |
| 3633 | { |
| 3634 | return dlopen (); |
| 3635 | ; |
| 3636 | return 0; |
| 3637 | } |
| 3638 | _ACEOF |
| 3639 | if ac_fn_c_try_link "$LINENO"; then : |
| 3640 | ac_cv_lib_dl_dlopen=yes |
| 3641 | else |
| 3642 | ac_cv_lib_dl_dlopen=no |
| 3643 | fi |
| 3644 | rm -f core conftest.err conftest.$ac_objext \ |
| 3645 | conftest$ac_exeext conftest.$ac_ext |
| 3646 | LIBS=$ac_check_lib_save_LIBS |
| 3647 | fi |
| 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3649 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3650 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3651 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3652 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3653 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3654 | |
| 3655 | fi |
| 3656 | |
| 3657 | |
| 3658 | WITH_DIET_LIBC= |
| 3659 | |
| 3660 | # Check whether --with-diet-libc was given. |
| 3661 | if test "${with_diet_libc+set}" = set; then : |
| 3662 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 3663 | WITH_DIET_LIBC=yes |
| 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 3665 | $as_echo "CC=$CC" >&6; } |
| 3666 | fi |
| 3667 | |
| 3668 | # Check whether --with-cc was given. |
| 3669 | if test "${with_cc+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3670 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3671 | fi |
| 3672 | |
| 3673 | |
| 3674 | # Check whether --with-ccopts was given. |
| 3675 | if test "${with_ccopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3676 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3677 | fi |
| 3678 | |
| 3679 | |
| 3680 | # Check whether --with-ldopts was given. |
| 3681 | if test "${with_ldopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3682 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3683 | fi |
| 3684 | |
| 3685 | ac_ext=c |
| 3686 | ac_cpp='$CPP $CPPFLAGS' |
| 3687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3690 | if test -n "$ac_tool_prefix"; then |
| 3691 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3692 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3694 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3695 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3696 | $as_echo_n "(cached) " >&6 |
| 3697 | else |
| 3698 | if test -n "$CC"; then |
| 3699 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3700 | else |
| 3701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3702 | for as_dir in $PATH |
| 3703 | do |
| 3704 | IFS=$as_save_IFS |
| 3705 | test -z "$as_dir" && as_dir=. |
| 3706 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3707 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3708 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3710 | break 2 |
| 3711 | fi |
| 3712 | done |
| 3713 | done |
| 3714 | IFS=$as_save_IFS |
| 3715 | |
| 3716 | fi |
| 3717 | fi |
| 3718 | CC=$ac_cv_prog_CC |
| 3719 | if test -n "$CC"; then |
| 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3721 | $as_echo "$CC" >&6; } |
| 3722 | else |
| 3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3724 | $as_echo "no" >&6; } |
| 3725 | fi |
| 3726 | |
| 3727 | |
| 3728 | fi |
| 3729 | if test -z "$ac_cv_prog_CC"; then |
| 3730 | ac_ct_CC=$CC |
| 3731 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3732 | set dummy gcc; ac_word=$2 |
| 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3734 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3735 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3736 | $as_echo_n "(cached) " >&6 |
| 3737 | else |
| 3738 | if test -n "$ac_ct_CC"; then |
| 3739 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3740 | else |
| 3741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3742 | for as_dir in $PATH |
| 3743 | do |
| 3744 | IFS=$as_save_IFS |
| 3745 | test -z "$as_dir" && as_dir=. |
| 3746 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3748 | ac_cv_prog_ac_ct_CC="gcc" |
| 3749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3750 | break 2 |
| 3751 | fi |
| 3752 | done |
| 3753 | done |
| 3754 | IFS=$as_save_IFS |
| 3755 | |
| 3756 | fi |
| 3757 | fi |
| 3758 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3759 | if test -n "$ac_ct_CC"; then |
| 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3761 | $as_echo "$ac_ct_CC" >&6; } |
| 3762 | else |
| 3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3764 | $as_echo "no" >&6; } |
| 3765 | fi |
| 3766 | |
| 3767 | if test "x$ac_ct_CC" = x; then |
| 3768 | CC="" |
| 3769 | else |
| 3770 | case $cross_compiling:$ac_tool_warned in |
| 3771 | yes:) |
| 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3773 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3774 | ac_tool_warned=yes ;; |
| 3775 | esac |
| 3776 | CC=$ac_ct_CC |
| 3777 | fi |
| 3778 | else |
| 3779 | CC="$ac_cv_prog_CC" |
| 3780 | fi |
| 3781 | |
| 3782 | if test -z "$CC"; then |
| 3783 | if test -n "$ac_tool_prefix"; then |
| 3784 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3785 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3787 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3788 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3789 | $as_echo_n "(cached) " >&6 |
| 3790 | else |
| 3791 | if test -n "$CC"; then |
| 3792 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3793 | else |
| 3794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3795 | for as_dir in $PATH |
| 3796 | do |
| 3797 | IFS=$as_save_IFS |
| 3798 | test -z "$as_dir" && as_dir=. |
| 3799 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3800 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3801 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3803 | break 2 |
| 3804 | fi |
| 3805 | done |
| 3806 | done |
| 3807 | IFS=$as_save_IFS |
| 3808 | |
| 3809 | fi |
| 3810 | fi |
| 3811 | CC=$ac_cv_prog_CC |
| 3812 | if test -n "$CC"; then |
| 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3814 | $as_echo "$CC" >&6; } |
| 3815 | else |
| 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3817 | $as_echo "no" >&6; } |
| 3818 | fi |
| 3819 | |
| 3820 | |
| 3821 | fi |
| 3822 | fi |
| 3823 | if test -z "$CC"; then |
| 3824 | # Extract the first word of "cc", so it can be a program name with args. |
| 3825 | set dummy cc; ac_word=$2 |
| 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3827 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3828 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3829 | $as_echo_n "(cached) " >&6 |
| 3830 | else |
| 3831 | if test -n "$CC"; then |
| 3832 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3833 | else |
| 3834 | ac_prog_rejected=no |
| 3835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3836 | for as_dir in $PATH |
| 3837 | do |
| 3838 | IFS=$as_save_IFS |
| 3839 | test -z "$as_dir" && as_dir=. |
| 3840 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3841 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3842 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3843 | ac_prog_rejected=yes |
| 3844 | continue |
| 3845 | fi |
| 3846 | ac_cv_prog_CC="cc" |
| 3847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3848 | break 2 |
| 3849 | fi |
| 3850 | done |
| 3851 | done |
| 3852 | IFS=$as_save_IFS |
| 3853 | |
| 3854 | if test $ac_prog_rejected = yes; then |
| 3855 | # We found a bogon in the path, so make sure we never use it. |
| 3856 | set dummy $ac_cv_prog_CC |
| 3857 | shift |
| 3858 | if test $# != 0; then |
| 3859 | # We chose a different compiler from the bogus one. |
| 3860 | # However, it has the same basename, so the bogon will be chosen |
| 3861 | # first if we set CC to just the basename; use the full file name. |
| 3862 | shift |
| 3863 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3864 | fi |
| 3865 | fi |
| 3866 | fi |
| 3867 | fi |
| 3868 | CC=$ac_cv_prog_CC |
| 3869 | if test -n "$CC"; then |
| 3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3871 | $as_echo "$CC" >&6; } |
| 3872 | else |
| 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3874 | $as_echo "no" >&6; } |
| 3875 | fi |
| 3876 | |
| 3877 | |
| 3878 | fi |
| 3879 | if test -z "$CC"; then |
| 3880 | if test -n "$ac_tool_prefix"; then |
| 3881 | for ac_prog in cl.exe |
| 3882 | do |
| 3883 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3884 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3886 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3887 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3888 | $as_echo_n "(cached) " >&6 |
| 3889 | else |
| 3890 | if test -n "$CC"; then |
| 3891 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3892 | else |
| 3893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3894 | for as_dir in $PATH |
| 3895 | do |
| 3896 | IFS=$as_save_IFS |
| 3897 | test -z "$as_dir" && as_dir=. |
| 3898 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3900 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3902 | break 2 |
| 3903 | fi |
| 3904 | done |
| 3905 | done |
| 3906 | IFS=$as_save_IFS |
| 3907 | |
| 3908 | fi |
| 3909 | fi |
| 3910 | CC=$ac_cv_prog_CC |
| 3911 | if test -n "$CC"; then |
| 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3913 | $as_echo "$CC" >&6; } |
| 3914 | else |
| 3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3916 | $as_echo "no" >&6; } |
| 3917 | fi |
| 3918 | |
| 3919 | |
| 3920 | test -n "$CC" && break |
| 3921 | done |
| 3922 | fi |
| 3923 | if test -z "$CC"; then |
| 3924 | ac_ct_CC=$CC |
| 3925 | for ac_prog in cl.exe |
| 3926 | do |
| 3927 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3928 | set dummy $ac_prog; ac_word=$2 |
| 3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3930 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3931 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3932 | $as_echo_n "(cached) " >&6 |
| 3933 | else |
| 3934 | if test -n "$ac_ct_CC"; then |
| 3935 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3936 | else |
| 3937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3938 | for as_dir in $PATH |
| 3939 | do |
| 3940 | IFS=$as_save_IFS |
| 3941 | test -z "$as_dir" && as_dir=. |
| 3942 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3944 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3946 | break 2 |
| 3947 | fi |
| 3948 | done |
| 3949 | done |
| 3950 | IFS=$as_save_IFS |
| 3951 | |
| 3952 | fi |
| 3953 | fi |
| 3954 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3955 | if test -n "$ac_ct_CC"; then |
| 3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3957 | $as_echo "$ac_ct_CC" >&6; } |
| 3958 | else |
| 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3960 | $as_echo "no" >&6; } |
| 3961 | fi |
| 3962 | |
| 3963 | |
| 3964 | test -n "$ac_ct_CC" && break |
| 3965 | done |
| 3966 | |
| 3967 | if test "x$ac_ct_CC" = x; then |
| 3968 | CC="" |
| 3969 | else |
| 3970 | case $cross_compiling:$ac_tool_warned in |
| 3971 | yes:) |
| 3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3973 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3974 | ac_tool_warned=yes ;; |
| 3975 | esac |
| 3976 | CC=$ac_ct_CC |
| 3977 | fi |
| 3978 | fi |
| 3979 | |
| 3980 | fi |
| 3981 | |
| 3982 | |
| 3983 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3984 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 3985 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3986 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3987 | |
| 3988 | # Provide some information about the compiler. |
| 3989 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3990 | set X $ac_compile |
| 3991 | ac_compiler=$2 |
| 3992 | for ac_option in --version -v -V -qversion; do |
| 3993 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3994 | case "(($ac_try" in |
| 3995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3996 | *) ac_try_echo=$ac_try;; |
| 3997 | esac |
| 3998 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3999 | $as_echo "$ac_try_echo"; } >&5 |
| 4000 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4001 | ac_status=$? |
| 4002 | if test -s conftest.err; then |
| 4003 | sed '10a\ |
| 4004 | ... rest of stderr output deleted ... |
| 4005 | 10q' conftest.err >conftest.er1 |
| 4006 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4007 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4008 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4010 | test $ac_status = 0; } |
| 4011 | done |
| 4012 | |
| 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4014 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4015 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4016 | $as_echo_n "(cached) " >&6 |
| 4017 | else |
| 4018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4019 | /* end confdefs.h. */ |
| 4020 | |
| 4021 | int |
| 4022 | main () |
| 4023 | { |
| 4024 | #ifndef __GNUC__ |
| 4025 | choke me |
| 4026 | #endif |
| 4027 | |
| 4028 | ; |
| 4029 | return 0; |
| 4030 | } |
| 4031 | _ACEOF |
| 4032 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4033 | ac_compiler_gnu=yes |
| 4034 | else |
| 4035 | ac_compiler_gnu=no |
| 4036 | fi |
| 4037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4038 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4039 | |
| 4040 | fi |
| 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4042 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4043 | if test $ac_compiler_gnu = yes; then |
| 4044 | GCC=yes |
| 4045 | else |
| 4046 | GCC= |
| 4047 | fi |
| 4048 | ac_test_CFLAGS=${CFLAGS+set} |
| 4049 | ac_save_CFLAGS=$CFLAGS |
| 4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4051 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4052 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4053 | $as_echo_n "(cached) " >&6 |
| 4054 | else |
| 4055 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4056 | ac_c_werror_flag=yes |
| 4057 | ac_cv_prog_cc_g=no |
| 4058 | CFLAGS="-g" |
| 4059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4060 | /* end confdefs.h. */ |
| 4061 | |
| 4062 | int |
| 4063 | main () |
| 4064 | { |
| 4065 | |
| 4066 | ; |
| 4067 | return 0; |
| 4068 | } |
| 4069 | _ACEOF |
| 4070 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4071 | ac_cv_prog_cc_g=yes |
| 4072 | else |
| 4073 | CFLAGS="" |
| 4074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4075 | /* end confdefs.h. */ |
| 4076 | |
| 4077 | int |
| 4078 | main () |
| 4079 | { |
| 4080 | |
| 4081 | ; |
| 4082 | return 0; |
| 4083 | } |
| 4084 | _ACEOF |
| 4085 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4086 | |
| 4087 | else |
| 4088 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4089 | CFLAGS="-g" |
| 4090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4091 | /* end confdefs.h. */ |
| 4092 | |
| 4093 | int |
| 4094 | main () |
| 4095 | { |
| 4096 | |
| 4097 | ; |
| 4098 | return 0; |
| 4099 | } |
| 4100 | _ACEOF |
| 4101 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4102 | ac_cv_prog_cc_g=yes |
| 4103 | fi |
| 4104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4105 | fi |
| 4106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4107 | fi |
| 4108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4109 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4110 | fi |
| 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4112 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4113 | if test "$ac_test_CFLAGS" = set; then |
| 4114 | CFLAGS=$ac_save_CFLAGS |
| 4115 | elif test $ac_cv_prog_cc_g = yes; then |
| 4116 | if test "$GCC" = yes; then |
| 4117 | CFLAGS="-g -O2" |
| 4118 | else |
| 4119 | CFLAGS="-g" |
| 4120 | fi |
| 4121 | else |
| 4122 | if test "$GCC" = yes; then |
| 4123 | CFLAGS="-O2" |
| 4124 | else |
| 4125 | CFLAGS= |
| 4126 | fi |
| 4127 | fi |
| 4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4129 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4130 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4131 | $as_echo_n "(cached) " >&6 |
| 4132 | else |
| 4133 | ac_cv_prog_cc_c89=no |
| 4134 | ac_save_CC=$CC |
| 4135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4136 | /* end confdefs.h. */ |
| 4137 | #include <stdarg.h> |
| 4138 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4139 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4140 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4141 | struct buf { int x; }; |
| 4142 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4143 | static char *e (p, i) |
| 4144 | char **p; |
| 4145 | int i; |
| 4146 | { |
| 4147 | return p[i]; |
| 4148 | } |
| 4149 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4150 | { |
| 4151 | char *s; |
| 4152 | va_list v; |
| 4153 | va_start (v,p); |
| 4154 | s = g (p, va_arg (v,int)); |
| 4155 | va_end (v); |
| 4156 | return s; |
| 4157 | } |
| 4158 | |
| 4159 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4160 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4161 | These don't provoke an error unfortunately, instead are silently treated |
| 4162 | as 'x'. The following induces an error, until -std is added to get |
| 4163 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4164 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4165 | that's true only with -std. */ |
| 4166 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4167 | |
| 4168 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4169 | inside strings and character constants. */ |
| 4170 | #define FOO(x) 'x' |
| 4171 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4172 | |
| 4173 | int test (int i, double x); |
| 4174 | struct s1 {int (*f) (int a);}; |
| 4175 | struct s2 {int (*f) (double a);}; |
| 4176 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4177 | int argc; |
| 4178 | char **argv; |
| 4179 | int |
| 4180 | main () |
| 4181 | { |
| 4182 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4183 | ; |
| 4184 | return 0; |
| 4185 | } |
| 4186 | _ACEOF |
| 4187 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4188 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4189 | do |
| 4190 | CC="$ac_save_CC $ac_arg" |
| 4191 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4192 | ac_cv_prog_cc_c89=$ac_arg |
| 4193 | fi |
| 4194 | rm -f core conftest.err conftest.$ac_objext |
| 4195 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4196 | done |
| 4197 | rm -f conftest.$ac_ext |
| 4198 | CC=$ac_save_CC |
| 4199 | |
| 4200 | fi |
| 4201 | # AC_CACHE_VAL |
| 4202 | case "x$ac_cv_prog_cc_c89" in |
| 4203 | x) |
| 4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4205 | $as_echo "none needed" >&6; } ;; |
| 4206 | xno) |
| 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4208 | $as_echo "unsupported" >&6; } ;; |
| 4209 | *) |
| 4210 | CC="$CC $ac_cv_prog_cc_c89" |
| 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4212 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4213 | esac |
| 4214 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4215 | |
| 4216 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4217 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4218 | ac_ext=c |
| 4219 | ac_cpp='$CPP $CPPFLAGS' |
| 4220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4223 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4224 | if test "$GCC" = yes; then |
| 4225 | RDYNAMIC="-rdynamic" |
| 4226 | |
| 4227 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4228 | ac_ext=c |
| 4229 | ac_cpp='$CPP $CPPFLAGS' |
| 4230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4234 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4235 | # On Suns, sometimes $CPP names a directory. |
| 4236 | if test -n "$CPP" && test -d "$CPP"; then |
| 4237 | CPP= |
| 4238 | fi |
| 4239 | if test -z "$CPP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4240 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4241 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4242 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4243 | # Double quotes because CPP needs to be expanded |
| 4244 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4245 | do |
| 4246 | ac_preproc_ok=false |
| 4247 | for ac_c_preproc_warn_flag in '' yes |
| 4248 | do |
| 4249 | # Use a header file that comes with gcc, so configuring glibc |
| 4250 | # with a fresh cross-compiler works. |
| 4251 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4252 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4253 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4254 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4256 | /* end confdefs.h. */ |
| 4257 | #ifdef __STDC__ |
| 4258 | # include <limits.h> |
| 4259 | #else |
| 4260 | # include <assert.h> |
| 4261 | #endif |
| 4262 | Syntax error |
| 4263 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4264 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4265 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4266 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4267 | # Broken: fails on valid input. |
| 4268 | continue |
| 4269 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4270 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4271 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4272 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4273 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4275 | /* end confdefs.h. */ |
| 4276 | #include <ac_nonexistent.h> |
| 4277 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4278 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4279 | # Broken: success on invalid input. |
| 4280 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4281 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4282 | # Passes both tests. |
| 4283 | ac_preproc_ok=: |
| 4284 | break |
| 4285 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4286 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4287 | |
| 4288 | done |
| 4289 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4290 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4291 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4292 | break |
| 4293 | fi |
| 4294 | |
| 4295 | done |
| 4296 | ac_cv_prog_CPP=$CPP |
| 4297 | |
| 4298 | fi |
| 4299 | CPP=$ac_cv_prog_CPP |
| 4300 | else |
| 4301 | ac_cv_prog_CPP=$CPP |
| 4302 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4304 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4305 | ac_preproc_ok=false |
| 4306 | for ac_c_preproc_warn_flag in '' yes |
| 4307 | do |
| 4308 | # Use a header file that comes with gcc, so configuring glibc |
| 4309 | # with a fresh cross-compiler works. |
| 4310 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4311 | # <limits.h> exists even on freestanding compilers. |
| 4312 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4313 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4315 | /* end confdefs.h. */ |
| 4316 | #ifdef __STDC__ |
| 4317 | # include <limits.h> |
| 4318 | #else |
| 4319 | # include <assert.h> |
| 4320 | #endif |
| 4321 | Syntax error |
| 4322 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4323 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4324 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4325 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4326 | # Broken: fails on valid input. |
| 4327 | continue |
| 4328 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4329 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4330 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4331 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4332 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4334 | /* end confdefs.h. */ |
| 4335 | #include <ac_nonexistent.h> |
| 4336 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4337 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4338 | # Broken: success on invalid input. |
| 4339 | continue |
| 4340 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4341 | # Passes both tests. |
| 4342 | ac_preproc_ok=: |
| 4343 | break |
| 4344 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4345 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4346 | |
| 4347 | done |
| 4348 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4349 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4350 | if $ac_preproc_ok; then : |
| 4351 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4352 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4353 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4354 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4355 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4356 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4357 | fi |
| 4358 | |
| 4359 | ac_ext=c |
| 4360 | ac_cpp='$CPP $CPPFLAGS' |
| 4361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4364 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4366 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4367 | if test "$GCC" = yes |
| 4368 | then |
| 4369 | case "$host_cpu" in |
| 4370 | alpha) addcflags="-mieee" ;; |
| 4371 | esac |
| 4372 | fi |
| 4373 | if test "x$addcflags" != x |
| 4374 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4376 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4377 | CFLAGS="$addcflags $CFLAGS" |
| 4378 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4380 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4381 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4382 | LIB_EXT=.a |
| 4383 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4384 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4385 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4386 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4387 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4388 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4389 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4390 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4391 | fi |
| 4392 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4393 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4394 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4395 | then |
| 4396 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4398 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4399 | else |
| 4400 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4402 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4403 | fi |
| 4404 | |
| 4405 | else |
| 4406 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4408 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4409 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4410 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4411 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4412 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4413 | # Check whether --enable-symlink-install was given. |
| 4414 | if test "${enable_symlink_install+set}" = set; then : |
| 4415 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4416 | then |
| 4417 | LINK_INSTALL_FLAGS=-f |
| 4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4419 | $as_echo "Disabling symlinks for install" >&6; } |
| 4420 | else |
| 4421 | LINK_INSTALL_FLAGS=-sf |
| 4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4423 | $as_echo "Enabling symlinks for install" >&6; } |
| 4424 | fi |
| 4425 | |
| 4426 | else |
| 4427 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4429 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4430 | |
| 4431 | fi |
| 4432 | |
| 4433 | |
| 4434 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4435 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4436 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4437 | then |
| 4438 | SYMLINK_RELATIVE= |
| 4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4440 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4441 | else |
| 4442 | SYMLINK_RELATIVE=--relative |
| 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4444 | $as_echo "Enabling symlinks for install" >&6; } |
| 4445 | fi |
| 4446 | |
| 4447 | else |
| 4448 | SYMLINK_RELATIVE= |
| 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4450 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4451 | |
| 4452 | fi |
| 4453 | |
| 4454 | |
| 4455 | # Check whether --enable-symlink-build was given. |
| 4456 | if test "${enable_symlink_build+set}" = set; then : |
| 4457 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4458 | then |
| 4459 | LINK_BUILD_FLAGS= |
| 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4461 | $as_echo "Disabling symlinks for build" >&6; } |
| 4462 | else |
| 4463 | LINK_BUILD_FLAGS=-s |
| 4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4465 | $as_echo "Enabling symlinks for build" >&6; } |
| 4466 | fi |
| 4467 | |
| 4468 | else |
| 4469 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4471 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4472 | |
| 4473 | fi |
| 4474 | |
| 4475 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4476 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4477 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4478 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4479 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4481 | $as_echo "Disabling verbose make commands" >&6; } |
| 4482 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4483 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4484 | Q=@ |
| 4485 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4487 | $as_echo "Enabling verbose make commands" >&6; } |
| 4488 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4489 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4490 | Q= |
| 4491 | fi |
| 4492 | |
| 4493 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4495 | $as_echo "Disabling verbose make commands" >&6; } |
| 4496 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4497 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4498 | Q=@ |
| 4499 | |
| 4500 | fi |
| 4501 | |
| 4502 | |
| 4503 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4504 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4505 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4506 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4507 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4508 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4510 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4511 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4512 | |
| 4513 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4514 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4516 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4518 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4519 | fi |
| 4520 | |
| 4521 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4523 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4524 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4525 | fi |
| 4526 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4527 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4528 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4529 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4530 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4531 | then |
| 4532 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4534 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4535 | else |
| 4536 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4537 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4538 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4540 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4541 | fi |
| 4542 | |
| 4543 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4544 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4545 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4546 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4548 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4550 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4552 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4553 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4554 | LDFLAG_DYNAMIC= |
| 4555 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4556 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4557 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4558 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4559 | then |
| 4560 | ELF_CMT=# |
| 4561 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4563 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4564 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4565 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4566 | ELF_CMT= |
| 4567 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4568 | case "$host_os" in |
| 4569 | solaris2.*) |
| 4570 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4571 | ;; |
| 4572 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4573 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4574 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4575 | PRIVATE_LIBS_CMT=# |
| 4576 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4578 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4579 | fi |
| 4580 | |
| 4581 | else |
| 4582 | MAKEFILE_ELF=/dev/null |
| 4583 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4585 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4586 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4587 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4588 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4589 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4590 | |
| 4591 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4592 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4593 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4594 | then |
| 4595 | BSDLIB_CMT=# |
| 4596 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4598 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4599 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4600 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4601 | BSDLIB_CMT= |
| 4602 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4603 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4604 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4605 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4606 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4607 | LIB_EXT=.dylib |
| 4608 | ;; |
| 4609 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4611 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4612 | fi |
| 4613 | |
| 4614 | else |
| 4615 | MAKEFILE_BSDLIB=/dev/null |
| 4616 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4618 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4619 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4620 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4621 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4622 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4623 | |
| 4624 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4625 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4626 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4627 | then |
| 4628 | PROFILE_CMT=# |
| 4629 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4631 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4632 | else |
| 4633 | PROFILE_CMT= |
| 4634 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4635 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4637 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4638 | fi |
| 4639 | |
| 4640 | else |
| 4641 | PROFILE_CMT=# |
| 4642 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4644 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4645 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4646 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4647 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4648 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4649 | |
| 4650 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4651 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4652 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4653 | then |
| 4654 | CHECKER_CMT=# |
| 4655 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4657 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4658 | else |
| 4659 | CHECKER_CMT= |
| 4660 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4662 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4663 | fi |
| 4664 | |
| 4665 | else |
| 4666 | CHECKER_CMT=# |
| 4667 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4669 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4670 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4671 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4676 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4677 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4678 | |
| 4679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4680 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4681 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4682 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4683 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4685 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4686 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4687 | |
| 4688 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4689 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4691 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4692 | fi |
| 4693 | |
| 4694 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4696 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4697 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4698 | fi |
| 4699 | |
| 4700 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4701 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4702 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4703 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4705 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4706 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4707 | |
| 4708 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4709 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4711 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4712 | fi |
| 4713 | |
| 4714 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4716 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4718 | fi |
| 4719 | |
| 4720 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4721 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4722 | enableval=$enable_testio_debug; |
| 4723 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4724 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4726 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4727 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4728 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4729 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4730 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4731 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4733 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4734 | fi |
| 4735 | |
| 4736 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4738 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4739 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4740 | |
| 4741 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4742 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4743 | fi |
| 4744 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4745 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4746 | |
| 4747 | |
| 4748 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4749 | if test -n "$ac_tool_prefix"; then |
| 4750 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4751 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4753 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4754 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4755 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4756 | else |
| 4757 | case $PKG_CONFIG in |
| 4758 | [\\/]* | ?:[\\/]*) |
| 4759 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4760 | ;; |
| 4761 | *) |
| 4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4763 | for as_dir in $PATH |
| 4764 | do |
| 4765 | IFS=$as_save_IFS |
| 4766 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4767 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4769 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4771 | break 2 |
| 4772 | fi |
| 4773 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4774 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4775 | IFS=$as_save_IFS |
| 4776 | |
| 4777 | ;; |
| 4778 | esac |
| 4779 | fi |
| 4780 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4781 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4783 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4784 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4786 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4787 | fi |
| 4788 | |
| 4789 | |
| 4790 | fi |
| 4791 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4792 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4793 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4794 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4796 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4797 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4798 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4799 | else |
| 4800 | case $ac_pt_PKG_CONFIG in |
| 4801 | [\\/]* | ?:[\\/]*) |
| 4802 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4803 | ;; |
| 4804 | *) |
| 4805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4806 | for as_dir in $PATH |
| 4807 | do |
| 4808 | IFS=$as_save_IFS |
| 4809 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4810 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4812 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4814 | break 2 |
| 4815 | fi |
| 4816 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4817 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4818 | IFS=$as_save_IFS |
| 4819 | |
| 4820 | ;; |
| 4821 | esac |
| 4822 | fi |
| 4823 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4824 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4826 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4827 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4829 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4830 | fi |
| 4831 | |
| 4832 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4833 | PKG_CONFIG="" |
| 4834 | else |
| 4835 | case $cross_compiling:$ac_tool_warned in |
| 4836 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4838 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4839 | ac_tool_warned=yes ;; |
| 4840 | esac |
| 4841 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4842 | fi |
| 4843 | else |
| 4844 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4845 | fi |
| 4846 | |
| 4847 | fi |
| 4848 | if test -n "$PKG_CONFIG"; then |
| 4849 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4851 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4852 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4854 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4855 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4857 | $as_echo "no" >&6; } |
| 4858 | PKG_CONFIG="" |
| 4859 | fi |
| 4860 | |
| 4861 | fi |
| 4862 | LIBUUID= |
| 4863 | DEPLIBUUID= |
| 4864 | STATIC_LIBUUID= |
| 4865 | DEPSTATIC_LIBUUID= |
| 4866 | PROFILED_LIBUUID= |
| 4867 | DEPPROFILED_LIBUUID= |
| 4868 | UUID_CMT= |
| 4869 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4870 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4871 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4872 | then |
| 4873 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4874 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4875 | fi |
| 4876 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4878 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4879 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4880 | $as_echo_n "(cached) " >&6 |
| 4881 | else |
| 4882 | ac_check_lib_save_LIBS=$LIBS |
| 4883 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4885 | /* end confdefs.h. */ |
| 4886 | |
| 4887 | /* Override any GCC internal prototype to avoid an error. |
| 4888 | Use char because int might match the return type of a GCC |
| 4889 | builtin and then its argument prototype would still apply. */ |
| 4890 | #ifdef __cplusplus |
| 4891 | extern "C" |
| 4892 | #endif |
| 4893 | char uuid_generate (); |
| 4894 | int |
| 4895 | main () |
| 4896 | { |
| 4897 | return uuid_generate (); |
| 4898 | ; |
| 4899 | return 0; |
| 4900 | } |
| 4901 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4902 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4903 | ac_cv_lib_uuid_uuid_generate=yes |
| 4904 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4905 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4906 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4907 | rm -f core conftest.err conftest.$ac_objext \ |
| 4908 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4909 | LIBS=$ac_check_lib_save_LIBS |
| 4910 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4912 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4913 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4914 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4915 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4916 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4917 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4918 | fi |
| 4919 | |
| 4920 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4922 | $as_echo "Disabling private uuid library" >&6; } |
| 4923 | else |
| 4924 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4925 | DEPLIBUUID=$LIBUUID |
| 4926 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4927 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4928 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4929 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4931 | $as_echo "Enabling private uuid library" >&6; } |
| 4932 | fi |
| 4933 | |
| 4934 | else |
| 4935 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4936 | DEPLIBUUID=$LIBUUID |
| 4937 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4938 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4939 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4940 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4942 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4943 | |
| 4944 | fi |
| 4945 | |
| 4946 | |
| 4947 | |
| 4948 | |
| 4949 | |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | |
| 4954 | |
| 4955 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4956 | if test -n "$ac_tool_prefix"; then |
| 4957 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4958 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4960 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4961 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4962 | $as_echo_n "(cached) " >&6 |
| 4963 | else |
| 4964 | case $PKG_CONFIG in |
| 4965 | [\\/]* | ?:[\\/]*) |
| 4966 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4967 | ;; |
| 4968 | *) |
| 4969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4970 | for as_dir in $PATH |
| 4971 | do |
| 4972 | IFS=$as_save_IFS |
| 4973 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4974 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 4975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4976 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4978 | break 2 |
| 4979 | fi |
| 4980 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4981 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4982 | IFS=$as_save_IFS |
| 4983 | |
| 4984 | ;; |
| 4985 | esac |
| 4986 | fi |
| 4987 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4988 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4990 | $as_echo "$PKG_CONFIG" >&6; } |
| 4991 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4993 | $as_echo "no" >&6; } |
| 4994 | fi |
| 4995 | |
| 4996 | |
| 4997 | fi |
| 4998 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4999 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5000 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5001 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5003 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5004 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5005 | $as_echo_n "(cached) " >&6 |
| 5006 | else |
| 5007 | case $ac_pt_PKG_CONFIG in |
| 5008 | [\\/]* | ?:[\\/]*) |
| 5009 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5010 | ;; |
| 5011 | *) |
| 5012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5013 | for as_dir in $PATH |
| 5014 | do |
| 5015 | IFS=$as_save_IFS |
| 5016 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5017 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5019 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5021 | break 2 |
| 5022 | fi |
| 5023 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5024 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5025 | IFS=$as_save_IFS |
| 5026 | |
| 5027 | ;; |
| 5028 | esac |
| 5029 | fi |
| 5030 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5031 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5033 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5034 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5036 | $as_echo "no" >&6; } |
| 5037 | fi |
| 5038 | |
| 5039 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5040 | PKG_CONFIG="" |
| 5041 | else |
| 5042 | case $cross_compiling:$ac_tool_warned in |
| 5043 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5045 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5046 | ac_tool_warned=yes ;; |
| 5047 | esac |
| 5048 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5049 | fi |
| 5050 | else |
| 5051 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5052 | fi |
| 5053 | |
| 5054 | fi |
| 5055 | if test -n "$PKG_CONFIG"; then |
| 5056 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5058 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5059 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5061 | $as_echo "yes" >&6; } |
| 5062 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5064 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5065 | PKG_CONFIG="" |
| 5066 | fi |
| 5067 | |
| 5068 | fi |
| 5069 | LIBBLKID= |
| 5070 | DEPLIBBLKID= |
| 5071 | STATIC_LIBBLKID= |
| 5072 | DEPSTATIC_LIBBLKID= |
| 5073 | PROFILED_LIBBLKID= |
| 5074 | DEPPROFILED_LIBBLKID= |
| 5075 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5076 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5077 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5078 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5079 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5080 | then |
| 5081 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5082 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5083 | fi |
| 5084 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5086 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5087 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5088 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5089 | else |
| 5090 | ac_check_lib_save_LIBS=$LIBS |
| 5091 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5093 | /* end confdefs.h. */ |
| 5094 | |
| 5095 | /* Override any GCC internal prototype to avoid an error. |
| 5096 | Use char because int might match the return type of a GCC |
| 5097 | builtin and then its argument prototype would still apply. */ |
| 5098 | #ifdef __cplusplus |
| 5099 | extern "C" |
| 5100 | #endif |
| 5101 | char blkid_get_cache (); |
| 5102 | int |
| 5103 | main () |
| 5104 | { |
| 5105 | return blkid_get_cache (); |
| 5106 | ; |
| 5107 | return 0; |
| 5108 | } |
| 5109 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5110 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5111 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5112 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5113 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5114 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5115 | rm -f core conftest.err conftest.$ac_objext \ |
| 5116 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5117 | LIBS=$ac_check_lib_save_LIBS |
| 5118 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5120 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5121 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5122 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5123 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5124 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5125 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5126 | fi |
| 5127 | |
| 5128 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5130 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5131 | else |
| 5132 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5133 | DEPLIBBLKID=$LIBBLKID |
| 5134 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5135 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5136 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5137 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5138 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5139 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5141 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5142 | fi |
| 5143 | |
| 5144 | else |
| 5145 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5146 | DEPLIBBLKID=$LIBBLKID |
| 5147 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5148 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5149 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5150 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5151 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5152 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5154 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5155 | |
| 5156 | fi |
| 5157 | |
| 5158 | |
| 5159 | |
| 5160 | |
| 5161 | |
| 5162 | |
| 5163 | |
| 5164 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5165 | |
| 5166 | |
| 5167 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5168 | if test -n "$ac_tool_prefix"; then |
| 5169 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5170 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5172 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5173 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5174 | $as_echo_n "(cached) " >&6 |
| 5175 | else |
| 5176 | case $PKG_CONFIG in |
| 5177 | [\\/]* | ?:[\\/]*) |
| 5178 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5179 | ;; |
| 5180 | *) |
| 5181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5182 | for as_dir in $PATH |
| 5183 | do |
| 5184 | IFS=$as_save_IFS |
| 5185 | test -z "$as_dir" && as_dir=. |
| 5186 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5188 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5190 | break 2 |
| 5191 | fi |
| 5192 | done |
| 5193 | done |
| 5194 | IFS=$as_save_IFS |
| 5195 | |
| 5196 | ;; |
| 5197 | esac |
| 5198 | fi |
| 5199 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5200 | if test -n "$PKG_CONFIG"; then |
| 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5202 | $as_echo "$PKG_CONFIG" >&6; } |
| 5203 | else |
| 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5205 | $as_echo "no" >&6; } |
| 5206 | fi |
| 5207 | |
| 5208 | |
| 5209 | fi |
| 5210 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5211 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5212 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5213 | set dummy pkg-config; ac_word=$2 |
| 5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5215 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5216 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5217 | $as_echo_n "(cached) " >&6 |
| 5218 | else |
| 5219 | case $ac_pt_PKG_CONFIG in |
| 5220 | [\\/]* | ?:[\\/]*) |
| 5221 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5222 | ;; |
| 5223 | *) |
| 5224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5225 | for as_dir in $PATH |
| 5226 | do |
| 5227 | IFS=$as_save_IFS |
| 5228 | test -z "$as_dir" && as_dir=. |
| 5229 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5231 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5233 | break 2 |
| 5234 | fi |
| 5235 | done |
| 5236 | done |
| 5237 | IFS=$as_save_IFS |
| 5238 | |
| 5239 | ;; |
| 5240 | esac |
| 5241 | fi |
| 5242 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5243 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5245 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5246 | else |
| 5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5248 | $as_echo "no" >&6; } |
| 5249 | fi |
| 5250 | |
| 5251 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5252 | PKG_CONFIG="" |
| 5253 | else |
| 5254 | case $cross_compiling:$ac_tool_warned in |
| 5255 | yes:) |
| 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5258 | ac_tool_warned=yes ;; |
| 5259 | esac |
| 5260 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5261 | fi |
| 5262 | else |
| 5263 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5264 | fi |
| 5265 | |
| 5266 | fi |
| 5267 | if test -n "$PKG_CONFIG"; then |
| 5268 | _pkg_min_version=0.9.0 |
| 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 5270 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5271 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5273 | $as_echo "yes" >&6; } |
| 5274 | else |
| 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5276 | $as_echo "no" >&6; } |
| 5277 | PKG_CONFIG="" |
| 5278 | fi |
| 5279 | |
| 5280 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5281 | |
| 5282 | # Check whether --enable-quota was given. |
| 5283 | if test "${enable_quota+set}" = set; then : |
| 5284 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5285 | then |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5287 | $as_echo "Disabling quota support" >&6; } |
| 5288 | else |
| 5289 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5290 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5292 | $as_echo "Enabling quota support" >&6; } |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5293 | fi |
| 5294 | |
| 5295 | else |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 |
| 5297 | $as_echo "Disabling quota support by default" >&6; } |
| 5298 | |
| 5299 | fi |
| 5300 | |
| 5301 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5302 | DEPLIBQUOTA=$LIBQUOTA |
| 5303 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5304 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5305 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5306 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5307 | |
| 5308 | |
| 5309 | |
| 5310 | |
| 5311 | |
| 5312 | |
| 5313 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5314 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5315 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5316 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5317 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5319 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5320 | DEBUGFS_CMT="#" |
| 5321 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5322 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5324 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5325 | fi |
| 5326 | |
| 5327 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5329 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5330 | DEBUGFS_CMT= |
| 5331 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5332 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5333 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5334 | |
| 5335 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5336 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5337 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5338 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5340 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5341 | IMAGER_CMT="#" |
| 5342 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5343 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5345 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5346 | fi |
| 5347 | |
| 5348 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5350 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5351 | IMAGER_CMT= |
| 5352 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5353 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5354 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5355 | |
| 5356 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5357 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5358 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5359 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5361 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5362 | RESIZER_CMT="#" |
| 5363 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5364 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5366 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5367 | fi |
| 5368 | |
| 5369 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5371 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5372 | RESIZER_CMT= |
| 5373 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5374 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5375 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5376 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5377 | # Check whether --enable-defrag was given. |
| 5378 | if test "${enable_defrag+set}" = set; then : |
| 5379 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5380 | then |
| 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5382 | $as_echo "Disabling e4defrag support" >&6; } |
| 5383 | DEFRAG_CMT="#" |
| 5384 | else |
| 5385 | DEFRAG_CMT= |
| 5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5387 | $as_echo "Enabling e4defrag support" >&6; } |
| 5388 | fi |
| 5389 | |
| 5390 | else |
| 5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
| 5392 | $as_echo "Enabling e4defrag support by default" >&6; } |
| 5393 | DEFRAG_CMT= |
| 5394 | |
| 5395 | fi |
| 5396 | |
| 5397 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5398 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5399 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5400 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5401 | then |
| 5402 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5404 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5405 | else |
| 5406 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5408 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5409 | fi |
| 5410 | |
| 5411 | else |
| 5412 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5413 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5414 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5416 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5417 | ;; |
| 5418 | *) |
| 5419 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5421 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5422 | esac |
| 5423 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5424 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5425 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5426 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5427 | |
| 5428 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5429 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5430 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5431 | then |
| 5432 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5434 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5435 | else |
| 5436 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5438 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5439 | fi |
| 5440 | |
| 5441 | else |
| 5442 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5444 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5445 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5446 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5447 | |
| 5448 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5449 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5450 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5451 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5452 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5453 | then |
| 5454 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5456 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5457 | else |
| 5458 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5460 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5461 | fi |
| 5462 | |
| 5463 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5464 | if test -n "$WITH_DIET_LIBC" |
| 5465 | then |
| 5466 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5468 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5469 | else |
| 5470 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5472 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5473 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5474 | |
| 5475 | fi |
| 5476 | |
| 5477 | if test "$try_tls" = "yes" |
| 5478 | then |
| 5479 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5481 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5482 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5483 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5484 | else |
| 5485 | |
| 5486 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5487 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5488 | case $ax_tls_keyword in |
| 5489 | none) ac_cv_tls=none ; break ;; |
| 5490 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5492 | /* end confdefs.h. */ |
| 5493 | #include <stdlib.h> |
| 5494 | static void |
| 5495 | foo(void) { |
| 5496 | static $ax_tls_keyword int bar; |
| 5497 | exit(1); |
| 5498 | } |
| 5499 | int |
| 5500 | main () |
| 5501 | { |
| 5502 | |
| 5503 | ; |
| 5504 | return 0; |
| 5505 | } |
| 5506 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5507 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5508 | ac_cv_tls=$ax_tls_keyword ; break |
| 5509 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5510 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5511 | |
| 5512 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5514 | esac |
| 5515 | done |
| 5516 | |
| 5517 | fi |
| 5518 | |
| 5519 | |
| 5520 | if test "$ac_cv_tls" != "none"; then |
| 5521 | |
| 5522 | cat >>confdefs.h <<_ACEOF |
| 5523 | #define TLS $ac_cv_tls |
| 5524 | _ACEOF |
| 5525 | |
| 5526 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5528 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5529 | |
| 5530 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5531 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5532 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5533 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5534 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5535 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5537 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5538 | UUIDD_CMT="#" |
| 5539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5540 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5541 | |
| 5542 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5544 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5545 | fi |
| 5546 | |
| 5547 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5548 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5549 | |
| 5550 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5552 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5553 | |
| 5554 | fi |
| 5555 | |
| 5556 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5557 | |
| 5558 | # Check whether --enable-mmp was given. |
| 5559 | if test "${enable_mmp+set}" = set; then : |
| 5560 | enableval=$enable_mmp; if test "$enableval" = "no" |
| 5561 | then |
| 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 |
| 5563 | $as_echo "Disabling mmp support" >&6; } |
| 5564 | else |
| 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 |
| 5566 | $as_echo "Enabling mmp support" >&6; } |
| 5567 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5568 | |
| 5569 | fi |
| 5570 | |
| 5571 | else |
| 5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 |
| 5573 | $as_echo "Enabling mmp support by default" >&6; } |
| 5574 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5575 | |
| 5576 | |
| 5577 | fi |
| 5578 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5579 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5580 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5581 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5582 | PACKAGE=e2fsprogs |
| 5583 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5584 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5585 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5586 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5587 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5588 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5589 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5591 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5592 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5593 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5594 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5595 | |
| 5596 | |
| 5597 | |
| 5598 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5600 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5601 | set x ${MAKE-make} |
| 5602 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5603 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5604 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5605 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5606 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5607 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5608 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5609 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5610 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5611 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5612 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5613 | *@@@%%%=?*=@@@%%%*) |
| 5614 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5615 | *) |
| 5616 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5617 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5618 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5619 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5620 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5622 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5623 | SET_MAKE= |
| 5624 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5626 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5627 | SET_MAKE="MAKE=${MAKE-make}" |
| 5628 | fi |
| 5629 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5630 | # Find a good install program. We prefer a C program (faster), |
| 5631 | # so one script is as good as another. But avoid the broken or |
| 5632 | # incompatible versions: |
| 5633 | # SysV /etc/install, /usr/sbin/install |
| 5634 | # SunOS /usr/etc/install |
| 5635 | # IRIX /sbin/install |
| 5636 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5637 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5638 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5639 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5640 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5641 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5642 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5643 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5645 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5646 | if test -z "$INSTALL"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5647 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5648 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5649 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5651 | for as_dir in $PATH |
| 5652 | do |
| 5653 | IFS=$as_save_IFS |
| 5654 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5655 | # Account for people who put trailing slashes in PATH elements. |
| 5656 | case $as_dir/ in #(( |
| 5657 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5658 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5659 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5660 | /usr/ucb/* ) ;; |
| 5661 | *) |
| 5662 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5663 | # Don't use installbsd from OSF since it installs stuff as root |
| 5664 | # by default. |
| 5665 | for ac_prog in ginstall scoinst install; do |
| 5666 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5667 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5668 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5669 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5670 | # AIX install. It has an incompatible calling convention. |
| 5671 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5672 | elif test $ac_prog = install && |
| 5673 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5674 | # program-specific install script used by HP pwplus--don't use. |
| 5675 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5676 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5677 | rm -rf conftest.one conftest.two conftest.dir |
| 5678 | echo one > conftest.one |
| 5679 | echo two > conftest.two |
| 5680 | mkdir conftest.dir |
| 5681 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5682 | test -s conftest.one && test -s conftest.two && |
| 5683 | test -s conftest.dir/conftest.one && |
| 5684 | test -s conftest.dir/conftest.two |
| 5685 | then |
| 5686 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5687 | break 3 |
| 5688 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5689 | fi |
| 5690 | fi |
| 5691 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5692 | done |
| 5693 | ;; |
| 5694 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5695 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5696 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5697 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5698 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5699 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5700 | |
| 5701 | fi |
| 5702 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5703 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5704 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5705 | # As a last resort, use the slow shell script. Don't cache a |
| 5706 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5707 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5708 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5709 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5710 | fi |
| 5711 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5713 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5714 | |
| 5715 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5716 | # It thinks the first close brace ends the variable substitution. |
| 5717 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5718 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5719 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5720 | |
| 5721 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5722 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5723 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5724 | MKINSTALLDIRS= |
| 5725 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5726 | case "$ac_aux_dir" in |
| 5727 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5728 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5729 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5730 | fi |
| 5731 | if test -z "$MKINSTALLDIRS"; then |
| 5732 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5733 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5734 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5735 | |
| 5736 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5738 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5739 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5740 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5741 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5742 | else |
| 5743 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5744 | fi |
| 5745 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5747 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5748 | |
| 5749 | |
| 5750 | |
| 5751 | |
| 5752 | |
| 5753 | |
| 5754 | # Prepare PATH_SEPARATOR. |
| 5755 | # The user is always right. |
| 5756 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5757 | echo "#! /bin/sh" >conf$$.sh |
| 5758 | echo "exit 0" >>conf$$.sh |
| 5759 | chmod +x conf$$.sh |
| 5760 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5761 | PATH_SEPARATOR=';' |
| 5762 | else |
| 5763 | PATH_SEPARATOR=: |
| 5764 | fi |
| 5765 | rm -f conf$$.sh |
| 5766 | fi |
| 5767 | |
| 5768 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5769 | # as systems may use methods other than mode bits to determine executability. |
| 5770 | cat >conf$$.file <<_ASEOF |
| 5771 | #! /bin/sh |
| 5772 | exit 0 |
| 5773 | _ASEOF |
| 5774 | chmod +x conf$$.file |
| 5775 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5776 | ac_executable_p="test -x" |
| 5777 | else |
| 5778 | ac_executable_p="test -f" |
| 5779 | fi |
| 5780 | rm -f conf$$.file |
| 5781 | |
| 5782 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5783 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5785 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5786 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5787 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5788 | else |
| 5789 | case "$MSGFMT" in |
| 5790 | [\\/]* | ?:[\\/]*) |
| 5791 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5792 | ;; |
| 5793 | *) |
| 5794 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5795 | for ac_dir in $PATH; do |
| 5796 | IFS="$ac_save_IFS" |
| 5797 | test -z "$ac_dir" && ac_dir=. |
| 5798 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5799 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5800 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5801 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5802 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5803 | break 2 |
| 5804 | fi |
| 5805 | fi |
| 5806 | done |
| 5807 | done |
| 5808 | IFS="$ac_save_IFS" |
| 5809 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5810 | ;; |
| 5811 | esac |
| 5812 | fi |
| 5813 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5814 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5816 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5817 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5819 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5820 | fi |
| 5821 | |
| 5822 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5823 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5825 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5826 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5827 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5828 | else |
| 5829 | case $GMSGFMT in |
| 5830 | [\\/]* | ?:[\\/]*) |
| 5831 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5832 | ;; |
| 5833 | *) |
| 5834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5835 | for as_dir in $PATH |
| 5836 | do |
| 5837 | IFS=$as_save_IFS |
| 5838 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5839 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5840 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5841 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5843 | break 2 |
| 5844 | fi |
| 5845 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5846 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5847 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5848 | |
| 5849 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5850 | ;; |
| 5851 | esac |
| 5852 | fi |
| 5853 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5854 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5856 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5857 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5859 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5860 | fi |
| 5861 | |
| 5862 | |
| 5863 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5864 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5865 | # Prepare PATH_SEPARATOR. |
| 5866 | # The user is always right. |
| 5867 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5868 | echo "#! /bin/sh" >conf$$.sh |
| 5869 | echo "exit 0" >>conf$$.sh |
| 5870 | chmod +x conf$$.sh |
| 5871 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5872 | PATH_SEPARATOR=';' |
| 5873 | else |
| 5874 | PATH_SEPARATOR=: |
| 5875 | fi |
| 5876 | rm -f conf$$.sh |
| 5877 | fi |
| 5878 | |
| 5879 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5880 | # as systems may use methods other than mode bits to determine executability. |
| 5881 | cat >conf$$.file <<_ASEOF |
| 5882 | #! /bin/sh |
| 5883 | exit 0 |
| 5884 | _ASEOF |
| 5885 | chmod +x conf$$.file |
| 5886 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5887 | ac_executable_p="test -x" |
| 5888 | else |
| 5889 | ac_executable_p="test -f" |
| 5890 | fi |
| 5891 | rm -f conf$$.file |
| 5892 | |
| 5893 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5894 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5896 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5897 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5898 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5899 | else |
| 5900 | case "$XGETTEXT" in |
| 5901 | [\\/]* | ?:[\\/]*) |
| 5902 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5903 | ;; |
| 5904 | *) |
| 5905 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5906 | for ac_dir in $PATH; do |
| 5907 | IFS="$ac_save_IFS" |
| 5908 | test -z "$ac_dir" && ac_dir=. |
| 5909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5910 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5911 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5912 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5913 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5914 | break 2 |
| 5915 | fi |
| 5916 | fi |
| 5917 | done |
| 5918 | done |
| 5919 | IFS="$ac_save_IFS" |
| 5920 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5921 | ;; |
| 5922 | esac |
| 5923 | fi |
| 5924 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5925 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5927 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5928 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5930 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5931 | fi |
| 5932 | |
| 5933 | rm -f messages.po |
| 5934 | |
| 5935 | |
| 5936 | # Prepare PATH_SEPARATOR. |
| 5937 | # The user is always right. |
| 5938 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5939 | echo "#! /bin/sh" >conf$$.sh |
| 5940 | echo "exit 0" >>conf$$.sh |
| 5941 | chmod +x conf$$.sh |
| 5942 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5943 | PATH_SEPARATOR=';' |
| 5944 | else |
| 5945 | PATH_SEPARATOR=: |
| 5946 | fi |
| 5947 | rm -f conf$$.sh |
| 5948 | fi |
| 5949 | |
| 5950 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5951 | # as systems may use methods other than mode bits to determine executability. |
| 5952 | cat >conf$$.file <<_ASEOF |
| 5953 | #! /bin/sh |
| 5954 | exit 0 |
| 5955 | _ASEOF |
| 5956 | chmod +x conf$$.file |
| 5957 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5958 | ac_executable_p="test -x" |
| 5959 | else |
| 5960 | ac_executable_p="test -f" |
| 5961 | fi |
| 5962 | rm -f conf$$.file |
| 5963 | |
| 5964 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5965 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5967 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 5968 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5969 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5970 | else |
| 5971 | case "$MSGMERGE" in |
| 5972 | [\\/]* | ?:[\\/]*) |
| 5973 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5974 | ;; |
| 5975 | *) |
| 5976 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5977 | for ac_dir in $PATH; do |
| 5978 | IFS="$ac_save_IFS" |
| 5979 | test -z "$ac_dir" && ac_dir=. |
| 5980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5981 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5982 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5983 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5984 | break 2 |
| 5985 | fi |
| 5986 | fi |
| 5987 | done |
| 5988 | done |
| 5989 | IFS="$ac_save_IFS" |
| 5990 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5991 | ;; |
| 5992 | esac |
| 5993 | fi |
| 5994 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5995 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5997 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5998 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6000 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6001 | fi |
| 6002 | |
| 6003 | |
| 6004 | if test "$GMSGFMT" != ":"; then |
| 6005 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 6006 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6007 | : ; |
| 6008 | else |
| 6009 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6011 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6012 | GMSGFMT=":" |
| 6013 | fi |
| 6014 | fi |
| 6015 | |
| 6016 | if test "$XGETTEXT" != ":"; then |
| 6017 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6018 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6019 | : ; |
| 6020 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6022 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6023 | XGETTEXT=":" |
| 6024 | fi |
| 6025 | rm -f messages.po |
| 6026 | fi |
| 6027 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6028 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | |
| 6030 | |
| 6031 | if test -n "$ac_tool_prefix"; then |
| 6032 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6033 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6035 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6036 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6037 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6038 | else |
| 6039 | if test -n "$RANLIB"; then |
| 6040 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6043 | for as_dir in $PATH |
| 6044 | do |
| 6045 | IFS=$as_save_IFS |
| 6046 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6049 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6051 | break 2 |
| 6052 | fi |
| 6053 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6054 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6055 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6056 | |
| 6057 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6058 | fi |
| 6059 | RANLIB=$ac_cv_prog_RANLIB |
| 6060 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6062 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6063 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6065 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6066 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6068 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6069 | fi |
| 6070 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6071 | ac_ct_RANLIB=$RANLIB |
| 6072 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6073 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6075 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6076 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6077 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6078 | else |
| 6079 | if test -n "$ac_ct_RANLIB"; then |
| 6080 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6081 | else |
| 6082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6083 | for as_dir in $PATH |
| 6084 | do |
| 6085 | IFS=$as_save_IFS |
| 6086 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6087 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6089 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6091 | break 2 |
| 6092 | fi |
| 6093 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6094 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6095 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6096 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6097 | fi |
| 6098 | fi |
| 6099 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6100 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6102 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6103 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6105 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6106 | fi |
| 6107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6108 | if test "x$ac_ct_RANLIB" = x; then |
| 6109 | RANLIB=":" |
| 6110 | else |
| 6111 | case $cross_compiling:$ac_tool_warned in |
| 6112 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6114 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6115 | ac_tool_warned=yes ;; |
| 6116 | esac |
| 6117 | RANLIB=$ac_ct_RANLIB |
| 6118 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6119 | else |
| 6120 | RANLIB="$ac_cv_prog_RANLIB" |
| 6121 | fi |
| 6122 | |
| 6123 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6125 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6126 | if ${ac_cv_lib_cposix_strerror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6127 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6128 | else |
| 6129 | ac_check_lib_save_LIBS=$LIBS |
| 6130 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6132 | /* end confdefs.h. */ |
| 6133 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6134 | /* Override any GCC internal prototype to avoid an error. |
| 6135 | Use char because int might match the return type of a GCC |
| 6136 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6137 | #ifdef __cplusplus |
| 6138 | extern "C" |
| 6139 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6140 | char strerror (); |
| 6141 | int |
| 6142 | main () |
| 6143 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6144 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6145 | ; |
| 6146 | return 0; |
| 6147 | } |
| 6148 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6149 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6150 | ac_cv_lib_cposix_strerror=yes |
| 6151 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6152 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6153 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6154 | rm -f core conftest.err conftest.$ac_objext \ |
| 6155 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6156 | LIBS=$ac_check_lib_save_LIBS |
| 6157 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6159 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6160 | if test "x$ac_cv_lib_cposix_strerror" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6161 | LIBS="$LIBS -lcposix" |
| 6162 | fi |
| 6163 | |
| 6164 | |
| 6165 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6166 | |
| 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6168 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6169 | if ${ac_cv_path_GREP+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6170 | $as_echo_n "(cached) " >&6 |
| 6171 | else |
| 6172 | if test -z "$GREP"; then |
| 6173 | ac_path_GREP_found=false |
| 6174 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6176 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6177 | do |
| 6178 | IFS=$as_save_IFS |
| 6179 | test -z "$as_dir" && as_dir=. |
| 6180 | for ac_prog in grep ggrep; do |
| 6181 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6182 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6183 | as_fn_executable_p "$ac_path_GREP" || continue |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6184 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6185 | # Check for GNU $ac_path_GREP |
| 6186 | case `"$ac_path_GREP" --version 2>&1` in |
| 6187 | *GNU*) |
| 6188 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6189 | *) |
| 6190 | ac_count=0 |
| 6191 | $as_echo_n 0123456789 >"conftest.in" |
| 6192 | while : |
| 6193 | do |
| 6194 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6195 | mv "conftest.tmp" "conftest.in" |
| 6196 | cp "conftest.in" "conftest.nl" |
| 6197 | $as_echo 'GREP' >> "conftest.nl" |
| 6198 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6199 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6200 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6201 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6202 | # Best one so far, save it but keep looking for a better one |
| 6203 | ac_cv_path_GREP="$ac_path_GREP" |
| 6204 | ac_path_GREP_max=$ac_count |
| 6205 | fi |
| 6206 | # 10*(2^10) chars as input seems more than enough |
| 6207 | test $ac_count -gt 10 && break |
| 6208 | done |
| 6209 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6210 | esac |
| 6211 | |
| 6212 | $ac_path_GREP_found && break 3 |
| 6213 | done |
| 6214 | done |
| 6215 | done |
| 6216 | IFS=$as_save_IFS |
| 6217 | if test -z "$ac_cv_path_GREP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6218 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6219 | fi |
| 6220 | else |
| 6221 | ac_cv_path_GREP=$GREP |
| 6222 | fi |
| 6223 | |
| 6224 | fi |
| 6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6226 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6227 | GREP="$ac_cv_path_GREP" |
| 6228 | |
| 6229 | |
| 6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6231 | $as_echo_n "checking for egrep... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6232 | if ${ac_cv_path_EGREP+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6233 | $as_echo_n "(cached) " >&6 |
| 6234 | else |
| 6235 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6236 | then ac_cv_path_EGREP="$GREP -E" |
| 6237 | else |
| 6238 | if test -z "$EGREP"; then |
| 6239 | ac_path_EGREP_found=false |
| 6240 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6242 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6243 | do |
| 6244 | IFS=$as_save_IFS |
| 6245 | test -z "$as_dir" && as_dir=. |
| 6246 | for ac_prog in egrep; do |
| 6247 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6248 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6249 | as_fn_executable_p "$ac_path_EGREP" || continue |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6250 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6251 | # Check for GNU $ac_path_EGREP |
| 6252 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6253 | *GNU*) |
| 6254 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6255 | *) |
| 6256 | ac_count=0 |
| 6257 | $as_echo_n 0123456789 >"conftest.in" |
| 6258 | while : |
| 6259 | do |
| 6260 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6261 | mv "conftest.tmp" "conftest.in" |
| 6262 | cp "conftest.in" "conftest.nl" |
| 6263 | $as_echo 'EGREP' >> "conftest.nl" |
| 6264 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6265 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6266 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6267 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6268 | # Best one so far, save it but keep looking for a better one |
| 6269 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6270 | ac_path_EGREP_max=$ac_count |
| 6271 | fi |
| 6272 | # 10*(2^10) chars as input seems more than enough |
| 6273 | test $ac_count -gt 10 && break |
| 6274 | done |
| 6275 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6276 | esac |
| 6277 | |
| 6278 | $ac_path_EGREP_found && break 3 |
| 6279 | done |
| 6280 | done |
| 6281 | done |
| 6282 | IFS=$as_save_IFS |
| 6283 | if test -z "$ac_cv_path_EGREP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6284 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6285 | fi |
| 6286 | else |
| 6287 | ac_cv_path_EGREP=$EGREP |
| 6288 | fi |
| 6289 | |
| 6290 | fi |
| 6291 | fi |
| 6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6293 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6294 | EGREP="$ac_cv_path_EGREP" |
| 6295 | |
| 6296 | |
| 6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6298 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6299 | if ${ac_cv_header_stdc+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6300 | $as_echo_n "(cached) " >&6 |
| 6301 | else |
| 6302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6303 | /* end confdefs.h. */ |
| 6304 | #include <stdlib.h> |
| 6305 | #include <stdarg.h> |
| 6306 | #include <string.h> |
| 6307 | #include <float.h> |
| 6308 | |
| 6309 | int |
| 6310 | main () |
| 6311 | { |
| 6312 | |
| 6313 | ; |
| 6314 | return 0; |
| 6315 | } |
| 6316 | _ACEOF |
| 6317 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6318 | ac_cv_header_stdc=yes |
| 6319 | else |
| 6320 | ac_cv_header_stdc=no |
| 6321 | fi |
| 6322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6323 | |
| 6324 | if test $ac_cv_header_stdc = yes; then |
| 6325 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6327 | /* end confdefs.h. */ |
| 6328 | #include <string.h> |
| 6329 | |
| 6330 | _ACEOF |
| 6331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6332 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6333 | |
| 6334 | else |
| 6335 | ac_cv_header_stdc=no |
| 6336 | fi |
| 6337 | rm -f conftest* |
| 6338 | |
| 6339 | fi |
| 6340 | |
| 6341 | if test $ac_cv_header_stdc = yes; then |
| 6342 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6344 | /* end confdefs.h. */ |
| 6345 | #include <stdlib.h> |
| 6346 | |
| 6347 | _ACEOF |
| 6348 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6349 | $EGREP "free" >/dev/null 2>&1; then : |
| 6350 | |
| 6351 | else |
| 6352 | ac_cv_header_stdc=no |
| 6353 | fi |
| 6354 | rm -f conftest* |
| 6355 | |
| 6356 | fi |
| 6357 | |
| 6358 | if test $ac_cv_header_stdc = yes; then |
| 6359 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6360 | if test "$cross_compiling" = yes; then : |
| 6361 | : |
| 6362 | else |
| 6363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6364 | /* end confdefs.h. */ |
| 6365 | #include <ctype.h> |
| 6366 | #include <stdlib.h> |
| 6367 | #if ((' ' & 0x0FF) == 0x020) |
| 6368 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6369 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6370 | #else |
| 6371 | # define ISLOWER(c) \ |
| 6372 | (('a' <= (c) && (c) <= 'i') \ |
| 6373 | || ('j' <= (c) && (c) <= 'r') \ |
| 6374 | || ('s' <= (c) && (c) <= 'z')) |
| 6375 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6376 | #endif |
| 6377 | |
| 6378 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6379 | int |
| 6380 | main () |
| 6381 | { |
| 6382 | int i; |
| 6383 | for (i = 0; i < 256; i++) |
| 6384 | if (XOR (islower (i), ISLOWER (i)) |
| 6385 | || toupper (i) != TOUPPER (i)) |
| 6386 | return 2; |
| 6387 | return 0; |
| 6388 | } |
| 6389 | _ACEOF |
| 6390 | if ac_fn_c_try_run "$LINENO"; then : |
| 6391 | |
| 6392 | else |
| 6393 | ac_cv_header_stdc=no |
| 6394 | fi |
| 6395 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6396 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6397 | fi |
| 6398 | |
| 6399 | fi |
| 6400 | fi |
| 6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6402 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6403 | if test $ac_cv_header_stdc = yes; then |
| 6404 | |
| 6405 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6406 | |
| 6407 | fi |
| 6408 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6410 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6411 | if ${ac_cv_c_const+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6412 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6413 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6415 | /* end confdefs.h. */ |
| 6416 | |
| 6417 | int |
| 6418 | main () |
| 6419 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6420 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6421 | #ifndef __cplusplus |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6422 | /* Ultrix mips cc rejects this sort of thing. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6423 | typedef int charset[2]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6424 | const charset cs = { 0, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6425 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6426 | char const *const *pcpcc; |
| 6427 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6428 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6429 | struct point {int x, y;}; |
| 6430 | static struct point const zero = {0,0}; |
| 6431 | /* AIX XL C 1.02.0.0 rejects this. |
| 6432 | It does not let you subtract one const X* pointer from another in |
| 6433 | an arm of an if-expression whose if-part is not a constant |
| 6434 | expression */ |
| 6435 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6436 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6437 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6438 | ++pcpcc; |
| 6439 | ppc = (char**) pcpcc; |
| 6440 | pcpcc = (char const *const *) ppc; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6441 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 6442 | char tx; |
| 6443 | char *t = &tx; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6444 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6445 | |
| 6446 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6447 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6448 | } |
| 6449 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6450 | int x[] = {25, 17}; |
| 6451 | const int *foo = &x[0]; |
| 6452 | ++foo; |
| 6453 | } |
| 6454 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6455 | typedef const int *iptr; |
| 6456 | iptr p = 0; |
| 6457 | ++p; |
| 6458 | } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6459 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6460 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6461 | struct s { int j; const int *ap[3]; } bx; |
| 6462 | struct s *b = &bx; b->j = 5; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6463 | } |
| 6464 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6465 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6466 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6467 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6468 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6469 | #endif |
| 6470 | |
| 6471 | ; |
| 6472 | return 0; |
| 6473 | } |
| 6474 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6475 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6476 | ac_cv_c_const=yes |
| 6477 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6478 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6479 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6481 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6483 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6484 | if test $ac_cv_c_const = no; then |
| 6485 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6486 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6487 | |
| 6488 | fi |
| 6489 | |
| 6490 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6492 | $as_echo_n "checking for signed... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6493 | if ${bh_cv_c_signed+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6494 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6495 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6497 | /* end confdefs.h. */ |
| 6498 | |
| 6499 | int |
| 6500 | main () |
| 6501 | { |
| 6502 | signed char x; |
| 6503 | ; |
| 6504 | return 0; |
| 6505 | } |
| 6506 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6507 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6508 | bh_cv_c_signed=yes |
| 6509 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6510 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6511 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6513 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6515 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6516 | if test $bh_cv_c_signed = no; then |
| 6517 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6518 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6519 | |
| 6520 | fi |
| 6521 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6523 | $as_echo_n "checking for inline... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6524 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6525 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6526 | else |
| 6527 | ac_cv_c_inline=no |
| 6528 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | /* end confdefs.h. */ |
| 6531 | #ifndef __cplusplus |
| 6532 | typedef int foo_t; |
| 6533 | static $ac_kw foo_t static_foo () {return 0; } |
| 6534 | $ac_kw foo_t foo () {return 0; } |
| 6535 | #endif |
| 6536 | |
| 6537 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6538 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6539 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6540 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6542 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6543 | done |
| 6544 | |
| 6545 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6547 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6549 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6550 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6551 | *) |
| 6552 | case $ac_cv_c_inline in |
| 6553 | no) ac_val=;; |
| 6554 | *) ac_val=$ac_cv_c_inline;; |
| 6555 | esac |
| 6556 | cat >>confdefs.h <<_ACEOF |
| 6557 | #ifndef __cplusplus |
| 6558 | #define inline $ac_val |
| 6559 | #endif |
| 6560 | _ACEOF |
| 6561 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6562 | esac |
| 6563 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6564 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6565 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6566 | inttypes.h stdint.h unistd.h |
| 6567 | do : |
| 6568 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6569 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6570 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6571 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6572 | cat >>confdefs.h <<_ACEOF |
| 6573 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6574 | _ACEOF |
| 6575 | |
| 6576 | fi |
| 6577 | |
| 6578 | done |
| 6579 | |
| 6580 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6581 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6582 | if test "x$ac_cv_type_off_t" = xyes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6583 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6584 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6585 | |
| 6586 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6587 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6588 | _ACEOF |
| 6589 | |
| 6590 | fi |
| 6591 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6592 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6593 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6594 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6595 | else |
| 6596 | |
| 6597 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6598 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6599 | _ACEOF |
| 6600 | |
| 6601 | fi |
| 6602 | |
| 6603 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6605 | $as_echo_n "checking for long long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6606 | if ${ac_cv_type_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6607 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6608 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6610 | /* end confdefs.h. */ |
| 6611 | long long ll = 1LL; int i = 63; |
| 6612 | int |
| 6613 | main () |
| 6614 | { |
| 6615 | long long llmax = (long long) -1; |
| 6616 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6617 | ; |
| 6618 | return 0; |
| 6619 | } |
| 6620 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6621 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6622 | ac_cv_type_long_long=yes |
| 6623 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6624 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6625 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6626 | rm -f core conftest.err conftest.$ac_objext \ |
| 6627 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6628 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6630 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6631 | if test $ac_cv_type_long_long = yes; then |
| 6632 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6633 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6634 | |
| 6635 | fi |
| 6636 | |
| 6637 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6639 | $as_echo_n "checking for long double... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6640 | if ${gt_cv_c_long_double+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6641 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | else |
| 6643 | if test "$GCC" = yes; then |
| 6644 | gt_cv_c_long_double=yes |
| 6645 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6647 | /* end confdefs.h. */ |
| 6648 | |
| 6649 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6650 | long double foo = 0.0; |
| 6651 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6652 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6653 | |
| 6654 | int |
| 6655 | main () |
| 6656 | { |
| 6657 | |
| 6658 | ; |
| 6659 | return 0; |
| 6660 | } |
| 6661 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6662 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6663 | gt_cv_c_long_double=yes |
| 6664 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6665 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6668 | fi |
| 6669 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6671 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | if test $gt_cv_c_long_double = yes; then |
| 6673 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6674 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6675 | |
| 6676 | fi |
| 6677 | |
| 6678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6680 | $as_echo_n "checking for wchar_t... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6681 | if ${gt_cv_c_wchar_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6682 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6683 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | /* end confdefs.h. */ |
| 6686 | #include <stddef.h> |
| 6687 | wchar_t foo = (wchar_t)'\0'; |
| 6688 | int |
| 6689 | main () |
| 6690 | { |
| 6691 | |
| 6692 | ; |
| 6693 | return 0; |
| 6694 | } |
| 6695 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6696 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | gt_cv_c_wchar_t=yes |
| 6698 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6699 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6700 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6702 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6704 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6705 | if test $gt_cv_c_wchar_t = yes; then |
| 6706 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6707 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6708 | |
| 6709 | fi |
| 6710 | |
| 6711 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6713 | $as_echo_n "checking for wint_t... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6714 | if ${gt_cv_c_wint_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6715 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6716 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6718 | /* end confdefs.h. */ |
| 6719 | #include <wchar.h> |
| 6720 | wint_t foo = (wchar_t)'\0'; |
| 6721 | int |
| 6722 | main () |
| 6723 | { |
| 6724 | |
| 6725 | ; |
| 6726 | return 0; |
| 6727 | } |
| 6728 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6729 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6730 | gt_cv_c_wint_t=yes |
| 6731 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6732 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6733 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6735 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6737 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6738 | if test $gt_cv_c_wint_t = yes; then |
| 6739 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6740 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6741 | |
| 6742 | fi |
| 6743 | |
| 6744 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6746 | $as_echo_n "checking for inttypes.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6747 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6748 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6749 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6751 | /* end confdefs.h. */ |
| 6752 | #include <sys/types.h> |
| 6753 | #include <inttypes.h> |
| 6754 | int |
| 6755 | main () |
| 6756 | { |
| 6757 | uintmax_t i = (uintmax_t) -1; |
| 6758 | ; |
| 6759 | return 0; |
| 6760 | } |
| 6761 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6762 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6763 | jm_ac_cv_header_inttypes_h=yes |
| 6764 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6765 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6766 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6768 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6770 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6771 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6772 | |
| 6773 | cat >>confdefs.h <<_ACEOF |
| 6774 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6775 | _ACEOF |
| 6776 | |
| 6777 | fi |
| 6778 | |
| 6779 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6781 | $as_echo_n "checking for stdint.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6782 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6783 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6786 | /* end confdefs.h. */ |
| 6787 | #include <sys/types.h> |
| 6788 | #include <stdint.h> |
| 6789 | int |
| 6790 | main () |
| 6791 | { |
| 6792 | uintmax_t i = (uintmax_t) -1; |
| 6793 | ; |
| 6794 | return 0; |
| 6795 | } |
| 6796 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6797 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | jm_ac_cv_header_stdint_h=yes |
| 6799 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6800 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6801 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6803 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6805 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6807 | |
| 6808 | cat >>confdefs.h <<_ACEOF |
| 6809 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6810 | _ACEOF |
| 6811 | |
| 6812 | fi |
| 6813 | |
| 6814 | |
| 6815 | |
| 6816 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6818 | $as_echo_n "checking for intmax_t... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6819 | if ${gt_cv_c_intmax_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6820 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6821 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6823 | /* end confdefs.h. */ |
| 6824 | |
| 6825 | #include <stddef.h> |
| 6826 | #include <stdlib.h> |
| 6827 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6828 | #include <stdint.h> |
| 6829 | #endif |
| 6830 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6831 | #include <inttypes.h> |
| 6832 | #endif |
| 6833 | |
| 6834 | int |
| 6835 | main () |
| 6836 | { |
| 6837 | intmax_t x = -1; |
| 6838 | ; |
| 6839 | return 0; |
| 6840 | } |
| 6841 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6842 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6843 | gt_cv_c_intmax_t=yes |
| 6844 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6845 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6848 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6850 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6851 | if test $gt_cv_c_intmax_t = yes; then |
| 6852 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6853 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6854 | |
| 6855 | fi |
| 6856 | |
| 6857 | |
| 6858 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6860 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6861 | if ${gt_cv_func_printf_posix+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6862 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6863 | else |
| 6864 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6865 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6866 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6868 | /* end confdefs.h. */ |
| 6869 | |
| 6870 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6871 | notposix |
| 6872 | #endif |
| 6873 | |
| 6874 | _ACEOF |
| 6875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6876 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6877 | gt_cv_func_printf_posix="guessing no" |
| 6878 | else |
| 6879 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6880 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6881 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6882 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6883 | |
| 6884 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6886 | /* end confdefs.h. */ |
| 6887 | |
| 6888 | #include <stdio.h> |
| 6889 | #include <string.h> |
| 6890 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6891 | dollar expansion (possibly an autoconf bug). */ |
| 6892 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6893 | static char buf[100]; |
| 6894 | int main () |
| 6895 | { |
| 6896 | sprintf (buf, format, 33, 55); |
| 6897 | return (strcmp (buf, "55 33") != 0); |
| 6898 | } |
| 6899 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6900 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6901 | gt_cv_func_printf_posix=yes |
| 6902 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6903 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6904 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6905 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6906 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6907 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6909 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6910 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6912 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6913 | case $gt_cv_func_printf_posix in |
| 6914 | *yes) |
| 6915 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6916 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6917 | |
| 6918 | ;; |
| 6919 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6920 | |
| 6921 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6922 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6924 | $as_echo_n "checking for working alloca.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6925 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6926 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6927 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6929 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6930 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6931 | int |
| 6932 | main () |
| 6933 | { |
| 6934 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6935 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6936 | ; |
| 6937 | return 0; |
| 6938 | } |
| 6939 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6940 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6941 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6942 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6943 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6944 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6945 | rm -f core conftest.err conftest.$ac_objext \ |
| 6946 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6947 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6949 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6950 | if test $ac_cv_working_alloca_h = yes; then |
| 6951 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6952 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6953 | |
| 6954 | fi |
| 6955 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6957 | $as_echo_n "checking for alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6958 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6959 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6960 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6962 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6963 | #ifdef __GNUC__ |
| 6964 | # define alloca __builtin_alloca |
| 6965 | #else |
| 6966 | # ifdef _MSC_VER |
| 6967 | # include <malloc.h> |
| 6968 | # define alloca _alloca |
| 6969 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6970 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6971 | # include <alloca.h> |
| 6972 | # else |
| 6973 | # ifdef _AIX |
| 6974 | #pragma alloca |
| 6975 | # else |
| 6976 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 6977 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6978 | # endif |
| 6979 | # endif |
| 6980 | # endif |
| 6981 | # endif |
| 6982 | #endif |
| 6983 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6984 | int |
| 6985 | main () |
| 6986 | { |
| 6987 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6988 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6989 | ; |
| 6990 | return 0; |
| 6991 | } |
| 6992 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6993 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6994 | ac_cv_func_alloca_works=yes |
| 6995 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6996 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6997 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6998 | rm -f core conftest.err conftest.$ac_objext \ |
| 6999 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7000 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7002 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7003 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7004 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7005 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7006 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7007 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7008 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7009 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 7010 | # that cause trouble. Some versions do not even contain alloca or |
| 7011 | # contain a buggy version. If you still want to use their alloca, |
| 7012 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 7013 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7014 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7015 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7016 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7017 | |
| 7018 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7020 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7021 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7022 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7023 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7025 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7026 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7027 | webecray |
| 7028 | #else |
| 7029 | wenotbecray |
| 7030 | #endif |
| 7031 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7032 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7034 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7035 | ac_cv_os_cray=yes |
| 7036 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7037 | ac_cv_os_cray=no |
| 7038 | fi |
| 7039 | rm -f conftest* |
| 7040 | |
| 7041 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7043 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7044 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7045 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7046 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7047 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7048 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7049 | |
| 7050 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7051 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7052 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7053 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7054 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7055 | fi |
| 7056 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7057 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7058 | fi |
| 7059 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7061 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7062 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7063 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7064 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7065 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7066 | ac_cv_c_stack_direction=0 |
| 7067 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7069 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7070 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7071 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7072 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7073 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7074 | int dir, dummy = 0; |
| 7075 | if (! addr) |
| 7076 | addr = &dummy; |
| 7077 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 7078 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7079 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7080 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7081 | |
| 7082 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7083 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7084 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7085 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7086 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7087 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7088 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7089 | ac_cv_c_stack_direction=1 |
| 7090 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7091 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7092 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7093 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7094 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7095 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7096 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7097 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7099 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7100 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7101 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7102 | _ACEOF |
| 7103 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7104 | |
| 7105 | fi |
| 7106 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7107 | |
| 7108 | |
| 7109 | |
| 7110 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7111 | do : |
| 7112 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7113 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7114 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7115 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7116 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7117 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7118 | _ACEOF |
| 7119 | |
| 7120 | fi |
| 7121 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7122 | done |
| 7123 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7124 | |
| 7125 | |
| 7126 | |
| 7127 | |
| 7128 | |
| 7129 | |
| 7130 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7131 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7132 | do : |
| 7133 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7134 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7135 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7136 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7137 | _ACEOF |
| 7138 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7139 | fi |
| 7140 | done |
| 7141 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7143 | $as_echo_n "checking for working mmap... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7144 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7145 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7146 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7147 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7148 | ac_cv_func_mmap_fixed_mapped=no |
| 7149 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7151 | /* end confdefs.h. */ |
| 7152 | $ac_includes_default |
| 7153 | /* malloc might have been renamed as rpl_malloc. */ |
| 7154 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7155 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7156 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7157 | Here is a matrix of mmap possibilities: |
| 7158 | mmap private not fixed |
| 7159 | mmap private fixed at somewhere currently unmapped |
| 7160 | mmap private fixed at somewhere already mapped |
| 7161 | mmap shared not fixed |
| 7162 | mmap shared fixed at somewhere currently unmapped |
| 7163 | mmap shared fixed at somewhere already mapped |
| 7164 | For private mappings, we should verify that changes cannot be read() |
| 7165 | back from the file, nor mmap's back from the file at a different |
| 7166 | address. (There have been systems where private was not correctly |
| 7167 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7168 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7169 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7170 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7171 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7172 | |
| 7173 | Grep wants private fixed already mapped. |
| 7174 | The main things grep needs to know about mmap are: |
| 7175 | * does it exist and is it safe to write into the mmap'd area |
| 7176 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7177 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7178 | #include <fcntl.h> |
| 7179 | #include <sys/mman.h> |
| 7180 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7181 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7182 | char *malloc (); |
| 7183 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7184 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7185 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7186 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7187 | # ifdef _SC_PAGESIZE |
| 7188 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7189 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7190 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7191 | # include <sys/param.h> |
| 7192 | # ifdef EXEC_PAGESIZE |
| 7193 | # define getpagesize() EXEC_PAGESIZE |
| 7194 | # else /* no EXEC_PAGESIZE */ |
| 7195 | # ifdef NBPG |
| 7196 | # define getpagesize() NBPG * CLSIZE |
| 7197 | # ifndef CLSIZE |
| 7198 | # define CLSIZE 1 |
| 7199 | # endif /* no CLSIZE */ |
| 7200 | # else /* no NBPG */ |
| 7201 | # ifdef NBPC |
| 7202 | # define getpagesize() NBPC |
| 7203 | # else /* no NBPC */ |
| 7204 | # ifdef PAGESIZE |
| 7205 | # define getpagesize() PAGESIZE |
| 7206 | # endif /* PAGESIZE */ |
| 7207 | # endif /* no NBPC */ |
| 7208 | # endif /* no NBPG */ |
| 7209 | # endif /* no EXEC_PAGESIZE */ |
| 7210 | # else /* no HAVE_SYS_PARAM_H */ |
| 7211 | # define getpagesize() 8192 /* punt totally */ |
| 7212 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7213 | # endif /* no _SC_PAGESIZE */ |
| 7214 | |
| 7215 | #endif /* no HAVE_GETPAGESIZE */ |
| 7216 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7217 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7218 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7219 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7220 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7221 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7222 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7223 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7225 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7226 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7227 | /* First, make a file with some known garbage in it. */ |
| 7228 | data = (char *) malloc (pagesize); |
| 7229 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7230 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7231 | for (i = 0; i < pagesize; ++i) |
| 7232 | *(data + i) = rand (); |
| 7233 | umask (0); |
| 7234 | fd = creat ("conftest.mmap", 0600); |
| 7235 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7236 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7237 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7238 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7239 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7240 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7241 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7242 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7243 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7244 | if (fd2 < 0) |
| 7245 | return 4; |
| 7246 | cdata2 = ""; |
| 7247 | if (write (fd2, cdata2, 1) != 1) |
| 7248 | return 5; |
| 7249 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7250 | if (data2 == MAP_FAILED) |
| 7251 | return 6; |
| 7252 | for (i = 0; i < pagesize; ++i) |
| 7253 | if (*(data2 + i)) |
| 7254 | return 7; |
| 7255 | close (fd2); |
| 7256 | if (munmap (data2, pagesize)) |
| 7257 | return 8; |
| 7258 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7259 | /* Next, try to mmap the file at a fixed address which already has |
| 7260 | something else allocated at it. If we can, also make sure that |
| 7261 | we see the same garbage. */ |
| 7262 | fd = open ("conftest.mmap", O_RDWR); |
| 7263 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7264 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7265 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7266 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7267 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7268 | for (i = 0; i < pagesize; ++i) |
| 7269 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7270 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7271 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7272 | /* Finally, make sure that changes to the mapped area do not |
| 7273 | percolate back to the file as seen by read(). (This is a bug on |
| 7274 | some variants of i386 svr4.0.) */ |
| 7275 | for (i = 0; i < pagesize; ++i) |
| 7276 | *(data2 + i) = *(data2 + i) + 1; |
| 7277 | data3 = (char *) malloc (pagesize); |
| 7278 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7279 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7280 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7281 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7282 | for (i = 0; i < pagesize; ++i) |
| 7283 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7284 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7285 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7286 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7287 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7288 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7289 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7290 | ac_cv_func_mmap_fixed_mapped=yes |
| 7291 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7292 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7293 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7294 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7295 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7296 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7297 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7298 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7300 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7301 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7302 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7303 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7304 | |
| 7305 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7306 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7307 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7308 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7310 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7311 | if ${ac_cv_gnu_library_2_1+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7312 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7313 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7315 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7316 | |
| 7317 | #include <features.h> |
| 7318 | #ifdef __GNU_LIBRARY__ |
| 7319 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7320 | Lucky GNU user |
| 7321 | #endif |
| 7322 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7323 | |
| 7324 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7326 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7327 | ac_cv_gnu_library_2_1=yes |
| 7328 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7329 | ac_cv_gnu_library_2_1=no |
| 7330 | fi |
| 7331 | rm -f conftest* |
| 7332 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7333 | |
| 7334 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7335 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7337 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7338 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7339 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7340 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7341 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7342 | |
| 7343 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7345 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7346 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7347 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7348 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7349 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7350 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7351 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7352 | # Guess based on the CPU. |
| 7353 | case "$host_cpu" in |
| 7354 | alpha* | i3456786 | m68k | s390*) |
| 7355 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7356 | *) |
| 7357 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7358 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7359 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7360 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7362 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7363 | |
| 7364 | #include <stdlib.h> |
| 7365 | #include <signal.h> |
| 7366 | |
| 7367 | static void |
| 7368 | #ifdef __cplusplus |
| 7369 | sigfpe_handler (int sig) |
| 7370 | #else |
| 7371 | sigfpe_handler (sig) int sig; |
| 7372 | #endif |
| 7373 | { |
| 7374 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7375 | exit (sig != SIGFPE); |
| 7376 | } |
| 7377 | |
| 7378 | int x = 1; |
| 7379 | int y = 0; |
| 7380 | int z; |
| 7381 | int nan; |
| 7382 | |
| 7383 | int main () |
| 7384 | { |
| 7385 | signal (SIGFPE, sigfpe_handler); |
| 7386 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7387 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7388 | signal (SIGTRAP, sigfpe_handler); |
| 7389 | #endif |
| 7390 | /* Linux/SPARC yields signal SIGILL. */ |
| 7391 | #if defined (__sparc__) && defined (__linux__) |
| 7392 | signal (SIGILL, sigfpe_handler); |
| 7393 | #endif |
| 7394 | |
| 7395 | z = x / y; |
| 7396 | nan = y / y; |
| 7397 | exit (1); |
| 7398 | } |
| 7399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7400 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7401 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7402 | gt_cv_int_divbyzero_sigfpe=yes |
| 7403 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7404 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7405 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7407 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7408 | fi |
| 7409 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7410 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7411 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7413 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7414 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7415 | *yes) value=1;; |
| 7416 | *) value=0;; |
| 7417 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7418 | |
| 7419 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7420 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7421 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7422 | |
| 7423 | |
| 7424 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7426 | $as_echo_n "checking for unsigned long long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7427 | if ${ac_cv_type_unsigned_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7428 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7429 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7431 | /* end confdefs.h. */ |
| 7432 | unsigned long long ull = 1ULL; int i = 63; |
| 7433 | int |
| 7434 | main () |
| 7435 | { |
| 7436 | unsigned long long ullmax = (unsigned long long) -1; |
| 7437 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7438 | ; |
| 7439 | return 0; |
| 7440 | } |
| 7441 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7442 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7443 | ac_cv_type_unsigned_long_long=yes |
| 7444 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7445 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7446 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7447 | rm -f core conftest.err conftest.$ac_objext \ |
| 7448 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7449 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7451 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7452 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7453 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7454 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7455 | |
| 7456 | fi |
| 7457 | |
| 7458 | |
| 7459 | |
| 7460 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7461 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7462 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7463 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7464 | && ac_type='unsigned long long' \ |
| 7465 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7466 | |
| 7467 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7468 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7469 | _ACEOF |
| 7470 | |
| 7471 | else |
| 7472 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7473 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7474 | |
| 7475 | fi |
| 7476 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7477 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7479 | $as_echo_n "checking for inttypes.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7480 | if ${gt_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7481 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7482 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7483 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7485 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7486 | #include <sys/types.h> |
| 7487 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7488 | int |
| 7489 | main () |
| 7490 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7491 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7492 | ; |
| 7493 | return 0; |
| 7494 | } |
| 7495 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7496 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7497 | gt_cv_header_inttypes_h=yes |
| 7498 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7499 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7500 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7502 | |
| 7503 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7505 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7506 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7507 | |
| 7508 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7509 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7510 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7511 | |
| 7512 | fi |
| 7513 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7514 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7515 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7516 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7518 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7519 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7520 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7521 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7524 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7525 | #include <inttypes.h> |
| 7526 | #ifdef PRId32 |
| 7527 | char *p = PRId32; |
| 7528 | #endif |
| 7529 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7530 | int |
| 7531 | main () |
| 7532 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7533 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7534 | ; |
| 7535 | return 0; |
| 7536 | } |
| 7537 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7538 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7539 | gt_cv_inttypes_pri_broken=no |
| 7540 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7541 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7542 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7544 | |
| 7545 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7547 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7548 | fi |
| 7549 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7550 | |
| 7551 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7552 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7553 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7554 | |
| 7555 | fi |
| 7556 | |
| 7557 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7558 | for ac_header in stdint.h |
| 7559 | do : |
| 7560 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7561 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7562 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7563 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7564 | _ACEOF |
| 7565 | |
| 7566 | fi |
| 7567 | |
| 7568 | done |
| 7569 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7571 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7572 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7574 | /* end confdefs.h. */ |
| 7575 | |
| 7576 | #include <limits.h> |
| 7577 | #if HAVE_STDINT_H |
| 7578 | #include <stdint.h> |
| 7579 | #endif |
| 7580 | #ifdef SIZE_MAX |
| 7581 | Found it |
| 7582 | #endif |
| 7583 | |
| 7584 | _ACEOF |
| 7585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7586 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | result=yes |
| 7588 | fi |
| 7589 | rm -f conftest* |
| 7590 | |
| 7591 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7592 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7593 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7594 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7595 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7596 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7597 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7598 | |
| 7599 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7600 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7601 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7602 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7603 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7604 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7605 | |
| 7606 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7607 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7608 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7609 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7610 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7611 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7612 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7613 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7615 | /* end confdefs.h. */ |
| 7616 | #include <stddef.h> |
| 7617 | extern size_t foo; |
| 7618 | extern unsigned long foo; |
| 7619 | |
| 7620 | int |
| 7621 | main () |
| 7622 | { |
| 7623 | |
| 7624 | ; |
| 7625 | return 0; |
| 7626 | } |
| 7627 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7628 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7630 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7632 | fi |
| 7633 | if test -z "$result"; then |
| 7634 | if test "$fits_in_uint" = 1; then |
| 7635 | result="$res_hi$res_lo"U |
| 7636 | else |
| 7637 | result="$res_hi$res_lo"UL |
| 7638 | fi |
| 7639 | else |
| 7640 | result='~(size_t)0' |
| 7641 | fi |
| 7642 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7644 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7645 | if test "$result" != yes; then |
| 7646 | |
| 7647 | cat >>confdefs.h <<_ACEOF |
| 7648 | #define SIZE_MAX $result |
| 7649 | _ACEOF |
| 7650 | |
| 7651 | fi |
| 7652 | |
| 7653 | |
| 7654 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7655 | for ac_header in stdint.h |
| 7656 | do : |
| 7657 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7658 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7659 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7660 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7661 | _ACEOF |
| 7662 | |
| 7663 | fi |
| 7664 | |
| 7665 | done |
| 7666 | |
| 7667 | |
| 7668 | |
| 7669 | if test "X$prefix" = "XNONE"; then |
| 7670 | acl_final_prefix="$ac_default_prefix" |
| 7671 | else |
| 7672 | acl_final_prefix="$prefix" |
| 7673 | fi |
| 7674 | if test "X$exec_prefix" = "XNONE"; then |
| 7675 | acl_final_exec_prefix='${prefix}' |
| 7676 | else |
| 7677 | acl_final_exec_prefix="$exec_prefix" |
| 7678 | fi |
| 7679 | acl_save_prefix="$prefix" |
| 7680 | prefix="$acl_final_prefix" |
| 7681 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7682 | prefix="$acl_save_prefix" |
| 7683 | |
| 7684 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7685 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7686 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7687 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7688 | else |
| 7689 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7690 | fi |
| 7691 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7692 | # Prepare PATH_SEPARATOR. |
| 7693 | # The user is always right. |
| 7694 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7695 | echo "#! /bin/sh" >conf$$.sh |
| 7696 | echo "exit 0" >>conf$$.sh |
| 7697 | chmod +x conf$$.sh |
| 7698 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7699 | PATH_SEPARATOR=';' |
| 7700 | else |
| 7701 | PATH_SEPARATOR=: |
| 7702 | fi |
| 7703 | rm -f conf$$.sh |
| 7704 | fi |
| 7705 | ac_prog=ld |
| 7706 | if test "$GCC" = yes; then |
| 7707 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7709 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7710 | case $host in |
| 7711 | *-*-mingw*) |
| 7712 | # gcc leaves a trailing carriage return which upsets mingw |
| 7713 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7714 | *) |
| 7715 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7716 | esac |
| 7717 | case $ac_prog in |
| 7718 | # Accept absolute paths. |
| 7719 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7720 | re_direlt='/[^/][^/]*/\.\./' |
| 7721 | # Canonicalize the path of ld |
| 7722 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7723 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7724 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7725 | done |
| 7726 | test -z "$LD" && LD="$ac_prog" |
| 7727 | ;; |
| 7728 | "") |
| 7729 | # If it fails, then pretend we aren't using GCC. |
| 7730 | ac_prog=ld |
| 7731 | ;; |
| 7732 | *) |
| 7733 | # If it is relative, then search for the first ld in PATH. |
| 7734 | with_gnu_ld=unknown |
| 7735 | ;; |
| 7736 | esac |
| 7737 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7739 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7740 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7742 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7743 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7744 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7745 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7746 | else |
| 7747 | if test -z "$LD"; then |
| 7748 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7749 | for ac_dir in $PATH; do |
| 7750 | test -z "$ac_dir" && ac_dir=. |
| 7751 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7752 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7753 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7754 | # but apparently some GNU ld's only accept -v. |
| 7755 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7756 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7757 | *GNU* | *'with BFD'*) |
| 7758 | test "$with_gnu_ld" != no && break ;; |
| 7759 | *) |
| 7760 | test "$with_gnu_ld" != yes && break ;; |
| 7761 | esac |
| 7762 | fi |
| 7763 | done |
| 7764 | IFS="$ac_save_ifs" |
| 7765 | else |
| 7766 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7767 | fi |
| 7768 | fi |
| 7769 | |
| 7770 | LD="$acl_cv_path_LD" |
| 7771 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7773 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7774 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7776 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7777 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7778 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7780 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7781 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7782 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7783 | else |
| 7784 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7785 | case `$LD -v 2>&1 </dev/null` in |
| 7786 | *GNU* | *'with BFD'*) |
| 7787 | acl_cv_prog_gnu_ld=yes ;; |
| 7788 | *) |
| 7789 | acl_cv_prog_gnu_ld=no ;; |
| 7790 | esac |
| 7791 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7793 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7794 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7795 | |
| 7796 | |
| 7797 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7799 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 7800 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7801 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7802 | else |
| 7803 | |
| 7804 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7805 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7806 | . ./conftest.sh |
| 7807 | rm -f ./conftest.sh |
| 7808 | acl_cv_rpath=done |
| 7809 | |
| 7810 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7812 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7813 | wl="$acl_cv_wl" |
| 7814 | libext="$acl_cv_libext" |
| 7815 | shlibext="$acl_cv_shlibext" |
| 7816 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7817 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7818 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7819 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7820 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7821 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7822 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7823 | else |
| 7824 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7825 | fi |
| 7826 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7827 | |
| 7828 | |
| 7829 | |
| 7830 | |
| 7831 | |
| 7832 | |
| 7833 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7834 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7836 | acl_save_prefix="$prefix" |
| 7837 | prefix="$acl_final_prefix" |
| 7838 | acl_save_exec_prefix="$exec_prefix" |
| 7839 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7840 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7841 | eval additional_includedir=\"$includedir\" |
| 7842 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7843 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7844 | exec_prefix="$acl_save_exec_prefix" |
| 7845 | prefix="$acl_save_prefix" |
| 7846 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7848 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7849 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7850 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7851 | if test "X$withval" = "Xno"; then |
| 7852 | use_additional=no |
| 7853 | else |
| 7854 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7855 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7856 | acl_save_prefix="$prefix" |
| 7857 | prefix="$acl_final_prefix" |
| 7858 | acl_save_exec_prefix="$exec_prefix" |
| 7859 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7860 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7861 | eval additional_includedir=\"$includedir\" |
| 7862 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7863 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7864 | exec_prefix="$acl_save_exec_prefix" |
| 7865 | prefix="$acl_save_prefix" |
| 7866 | |
| 7867 | else |
| 7868 | additional_includedir="$withval/include" |
| 7869 | additional_libdir="$withval/lib" |
| 7870 | fi |
| 7871 | fi |
| 7872 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7873 | fi |
| 7874 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7875 | LIBICONV= |
| 7876 | LTLIBICONV= |
| 7877 | INCICONV= |
| 7878 | rpathdirs= |
| 7879 | ltrpathdirs= |
| 7880 | names_already_handled= |
| 7881 | names_next_round='iconv ' |
| 7882 | while test -n "$names_next_round"; do |
| 7883 | names_this_round="$names_next_round" |
| 7884 | names_next_round= |
| 7885 | for name in $names_this_round; do |
| 7886 | already_handled= |
| 7887 | for n in $names_already_handled; do |
| 7888 | if test "$n" = "$name"; then |
| 7889 | already_handled=yes |
| 7890 | break |
| 7891 | fi |
| 7892 | done |
| 7893 | if test -z "$already_handled"; then |
| 7894 | names_already_handled="$names_already_handled $name" |
| 7895 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7896 | eval value=\"\$HAVE_LIB$uppername\" |
| 7897 | if test -n "$value"; then |
| 7898 | if test "$value" = yes; then |
| 7899 | eval value=\"\$LIB$uppername\" |
| 7900 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7901 | eval value=\"\$LTLIB$uppername\" |
| 7902 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7903 | else |
| 7904 | : |
| 7905 | fi |
| 7906 | else |
| 7907 | found_dir= |
| 7908 | found_la= |
| 7909 | found_so= |
| 7910 | found_a= |
| 7911 | if test $use_additional = yes; then |
| 7912 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7913 | found_dir="$additional_libdir" |
| 7914 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7915 | if test -f "$additional_libdir/lib$name.la"; then |
| 7916 | found_la="$additional_libdir/lib$name.la" |
| 7917 | fi |
| 7918 | else |
| 7919 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7920 | found_dir="$additional_libdir" |
| 7921 | found_a="$additional_libdir/lib$name.$libext" |
| 7922 | if test -f "$additional_libdir/lib$name.la"; then |
| 7923 | found_la="$additional_libdir/lib$name.la" |
| 7924 | fi |
| 7925 | fi |
| 7926 | fi |
| 7927 | fi |
| 7928 | if test "X$found_dir" = "X"; then |
| 7929 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7930 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7931 | acl_save_prefix="$prefix" |
| 7932 | prefix="$acl_final_prefix" |
| 7933 | acl_save_exec_prefix="$exec_prefix" |
| 7934 | exec_prefix="$acl_final_exec_prefix" |
| 7935 | eval x=\"$x\" |
| 7936 | exec_prefix="$acl_save_exec_prefix" |
| 7937 | prefix="$acl_save_prefix" |
| 7938 | |
| 7939 | case "$x" in |
| 7940 | -L*) |
| 7941 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7942 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7943 | found_dir="$dir" |
| 7944 | found_so="$dir/lib$name.$shlibext" |
| 7945 | if test -f "$dir/lib$name.la"; then |
| 7946 | found_la="$dir/lib$name.la" |
| 7947 | fi |
| 7948 | else |
| 7949 | if test -f "$dir/lib$name.$libext"; then |
| 7950 | found_dir="$dir" |
| 7951 | found_a="$dir/lib$name.$libext" |
| 7952 | if test -f "$dir/lib$name.la"; then |
| 7953 | found_la="$dir/lib$name.la" |
| 7954 | fi |
| 7955 | fi |
| 7956 | fi |
| 7957 | ;; |
| 7958 | esac |
| 7959 | if test "X$found_dir" != "X"; then |
| 7960 | break |
| 7961 | fi |
| 7962 | done |
| 7963 | fi |
| 7964 | if test "X$found_dir" != "X"; then |
| 7965 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7966 | if test "X$found_so" != "X"; then |
| 7967 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7968 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7969 | else |
| 7970 | haveit= |
| 7971 | for x in $ltrpathdirs; do |
| 7972 | if test "X$x" = "X$found_dir"; then |
| 7973 | haveit=yes |
| 7974 | break |
| 7975 | fi |
| 7976 | done |
| 7977 | if test -z "$haveit"; then |
| 7978 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7979 | fi |
| 7980 | if test "$hardcode_direct" = yes; then |
| 7981 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7982 | else |
| 7983 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7984 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7985 | haveit= |
| 7986 | for x in $rpathdirs; do |
| 7987 | if test "X$x" = "X$found_dir"; then |
| 7988 | haveit=yes |
| 7989 | break |
| 7990 | fi |
| 7991 | done |
| 7992 | if test -z "$haveit"; then |
| 7993 | rpathdirs="$rpathdirs $found_dir" |
| 7994 | fi |
| 7995 | else |
| 7996 | haveit= |
| 7997 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7998 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7999 | acl_save_prefix="$prefix" |
| 8000 | prefix="$acl_final_prefix" |
| 8001 | acl_save_exec_prefix="$exec_prefix" |
| 8002 | exec_prefix="$acl_final_exec_prefix" |
| 8003 | eval x=\"$x\" |
| 8004 | exec_prefix="$acl_save_exec_prefix" |
| 8005 | prefix="$acl_save_prefix" |
| 8006 | |
| 8007 | if test "X$x" = "X-L$found_dir"; then |
| 8008 | haveit=yes |
| 8009 | break |
| 8010 | fi |
| 8011 | done |
| 8012 | if test -z "$haveit"; then |
| 8013 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8014 | fi |
| 8015 | if test "$hardcode_minus_L" != no; then |
| 8016 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8017 | else |
| 8018 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8019 | fi |
| 8020 | fi |
| 8021 | fi |
| 8022 | fi |
| 8023 | else |
| 8024 | if test "X$found_a" != "X"; then |
| 8025 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8026 | else |
| 8027 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8028 | fi |
| 8029 | fi |
| 8030 | additional_includedir= |
| 8031 | case "$found_dir" in |
| 8032 | */lib | */lib/) |
| 8033 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8034 | additional_includedir="$basedir/include" |
| 8035 | ;; |
| 8036 | esac |
| 8037 | if test "X$additional_includedir" != "X"; then |
| 8038 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8039 | haveit= |
| 8040 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8041 | if test -n "$GCC"; then |
| 8042 | case $host_os in |
| 8043 | linux*) haveit=yes;; |
| 8044 | esac |
| 8045 | fi |
| 8046 | fi |
| 8047 | if test -z "$haveit"; then |
| 8048 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8049 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8050 | acl_save_prefix="$prefix" |
| 8051 | prefix="$acl_final_prefix" |
| 8052 | acl_save_exec_prefix="$exec_prefix" |
| 8053 | exec_prefix="$acl_final_exec_prefix" |
| 8054 | eval x=\"$x\" |
| 8055 | exec_prefix="$acl_save_exec_prefix" |
| 8056 | prefix="$acl_save_prefix" |
| 8057 | |
| 8058 | if test "X$x" = "X-I$additional_includedir"; then |
| 8059 | haveit=yes |
| 8060 | break |
| 8061 | fi |
| 8062 | done |
| 8063 | if test -z "$haveit"; then |
| 8064 | if test -d "$additional_includedir"; then |
| 8065 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8066 | fi |
| 8067 | fi |
| 8068 | fi |
| 8069 | fi |
| 8070 | fi |
| 8071 | if test -n "$found_la"; then |
| 8072 | save_libdir="$libdir" |
| 8073 | case "$found_la" in |
| 8074 | */* | *\\*) . "$found_la" ;; |
| 8075 | *) . "./$found_la" ;; |
| 8076 | esac |
| 8077 | libdir="$save_libdir" |
| 8078 | for dep in $dependency_libs; do |
| 8079 | case "$dep" in |
| 8080 | -L*) |
| 8081 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8082 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8083 | haveit= |
| 8084 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8085 | if test -n "$GCC"; then |
| 8086 | case $host_os in |
| 8087 | linux*) haveit=yes;; |
| 8088 | esac |
| 8089 | fi |
| 8090 | fi |
| 8091 | if test -z "$haveit"; then |
| 8092 | haveit= |
| 8093 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8094 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8095 | acl_save_prefix="$prefix" |
| 8096 | prefix="$acl_final_prefix" |
| 8097 | acl_save_exec_prefix="$exec_prefix" |
| 8098 | exec_prefix="$acl_final_exec_prefix" |
| 8099 | eval x=\"$x\" |
| 8100 | exec_prefix="$acl_save_exec_prefix" |
| 8101 | prefix="$acl_save_prefix" |
| 8102 | |
| 8103 | if test "X$x" = "X-L$additional_libdir"; then |
| 8104 | haveit=yes |
| 8105 | break |
| 8106 | fi |
| 8107 | done |
| 8108 | if test -z "$haveit"; then |
| 8109 | if test -d "$additional_libdir"; then |
| 8110 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8111 | fi |
| 8112 | fi |
| 8113 | haveit= |
| 8114 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8115 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8116 | acl_save_prefix="$prefix" |
| 8117 | prefix="$acl_final_prefix" |
| 8118 | acl_save_exec_prefix="$exec_prefix" |
| 8119 | exec_prefix="$acl_final_exec_prefix" |
| 8120 | eval x=\"$x\" |
| 8121 | exec_prefix="$acl_save_exec_prefix" |
| 8122 | prefix="$acl_save_prefix" |
| 8123 | |
| 8124 | if test "X$x" = "X-L$additional_libdir"; then |
| 8125 | haveit=yes |
| 8126 | break |
| 8127 | fi |
| 8128 | done |
| 8129 | if test -z "$haveit"; then |
| 8130 | if test -d "$additional_libdir"; then |
| 8131 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8132 | fi |
| 8133 | fi |
| 8134 | fi |
| 8135 | fi |
| 8136 | ;; |
| 8137 | -R*) |
| 8138 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8139 | if test "$enable_rpath" != no; then |
| 8140 | haveit= |
| 8141 | for x in $rpathdirs; do |
| 8142 | if test "X$x" = "X$dir"; then |
| 8143 | haveit=yes |
| 8144 | break |
| 8145 | fi |
| 8146 | done |
| 8147 | if test -z "$haveit"; then |
| 8148 | rpathdirs="$rpathdirs $dir" |
| 8149 | fi |
| 8150 | haveit= |
| 8151 | for x in $ltrpathdirs; do |
| 8152 | if test "X$x" = "X$dir"; then |
| 8153 | haveit=yes |
| 8154 | break |
| 8155 | fi |
| 8156 | done |
| 8157 | if test -z "$haveit"; then |
| 8158 | ltrpathdirs="$ltrpathdirs $dir" |
| 8159 | fi |
| 8160 | fi |
| 8161 | ;; |
| 8162 | -l*) |
| 8163 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8164 | ;; |
| 8165 | *.la) |
| 8166 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8167 | ;; |
| 8168 | *) |
| 8169 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8170 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8171 | ;; |
| 8172 | esac |
| 8173 | done |
| 8174 | fi |
| 8175 | else |
| 8176 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8177 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8178 | fi |
| 8179 | fi |
| 8180 | fi |
| 8181 | done |
| 8182 | done |
| 8183 | if test "X$rpathdirs" != "X"; then |
| 8184 | if test -n "$hardcode_libdir_separator"; then |
| 8185 | alldirs= |
| 8186 | for found_dir in $rpathdirs; do |
| 8187 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8188 | done |
| 8189 | acl_save_libdir="$libdir" |
| 8190 | libdir="$alldirs" |
| 8191 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8192 | libdir="$acl_save_libdir" |
| 8193 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8194 | else |
| 8195 | for found_dir in $rpathdirs; do |
| 8196 | acl_save_libdir="$libdir" |
| 8197 | libdir="$found_dir" |
| 8198 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8199 | libdir="$acl_save_libdir" |
| 8200 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8201 | done |
| 8202 | fi |
| 8203 | fi |
| 8204 | if test "X$ltrpathdirs" != "X"; then |
| 8205 | for found_dir in $ltrpathdirs; do |
| 8206 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8207 | done |
| 8208 | fi |
| 8209 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8210 | |
| 8211 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8212 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8213 | |
| 8214 | |
| 8215 | |
| 8216 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8217 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8218 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8219 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8220 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8221 | |
| 8222 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8223 | |
| 8224 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8225 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8226 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8227 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8228 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8229 | do : |
| 8230 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8231 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8232 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8233 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8234 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8235 | _ACEOF |
| 8236 | |
| 8237 | fi |
| 8238 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8239 | done |
| 8240 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8241 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8242 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8243 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8244 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8245 | do : |
| 8246 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8247 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8248 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8249 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8250 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8251 | _ACEOF |
| 8252 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8253 | fi |
| 8254 | done |
| 8255 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8256 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8257 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8259 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8260 | if ${ac_cv_have_decl__snprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8261 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8262 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8264 | /* end confdefs.h. */ |
| 8265 | #include <stdio.h> |
| 8266 | int |
| 8267 | main () |
| 8268 | { |
| 8269 | |
| 8270 | #ifndef _snprintf |
| 8271 | char *p = (char *) _snprintf; |
| 8272 | #endif |
| 8273 | |
| 8274 | ; |
| 8275 | return 0; |
| 8276 | } |
| 8277 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8278 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8279 | ac_cv_have_decl__snprintf=yes |
| 8280 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8281 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8282 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8284 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8286 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8287 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8288 | gt_value=1 |
| 8289 | else |
| 8290 | gt_value=0 |
| 8291 | fi |
| 8292 | |
| 8293 | cat >>confdefs.h <<_ACEOF |
| 8294 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8295 | _ACEOF |
| 8296 | |
| 8297 | |
| 8298 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8300 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8301 | if ${ac_cv_have_decl__snwprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8302 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8303 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8305 | /* end confdefs.h. */ |
| 8306 | #include <stdio.h> |
| 8307 | int |
| 8308 | main () |
| 8309 | { |
| 8310 | |
| 8311 | #ifndef _snwprintf |
| 8312 | char *p = (char *) _snwprintf; |
| 8313 | #endif |
| 8314 | |
| 8315 | ; |
| 8316 | return 0; |
| 8317 | } |
| 8318 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8319 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8320 | ac_cv_have_decl__snwprintf=yes |
| 8321 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8322 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8323 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8325 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8327 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8328 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8329 | gt_value=1 |
| 8330 | else |
| 8331 | gt_value=0 |
| 8332 | fi |
| 8333 | |
| 8334 | cat >>confdefs.h <<_ACEOF |
| 8335 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8336 | _ACEOF |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8342 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8343 | if ${ac_cv_have_decl_feof_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8344 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8345 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8347 | /* end confdefs.h. */ |
| 8348 | #include <stdio.h> |
| 8349 | int |
| 8350 | main () |
| 8351 | { |
| 8352 | |
| 8353 | #ifndef feof_unlocked |
| 8354 | char *p = (char *) feof_unlocked; |
| 8355 | #endif |
| 8356 | |
| 8357 | ; |
| 8358 | return 0; |
| 8359 | } |
| 8360 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8361 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8362 | ac_cv_have_decl_feof_unlocked=yes |
| 8363 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8364 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8365 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8367 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8369 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8370 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8371 | gt_value=1 |
| 8372 | else |
| 8373 | gt_value=0 |
| 8374 | fi |
| 8375 | |
| 8376 | cat >>confdefs.h <<_ACEOF |
| 8377 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8378 | _ACEOF |
| 8379 | |
| 8380 | |
| 8381 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8383 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8384 | if ${ac_cv_have_decl_fgets_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8385 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8386 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8388 | /* end confdefs.h. */ |
| 8389 | #include <stdio.h> |
| 8390 | int |
| 8391 | main () |
| 8392 | { |
| 8393 | |
| 8394 | #ifndef fgets_unlocked |
| 8395 | char *p = (char *) fgets_unlocked; |
| 8396 | #endif |
| 8397 | |
| 8398 | ; |
| 8399 | return 0; |
| 8400 | } |
| 8401 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8402 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8403 | ac_cv_have_decl_fgets_unlocked=yes |
| 8404 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8405 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8406 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8408 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8410 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8411 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8412 | gt_value=1 |
| 8413 | else |
| 8414 | gt_value=0 |
| 8415 | fi |
| 8416 | |
| 8417 | cat >>confdefs.h <<_ACEOF |
| 8418 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8419 | _ACEOF |
| 8420 | |
| 8421 | |
| 8422 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8424 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8425 | if ${ac_cv_have_decl_getc_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8426 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8427 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8429 | /* end confdefs.h. */ |
| 8430 | #include <stdio.h> |
| 8431 | int |
| 8432 | main () |
| 8433 | { |
| 8434 | |
| 8435 | #ifndef getc_unlocked |
| 8436 | char *p = (char *) getc_unlocked; |
| 8437 | #endif |
| 8438 | |
| 8439 | ; |
| 8440 | return 0; |
| 8441 | } |
| 8442 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8443 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8444 | ac_cv_have_decl_getc_unlocked=yes |
| 8445 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8446 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8447 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8449 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8451 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8452 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8453 | gt_value=1 |
| 8454 | else |
| 8455 | gt_value=0 |
| 8456 | fi |
| 8457 | |
| 8458 | cat >>confdefs.h <<_ACEOF |
| 8459 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8460 | _ACEOF |
| 8461 | |
| 8462 | |
| 8463 | |
| 8464 | case $gt_cv_func_printf_posix in |
| 8465 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8466 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8467 | esac |
| 8468 | |
| 8469 | if test "$ac_cv_func_asprintf" = yes; then |
| 8470 | HAVE_ASPRINTF=1 |
| 8471 | else |
| 8472 | HAVE_ASPRINTF=0 |
| 8473 | fi |
| 8474 | |
| 8475 | if test "$ac_cv_func_snprintf" = yes; then |
| 8476 | HAVE_SNPRINTF=1 |
| 8477 | else |
| 8478 | HAVE_SNPRINTF=0 |
| 8479 | fi |
| 8480 | |
| 8481 | if test "$ac_cv_func_wprintf" = yes; then |
| 8482 | HAVE_WPRINTF=1 |
| 8483 | else |
| 8484 | HAVE_WPRINTF=0 |
| 8485 | fi |
| 8486 | |
| 8487 | |
| 8488 | |
| 8489 | |
| 8490 | |
| 8491 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8492 | |
| 8493 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8494 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8495 | for element in $INCICONV; do |
| 8496 | haveit= |
| 8497 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8498 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8499 | acl_save_prefix="$prefix" |
| 8500 | prefix="$acl_final_prefix" |
| 8501 | acl_save_exec_prefix="$exec_prefix" |
| 8502 | exec_prefix="$acl_final_exec_prefix" |
| 8503 | eval x=\"$x\" |
| 8504 | exec_prefix="$acl_save_exec_prefix" |
| 8505 | prefix="$acl_save_prefix" |
| 8506 | |
| 8507 | if test "X$x" = "X$element"; then |
| 8508 | haveit=yes |
| 8509 | break |
| 8510 | fi |
| 8511 | done |
| 8512 | if test -z "$haveit"; then |
| 8513 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8514 | fi |
| 8515 | done |
| 8516 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8517 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8519 | $as_echo_n "checking for iconv... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8520 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8521 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8522 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8523 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8524 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8525 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8527 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8528 | #include <stdlib.h> |
| 8529 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8530 | int |
| 8531 | main () |
| 8532 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8533 | iconv_t cd = iconv_open("",""); |
| 8534 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8535 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8536 | ; |
| 8537 | return 0; |
| 8538 | } |
| 8539 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8540 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8541 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8542 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8543 | rm -f core conftest.err conftest.$ac_objext \ |
| 8544 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8545 | if test "$am_cv_func_iconv" != yes; then |
| 8546 | am_save_LIBS="$LIBS" |
| 8547 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8549 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8550 | #include <stdlib.h> |
| 8551 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8552 | int |
| 8553 | main () |
| 8554 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8555 | iconv_t cd = iconv_open("",""); |
| 8556 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8557 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8558 | ; |
| 8559 | return 0; |
| 8560 | } |
| 8561 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8562 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8563 | am_cv_lib_iconv=yes |
| 8564 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8565 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8566 | rm -f core conftest.err conftest.$ac_objext \ |
| 8567 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8568 | LIBS="$am_save_LIBS" |
| 8569 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8570 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8571 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8573 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8574 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8575 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8576 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8577 | |
| 8578 | fi |
| 8579 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8581 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8583 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8584 | else |
| 8585 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8586 | LIBICONV= |
| 8587 | LTLIBICONV= |
| 8588 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8589 | |
| 8590 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8591 | |
| 8592 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8594 | $as_echo_n "checking for iconv declaration... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8595 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8596 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8597 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8598 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8600 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8601 | |
| 8602 | #include <stdlib.h> |
| 8603 | #include <iconv.h> |
| 8604 | extern |
| 8605 | #ifdef __cplusplus |
| 8606 | "C" |
| 8607 | #endif |
| 8608 | #if defined(__STDC__) || defined(__cplusplus) |
| 8609 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8610 | #else |
| 8611 | size_t iconv(); |
| 8612 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8613 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8614 | int |
| 8615 | main () |
| 8616 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8617 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8618 | ; |
| 8619 | return 0; |
| 8620 | } |
| 8621 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8622 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8623 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8624 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8625 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8626 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8628 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8629 | fi |
| 8630 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8631 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8633 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8634 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8635 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8636 | |
| 8637 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8638 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8639 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8640 | |
| 8641 | fi |
| 8642 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8643 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8645 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8646 | if ${am_cv_langinfo_codeset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8647 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8648 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8650 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8651 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8652 | int |
| 8653 | main () |
| 8654 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8655 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8656 | ; |
| 8657 | return 0; |
| 8658 | } |
| 8659 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8660 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8661 | am_cv_langinfo_codeset=yes |
| 8662 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8663 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8664 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8665 | rm -f core conftest.err conftest.$ac_objext \ |
| 8666 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8667 | |
| 8668 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8670 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8671 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8672 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8673 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8674 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8675 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8676 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8677 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8680 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8681 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8682 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8683 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8685 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8686 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8687 | int |
| 8688 | main () |
| 8689 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8690 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8691 | ; |
| 8692 | return 0; |
| 8693 | } |
| 8694 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8695 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8696 | am_cv_val_LC_MESSAGES=yes |
| 8697 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8698 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8699 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8700 | rm -f core conftest.err conftest.$ac_objext \ |
| 8701 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8702 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8704 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8705 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8706 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8707 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8708 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8709 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8710 | |
| 8711 | fi |
| 8712 | |
| 8713 | for ac_prog in bison |
| 8714 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8715 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8716 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8718 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8719 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8720 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8721 | else |
| 8722 | if test -n "$INTLBISON"; then |
| 8723 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8724 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8726 | for as_dir in $PATH |
| 8727 | do |
| 8728 | IFS=$as_save_IFS |
| 8729 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8730 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8732 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8734 | break 2 |
| 8735 | fi |
| 8736 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8737 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8738 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8739 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8740 | fi |
| 8741 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8742 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8743 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8745 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8746 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8748 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8749 | fi |
| 8750 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8751 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8752 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8753 | done |
| 8754 | |
| 8755 | if test -z "$INTLBISON"; then |
| 8756 | ac_verc_fail=yes |
| 8757 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8759 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8760 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8761 | case $ac_prog_version in |
| 8762 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8763 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8764 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8765 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8766 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8768 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8769 | fi |
| 8770 | if test $ac_verc_fail = yes; then |
| 8771 | INTLBISON=: |
| 8772 | fi |
| 8773 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8774 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8775 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8776 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8777 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8778 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8779 | |
| 8780 | |
| 8781 | |
| 8782 | |
| 8783 | |
| 8784 | |
| 8785 | |
| 8786 | |
| 8787 | |
| 8788 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8790 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8791 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8792 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8793 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8794 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8795 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8796 | fi |
| 8797 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8799 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8800 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8801 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8802 | |
| 8803 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8804 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8805 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8806 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8807 | LIBINTL= |
| 8808 | LTLIBINTL= |
| 8809 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8810 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8811 | if test "$USE_NLS" = "yes"; then |
| 8812 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8813 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8815 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8817 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8818 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8819 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8820 | else |
| 8821 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8822 | fi |
| 8823 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8825 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8826 | |
| 8827 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8828 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8830 | |
| 8831 | |
| 8832 | |
| 8833 | |
| 8834 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8836 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 8837 | if ${gt_cv_func_gnugettext1_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8838 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8839 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8841 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8842 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8843 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8844 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8845 | int |
| 8846 | main () |
| 8847 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8848 | bindtextdomain ("", ""); |
| 8849 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8850 | ; |
| 8851 | return 0; |
| 8852 | } |
| 8853 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8854 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8855 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8856 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8857 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8858 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8859 | rm -f core conftest.err conftest.$ac_objext \ |
| 8860 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8861 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8863 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8864 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8865 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8866 | |
| 8867 | |
| 8868 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8869 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8870 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8871 | acl_save_prefix="$prefix" |
| 8872 | prefix="$acl_final_prefix" |
| 8873 | acl_save_exec_prefix="$exec_prefix" |
| 8874 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8875 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8876 | eval additional_includedir=\"$includedir\" |
| 8877 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8878 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8879 | exec_prefix="$acl_save_exec_prefix" |
| 8880 | prefix="$acl_save_prefix" |
| 8881 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8883 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8884 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8885 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8886 | if test "X$withval" = "Xno"; then |
| 8887 | use_additional=no |
| 8888 | else |
| 8889 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8890 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8891 | acl_save_prefix="$prefix" |
| 8892 | prefix="$acl_final_prefix" |
| 8893 | acl_save_exec_prefix="$exec_prefix" |
| 8894 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8895 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8896 | eval additional_includedir=\"$includedir\" |
| 8897 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8898 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8899 | exec_prefix="$acl_save_exec_prefix" |
| 8900 | prefix="$acl_save_prefix" |
| 8901 | |
| 8902 | else |
| 8903 | additional_includedir="$withval/include" |
| 8904 | additional_libdir="$withval/lib" |
| 8905 | fi |
| 8906 | fi |
| 8907 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8908 | fi |
| 8909 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8910 | LIBINTL= |
| 8911 | LTLIBINTL= |
| 8912 | INCINTL= |
| 8913 | rpathdirs= |
| 8914 | ltrpathdirs= |
| 8915 | names_already_handled= |
| 8916 | names_next_round='intl ' |
| 8917 | while test -n "$names_next_round"; do |
| 8918 | names_this_round="$names_next_round" |
| 8919 | names_next_round= |
| 8920 | for name in $names_this_round; do |
| 8921 | already_handled= |
| 8922 | for n in $names_already_handled; do |
| 8923 | if test "$n" = "$name"; then |
| 8924 | already_handled=yes |
| 8925 | break |
| 8926 | fi |
| 8927 | done |
| 8928 | if test -z "$already_handled"; then |
| 8929 | names_already_handled="$names_already_handled $name" |
| 8930 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8931 | eval value=\"\$HAVE_LIB$uppername\" |
| 8932 | if test -n "$value"; then |
| 8933 | if test "$value" = yes; then |
| 8934 | eval value=\"\$LIB$uppername\" |
| 8935 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8936 | eval value=\"\$LTLIB$uppername\" |
| 8937 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8938 | else |
| 8939 | : |
| 8940 | fi |
| 8941 | else |
| 8942 | found_dir= |
| 8943 | found_la= |
| 8944 | found_so= |
| 8945 | found_a= |
| 8946 | if test $use_additional = yes; then |
| 8947 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8948 | found_dir="$additional_libdir" |
| 8949 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8950 | if test -f "$additional_libdir/lib$name.la"; then |
| 8951 | found_la="$additional_libdir/lib$name.la" |
| 8952 | fi |
| 8953 | else |
| 8954 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8955 | found_dir="$additional_libdir" |
| 8956 | found_a="$additional_libdir/lib$name.$libext" |
| 8957 | if test -f "$additional_libdir/lib$name.la"; then |
| 8958 | found_la="$additional_libdir/lib$name.la" |
| 8959 | fi |
| 8960 | fi |
| 8961 | fi |
| 8962 | fi |
| 8963 | if test "X$found_dir" = "X"; then |
| 8964 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8965 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8966 | acl_save_prefix="$prefix" |
| 8967 | prefix="$acl_final_prefix" |
| 8968 | acl_save_exec_prefix="$exec_prefix" |
| 8969 | exec_prefix="$acl_final_exec_prefix" |
| 8970 | eval x=\"$x\" |
| 8971 | exec_prefix="$acl_save_exec_prefix" |
| 8972 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8973 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8974 | case "$x" in |
| 8975 | -L*) |
| 8976 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8977 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8978 | found_dir="$dir" |
| 8979 | found_so="$dir/lib$name.$shlibext" |
| 8980 | if test -f "$dir/lib$name.la"; then |
| 8981 | found_la="$dir/lib$name.la" |
| 8982 | fi |
| 8983 | else |
| 8984 | if test -f "$dir/lib$name.$libext"; then |
| 8985 | found_dir="$dir" |
| 8986 | found_a="$dir/lib$name.$libext" |
| 8987 | if test -f "$dir/lib$name.la"; then |
| 8988 | found_la="$dir/lib$name.la" |
| 8989 | fi |
| 8990 | fi |
| 8991 | fi |
| 8992 | ;; |
| 8993 | esac |
| 8994 | if test "X$found_dir" != "X"; then |
| 8995 | break |
| 8996 | fi |
| 8997 | done |
| 8998 | fi |
| 8999 | if test "X$found_dir" != "X"; then |
| 9000 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 9001 | if test "X$found_so" != "X"; then |
| 9002 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9003 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9004 | else |
| 9005 | haveit= |
| 9006 | for x in $ltrpathdirs; do |
| 9007 | if test "X$x" = "X$found_dir"; then |
| 9008 | haveit=yes |
| 9009 | break |
| 9010 | fi |
| 9011 | done |
| 9012 | if test -z "$haveit"; then |
| 9013 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9014 | fi |
| 9015 | if test "$hardcode_direct" = yes; then |
| 9016 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9017 | else |
| 9018 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9019 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9020 | haveit= |
| 9021 | for x in $rpathdirs; do |
| 9022 | if test "X$x" = "X$found_dir"; then |
| 9023 | haveit=yes |
| 9024 | break |
| 9025 | fi |
| 9026 | done |
| 9027 | if test -z "$haveit"; then |
| 9028 | rpathdirs="$rpathdirs $found_dir" |
| 9029 | fi |
| 9030 | else |
| 9031 | haveit= |
| 9032 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9033 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9034 | acl_save_prefix="$prefix" |
| 9035 | prefix="$acl_final_prefix" |
| 9036 | acl_save_exec_prefix="$exec_prefix" |
| 9037 | exec_prefix="$acl_final_exec_prefix" |
| 9038 | eval x=\"$x\" |
| 9039 | exec_prefix="$acl_save_exec_prefix" |
| 9040 | prefix="$acl_save_prefix" |
| 9041 | |
| 9042 | if test "X$x" = "X-L$found_dir"; then |
| 9043 | haveit=yes |
| 9044 | break |
| 9045 | fi |
| 9046 | done |
| 9047 | if test -z "$haveit"; then |
| 9048 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 9049 | fi |
| 9050 | if test "$hardcode_minus_L" != no; then |
| 9051 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9052 | else |
| 9053 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9054 | fi |
| 9055 | fi |
| 9056 | fi |
| 9057 | fi |
| 9058 | else |
| 9059 | if test "X$found_a" != "X"; then |
| 9060 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 9061 | else |
| 9062 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 9063 | fi |
| 9064 | fi |
| 9065 | additional_includedir= |
| 9066 | case "$found_dir" in |
| 9067 | */lib | */lib/) |
| 9068 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9069 | additional_includedir="$basedir/include" |
| 9070 | ;; |
| 9071 | esac |
| 9072 | if test "X$additional_includedir" != "X"; then |
| 9073 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9074 | haveit= |
| 9075 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9076 | if test -n "$GCC"; then |
| 9077 | case $host_os in |
| 9078 | linux*) haveit=yes;; |
| 9079 | esac |
| 9080 | fi |
| 9081 | fi |
| 9082 | if test -z "$haveit"; then |
| 9083 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9084 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9085 | acl_save_prefix="$prefix" |
| 9086 | prefix="$acl_final_prefix" |
| 9087 | acl_save_exec_prefix="$exec_prefix" |
| 9088 | exec_prefix="$acl_final_exec_prefix" |
| 9089 | eval x=\"$x\" |
| 9090 | exec_prefix="$acl_save_exec_prefix" |
| 9091 | prefix="$acl_save_prefix" |
| 9092 | |
| 9093 | if test "X$x" = "X-I$additional_includedir"; then |
| 9094 | haveit=yes |
| 9095 | break |
| 9096 | fi |
| 9097 | done |
| 9098 | if test -z "$haveit"; then |
| 9099 | if test -d "$additional_includedir"; then |
| 9100 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9101 | fi |
| 9102 | fi |
| 9103 | fi |
| 9104 | fi |
| 9105 | fi |
| 9106 | if test -n "$found_la"; then |
| 9107 | save_libdir="$libdir" |
| 9108 | case "$found_la" in |
| 9109 | */* | *\\*) . "$found_la" ;; |
| 9110 | *) . "./$found_la" ;; |
| 9111 | esac |
| 9112 | libdir="$save_libdir" |
| 9113 | for dep in $dependency_libs; do |
| 9114 | case "$dep" in |
| 9115 | -L*) |
| 9116 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9117 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9118 | haveit= |
| 9119 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9120 | if test -n "$GCC"; then |
| 9121 | case $host_os in |
| 9122 | linux*) haveit=yes;; |
| 9123 | esac |
| 9124 | fi |
| 9125 | fi |
| 9126 | if test -z "$haveit"; then |
| 9127 | haveit= |
| 9128 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9129 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9130 | acl_save_prefix="$prefix" |
| 9131 | prefix="$acl_final_prefix" |
| 9132 | acl_save_exec_prefix="$exec_prefix" |
| 9133 | exec_prefix="$acl_final_exec_prefix" |
| 9134 | eval x=\"$x\" |
| 9135 | exec_prefix="$acl_save_exec_prefix" |
| 9136 | prefix="$acl_save_prefix" |
| 9137 | |
| 9138 | if test "X$x" = "X-L$additional_libdir"; then |
| 9139 | haveit=yes |
| 9140 | break |
| 9141 | fi |
| 9142 | done |
| 9143 | if test -z "$haveit"; then |
| 9144 | if test -d "$additional_libdir"; then |
| 9145 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9146 | fi |
| 9147 | fi |
| 9148 | haveit= |
| 9149 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9150 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9151 | acl_save_prefix="$prefix" |
| 9152 | prefix="$acl_final_prefix" |
| 9153 | acl_save_exec_prefix="$exec_prefix" |
| 9154 | exec_prefix="$acl_final_exec_prefix" |
| 9155 | eval x=\"$x\" |
| 9156 | exec_prefix="$acl_save_exec_prefix" |
| 9157 | prefix="$acl_save_prefix" |
| 9158 | |
| 9159 | if test "X$x" = "X-L$additional_libdir"; then |
| 9160 | haveit=yes |
| 9161 | break |
| 9162 | fi |
| 9163 | done |
| 9164 | if test -z "$haveit"; then |
| 9165 | if test -d "$additional_libdir"; then |
| 9166 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9167 | fi |
| 9168 | fi |
| 9169 | fi |
| 9170 | fi |
| 9171 | ;; |
| 9172 | -R*) |
| 9173 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9174 | if test "$enable_rpath" != no; then |
| 9175 | haveit= |
| 9176 | for x in $rpathdirs; do |
| 9177 | if test "X$x" = "X$dir"; then |
| 9178 | haveit=yes |
| 9179 | break |
| 9180 | fi |
| 9181 | done |
| 9182 | if test -z "$haveit"; then |
| 9183 | rpathdirs="$rpathdirs $dir" |
| 9184 | fi |
| 9185 | haveit= |
| 9186 | for x in $ltrpathdirs; do |
| 9187 | if test "X$x" = "X$dir"; then |
| 9188 | haveit=yes |
| 9189 | break |
| 9190 | fi |
| 9191 | done |
| 9192 | if test -z "$haveit"; then |
| 9193 | ltrpathdirs="$ltrpathdirs $dir" |
| 9194 | fi |
| 9195 | fi |
| 9196 | ;; |
| 9197 | -l*) |
| 9198 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9199 | ;; |
| 9200 | *.la) |
| 9201 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9202 | ;; |
| 9203 | *) |
| 9204 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9205 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9206 | ;; |
| 9207 | esac |
| 9208 | done |
| 9209 | fi |
| 9210 | else |
| 9211 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9212 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9213 | fi |
| 9214 | fi |
| 9215 | fi |
| 9216 | done |
| 9217 | done |
| 9218 | if test "X$rpathdirs" != "X"; then |
| 9219 | if test -n "$hardcode_libdir_separator"; then |
| 9220 | alldirs= |
| 9221 | for found_dir in $rpathdirs; do |
| 9222 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9223 | done |
| 9224 | acl_save_libdir="$libdir" |
| 9225 | libdir="$alldirs" |
| 9226 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9227 | libdir="$acl_save_libdir" |
| 9228 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9229 | else |
| 9230 | for found_dir in $rpathdirs; do |
| 9231 | acl_save_libdir="$libdir" |
| 9232 | libdir="$found_dir" |
| 9233 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9234 | libdir="$acl_save_libdir" |
| 9235 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9236 | done |
| 9237 | fi |
| 9238 | fi |
| 9239 | if test "X$ltrpathdirs" != "X"; then |
| 9240 | for found_dir in $ltrpathdirs; do |
| 9241 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9242 | done |
| 9243 | fi |
| 9244 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9246 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9247 | if ${gt_cv_func_gnugettext1_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9248 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9249 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9250 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9251 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9252 | gt_save_LIBS="$LIBS" |
| 9253 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9255 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9256 | #include <libintl.h> |
| 9257 | extern int _nl_msg_cat_cntr; |
| 9258 | extern |
| 9259 | #ifdef __cplusplus |
| 9260 | "C" |
| 9261 | #endif |
| 9262 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9263 | int |
| 9264 | main () |
| 9265 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9266 | bindtextdomain ("", ""); |
| 9267 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9268 | ; |
| 9269 | return 0; |
| 9270 | } |
| 9271 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9272 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9273 | gt_cv_func_gnugettext1_libintl=yes |
| 9274 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9275 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9276 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9277 | rm -f core conftest.err conftest.$ac_objext \ |
| 9278 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9279 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9280 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9282 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9283 | #include <libintl.h> |
| 9284 | extern int _nl_msg_cat_cntr; |
| 9285 | extern |
| 9286 | #ifdef __cplusplus |
| 9287 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9288 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9289 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9290 | int |
| 9291 | main () |
| 9292 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9293 | bindtextdomain ("", ""); |
| 9294 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9295 | ; |
| 9296 | return 0; |
| 9297 | } |
| 9298 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9299 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9300 | LIBINTL="$LIBINTL $LIBICONV" |
| 9301 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9302 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9303 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9304 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9305 | rm -f core conftest.err conftest.$ac_objext \ |
| 9306 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9307 | fi |
| 9308 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9309 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9310 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9312 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9313 | fi |
| 9314 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9315 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9316 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9317 | && test "$PACKAGE" != gettext-runtime \ |
| 9318 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9319 | gt_use_preinstalled_gnugettext=yes |
| 9320 | else |
| 9321 | LIBINTL= |
| 9322 | LTLIBINTL= |
| 9323 | INCINTL= |
| 9324 | fi |
| 9325 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9326 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9327 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9328 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9329 | fi |
| 9330 | fi |
| 9331 | |
| 9332 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9333 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9334 | USE_INCLUDED_LIBINTL=yes |
| 9335 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9336 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9337 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9338 | fi |
| 9339 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9340 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9341 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9342 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9343 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9344 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9345 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9346 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9347 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9348 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9349 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9350 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9351 | else |
| 9352 | USE_NLS=no |
| 9353 | fi |
| 9354 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9355 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9357 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9359 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9360 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9362 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9363 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9364 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9365 | gt_source="external libintl" |
| 9366 | else |
| 9367 | gt_source="libc" |
| 9368 | fi |
| 9369 | else |
| 9370 | gt_source="included intl directory" |
| 9371 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9373 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9374 | fi |
| 9375 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9376 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9377 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9378 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9379 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9381 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9383 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9384 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9385 | for element in $INCINTL; do |
| 9386 | haveit= |
| 9387 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9388 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9389 | acl_save_prefix="$prefix" |
| 9390 | prefix="$acl_final_prefix" |
| 9391 | acl_save_exec_prefix="$exec_prefix" |
| 9392 | exec_prefix="$acl_final_exec_prefix" |
| 9393 | eval x=\"$x\" |
| 9394 | exec_prefix="$acl_save_exec_prefix" |
| 9395 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9396 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9397 | if test "X$x" = "X$element"; then |
| 9398 | haveit=yes |
| 9399 | break |
| 9400 | fi |
| 9401 | done |
| 9402 | if test -z "$haveit"; then |
| 9403 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9404 | fi |
| 9405 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9406 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9407 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9408 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9409 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9410 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9411 | |
| 9412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9413 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9414 | |
| 9415 | fi |
| 9416 | |
| 9417 | POSUB=po |
| 9418 | fi |
| 9419 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9420 | |
| 9421 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9422 | BUILD_INCLUDED_LIBINTL=yes |
| 9423 | fi |
| 9424 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9425 | |
| 9426 | |
| 9427 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9428 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9429 | nls_cv_header_intl= |
| 9430 | nls_cv_header_libgt= |
| 9431 | |
| 9432 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9433 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9434 | |
| 9435 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9436 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9437 | |
| 9438 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9439 | |
| 9440 | |
| 9441 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9442 | INTLOBJS="\$(GETTOBJS)" |
| 9443 | fi |
| 9444 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9445 | |
| 9446 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9447 | |
| 9448 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9449 | |
| 9450 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9451 | |
| 9452 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9453 | |
| 9454 | |
| 9455 | |
| 9456 | |
| 9457 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9459 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9460 | set x ${MAKE-make} |
| 9461 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9462 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9463 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9464 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9465 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9466 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9467 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9468 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9469 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9470 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9471 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9472 | *@@@%%%=?*=@@@%%%*) |
| 9473 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9474 | *) |
| 9475 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9476 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9477 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9478 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9479 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9481 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9482 | SET_MAKE= |
| 9483 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9485 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9486 | SET_MAKE="MAKE=${MAKE-make}" |
| 9487 | fi |
| 9488 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9490 | $as_echo_n "checking for GNU make... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9491 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9492 | $as_echo_n "(cached) " >&6 |
| 9493 | else |
| 9494 | _cv_gnu_make_command='' ; |
| 9495 | for a in "$MAKE" make gmake gnumake ; do |
| 9496 | if test -z "$a" ; then continue ; fi ; |
| 9497 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9498 | _cv_gnu_make_command=$a ; |
| 9499 | break; |
| 9500 | fi |
| 9501 | done ; |
| 9502 | |
| 9503 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9505 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9506 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9507 | ifGNUmake='' ; |
| 9508 | ifNotGNUmake='#' ; |
| 9509 | else |
| 9510 | ifGNUmake='#' ; |
| 9511 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9513 | $as_echo "\"Not found\"" >&6; }; |
| 9514 | fi |
| 9515 | |
| 9516 | |
| 9517 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9518 | # Extract the first word of "ln", so it can be a program name with args. |
| 9519 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9521 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9522 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9523 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9524 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9525 | case $LN in |
| 9526 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9527 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9528 | ;; |
| 9529 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9531 | for as_dir in $PATH |
| 9532 | do |
| 9533 | IFS=$as_save_IFS |
| 9534 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9535 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9537 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9539 | break 2 |
| 9540 | fi |
| 9541 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9542 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9543 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9544 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9545 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9546 | ;; |
| 9547 | esac |
| 9548 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9549 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9550 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9552 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9553 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9555 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9556 | fi |
| 9557 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9558 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9560 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9561 | LN_S=$as_ln_s |
| 9562 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9564 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9565 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9567 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9568 | fi |
| 9569 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9570 | # Extract the first word of "mv", so it can be a program name with args. |
| 9571 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9573 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9574 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9575 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9576 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9577 | case $MV in |
| 9578 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9579 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9580 | ;; |
| 9581 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9583 | for as_dir in $PATH |
| 9584 | do |
| 9585 | IFS=$as_save_IFS |
| 9586 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9587 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9589 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9591 | break 2 |
| 9592 | fi |
| 9593 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9594 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9595 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9596 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9597 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9598 | ;; |
| 9599 | esac |
| 9600 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9601 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9602 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9604 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9605 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9607 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9608 | fi |
| 9609 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9610 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9611 | # Extract the first word of "cp", so it can be a program name with args. |
| 9612 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9614 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9615 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9616 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9617 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9618 | case $CP in |
| 9619 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9620 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9621 | ;; |
| 9622 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9624 | for as_dir in $PATH |
| 9625 | do |
| 9626 | IFS=$as_save_IFS |
| 9627 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9628 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9630 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9632 | break 2 |
| 9633 | fi |
| 9634 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9635 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9636 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9637 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9638 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9639 | ;; |
| 9640 | esac |
| 9641 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9642 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9643 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9645 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9646 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9648 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9649 | fi |
| 9650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9651 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9652 | # Extract the first word of "rm", so it can be a program name with args. |
| 9653 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9655 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9656 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9657 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9658 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9659 | case $RM in |
| 9660 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9661 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9662 | ;; |
| 9663 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9665 | for as_dir in $PATH |
| 9666 | do |
| 9667 | IFS=$as_save_IFS |
| 9668 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9669 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9671 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9673 | break 2 |
| 9674 | fi |
| 9675 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9676 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9677 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9678 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9679 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9680 | ;; |
| 9681 | esac |
| 9682 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9683 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9684 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9686 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9687 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9689 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9690 | fi |
| 9691 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9692 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9693 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9694 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9696 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9697 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9698 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9699 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9700 | case $CHMOD in |
| 9701 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9702 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9703 | ;; |
| 9704 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9706 | for as_dir in $PATH |
| 9707 | do |
| 9708 | IFS=$as_save_IFS |
| 9709 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9710 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9712 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9714 | break 2 |
| 9715 | fi |
| 9716 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9717 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9718 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9719 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9720 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9721 | ;; |
| 9722 | esac |
| 9723 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9724 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9725 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9727 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9728 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9730 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9731 | fi |
| 9732 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9733 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9734 | for ac_prog in gawk mawk nawk awk |
| 9735 | do |
| 9736 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9737 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9739 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9740 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9741 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9742 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9743 | if test -n "$AWK"; then |
| 9744 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9745 | else |
| 9746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9747 | for as_dir in $PATH |
| 9748 | do |
| 9749 | IFS=$as_save_IFS |
| 9750 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9751 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9753 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9755 | break 2 |
| 9756 | fi |
| 9757 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9758 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9759 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9760 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9761 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9762 | fi |
| 9763 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9764 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9766 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9767 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9769 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9770 | fi |
| 9771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9772 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9773 | test -n "$AWK" && break |
| 9774 | done |
| 9775 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9777 | $as_echo_n "checking for egrep... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9778 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9779 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9780 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9781 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9782 | then ac_cv_path_EGREP="$GREP -E" |
| 9783 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9784 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9785 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9786 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9788 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9789 | do |
| 9790 | IFS=$as_save_IFS |
| 9791 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9792 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9794 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9795 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9796 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9797 | # Check for GNU $ac_path_EGREP |
| 9798 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9799 | *GNU*) |
| 9800 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9801 | *) |
| 9802 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9803 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9804 | while : |
| 9805 | do |
| 9806 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9807 | mv "conftest.tmp" "conftest.in" |
| 9808 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9809 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9810 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9811 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9812 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9813 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9814 | # Best one so far, save it but keep looking for a better one |
| 9815 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9816 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9818 | # 10*(2^10) chars as input seems more than enough |
| 9819 | test $ac_count -gt 10 && break |
| 9820 | done |
| 9821 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9822 | esac |
| 9823 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9824 | $ac_path_EGREP_found && break 3 |
| 9825 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9826 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9827 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9828 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9829 | if test -z "$ac_cv_path_EGREP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9830 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9831 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9832 | else |
| 9833 | ac_cv_path_EGREP=$EGREP |
| 9834 | fi |
| 9835 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9836 | fi |
| 9837 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9839 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9840 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9841 | |
| 9842 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9843 | # Extract the first word of "sed", so it can be a program name with args. |
| 9844 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9846 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9847 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9848 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9849 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9850 | case $SED in |
| 9851 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9852 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9853 | ;; |
| 9854 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9856 | for as_dir in $PATH |
| 9857 | do |
| 9858 | IFS=$as_save_IFS |
| 9859 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9860 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9862 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9864 | break 2 |
| 9865 | fi |
| 9866 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9867 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9868 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9869 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9870 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9871 | ;; |
| 9872 | esac |
| 9873 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9874 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9875 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9877 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9878 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9880 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9881 | fi |
| 9882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9883 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9884 | # Extract the first word of "perl", so it can be a program name with args. |
| 9885 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9887 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9888 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9889 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9890 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9891 | case $PERL in |
| 9892 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9893 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9894 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9895 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9897 | for as_dir in $PATH |
| 9898 | do |
| 9899 | IFS=$as_save_IFS |
| 9900 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9901 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9903 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9905 | break 2 |
| 9906 | fi |
| 9907 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9908 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9909 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9910 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9911 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9912 | ;; |
| 9913 | esac |
| 9914 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9915 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9916 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9918 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9919 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9921 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9922 | fi |
| 9923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9924 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9925 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9926 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9928 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9929 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9930 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9931 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9932 | case $LDCONFIG in |
| 9933 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9934 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9935 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9936 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9938 | for as_dir in $PATH |
| 9939 | do |
| 9940 | IFS=$as_save_IFS |
| 9941 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9942 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9944 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9946 | break 2 |
| 9947 | fi |
| 9948 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9949 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9950 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9951 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9952 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9953 | ;; |
| 9954 | esac |
| 9955 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9956 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9957 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9959 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9960 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9962 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9963 | fi |
| 9964 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9965 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9966 | if test -n "$ac_tool_prefix"; then |
| 9967 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9968 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9970 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9971 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9972 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9973 | else |
| 9974 | if test -n "$AR"; then |
| 9975 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9976 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9978 | for as_dir in $PATH |
| 9979 | do |
| 9980 | IFS=$as_save_IFS |
| 9981 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9982 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 9983 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9984 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9986 | break 2 |
| 9987 | fi |
| 9988 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9989 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9990 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9991 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9992 | fi |
| 9993 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9994 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9995 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9997 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9998 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10000 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10001 | fi |
| 10002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10003 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10004 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10005 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10006 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10007 | # Extract the first word of "ar", so it can be a program name with args. |
| 10008 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10010 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10011 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10012 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10013 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10014 | if test -n "$ac_ct_AR"; then |
| 10015 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10016 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10018 | for as_dir in $PATH |
| 10019 | do |
| 10020 | IFS=$as_save_IFS |
| 10021 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10022 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10024 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10026 | break 2 |
| 10027 | fi |
| 10028 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10029 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10030 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10031 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10032 | fi |
| 10033 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10034 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10035 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10037 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10038 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10040 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10041 | fi |
| 10042 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10043 | if test "x$ac_ct_AR" = x; then |
| 10044 | AR="ar" |
| 10045 | else |
| 10046 | case $cross_compiling:$ac_tool_warned in |
| 10047 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10049 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10050 | ac_tool_warned=yes ;; |
| 10051 | esac |
| 10052 | AR=$ac_ct_AR |
| 10053 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10054 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10055 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10056 | fi |
| 10057 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10058 | if test -n "$ac_tool_prefix"; then |
| 10059 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10060 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10062 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10063 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10064 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10065 | else |
| 10066 | if test -n "$RANLIB"; then |
| 10067 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10068 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10070 | for as_dir in $PATH |
| 10071 | do |
| 10072 | IFS=$as_save_IFS |
| 10073 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10074 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10076 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10078 | break 2 |
| 10079 | fi |
| 10080 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10081 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10082 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10083 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10084 | fi |
| 10085 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10086 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10087 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10089 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10090 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10092 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10093 | fi |
| 10094 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10095 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10096 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10097 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10098 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10099 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10100 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10102 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10103 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10104 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10105 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10106 | if test -n "$ac_ct_RANLIB"; then |
| 10107 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10108 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10110 | for as_dir in $PATH |
| 10111 | do |
| 10112 | IFS=$as_save_IFS |
| 10113 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10114 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10116 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10118 | break 2 |
| 10119 | fi |
| 10120 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10121 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10122 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10123 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10124 | fi |
| 10125 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10127 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10129 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10130 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10132 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10133 | fi |
| 10134 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10135 | if test "x$ac_ct_RANLIB" = x; then |
| 10136 | RANLIB=":" |
| 10137 | else |
| 10138 | case $cross_compiling:$ac_tool_warned in |
| 10139 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10141 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10142 | ac_tool_warned=yes ;; |
| 10143 | esac |
| 10144 | RANLIB=$ac_ct_RANLIB |
| 10145 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10146 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10147 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10148 | fi |
| 10149 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10150 | if test -n "$ac_tool_prefix"; then |
| 10151 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10152 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10154 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10155 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10156 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10157 | else |
| 10158 | if test -n "$STRIP"; then |
| 10159 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10160 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10162 | for as_dir in $PATH |
| 10163 | do |
| 10164 | IFS=$as_save_IFS |
| 10165 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10166 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10168 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10170 | break 2 |
| 10171 | fi |
| 10172 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10173 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10174 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10175 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10176 | fi |
| 10177 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10178 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10179 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10181 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10182 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10184 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10185 | fi |
| 10186 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10187 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10188 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10189 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10190 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10191 | # Extract the first word of "strip", so it can be a program name with args. |
| 10192 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10194 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10195 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10196 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10197 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10198 | if test -n "$ac_ct_STRIP"; then |
| 10199 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10200 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10202 | for as_dir in $PATH |
| 10203 | do |
| 10204 | IFS=$as_save_IFS |
| 10205 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10208 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10210 | break 2 |
| 10211 | fi |
| 10212 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10213 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10214 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10215 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10216 | fi |
| 10217 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10218 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10219 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10221 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10222 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10224 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10225 | fi |
| 10226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10227 | if test "x$ac_ct_STRIP" = x; then |
| 10228 | STRIP=":" |
| 10229 | else |
| 10230 | case $cross_compiling:$ac_tool_warned in |
| 10231 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10233 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10234 | ac_tool_warned=yes ;; |
| 10235 | esac |
| 10236 | STRIP=$ac_ct_STRIP |
| 10237 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10238 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10239 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10240 | fi |
| 10241 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10242 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 10243 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10245 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10246 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10247 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10248 | else |
| 10249 | if test -n "$MAKEINFO"; then |
| 10250 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 10251 | else |
| 10252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10253 | for as_dir in $PATH |
| 10254 | do |
| 10255 | IFS=$as_save_IFS |
| 10256 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10257 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10259 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10261 | break 2 |
| 10262 | fi |
| 10263 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10264 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10265 | IFS=$as_save_IFS |
| 10266 | |
| 10267 | fi |
| 10268 | fi |
| 10269 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 10270 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10272 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10273 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10275 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10276 | fi |
| 10277 | |
| 10278 | |
| 10279 | if test "_$MAKEINFO" = "_"; then |
| 10280 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10281 | else |
| 10282 | case "$MAKEINFO" in |
| 10283 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10285 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10286 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10287 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10288 | ;; |
| 10289 | *) |
| 10290 | ;; |
| 10291 | esac |
| 10292 | fi |
| 10293 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10294 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10295 | # See if we need a separate native compiler. |
| 10296 | if test $cross_compiling = no; then |
| 10297 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10298 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10299 | else |
| 10300 | for ac_prog in gcc cc |
| 10301 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10302 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10303 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10305 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10306 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10307 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10308 | else |
| 10309 | if test -n "$BUILD_CC"; then |
| 10310 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10311 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10313 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10314 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10315 | IFS=$as_save_IFS |
| 10316 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10317 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10319 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10321 | break 2 |
| 10322 | fi |
| 10323 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10324 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10325 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10326 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10327 | fi |
| 10328 | fi |
| 10329 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10330 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10332 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10333 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10335 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10336 | fi |
| 10337 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10338 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10339 | test -n "$BUILD_CC" && break |
| 10340 | done |
| 10341 | |
| 10342 | fi |
Mike Frysinger | 677fc91 | 2012-03-06 20:13:54 -0500 | [diff] [blame] | 10343 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10344 | do : |
| 10345 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10346 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10347 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10348 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10349 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10350 | _ACEOF |
| 10351 | |
| 10352 | fi |
| 10353 | |
| 10354 | done |
| 10355 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10356 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10357 | do : |
| 10358 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10359 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10360 | #if HAVE_SYS_QUEUE_H |
| 10361 | #include <sys/queue.h> |
| 10362 | #endif |
| 10363 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10364 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10365 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10366 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10367 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10368 | _ACEOF |
| 10369 | |
| 10370 | fi |
| 10371 | |
| 10372 | done |
| 10373 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10374 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10375 | do : |
| 10376 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10377 | #if HAVE_SYS_TYPES_H |
| 10378 | #include <sys/types.h> |
| 10379 | #endif |
| 10380 | #if HAVE_SYS_SOCKET |
| 10381 | #include <sys/socket.h> |
| 10382 | #endif |
| 10383 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10384 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10385 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10386 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10387 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10388 | _ACEOF |
| 10389 | |
| 10390 | fi |
| 10391 | |
| 10392 | done |
| 10393 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10394 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10395 | do : |
| 10396 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10397 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10398 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10399 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10400 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10401 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10402 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10403 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10404 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10405 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10406 | |
| 10407 | fi |
| 10408 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10409 | fi |
| 10410 | done |
| 10411 | |
| 10412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10413 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10414 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10415 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10416 | |
| 10417 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10418 | |
| 10419 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10421 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10422 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10423 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10424 | |
| 10425 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10426 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10427 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10428 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10429 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10430 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10431 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10432 | |
| 10433 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10434 | |
| 10435 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10436 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10437 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10438 | #define _LARGEFILE64_SOURCE |
| 10439 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10440 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10441 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10442 | |
| 10443 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10444 | |
| 10445 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10446 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10447 | # The cast to long int works around a bug in the HP C Compiler |
| 10448 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10449 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10450 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10452 | $as_echo_n "checking size of short... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10453 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10454 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10455 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10456 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10458 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10459 | if test "$ac_cv_type_short" = yes; then |
| 10460 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10461 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10462 | as_fn_error 77 "cannot compute sizeof (short) |
| 10463 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10464 | else |
| 10465 | ac_cv_sizeof_short=0 |
| 10466 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10467 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10468 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10469 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10471 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10472 | |
| 10473 | |
| 10474 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10475 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10476 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10477 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10478 | |
| 10479 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10480 | # The cast to long int works around a bug in the HP C Compiler |
| 10481 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10482 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10483 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10485 | $as_echo_n "checking size of int... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10486 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10487 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10488 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10489 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10490 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10491 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10492 | if test "$ac_cv_type_int" = yes; then |
| 10493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10495 | as_fn_error 77 "cannot compute sizeof (int) |
| 10496 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10497 | else |
| 10498 | ac_cv_sizeof_int=0 |
| 10499 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10500 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10501 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10502 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10504 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10505 | |
| 10506 | |
| 10507 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10508 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10509 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10510 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10511 | |
| 10512 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10513 | # The cast to long int works around a bug in the HP C Compiler |
| 10514 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10515 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10516 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10518 | $as_echo_n "checking size of long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10519 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10520 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10521 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10522 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10524 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10525 | if test "$ac_cv_type_long" = yes; then |
| 10526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10528 | as_fn_error 77 "cannot compute sizeof (long) |
| 10529 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10530 | else |
| 10531 | ac_cv_sizeof_long=0 |
| 10532 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10533 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10535 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10537 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10538 | |
| 10539 | |
| 10540 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10541 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10542 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10543 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10544 | |
| 10545 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10546 | # The cast to long int works around a bug in the HP C Compiler |
| 10547 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10548 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10549 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10551 | $as_echo_n "checking size of long long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10552 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10553 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10554 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10555 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10556 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10557 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10558 | if test "$ac_cv_type_long_long" = yes; then |
| 10559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10561 | as_fn_error 77 "cannot compute sizeof (long long) |
| 10562 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10563 | else |
| 10564 | ac_cv_sizeof_long_long=0 |
| 10565 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10566 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10567 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10568 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10570 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10571 | |
| 10572 | |
| 10573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10574 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10575 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10576 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10577 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10578 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10579 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10580 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10581 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10582 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 10583 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10584 | |
| 10585 | |
| 10586 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10588 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10589 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10590 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10591 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10592 | ac_cv_c_bigendian=unknown |
| 10593 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10595 | /* end confdefs.h. */ |
| 10596 | #ifndef __APPLE_CC__ |
| 10597 | not a universal capable compiler |
| 10598 | #endif |
| 10599 | typedef int dummy; |
| 10600 | |
| 10601 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10602 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10603 | |
| 10604 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10605 | # there are at least two -arch flags with different values. |
| 10606 | ac_arch= |
| 10607 | ac_prev= |
| 10608 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10609 | if test -n "$ac_prev"; then |
| 10610 | case $ac_word in |
| 10611 | i?86 | x86_64 | ppc | ppc64) |
| 10612 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10613 | ac_arch=$ac_word |
| 10614 | else |
| 10615 | ac_cv_c_bigendian=universal |
| 10616 | break |
| 10617 | fi |
| 10618 | ;; |
| 10619 | esac |
| 10620 | ac_prev= |
| 10621 | elif test "x$ac_word" = "x-arch"; then |
| 10622 | ac_prev=arch |
| 10623 | fi |
| 10624 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10625 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10627 | if test $ac_cv_c_bigendian = unknown; then |
| 10628 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10630 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10631 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10632 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10633 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10634 | int |
| 10635 | main () |
| 10636 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10637 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10638 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10639 | && LITTLE_ENDIAN) |
| 10640 | bogus endian macros |
| 10641 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10642 | |
| 10643 | ; |
| 10644 | return 0; |
| 10645 | } |
| 10646 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10647 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10648 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10650 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10651 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10652 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10653 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10654 | int |
| 10655 | main () |
| 10656 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10657 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10658 | not big endian |
| 10659 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10660 | |
| 10661 | ; |
| 10662 | return 0; |
| 10663 | } |
| 10664 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10665 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10666 | ac_cv_c_bigendian=yes |
| 10667 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10668 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10669 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10671 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10673 | fi |
| 10674 | if test $ac_cv_c_bigendian = unknown; then |
| 10675 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10677 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10678 | #include <limits.h> |
| 10679 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10680 | int |
| 10681 | main () |
| 10682 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10683 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10684 | bogus endian macros |
| 10685 | #endif |
| 10686 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10687 | ; |
| 10688 | return 0; |
| 10689 | } |
| 10690 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10691 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10692 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10694 | /* end confdefs.h. */ |
| 10695 | #include <limits.h> |
| 10696 | |
| 10697 | int |
| 10698 | main () |
| 10699 | { |
| 10700 | #ifndef _BIG_ENDIAN |
| 10701 | not big endian |
| 10702 | #endif |
| 10703 | |
| 10704 | ; |
| 10705 | return 0; |
| 10706 | } |
| 10707 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10708 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10709 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10710 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10711 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10712 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10714 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10716 | fi |
| 10717 | if test $ac_cv_c_bigendian = unknown; then |
| 10718 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10719 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10720 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10722 | /* end confdefs.h. */ |
| 10723 | short int ascii_mm[] = |
| 10724 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10725 | short int ascii_ii[] = |
| 10726 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10727 | int use_ascii (int i) { |
| 10728 | return ascii_mm[i] + ascii_ii[i]; |
| 10729 | } |
| 10730 | short int ebcdic_ii[] = |
| 10731 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10732 | short int ebcdic_mm[] = |
| 10733 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10734 | int use_ebcdic (int i) { |
| 10735 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10736 | } |
| 10737 | extern int foo; |
| 10738 | |
| 10739 | int |
| 10740 | main () |
| 10741 | { |
| 10742 | return use_ascii (foo) == use_ebcdic (foo); |
| 10743 | ; |
| 10744 | return 0; |
| 10745 | } |
| 10746 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10747 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10748 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10749 | ac_cv_c_bigendian=yes |
| 10750 | fi |
| 10751 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10752 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10753 | ac_cv_c_bigendian=no |
| 10754 | else |
| 10755 | # finding both strings is unlikely to happen, but who knows? |
| 10756 | ac_cv_c_bigendian=unknown |
| 10757 | fi |
| 10758 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10759 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10761 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10764 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10765 | int |
| 10766 | main () |
| 10767 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10768 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10769 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10770 | union |
| 10771 | { |
| 10772 | long int l; |
| 10773 | char c[sizeof (long int)]; |
| 10774 | } u; |
| 10775 | u.l = 1; |
| 10776 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10777 | |
| 10778 | ; |
| 10779 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10780 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10781 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10782 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10783 | ac_cv_c_bigendian=no |
| 10784 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10785 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10786 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10787 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10788 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10789 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10790 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10791 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10792 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10794 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10795 | case $ac_cv_c_bigendian in #( |
| 10796 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10797 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10798 | ;; #( |
| 10799 | no) |
| 10800 | ;; #( |
| 10801 | universal) |
| 10802 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10803 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10804 | |
| 10805 | ;; #( |
| 10806 | *) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10807 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10808 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10809 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10810 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10811 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 10812 | ASM_TYPES_HEADER=./asm_types.h |
| 10813 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10814 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10815 | > public_config.h |
| 10816 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10817 | uniq tmp_config.$$ >> public_config.h |
| 10818 | else |
| 10819 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10820 | fi |
| 10821 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10822 | uniq tmp_config.$$ >> public_config.h |
| 10823 | else |
| 10824 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10825 | fi |
| 10826 | rm -f tmp_config.$$ |
| 10827 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10828 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10829 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10830 | do : |
| 10831 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10832 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10833 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10834 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10835 | _ACEOF |
| 10836 | |
| 10837 | fi |
| 10838 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10839 | done |
| 10840 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10841 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10842 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10843 | |
| 10844 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10845 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10846 | _ACEOF |
| 10847 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10848 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10849 | fi |
| 10850 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10852 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10853 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10854 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10855 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10857 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10858 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10859 | int |
| 10860 | main () |
| 10861 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10862 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10863 | ; |
| 10864 | return 0; |
| 10865 | } |
| 10866 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10867 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10868 | e2fsprogs_cv_struct_st_flags=yes |
| 10869 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10870 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10871 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10873 | fi |
| 10874 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10876 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10877 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10879 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10880 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10881 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10882 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10884 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10885 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10886 | int |
| 10887 | main () |
| 10888 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10889 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10890 | ; |
| 10891 | return 0; |
| 10892 | } |
| 10893 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10894 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10895 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10896 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10897 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10898 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10900 | fi |
| 10901 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10903 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10904 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10905 | |
| 10906 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10907 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10908 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10909 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10910 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10911 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10912 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10913 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10914 | |
| 10915 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10916 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10917 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10918 | |
| 10919 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10920 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10921 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10923 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10924 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10925 | $as_echo_n "(cached) " >&6 |
| 10926 | else |
| 10927 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10929 | /* end confdefs.h. */ |
| 10930 | |
| 10931 | /* Override any GCC internal prototype to avoid an error. |
| 10932 | Use char because int might match the return type of a GCC |
| 10933 | builtin and then its argument prototype would still apply. */ |
| 10934 | #ifdef __cplusplus |
| 10935 | extern "C" |
| 10936 | #endif |
| 10937 | char blkid_probe_all (); |
| 10938 | int |
| 10939 | main () |
| 10940 | { |
| 10941 | return blkid_probe_all (); |
| 10942 | ; |
| 10943 | return 0; |
| 10944 | } |
| 10945 | _ACEOF |
| 10946 | for ac_lib in '' blkid; do |
| 10947 | if test -z "$ac_lib"; then |
| 10948 | ac_res="none required" |
| 10949 | else |
| 10950 | ac_res=-l$ac_lib |
| 10951 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10952 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10953 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10954 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10955 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10956 | rm -f core conftest.err conftest.$ac_objext \ |
| 10957 | conftest$ac_exeext |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10958 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10959 | break |
| 10960 | fi |
| 10961 | done |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10962 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10963 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10964 | else |
| 10965 | ac_cv_search_blkid_probe_all=no |
| 10966 | fi |
| 10967 | rm conftest.$ac_ext |
| 10968 | LIBS=$ac_func_search_save_LIBS |
| 10969 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10971 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 10972 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10973 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10974 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10975 | |
| 10976 | fi |
| 10977 | |
| 10978 | fi |
Theodore Ts'o | 3b802e4 | 2012-05-28 10:38:06 -0400 | [diff] [blame] | 10979 | for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10980 | do : |
| 10981 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10982 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10983 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10984 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10985 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10986 | _ACEOF |
| 10987 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10988 | fi |
| 10989 | done |
| 10990 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10991 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10993 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 10994 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10995 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10996 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10997 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10998 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11000 | /* end confdefs.h. */ |
| 11001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11002 | /* Override any GCC internal prototype to avoid an error. |
| 11003 | Use char because int might match the return type of a GCC |
| 11004 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11005 | #ifdef __cplusplus |
| 11006 | extern "C" |
| 11007 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11008 | char socket (); |
| 11009 | int |
| 11010 | main () |
| 11011 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11012 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11013 | ; |
| 11014 | return 0; |
| 11015 | } |
| 11016 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11017 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11018 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11019 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11020 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11021 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11022 | rm -f core conftest.err conftest.$ac_objext \ |
| 11023 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11024 | LIBS=$ac_check_lib_save_LIBS |
| 11025 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11027 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11028 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11029 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11030 | fi |
| 11031 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11032 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11034 | $as_echo_n "checking for optreset... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11035 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11036 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11037 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11039 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11040 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11041 | |
| 11042 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11044 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11045 | ac_cv_have_optreset=yes |
| 11046 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11047 | ac_cv_have_optreset=no |
| 11048 | fi |
| 11049 | rm -f conftest* |
| 11050 | |
| 11051 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11053 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11054 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11055 | |
| 11056 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11057 | |
| 11058 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11059 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11060 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11061 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11062 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11063 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11064 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11066 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11067 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11068 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11069 | else |
| 11070 | ac_check_lib_save_LIBS=$LIBS |
| 11071 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11073 | /* end confdefs.h. */ |
| 11074 | |
| 11075 | /* Override any GCC internal prototype to avoid an error. |
| 11076 | Use char because int might match the return type of a GCC |
| 11077 | builtin and then its argument prototype would still apply. */ |
| 11078 | #ifdef __cplusplus |
| 11079 | extern "C" |
| 11080 | #endif |
| 11081 | char sem_init (); |
| 11082 | int |
| 11083 | main () |
| 11084 | { |
| 11085 | return sem_init (); |
| 11086 | ; |
| 11087 | return 0; |
| 11088 | } |
| 11089 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11090 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11091 | ac_cv_lib_pthread_sem_init=yes |
| 11092 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11093 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11094 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11095 | rm -f core conftest.err conftest.$ac_objext \ |
| 11096 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11097 | LIBS=$ac_check_lib_save_LIBS |
| 11098 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11100 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11101 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11102 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11103 | |
| 11104 | SEM_INIT_LIB=-lpthread |
| 11105 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11107 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11108 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11109 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11110 | else |
| 11111 | ac_check_lib_save_LIBS=$LIBS |
| 11112 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11114 | /* end confdefs.h. */ |
| 11115 | |
| 11116 | /* Override any GCC internal prototype to avoid an error. |
| 11117 | Use char because int might match the return type of a GCC |
| 11118 | builtin and then its argument prototype would still apply. */ |
| 11119 | #ifdef __cplusplus |
| 11120 | extern "C" |
| 11121 | #endif |
| 11122 | char sem_init (); |
| 11123 | int |
| 11124 | main () |
| 11125 | { |
| 11126 | return sem_init (); |
| 11127 | ; |
| 11128 | return 0; |
| 11129 | } |
| 11130 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11131 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11132 | ac_cv_lib_rt_sem_init=yes |
| 11133 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11134 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11135 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11136 | rm -f core conftest.err conftest.$ac_objext \ |
| 11137 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11138 | LIBS=$ac_check_lib_save_LIBS |
| 11139 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11141 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11142 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11143 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11144 | |
| 11145 | SEM_INIT_LIB=-lrt |
| 11146 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11148 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11149 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11150 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11151 | else |
| 11152 | ac_check_lib_save_LIBS=$LIBS |
| 11153 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11155 | /* end confdefs.h. */ |
| 11156 | |
| 11157 | /* Override any GCC internal prototype to avoid an error. |
| 11158 | Use char because int might match the return type of a GCC |
| 11159 | builtin and then its argument prototype would still apply. */ |
| 11160 | #ifdef __cplusplus |
| 11161 | extern "C" |
| 11162 | #endif |
| 11163 | char sem_init (); |
| 11164 | int |
| 11165 | main () |
| 11166 | { |
| 11167 | return sem_init (); |
| 11168 | ; |
| 11169 | return 0; |
| 11170 | } |
| 11171 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11172 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11173 | ac_cv_lib_posix4_sem_init=yes |
| 11174 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11175 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11176 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11177 | rm -f core conftest.err conftest.$ac_objext \ |
| 11178 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11179 | LIBS=$ac_check_lib_save_LIBS |
| 11180 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11182 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11183 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11184 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11185 | |
| 11186 | SEM_INIT_LIB=-lposix4 |
| 11187 | fi |
| 11188 | |
| 11189 | fi |
| 11190 | |
| 11191 | fi |
| 11192 | |
| 11193 | fi |
| 11194 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11196 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 11197 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11198 | UNI_DIFF_OPTS=-u |
| 11199 | else |
| 11200 | UNI_DIFF_OPTS=-c |
| 11201 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11203 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11204 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11205 | case "$host_os" in |
| 11206 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11207 | |
| 11208 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11209 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11210 | ;; |
| 11211 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11212 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11213 | CYGWIN_CMT="#" |
| 11214 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11215 | case "$host_os" in |
| 11216 | linux*) |
| 11217 | LINUX_CMT= |
| 11218 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11219 | cygwin) |
| 11220 | CYGWIN_CMT= |
| 11221 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11222 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11223 | esac |
| 11224 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11225 | |
| 11226 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11227 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11228 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11229 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 11230 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11232 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11233 | fi |
| 11234 | ;; |
| 11235 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11236 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11237 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11238 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11239 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11241 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11242 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11244 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11245 | mandir=/usr/share/man |
| 11246 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11247 | fi |
| 11248 | ;; |
| 11249 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11250 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 11251 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11252 | root_prefix="$ac_default_prefix" |
| 11253 | else |
| 11254 | root_prefix="$prefix" |
| 11255 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 11256 | root_bindir=$bindir |
| 11257 | root_sbindir=$sbindir |
| 11258 | root_libdir=$libdir |
| 11259 | root_sysconfdir=$sysconfdir |
| 11260 | else |
| 11261 | root_bindir='${root_prefix}/bin' |
| 11262 | root_sbindir='${root_prefix}/sbin' |
| 11263 | root_libdir='${root_prefix}/lib' |
| 11264 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11265 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11266 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 11267 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11269 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11270 | fi |
| 11271 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 11272 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11274 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11275 | fi |
| 11276 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 11277 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11279 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11280 | fi |
| 11281 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11282 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11284 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11285 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11286 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11287 | |
| 11288 | |
| 11289 | |
| 11290 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 11291 | |
| 11292 | # Check whether --with-multiarch was given. |
| 11293 | if test "${with_multiarch+set}" = set; then : |
| 11294 | withval=$with_multiarch; libdir=$libdir/$withval |
| 11295 | root_libdir=$root_libdir/$withval |
| 11296 | |
| 11297 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11299 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11300 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11301 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11302 | else |
| 11303 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11305 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11306 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11307 | int |
| 11308 | main () |
| 11309 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11310 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11311 | ; |
| 11312 | return 0; |
| 11313 | } |
| 11314 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11315 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11316 | ac_cv_e2fsprogs_use_static=yes |
| 11317 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11318 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11319 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11320 | rm -f core conftest.err conftest.$ac_objext \ |
| 11321 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11322 | LDFLAGS=$SAVE_LDFLAGS |
| 11323 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11324 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11325 | case "$host_os" in |
| 11326 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11327 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11328 | ;; |
| 11329 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11331 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11332 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11333 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11334 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11335 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11336 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11337 | case "$host_os" in |
| 11338 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11340 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11341 | |
| 11342 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11343 | |
| 11344 | ;; |
| 11345 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11346 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11347 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11348 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11349 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11350 | if test "$cross_compiling" = yes ; then |
| 11351 | DO_TEST_SUITE= |
| 11352 | else |
| 11353 | DO_TEST_SUITE=check |
| 11354 | fi |
| 11355 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11356 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 11357 | if test -n "$CPPFLAGS" ; then |
| 11358 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 11359 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11360 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11361 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11362 | fi |
| 11363 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11364 | if test $cross_compiling = no; then |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 11365 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11366 | BUILD_LDFLAGS="$LDFLAGS" |
| 11367 | else |
| 11368 | BUILD_CFLAGS= |
| 11369 | BUILD_LDFLAGS= |
| 11370 | fi |
| 11371 | |
| 11372 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11373 | test -d lib || mkdir lib |
| 11374 | test -d include || mkdir include |
| 11375 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11376 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11377 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 11378 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11379 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11380 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11381 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 11382 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11383 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11384 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 11385 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11386 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11387 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11388 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11389 | if test -d `dirname ${srcdir}/$i` ; then |
| 11390 | outlist="$outlist $i" |
| 11391 | fi |
| 11392 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11393 | ac_config_files="$ac_config_files $outlist" |
| 11394 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11395 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11396 | # This file is a shell script that caches the results of configure |
| 11397 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11398 | # scripts and configure runs, see configure's option --config-cache. |
| 11399 | # It is not useful on other systems. If it contains results you don't |
| 11400 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11401 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11402 | # config.status only pays attention to the cache file if you give it |
| 11403 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11404 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11405 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11406 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11407 | # following values. |
| 11408 | |
| 11409 | _ACEOF |
| 11410 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11411 | # The following way of writing the cache mishandles newlines in values, |
| 11412 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11413 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11414 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11415 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11416 | ( |
| 11417 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11418 | eval ac_val=\$$ac_var |
| 11419 | case $ac_val in #( |
| 11420 | *${as_nl}*) |
| 11421 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11422 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11423 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11424 | esac |
| 11425 | case $ac_var in #( |
| 11426 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11427 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11428 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11429 | esac ;; |
| 11430 | esac |
| 11431 | done |
| 11432 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11433 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11434 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11435 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11436 | # `set' does not quote correctly, so add quotes: double-quote |
| 11437 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11438 | sed -n \ |
| 11439 | "s/'/'\\\\''/g; |
| 11440 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11441 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11442 | *) |
| 11443 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11444 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11445 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11446 | esac | |
| 11447 | sort |
| 11448 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11449 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11450 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11451 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11452 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11453 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11454 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11455 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11456 | :end' >>confcache |
| 11457 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11458 | if test -w "$cache_file"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11459 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11461 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11462 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11463 | cat confcache >"$cache_file" |
| 11464 | else |
| 11465 | case $cache_file in #( |
| 11466 | */* | ?:*) |
| 11467 | mv -f confcache "$cache_file"$$ && |
| 11468 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11469 | *) |
| 11470 | mv -f confcache "$cache_file" ;; |
| 11471 | esac |
| 11472 | fi |
| 11473 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11474 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11476 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11477 | fi |
| 11478 | fi |
| 11479 | rm -f confcache |
| 11480 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11481 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11482 | # Let make expand exec_prefix. |
| 11483 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11484 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11485 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11487 | ac_libobjs= |
| 11488 | ac_ltlibobjs= |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11489 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11490 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11491 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11492 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11493 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11494 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11495 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11496 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11497 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11498 | done |
| 11499 | LIBOBJS=$ac_libobjs |
| 11500 | |
| 11501 | LTLIBOBJS=$ac_ltlibobjs |
| 11502 | |
| 11503 | |
| 11504 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11505 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11506 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11507 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11508 | ac_clean_files_save=$ac_clean_files |
| 11509 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11511 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11512 | as_write_fail=0 |
| 11513 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11514 | #! $SHELL |
| 11515 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11516 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11517 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11518 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11519 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11520 | debug=false |
| 11521 | ac_cs_recheck=false |
| 11522 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11523 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11524 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11525 | export SHELL |
| 11526 | _ASEOF |
| 11527 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11528 | ## -------------------- ## |
| 11529 | ## M4sh Initialization. ## |
| 11530 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11531 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11532 | # Be more Bourne compatible |
| 11533 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11534 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11535 | emulate sh |
| 11536 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11537 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11538 | # is contrary to our usage. Disable this feature. |
| 11539 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11540 | setopt NO_GLOB_SUBST |
| 11541 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11542 | case `(set -o) 2>/dev/null` in #( |
| 11543 | *posix*) : |
| 11544 | set -o posix ;; #( |
| 11545 | *) : |
| 11546 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11547 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11548 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11549 | |
| 11550 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11551 | as_nl=' |
| 11552 | ' |
| 11553 | export as_nl |
| 11554 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11555 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11556 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11557 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11558 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11559 | # but without wasting forks for bash or zsh. |
| 11560 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11561 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11562 | as_echo='print -r --' |
| 11563 | as_echo_n='print -rn --' |
| 11564 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11565 | as_echo='printf %s\n' |
| 11566 | as_echo_n='printf %s' |
| 11567 | else |
| 11568 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11569 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11570 | as_echo_n='/usr/ucb/echo -n' |
| 11571 | else |
| 11572 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11573 | as_echo_n_body='eval |
| 11574 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11575 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11576 | *"$as_nl"*) |
| 11577 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11578 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11579 | esac; |
| 11580 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11581 | ' |
| 11582 | export as_echo_n_body |
| 11583 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11584 | fi |
| 11585 | export as_echo_body |
| 11586 | as_echo='sh -c $as_echo_body as_echo' |
| 11587 | fi |
| 11588 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11589 | # The user is always right. |
| 11590 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11591 | PATH_SEPARATOR=: |
| 11592 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11593 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11594 | PATH_SEPARATOR=';' |
| 11595 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11596 | fi |
| 11597 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11598 | |
| 11599 | # IFS |
| 11600 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11601 | # there to prevent editors from complaining about space-tab. |
| 11602 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11603 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11604 | IFS=" "" $as_nl" |
| 11605 | |
| 11606 | # Find who we are. Look in the path if we contain no directory separator. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11607 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11608 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11609 | *[\\/]* ) as_myself=$0 ;; |
| 11610 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11611 | for as_dir in $PATH |
| 11612 | do |
| 11613 | IFS=$as_save_IFS |
| 11614 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11615 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11616 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11617 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11619 | ;; |
| 11620 | esac |
| 11621 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11622 | # in which case we are not to be found in the path. |
| 11623 | if test "x$as_myself" = x; then |
| 11624 | as_myself=$0 |
| 11625 | fi |
| 11626 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11627 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11628 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11629 | fi |
| 11630 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11631 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11632 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11633 | # suppresses any "Segmentation fault" message there. '((' could |
| 11634 | # trigger a bug in pdksh 5.2.14. |
| 11635 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11636 | do eval test x\${$as_var+set} = xset \ |
| 11637 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11638 | done |
| 11639 | PS1='$ ' |
| 11640 | PS2='> ' |
| 11641 | PS4='+ ' |
| 11642 | |
| 11643 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11644 | LC_ALL=C |
| 11645 | export LC_ALL |
| 11646 | LANGUAGE=C |
| 11647 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11648 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11649 | # CDPATH. |
| 11650 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11651 | |
| 11652 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11653 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11654 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11655 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11656 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11657 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11658 | as_fn_error () |
| 11659 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11660 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11661 | if test "$4"; then |
| 11662 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11663 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11664 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11665 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11666 | as_fn_exit $as_status |
| 11667 | } # as_fn_error |
| 11668 | |
| 11669 | |
| 11670 | # as_fn_set_status STATUS |
| 11671 | # ----------------------- |
| 11672 | # Set $? to STATUS, without forking. |
| 11673 | as_fn_set_status () |
| 11674 | { |
| 11675 | return $1 |
| 11676 | } # as_fn_set_status |
| 11677 | |
| 11678 | # as_fn_exit STATUS |
| 11679 | # ----------------- |
| 11680 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11681 | as_fn_exit () |
| 11682 | { |
| 11683 | set +e |
| 11684 | as_fn_set_status $1 |
| 11685 | exit $1 |
| 11686 | } # as_fn_exit |
| 11687 | |
| 11688 | # as_fn_unset VAR |
| 11689 | # --------------- |
| 11690 | # Portably unset VAR. |
| 11691 | as_fn_unset () |
| 11692 | { |
| 11693 | { eval $1=; unset $1;} |
| 11694 | } |
| 11695 | as_unset=as_fn_unset |
| 11696 | # as_fn_append VAR VALUE |
| 11697 | # ---------------------- |
| 11698 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11699 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11700 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11701 | # implementations. |
| 11702 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11703 | eval 'as_fn_append () |
| 11704 | { |
| 11705 | eval $1+=\$2 |
| 11706 | }' |
| 11707 | else |
| 11708 | as_fn_append () |
| 11709 | { |
| 11710 | eval $1=\$$1\$2 |
| 11711 | } |
| 11712 | fi # as_fn_append |
| 11713 | |
| 11714 | # as_fn_arith ARG... |
| 11715 | # ------------------ |
| 11716 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11717 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11718 | # must be portable across $(()) and expr. |
| 11719 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11720 | eval 'as_fn_arith () |
| 11721 | { |
| 11722 | as_val=$(( $* )) |
| 11723 | }' |
| 11724 | else |
| 11725 | as_fn_arith () |
| 11726 | { |
| 11727 | as_val=`expr "$@" || test $? -eq 1` |
| 11728 | } |
| 11729 | fi # as_fn_arith |
| 11730 | |
| 11731 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11732 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11733 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11734 | as_expr=expr |
| 11735 | else |
| 11736 | as_expr=false |
| 11737 | fi |
| 11738 | |
| 11739 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11740 | as_basename=basename |
| 11741 | else |
| 11742 | as_basename=false |
| 11743 | fi |
| 11744 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11745 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11746 | as_dirname=dirname |
| 11747 | else |
| 11748 | as_dirname=false |
| 11749 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11750 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11751 | as_me=`$as_basename -- "$0" || |
| 11752 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11753 | X"$0" : 'X\(//\)$' \| \ |
| 11754 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11755 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11756 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11757 | s//\1/ |
| 11758 | q |
| 11759 | } |
| 11760 | /^X\/\(\/\/\)$/{ |
| 11761 | s//\1/ |
| 11762 | q |
| 11763 | } |
| 11764 | /^X\/\(\/\).*/{ |
| 11765 | s//\1/ |
| 11766 | q |
| 11767 | } |
| 11768 | s/.*/./; q'` |
| 11769 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11770 | # Avoid depending upon Character Ranges. |
| 11771 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11772 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11773 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11774 | as_cr_digits='0123456789' |
| 11775 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11776 | |
| 11777 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11778 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11779 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11780 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11781 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11782 | xy) ECHO_C='\c';; |
| 11783 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11784 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11785 | esac;; |
| 11786 | *) |
| 11787 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11788 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11789 | |
| 11790 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11791 | if test -d conf$$.dir; then |
| 11792 | rm -f conf$$.dir/conf$$.file |
| 11793 | else |
| 11794 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11795 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11796 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11797 | if (echo >conf$$.file) 2>/dev/null; then |
| 11798 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11799 | as_ln_s='ln -s' |
| 11800 | # ... but there are two gotchas: |
| 11801 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11802 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11803 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11804 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11805 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11806 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11807 | as_ln_s=ln |
| 11808 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11809 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11810 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11811 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11812 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11813 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11814 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11815 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11816 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11817 | |
| 11818 | # as_fn_mkdir_p |
| 11819 | # ------------- |
| 11820 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11821 | as_fn_mkdir_p () |
| 11822 | { |
| 11823 | |
| 11824 | case $as_dir in #( |
| 11825 | -*) as_dir=./$as_dir;; |
| 11826 | esac |
| 11827 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11828 | as_dirs= |
| 11829 | while :; do |
| 11830 | case $as_dir in #( |
| 11831 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11832 | *) as_qdir=$as_dir;; |
| 11833 | esac |
| 11834 | as_dirs="'$as_qdir' $as_dirs" |
| 11835 | as_dir=`$as_dirname -- "$as_dir" || |
| 11836 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11837 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11838 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11839 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11840 | $as_echo X"$as_dir" | |
| 11841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11842 | s//\1/ |
| 11843 | q |
| 11844 | } |
| 11845 | /^X\(\/\/\)[^/].*/{ |
| 11846 | s//\1/ |
| 11847 | q |
| 11848 | } |
| 11849 | /^X\(\/\/\)$/{ |
| 11850 | s//\1/ |
| 11851 | q |
| 11852 | } |
| 11853 | /^X\(\/\).*/{ |
| 11854 | s//\1/ |
| 11855 | q |
| 11856 | } |
| 11857 | s/.*/./; q'` |
| 11858 | test -d "$as_dir" && break |
| 11859 | done |
| 11860 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11861 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11862 | |
| 11863 | |
| 11864 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11865 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11866 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11867 | else |
| 11868 | test -d ./-p && rmdir ./-p |
| 11869 | as_mkdir_p=false |
| 11870 | fi |
| 11871 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11872 | |
| 11873 | # as_fn_executable_p FILE |
| 11874 | # ----------------------- |
| 11875 | # Test if FILE is an executable regular file. |
| 11876 | as_fn_executable_p () |
| 11877 | { |
| 11878 | test -f "$1" && test -x "$1" |
| 11879 | } # as_fn_executable_p |
| 11880 | as_test_x='test -x' |
| 11881 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11882 | |
| 11883 | # Sed expression to map a string onto a valid CPP name. |
| 11884 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11885 | |
| 11886 | # Sed expression to map a string onto a valid variable name. |
| 11887 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11888 | |
| 11889 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11890 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11891 | ## ----------------------------------- ## |
| 11892 | ## Main body of $CONFIG_STATUS script. ## |
| 11893 | ## ----------------------------------- ## |
| 11894 | _ASEOF |
| 11895 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11896 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11897 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11898 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11899 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11900 | # values after options handling. |
| 11901 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11902 | This file was extended by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11903 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11904 | |
| 11905 | CONFIG_FILES = $CONFIG_FILES |
| 11906 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11907 | CONFIG_LINKS = $CONFIG_LINKS |
| 11908 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11909 | $ $0 $@ |
| 11910 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11911 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11912 | " |
| 11913 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11914 | _ACEOF |
| 11915 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11916 | case $ac_config_files in *" |
| 11917 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11918 | esac |
| 11919 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11920 | case $ac_config_headers in *" |
| 11921 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 11922 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11923 | |
| 11924 | |
| 11925 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11926 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11927 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11928 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11929 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11930 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11931 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11932 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11934 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11935 | \`$as_me' instantiates files and other configuration actions |
| 11936 | from templates according to the current configuration. Unless the files |
| 11937 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11938 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11939 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11940 | |
| 11941 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11942 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11943 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11944 | -q, --quiet, --silent |
| 11945 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11946 | -d, --debug don't remove temporary files |
| 11947 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11948 | --file=FILE[:TEMPLATE] |
| 11949 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11950 | --header=FILE[:TEMPLATE] |
| 11951 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11952 | |
| 11953 | Configuration files: |
| 11954 | $config_files |
| 11955 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11956 | Configuration headers: |
| 11957 | $config_headers |
| 11958 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11959 | Configuration commands: |
| 11960 | $config_commands |
| 11961 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11962 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11964 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11965 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11966 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11967 | ac_cs_version="\\ |
| 11968 | config.status |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11969 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11970 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11971 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11972 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11973 | This config.status script is free software; the Free Software Foundation |
| 11974 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11975 | |
| 11976 | ac_pwd='$ac_pwd' |
| 11977 | srcdir='$srcdir' |
| 11978 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11979 | AWK='$AWK' |
| 11980 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11981 | _ACEOF |
| 11982 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11984 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11985 | ac_need_defaults=: |
| 11986 | while test $# != 0 |
| 11987 | do |
| 11988 | case $1 in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11989 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11990 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11991 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11992 | ac_shift=: |
| 11993 | ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 11994 | --*=) |
| 11995 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11996 | ac_optarg= |
| 11997 | ac_shift=: |
| 11998 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11999 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12000 | ac_option=$1 |
| 12001 | ac_optarg=$2 |
| 12002 | ac_shift=shift |
| 12003 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12004 | esac |
| 12005 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12006 | case $ac_option in |
| 12007 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12008 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12009 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12010 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12011 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12012 | --config | --confi | --conf | --con | --co | --c ) |
| 12013 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12014 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12015 | debug=: ;; |
| 12016 | --file | --fil | --fi | --f ) |
| 12017 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12018 | case $ac_optarg in |
| 12019 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12020 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12021 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12022 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12024 | --header | --heade | --head | --hea ) |
| 12025 | $ac_shift |
| 12026 | case $ac_optarg in |
| 12027 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12028 | esac |
| 12029 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 12030 | ac_need_defaults=false;; |
| 12031 | --he | --h) |
| 12032 | # Conflict between --help and --header |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12033 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12034 | Try \`$0 --help' for more information.";; |
| 12035 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12036 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12037 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12038 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12039 | ac_cs_silent=: ;; |
| 12040 | |
| 12041 | # This is an error. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12042 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12043 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12044 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12045 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12046 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12047 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12048 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12049 | shift |
| 12050 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12051 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12052 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12053 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12054 | if $ac_cs_silent; then |
| 12055 | exec 6>/dev/null |
| 12056 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12057 | fi |
| 12058 | |
| 12059 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12061 | if \$ac_cs_recheck; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12062 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12063 | shift |
| 12064 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12065 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12066 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12067 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12068 | fi |
| 12069 | |
| 12070 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12071 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12072 | exec 5>>config.log |
| 12073 | { |
| 12074 | echo |
| 12075 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12076 | ## Running $as_me. ## |
| 12077 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12078 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12079 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12080 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12081 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12082 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12083 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12084 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12085 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12086 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12087 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12088 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12089 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12090 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12091 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12092 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12093 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12094 | _ACEOF |
| 12095 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12097 | |
| 12098 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12099 | for ac_config_target in $ac_config_targets |
| 12100 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12101 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12102 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12103 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12104 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 12105 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12106 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12107 | esac |
| 12108 | done |
| 12109 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12110 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12111 | # If the user did not use the arguments to specify the items to instantiate, |
| 12112 | # then the envvar interface is used. Set only those that are not. |
| 12113 | # We use the long form for the default assignment because of an extremely |
| 12114 | # bizarre bug on SunOS 4.1.3. |
| 12115 | if $ac_need_defaults; then |
| 12116 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12117 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12118 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12119 | fi |
| 12120 | |
| 12121 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12122 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12123 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12124 | # Hook for its removal unless debugging. |
| 12125 | # Note that there is a small window in which the directory will not be cleaned: |
| 12126 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12127 | $debug || |
| 12128 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12129 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12130 | trap 'exit_status=$? |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12131 | : "${ac_tmp:=$tmp}" |
| 12132 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12133 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12134 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12135 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12136 | # Create a (secure) tmp directory for tmp files. |
| 12137 | |
| 12138 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12139 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12140 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12141 | } || |
| 12142 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12143 | tmp=./conf$$-$RANDOM |
| 12144 | (umask 077 && mkdir "$tmp") |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12145 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12146 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12147 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12148 | # Set up the scripts for CONFIG_FILES section. |
| 12149 | # No need to generate them if there are no CONFIG_FILES. |
| 12150 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12151 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12152 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12153 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 12154 | ac_cs_awk_getline=: |
| 12155 | ac_cs_awk_pipe_init= |
| 12156 | ac_cs_awk_read_file=' |
| 12157 | while ((getline aline < (F[key])) > 0) |
| 12158 | print(aline) |
| 12159 | close(F[key])' |
| 12160 | ac_cs_awk_pipe_fini= |
| 12161 | else |
| 12162 | ac_cs_awk_getline=false |
| 12163 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 12164 | ac_cs_awk_read_file=' |
| 12165 | print "|#_!!_#|" |
| 12166 | print "cat " F[key] " &&" |
| 12167 | '$ac_cs_awk_pipe_init |
| 12168 | # The final `:' finishes the AND list. |
| 12169 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 12170 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12171 | ac_cr=`echo X | tr X '\015'` |
| 12172 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12173 | # But we know of no other shell where ac_cr would be empty at this |
| 12174 | # point, so we can use a bashism as a fallback. |
| 12175 | if test "x$ac_cr" = x; then |
| 12176 | eval ac_cr=\$\'\\r\' |
| 12177 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12178 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12179 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12180 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12181 | else |
| 12182 | ac_cs_awk_cr=$ac_cr |
| 12183 | fi |
| 12184 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12185 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12186 | _ACEOF |
| 12187 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12188 | # Create commands to substitute file output variables. |
| 12189 | { |
| 12190 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12191 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12192 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 12193 | echo "_ACAWK" && |
| 12194 | echo "_ACEOF" |
| 12195 | } >conf$$files.sh && |
| 12196 | . ./conf$$files.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12197 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12198 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12199 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12200 | { |
| 12201 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12202 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12203 | echo "_ACEOF" |
| 12204 | } >conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12205 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12206 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12207 | ac_delim='%!_!# ' |
| 12208 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12209 | . ./conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12210 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12211 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12212 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12213 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12214 | break |
| 12215 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12216 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12217 | else |
| 12218 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12219 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12220 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12221 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12222 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12224 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12225 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12226 | sed -n ' |
| 12227 | h |
| 12228 | s/^/S["/; s/!.*/"]=/ |
| 12229 | p |
| 12230 | g |
| 12231 | s/^[^!]*!// |
| 12232 | :repl |
| 12233 | t repl |
| 12234 | s/'"$ac_delim"'$// |
| 12235 | t delim |
| 12236 | :nl |
| 12237 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12238 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12239 | t more1 |
| 12240 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12241 | p |
| 12242 | n |
| 12243 | b repl |
| 12244 | :more1 |
| 12245 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12246 | p |
| 12247 | g |
| 12248 | s/.\{148\}// |
| 12249 | t nl |
| 12250 | :delim |
| 12251 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12252 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12253 | t more2 |
| 12254 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12255 | p |
| 12256 | b |
| 12257 | :more2 |
| 12258 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12259 | p |
| 12260 | g |
| 12261 | s/.\{148\}// |
| 12262 | t delim |
| 12263 | ' <conf$$subs.awk | sed ' |
| 12264 | /^[^""]/{ |
| 12265 | N |
| 12266 | s/\n// |
| 12267 | } |
| 12268 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12269 | rm -f conf$$subs.awk |
| 12270 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12271 | _ACAWK |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12272 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12273 | for (key in S) S_is_set[key] = 1 |
| 12274 | FS = "" |
| 12275 | \$ac_cs_awk_pipe_init |
| 12276 | } |
| 12277 | { |
| 12278 | line = $ 0 |
| 12279 | nfields = split(line, field, "@") |
| 12280 | substed = 0 |
| 12281 | len = length(field[1]) |
| 12282 | for (i = 2; i < nfields; i++) { |
| 12283 | key = field[i] |
| 12284 | keylen = length(key) |
| 12285 | if (S_is_set[key]) { |
| 12286 | value = S[key] |
| 12287 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12288 | len += length(value) + length(field[++i]) |
| 12289 | substed = 1 |
| 12290 | } else |
| 12291 | len += 1 + keylen |
| 12292 | } |
| 12293 | if (nfields == 3 && !substed) { |
| 12294 | key = field[2] |
| 12295 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12296 | \$ac_cs_awk_read_file |
| 12297 | next |
| 12298 | } |
| 12299 | } |
| 12300 | print line |
| 12301 | } |
| 12302 | \$ac_cs_awk_pipe_fini |
| 12303 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12304 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12306 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12307 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12308 | else |
| 12309 | cat |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12310 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12311 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12312 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12313 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12314 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12315 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12316 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12317 | # (actually we leave an empty line to preserve line numbers). |
| 12318 | if test "x$srcdir" = x.; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12319 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12320 | h |
| 12321 | s/// |
| 12322 | s/^/:/ |
| 12323 | s/[ ]*$/:/ |
| 12324 | s/:\$(srcdir):/:/g |
| 12325 | s/:\${srcdir}:/:/g |
| 12326 | s/:@srcdir@:/:/g |
| 12327 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12328 | s/:*$// |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12329 | x |
| 12330 | s/\(=[ ]*\).*/\1/ |
| 12331 | G |
| 12332 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12333 | s/^[^=]*=[ ]*$// |
| 12334 | }' |
| 12335 | fi |
| 12336 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12337 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12338 | fi # test -n "$CONFIG_FILES" |
| 12339 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12340 | # Set up the scripts for CONFIG_HEADERS section. |
| 12341 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12342 | # This happens for instance with `./config.status Makefile'. |
| 12343 | if test -n "$CONFIG_HEADERS"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12344 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12345 | BEGIN { |
| 12346 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12347 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12348 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12349 | # here-document in config.status, that substitutes the proper values into |
| 12350 | # config.h.in to produce config.h. |
| 12351 | |
| 12352 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12353 | # handling of long lines. |
| 12354 | ac_delim='%!_!# ' |
| 12355 | for ac_last_try in false false :; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12356 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 12357 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12358 | break |
| 12359 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12360 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12361 | else |
| 12362 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12363 | fi |
| 12364 | done |
| 12365 | |
| 12366 | # For the awk script, D is an array of macro values keyed by name, |
| 12367 | # likewise P contains macro parameters if any. Preserve backslash |
| 12368 | # newline sequences. |
| 12369 | |
| 12370 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12371 | sed -n ' |
| 12372 | s/.\{148\}/&'"$ac_delim"'/g |
| 12373 | t rset |
| 12374 | :rset |
| 12375 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12376 | t def |
| 12377 | d |
| 12378 | :def |
| 12379 | s/\\$// |
| 12380 | t bsnl |
| 12381 | s/["\\]/\\&/g |
| 12382 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12383 | D["\1"]=" \3"/p |
| 12384 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12385 | d |
| 12386 | :bsnl |
| 12387 | s/["\\]/\\&/g |
| 12388 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12389 | D["\1"]=" \3\\\\\\n"\\/p |
| 12390 | t cont |
| 12391 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12392 | t cont |
| 12393 | d |
| 12394 | :cont |
| 12395 | n |
| 12396 | s/.\{148\}/&'"$ac_delim"'/g |
| 12397 | t clear |
| 12398 | :clear |
| 12399 | s/\\$// |
| 12400 | t bsnlc |
| 12401 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12402 | d |
| 12403 | :bsnlc |
| 12404 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12405 | b cont |
| 12406 | ' <confdefs.h | sed ' |
| 12407 | s/'"$ac_delim"'/"\\\ |
| 12408 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12409 | |
| 12410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12411 | for (key in D) D_is_set[key] = 1 |
| 12412 | FS = "" |
| 12413 | } |
| 12414 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12415 | line = \$ 0 |
| 12416 | split(line, arg, " ") |
| 12417 | if (arg[1] == "#") { |
| 12418 | defundef = arg[2] |
| 12419 | mac1 = arg[3] |
| 12420 | } else { |
| 12421 | defundef = substr(arg[1], 2) |
| 12422 | mac1 = arg[2] |
| 12423 | } |
| 12424 | split(mac1, mac2, "(") #) |
| 12425 | macro = mac2[1] |
| 12426 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 12427 | if (D_is_set[macro]) { |
| 12428 | # Preserve the white space surrounding the "#". |
| 12429 | print prefix "define", macro P[macro] D[macro] |
| 12430 | next |
| 12431 | } else { |
| 12432 | # Replace #undef with comments. This is necessary, for example, |
| 12433 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12434 | # on some systems where configure will not decide to define it. |
| 12435 | if (defundef == "undef") { |
| 12436 | print "/*", prefix defundef, macro, "*/" |
| 12437 | next |
| 12438 | } |
| 12439 | } |
| 12440 | } |
| 12441 | { print } |
| 12442 | _ACAWK |
| 12443 | _ACEOF |
| 12444 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12445 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12446 | fi # test -n "$CONFIG_HEADERS" |
| 12447 | |
| 12448 | |
| 12449 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12450 | shift |
| 12451 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12452 | do |
| 12453 | case $ac_tag in |
| 12454 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12455 | esac |
| 12456 | case $ac_mode$ac_tag in |
| 12457 | :[FHL]*:*);; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12458 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12459 | :[FH]-) ac_tag=-:-;; |
| 12460 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12461 | esac |
| 12462 | ac_save_IFS=$IFS |
| 12463 | IFS=: |
| 12464 | set x $ac_tag |
| 12465 | IFS=$ac_save_IFS |
| 12466 | shift |
| 12467 | ac_file=$1 |
| 12468 | shift |
| 12469 | |
| 12470 | case $ac_mode in |
| 12471 | :L) ac_source=$1;; |
| 12472 | :[FH]) |
| 12473 | ac_file_inputs= |
| 12474 | for ac_f |
| 12475 | do |
| 12476 | case $ac_f in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12477 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12478 | *) # Look for the file first in the build tree, then in the source tree |
| 12479 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12480 | # because $ac_f cannot contain `:'. |
| 12481 | test -f "$ac_f" || |
| 12482 | case $ac_f in |
| 12483 | [\\/$]*) false;; |
| 12484 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12485 | esac || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12486 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12487 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12488 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12489 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12490 | done |
| 12491 | |
| 12492 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12493 | # use $as_me), people would be surprised to read: |
| 12494 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12495 | configure_input='Generated from '` |
| 12496 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12497 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12498 | if test x"$ac_file" != x-; then |
| 12499 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12501 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12502 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12503 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12504 | case $configure_input in #( |
| 12505 | *\&* | *\|* | *\\* ) |
| 12506 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12507 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12508 | *) ac_sed_conf_input=$configure_input;; |
| 12509 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12510 | |
| 12511 | case $ac_tag in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12512 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 12513 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12514 | esac |
| 12515 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12516 | esac |
| 12517 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12518 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12519 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12520 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12521 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12522 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12523 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12524 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12525 | s//\1/ |
| 12526 | q |
| 12527 | } |
| 12528 | /^X\(\/\/\)[^/].*/{ |
| 12529 | s//\1/ |
| 12530 | q |
| 12531 | } |
| 12532 | /^X\(\/\/\)$/{ |
| 12533 | s//\1/ |
| 12534 | q |
| 12535 | } |
| 12536 | /^X\(\/\).*/{ |
| 12537 | s//\1/ |
| 12538 | q |
| 12539 | } |
| 12540 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12541 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12542 | ac_builddir=. |
| 12543 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12544 | case "$ac_dir" in |
| 12545 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12546 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12547 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12548 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12549 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12550 | case $ac_top_builddir_sub in |
| 12551 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12552 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12553 | esac ;; |
| 12554 | esac |
| 12555 | ac_abs_top_builddir=$ac_pwd |
| 12556 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12557 | # for backward compatibility: |
| 12558 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12559 | |
| 12560 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12561 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12562 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12563 | ac_top_srcdir=$ac_top_builddir_sub |
| 12564 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12565 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12566 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12567 | ac_top_srcdir=$srcdir |
| 12568 | ac_abs_top_srcdir=$srcdir ;; |
| 12569 | *) # Relative name. |
| 12570 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12571 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12572 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12573 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12574 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12575 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12576 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12577 | case $ac_mode in |
| 12578 | :F) |
| 12579 | # |
| 12580 | # CONFIG_FILE |
| 12581 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12582 | |
| 12583 | case $INSTALL in |
| 12584 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12585 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12586 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12587 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12588 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12589 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12590 | # If the template does not know about datarootdir, expand it. |
| 12591 | # FIXME: This hack should be removed a few years after 2.60. |
| 12592 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12593 | ac_sed_dataroot=' |
| 12594 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12595 | p |
| 12596 | q |
| 12597 | } |
| 12598 | /@datadir@/p |
| 12599 | /@docdir@/p |
| 12600 | /@infodir@/p |
| 12601 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12602 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12603 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12604 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12605 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12607 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12608 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12609 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12610 | ac_datarootdir_hack=' |
| 12611 | s&@datadir@&$datadir&g |
| 12612 | s&@docdir@&$docdir&g |
| 12613 | s&@infodir@&$infodir&g |
| 12614 | s&@localedir@&$localedir&g |
| 12615 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12616 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12617 | esac |
| 12618 | _ACEOF |
| 12619 | |
| 12620 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12621 | # Shell code in configure.ac might set extrasub. |
| 12622 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12623 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12624 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12625 | $extrasub |
| 12626 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12627 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12628 | :t |
| 12629 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12630 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12631 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12632 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12633 | s&@srcdir@&$ac_srcdir&;t t |
| 12634 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12635 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12636 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12637 | s&@builddir@&$ac_builddir&;t t |
| 12638 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12639 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12640 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12641 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12642 | " |
| 12643 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12644 | if $ac_cs_awk_getline; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12645 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12646 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12647 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 12648 | fi \ |
| 12649 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12651 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12652 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 12653 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 12654 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12656 | which seems to be undefined. Please make sure it is defined" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12657 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12658 | which seems to be undefined. Please make sure it is defined" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12659 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12660 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12661 | case $ac_file in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12662 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 12663 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12664 | esac \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12665 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12666 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12667 | :H) |
| 12668 | # |
| 12669 | # CONFIG_HEADER |
| 12670 | # |
| 12671 | if test x"$ac_file" != x-; then |
| 12672 | { |
| 12673 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12674 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 12675 | } >"$ac_tmp/config.h" \ |
| 12676 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12677 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 12679 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 12680 | else |
| 12681 | rm -f "$ac_file" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12682 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 12683 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12684 | fi |
| 12685 | else |
| 12686 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12687 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 12688 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12689 | fi |
| 12690 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12691 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12692 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12693 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12694 | ;; |
| 12695 | esac |
| 12696 | |
| 12697 | |
| 12698 | case $ac_file$ac_mode in |
| 12699 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12700 | for ac_file in $CONFIG_FILES; do |
| 12701 | # Support "outfile[:infile[:infile...]]" |
| 12702 | case "$ac_file" in |
| 12703 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12704 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12705 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12706 | case "$ac_file" in */Makefile.in) |
| 12707 | # Adjust a relative srcdir. |
| 12708 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12709 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12710 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12711 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12712 | # In autoconf-2.50 it is called $srcdir. |
| 12713 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12714 | case "$ac_given_srcdir" in |
| 12715 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12716 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12717 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12718 | esac |
| 12719 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12720 | rm -f "$ac_dir/POTFILES" |
| 12721 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12722 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12723 | POMAKEFILEDEPS="POTFILES.in" |
| 12724 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12725 | # on $ac_dir but don't depend on user-specified configuration |
| 12726 | # parameters. |
| 12727 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12728 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12729 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12730 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12731 | fi |
| 12732 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12733 | # Hide the ALL_LINGUAS assigment from automake. |
| 12734 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12735 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12736 | else |
| 12737 | # The set of available languages was given in configure.in. |
| 12738 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12739 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12740 | # Compute POFILES |
| 12741 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12742 | # Compute UPDATEPOFILES |
| 12743 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12744 | # Compute DUMMYPOFILES |
| 12745 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12746 | # Compute GMOFILES |
| 12747 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12748 | case "$ac_given_srcdir" in |
| 12749 | .) srcdirpre= ;; |
| 12750 | *) srcdirpre='$(srcdir)/' ;; |
| 12751 | esac |
| 12752 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12753 | UPDATEPOFILES= |
| 12754 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12755 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12756 | for lang in $ALL_LINGUAS; do |
| 12757 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12758 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12759 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12760 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12761 | done |
| 12762 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12763 | # environment variable. |
| 12764 | INST_LINGUAS= |
| 12765 | if test -n "$ALL_LINGUAS"; then |
| 12766 | for presentlang in $ALL_LINGUAS; do |
| 12767 | useit=no |
| 12768 | if test "%UNSET%" != "$LINGUAS"; then |
| 12769 | desiredlanguages="$LINGUAS" |
| 12770 | else |
| 12771 | desiredlanguages="$ALL_LINGUAS" |
| 12772 | fi |
| 12773 | for desiredlang in $desiredlanguages; do |
| 12774 | # Use the presentlang catalog if desiredlang is |
| 12775 | # a. equal to presentlang, or |
| 12776 | # b. a variant of presentlang (because in this case, |
| 12777 | # presentlang can be used as a fallback for messages |
| 12778 | # which are not translated in the desiredlang catalog). |
| 12779 | case "$desiredlang" in |
| 12780 | "$presentlang"*) useit=yes;; |
| 12781 | esac |
| 12782 | done |
| 12783 | if test $useit = yes; then |
| 12784 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12785 | fi |
| 12786 | done |
| 12787 | fi |
| 12788 | CATALOGS= |
| 12789 | if test -n "$INST_LINGUAS"; then |
| 12790 | for lang in $INST_LINGUAS; do |
| 12791 | CATALOGS="$CATALOGS $lang.gmo" |
| 12792 | done |
| 12793 | fi |
| 12794 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12795 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12796 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12797 | if test -f "$f"; then |
| 12798 | case "$f" in |
| 12799 | *.orig | *.bak | *~) ;; |
| 12800 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12801 | esac |
| 12802 | fi |
| 12803 | done |
| 12804 | fi |
| 12805 | ;; |
| 12806 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12807 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12808 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12809 | esac |
| 12810 | done # for ac_tag |
| 12811 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12812 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12813 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12814 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12815 | ac_clean_files=$ac_clean_files_save |
| 12816 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12817 | test $ac_write_fail = 0 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12818 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12819 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12820 | |
| 12821 | # configure is writing to config.log, and then calls config.status. |
| 12822 | # config.status does its own redirection, appending to config.log. |
| 12823 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12824 | # by configure, so config.status won't be able to write to it; its |
| 12825 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12826 | # effectively closing config.log, so it can be properly (re)opened and |
| 12827 | # appended to by config.status. When coming back to configure, we |
| 12828 | # need to make the FD available again. |
| 12829 | if test "$no_create" != yes; then |
| 12830 | ac_cs_success=: |
| 12831 | ac_config_status_args= |
| 12832 | test "$silent" = yes && |
| 12833 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12834 | exec 5>/dev/null |
| 12835 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12836 | exec 5>>config.log |
| 12837 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12838 | # would make configure fail if this is the last instruction. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame^] | 12839 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12840 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12841 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12843 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12844 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12845 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12846 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |