Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for open_pdks 1.0. |
| 4 | # |
| 5 | # Report bugs to <github.com/RTimothyEdwards/open_pdks>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
| 201 | if (eval "$as_required") 2>/dev/null; then : |
| 202 | as_have_required=yes |
| 203 | else |
| 204 | as_have_required=no |
| 205 | fi |
| 206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 207 | |
| 208 | else |
| 209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 210 | as_found=false |
| 211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 212 | do |
| 213 | IFS=$as_save_IFS |
| 214 | test -z "$as_dir" && as_dir=. |
| 215 | as_found=: |
| 216 | case $as_dir in #( |
| 217 | /*) |
| 218 | for as_base in sh bash ksh sh5; do |
| 219 | # Try only shells that exist, to save several forks. |
| 220 | as_shell=$as_dir/$as_base |
| 221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 222 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 223 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 224 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 | break 2 |
| 226 | fi |
| 227 | fi |
| 228 | done;; |
| 229 | esac |
| 230 | as_found=false |
| 231 | done |
| 232 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 | fi; } |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | if test "x$CONFIG_SHELL" != x; then : |
| 240 | export CONFIG_SHELL |
| 241 | # We cannot yet assume a decent shell, so we have to provide a |
| 242 | # neutralization value for shells without unset; and this also |
| 243 | # works around shells that cannot unset nonexistent variables. |
| 244 | # Preserve -v and -x to the replacement shell. |
| 245 | BASH_ENV=/dev/null |
| 246 | ENV=/dev/null |
| 247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 248 | case $- in # (((( |
| 249 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 250 | *v* ) as_opts=-v ;; |
| 251 | *x* ) as_opts=-x ;; |
| 252 | * ) as_opts= ;; |
| 253 | esac |
| 254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 255 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 256 | # out after a failed `exec'. |
| 257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 258 | exit 255 |
| 259 | fi |
| 260 | |
| 261 | if test x$as_have_required = xno; then : |
| 262 | $as_echo "$0: This script requires a shell more modern than all" |
| 263 | $as_echo "$0: the shells that I found on your system." |
| 264 | if test x${ZSH_VERSION+set} = xset ; then |
| 265 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 267 | else |
| 268 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 269 | $0: github.com/RTimothyEdwards/open_pdks about your system, |
| 270 | $0: including any error possibly output before this |
| 271 | $0: message. Then install a modern shell, or manually run |
| 272 | $0: the script under such a shell if you do have one." |
| 273 | fi |
| 274 | exit 1 |
| 275 | fi |
| 276 | fi |
| 277 | fi |
| 278 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 279 | export SHELL |
| 280 | # Unset more variables known to interfere with behavior of common tools. |
| 281 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 282 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 283 | |
| 284 | ## --------------------- ## |
| 285 | ## M4sh Shell Functions. ## |
| 286 | ## --------------------- ## |
| 287 | # as_fn_unset VAR |
| 288 | # --------------- |
| 289 | # Portably unset VAR. |
| 290 | as_fn_unset () |
| 291 | { |
| 292 | { eval $1=; unset $1;} |
| 293 | } |
| 294 | as_unset=as_fn_unset |
| 295 | |
| 296 | # as_fn_set_status STATUS |
| 297 | # ----------------------- |
| 298 | # Set $? to STATUS, without forking. |
| 299 | as_fn_set_status () |
| 300 | { |
| 301 | return $1 |
| 302 | } # as_fn_set_status |
| 303 | |
| 304 | # as_fn_exit STATUS |
| 305 | # ----------------- |
| 306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 307 | as_fn_exit () |
| 308 | { |
| 309 | set +e |
| 310 | as_fn_set_status $1 |
| 311 | exit $1 |
| 312 | } # as_fn_exit |
| 313 | |
| 314 | # as_fn_mkdir_p |
| 315 | # ------------- |
| 316 | # Create "$as_dir" as a directory, including parents if necessary. |
| 317 | as_fn_mkdir_p () |
| 318 | { |
| 319 | |
| 320 | case $as_dir in #( |
| 321 | -*) as_dir=./$as_dir;; |
| 322 | esac |
| 323 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 324 | as_dirs= |
| 325 | while :; do |
| 326 | case $as_dir in #( |
| 327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 328 | *) as_qdir=$as_dir;; |
| 329 | esac |
| 330 | as_dirs="'$as_qdir' $as_dirs" |
| 331 | as_dir=`$as_dirname -- "$as_dir" || |
| 332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 333 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 334 | X"$as_dir" : 'X\(//\)$' \| \ |
| 335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 336 | $as_echo X"$as_dir" | |
| 337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 338 | s//\1/ |
| 339 | q |
| 340 | } |
| 341 | /^X\(\/\/\)[^/].*/{ |
| 342 | s//\1/ |
| 343 | q |
| 344 | } |
| 345 | /^X\(\/\/\)$/{ |
| 346 | s//\1/ |
| 347 | q |
| 348 | } |
| 349 | /^X\(\/\).*/{ |
| 350 | s//\1/ |
| 351 | q |
| 352 | } |
| 353 | s/.*/./; q'` |
| 354 | test -d "$as_dir" && break |
| 355 | done |
| 356 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 358 | |
| 359 | |
| 360 | } # as_fn_mkdir_p |
| 361 | |
| 362 | # as_fn_executable_p FILE |
| 363 | # ----------------------- |
| 364 | # Test if FILE is an executable regular file. |
| 365 | as_fn_executable_p () |
| 366 | { |
| 367 | test -f "$1" && test -x "$1" |
| 368 | } # as_fn_executable_p |
| 369 | # as_fn_append VAR VALUE |
| 370 | # ---------------------- |
| 371 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 372 | # advantage of any shell optimizations that allow amortized linear growth over |
| 373 | # repeated appends, instead of the typical quadratic growth present in naive |
| 374 | # implementations. |
| 375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 376 | eval 'as_fn_append () |
| 377 | { |
| 378 | eval $1+=\$2 |
| 379 | }' |
| 380 | else |
| 381 | as_fn_append () |
| 382 | { |
| 383 | eval $1=\$$1\$2 |
| 384 | } |
| 385 | fi # as_fn_append |
| 386 | |
| 387 | # as_fn_arith ARG... |
| 388 | # ------------------ |
| 389 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 391 | # must be portable across $(()) and expr. |
| 392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 393 | eval 'as_fn_arith () |
| 394 | { |
| 395 | as_val=$(( $* )) |
| 396 | }' |
| 397 | else |
| 398 | as_fn_arith () |
| 399 | { |
| 400 | as_val=`expr "$@" || test $? -eq 1` |
| 401 | } |
| 402 | fi # as_fn_arith |
| 403 | |
| 404 | |
| 405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 406 | # ---------------------------------------- |
| 407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 409 | # script with STATUS, using 1 if that was 0. |
| 410 | as_fn_error () |
| 411 | { |
| 412 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 413 | if test "$4"; then |
| 414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 416 | fi |
| 417 | $as_echo "$as_me: error: $2" >&2 |
| 418 | as_fn_exit $as_status |
| 419 | } # as_fn_error |
| 420 | |
| 421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 423 | as_expr=expr |
| 424 | else |
| 425 | as_expr=false |
| 426 | fi |
| 427 | |
| 428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 429 | as_basename=basename |
| 430 | else |
| 431 | as_basename=false |
| 432 | fi |
| 433 | |
| 434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 435 | as_dirname=dirname |
| 436 | else |
| 437 | as_dirname=false |
| 438 | fi |
| 439 | |
| 440 | as_me=`$as_basename -- "$0" || |
| 441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 442 | X"$0" : 'X\(//\)$' \| \ |
| 443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 444 | $as_echo X/"$0" | |
| 445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 446 | s//\1/ |
| 447 | q |
| 448 | } |
| 449 | /^X\/\(\/\/\)$/{ |
| 450 | s//\1/ |
| 451 | q |
| 452 | } |
| 453 | /^X\/\(\/\).*/{ |
| 454 | s//\1/ |
| 455 | q |
| 456 | } |
| 457 | s/.*/./; q'` |
| 458 | |
| 459 | # Avoid depending upon Character Ranges. |
| 460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 463 | as_cr_digits='0123456789' |
| 464 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 465 | |
| 466 | |
| 467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 472 | sed -n ' |
| 473 | p |
| 474 | /[$]LINENO/= |
| 475 | ' <$as_myself | |
| 476 | sed ' |
| 477 | s/[$]LINENO.*/&-/ |
| 478 | t lineno |
| 479 | b |
| 480 | :lineno |
| 481 | N |
| 482 | :loop |
| 483 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 484 | t loop |
| 485 | s/-\n.*// |
| 486 | ' >$as_me.lineno && |
| 487 | chmod +x "$as_me.lineno" || |
| 488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 489 | |
| 490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 491 | # already done that, so ensure we don't try to do so again and fall |
| 492 | # in an infinite loop. This has already happened in practice. |
| 493 | _as_can_reexec=no; export _as_can_reexec |
| 494 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 495 | # (the dirname of $[0] is not the place where we might find the |
| 496 | # original and so on. Autoconf is especially sensitive to this). |
| 497 | . "./$as_me.lineno" |
| 498 | # Exit status is that of the last command. |
| 499 | exit |
| 500 | } |
| 501 | |
| 502 | ECHO_C= ECHO_N= ECHO_T= |
| 503 | case `echo -n x` in #((((( |
| 504 | -n*) |
| 505 | case `echo 'xy\c'` in |
| 506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 507 | xy) ECHO_C='\c';; |
| 508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 509 | ECHO_T=' ';; |
| 510 | esac;; |
| 511 | *) |
| 512 | ECHO_N='-n';; |
| 513 | esac |
| 514 | |
| 515 | rm -f conf$$ conf$$.exe conf$$.file |
| 516 | if test -d conf$$.dir; then |
| 517 | rm -f conf$$.dir/conf$$.file |
| 518 | else |
| 519 | rm -f conf$$.dir |
| 520 | mkdir conf$$.dir 2>/dev/null |
| 521 | fi |
| 522 | if (echo >conf$$.file) 2>/dev/null; then |
| 523 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 524 | as_ln_s='ln -s' |
| 525 | # ... but there are two gotchas: |
| 526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 528 | # In both cases, we have to default to `cp -pR'. |
| 529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 530 | as_ln_s='cp -pR' |
| 531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 532 | as_ln_s=ln |
| 533 | else |
| 534 | as_ln_s='cp -pR' |
| 535 | fi |
| 536 | else |
| 537 | as_ln_s='cp -pR' |
| 538 | fi |
| 539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 540 | rmdir conf$$.dir 2>/dev/null |
| 541 | |
| 542 | if mkdir -p . 2>/dev/null; then |
| 543 | as_mkdir_p='mkdir -p "$as_dir"' |
| 544 | else |
| 545 | test -d ./-p && rmdir ./-p |
| 546 | as_mkdir_p=false |
| 547 | fi |
| 548 | |
| 549 | as_test_x='test -x' |
| 550 | as_executable_p=as_fn_executable_p |
| 551 | |
| 552 | # Sed expression to map a string onto a valid CPP name. |
| 553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 554 | |
| 555 | # Sed expression to map a string onto a valid variable name. |
| 556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 557 | |
| 558 | |
| 559 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 560 | exec 6>&1 |
| 561 | |
| 562 | # Name of the host. |
| 563 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 564 | # so uname gets run too. |
| 565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 566 | |
| 567 | # |
| 568 | # Initializations. |
| 569 | # |
| 570 | ac_default_prefix=/usr/local |
| 571 | ac_clean_files= |
| 572 | ac_config_libobj_dir=. |
| 573 | LIBOBJS= |
| 574 | cross_compiling=no |
| 575 | subdirs= |
| 576 | MFLAGS= |
| 577 | MAKEFLAGS= |
| 578 | |
| 579 | # Identity of this package. |
| 580 | PACKAGE_NAME='open_pdks' |
| 581 | PACKAGE_TARNAME='open_pdks' |
| 582 | PACKAGE_VERSION='1.0' |
| 583 | PACKAGE_STRING='open_pdks 1.0' |
| 584 | PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks' |
| 585 | PACKAGE_URL='' |
| 586 | |
| 587 | ac_subst_vars='LTLIBOBJS |
| 588 | LIBOBJS |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 589 | EF_STYLE |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 590 | MAGIC |
| 591 | pkgpyexecdir |
| 592 | pyexecdir |
| 593 | pkgpythondir |
| 594 | pythondir |
| 595 | PYTHON_PLATFORM |
| 596 | PYTHON_EXEC_PREFIX |
| 597 | PYTHON_PREFIX |
| 598 | PYTHON_VERSION |
| 599 | PYTHON |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 600 | SKY130_LINK_TARGETS |
| 601 | SKY130_DIST_PATH |
| 602 | SKY130_LOCAL_PATH |
| 603 | SKY130_SOURCE_PATH |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 604 | target_alias |
| 605 | host_alias |
| 606 | build_alias |
| 607 | LIBS |
| 608 | ECHO_T |
| 609 | ECHO_N |
| 610 | ECHO_C |
| 611 | DEFS |
| 612 | mandir |
| 613 | localedir |
| 614 | libdir |
| 615 | psdir |
| 616 | pdfdir |
| 617 | dvidir |
| 618 | htmldir |
| 619 | infodir |
| 620 | docdir |
| 621 | oldincludedir |
| 622 | includedir |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 623 | runstatedir |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 624 | localstatedir |
| 625 | sharedstatedir |
| 626 | sysconfdir |
| 627 | datadir |
| 628 | datarootdir |
| 629 | libexecdir |
| 630 | sbindir |
| 631 | bindir |
| 632 | program_transform_name |
| 633 | prefix |
| 634 | exec_prefix |
| 635 | PACKAGE_URL |
| 636 | PACKAGE_BUGREPORT |
| 637 | PACKAGE_STRING |
| 638 | PACKAGE_VERSION |
| 639 | PACKAGE_TARNAME |
| 640 | PACKAGE_NAME |
| 641 | PATH_SEPARATOR |
| 642 | SHELL' |
| 643 | ac_subst_files='' |
| 644 | ac_user_opts=' |
| 645 | enable_option_checking |
| 646 | with_sky130_source |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 647 | with_sky130_local_path |
| 648 | with_sky130_dist_path |
| 649 | with_sky130_link_targets |
| 650 | with_ef_style |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 651 | ' |
| 652 | ac_precious_vars='build_alias |
| 653 | host_alias |
| 654 | target_alias |
| 655 | PYTHON' |
| 656 | |
| 657 | |
| 658 | # Initialize some variables set by options. |
| 659 | ac_init_help= |
| 660 | ac_init_version=false |
| 661 | ac_unrecognized_opts= |
| 662 | ac_unrecognized_sep= |
| 663 | # The variables have the same names as the options, with |
| 664 | # dashes changed to underlines. |
| 665 | cache_file=/dev/null |
| 666 | exec_prefix=NONE |
| 667 | no_create= |
| 668 | no_recursion= |
| 669 | prefix=NONE |
| 670 | program_prefix=NONE |
| 671 | program_suffix=NONE |
| 672 | program_transform_name=s,x,x, |
| 673 | silent= |
| 674 | site= |
| 675 | srcdir= |
| 676 | verbose= |
| 677 | x_includes=NONE |
| 678 | x_libraries=NONE |
| 679 | |
| 680 | # Installation directory options. |
| 681 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 682 | # and all the variables that are supposed to be based on exec_prefix |
| 683 | # by default will actually change. |
| 684 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 685 | # (The list follows the same order as the GNU Coding Standards.) |
| 686 | bindir='${exec_prefix}/bin' |
| 687 | sbindir='${exec_prefix}/sbin' |
| 688 | libexecdir='${exec_prefix}/libexec' |
| 689 | datarootdir='${prefix}/share' |
| 690 | datadir='${datarootdir}' |
| 691 | sysconfdir='${prefix}/etc' |
| 692 | sharedstatedir='${prefix}/com' |
| 693 | localstatedir='${prefix}/var' |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 694 | runstatedir='${localstatedir}/run' |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 695 | includedir='${prefix}/include' |
| 696 | oldincludedir='/usr/include' |
| 697 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 698 | infodir='${datarootdir}/info' |
| 699 | htmldir='${docdir}' |
| 700 | dvidir='${docdir}' |
| 701 | pdfdir='${docdir}' |
| 702 | psdir='${docdir}' |
| 703 | libdir='${exec_prefix}/lib' |
| 704 | localedir='${datarootdir}/locale' |
| 705 | mandir='${datarootdir}/man' |
| 706 | |
| 707 | ac_prev= |
| 708 | ac_dashdash= |
| 709 | for ac_option |
| 710 | do |
| 711 | # If the previous option needs an argument, assign it. |
| 712 | if test -n "$ac_prev"; then |
| 713 | eval $ac_prev=\$ac_option |
| 714 | ac_prev= |
| 715 | continue |
| 716 | fi |
| 717 | |
| 718 | case $ac_option in |
| 719 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 720 | *=) ac_optarg= ;; |
| 721 | *) ac_optarg=yes ;; |
| 722 | esac |
| 723 | |
| 724 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 725 | |
| 726 | case $ac_dashdash$ac_option in |
| 727 | --) |
| 728 | ac_dashdash=yes ;; |
| 729 | |
| 730 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 731 | ac_prev=bindir ;; |
| 732 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 733 | bindir=$ac_optarg ;; |
| 734 | |
| 735 | -build | --build | --buil | --bui | --bu) |
| 736 | ac_prev=build_alias ;; |
| 737 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 738 | build_alias=$ac_optarg ;; |
| 739 | |
| 740 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 741 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 742 | ac_prev=cache_file ;; |
| 743 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 744 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 745 | cache_file=$ac_optarg ;; |
| 746 | |
| 747 | --config-cache | -C) |
| 748 | cache_file=config.cache ;; |
| 749 | |
| 750 | -datadir | --datadir | --datadi | --datad) |
| 751 | ac_prev=datadir ;; |
| 752 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 753 | datadir=$ac_optarg ;; |
| 754 | |
| 755 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 756 | | --dataroo | --dataro | --datar) |
| 757 | ac_prev=datarootdir ;; |
| 758 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 759 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 760 | datarootdir=$ac_optarg ;; |
| 761 | |
| 762 | -disable-* | --disable-*) |
| 763 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 764 | # Reject names that are not valid shell variable names. |
| 765 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 766 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 767 | ac_useropt_orig=$ac_useropt |
| 768 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 769 | case $ac_user_opts in |
| 770 | *" |
| 771 | "enable_$ac_useropt" |
| 772 | "*) ;; |
| 773 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 774 | ac_unrecognized_sep=', ';; |
| 775 | esac |
| 776 | eval enable_$ac_useropt=no ;; |
| 777 | |
| 778 | -docdir | --docdir | --docdi | --doc | --do) |
| 779 | ac_prev=docdir ;; |
| 780 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 781 | docdir=$ac_optarg ;; |
| 782 | |
| 783 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 784 | ac_prev=dvidir ;; |
| 785 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 786 | dvidir=$ac_optarg ;; |
| 787 | |
| 788 | -enable-* | --enable-*) |
| 789 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 790 | # Reject names that are not valid shell variable names. |
| 791 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 792 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 793 | ac_useropt_orig=$ac_useropt |
| 794 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 795 | case $ac_user_opts in |
| 796 | *" |
| 797 | "enable_$ac_useropt" |
| 798 | "*) ;; |
| 799 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 800 | ac_unrecognized_sep=', ';; |
| 801 | esac |
| 802 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 803 | |
| 804 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 805 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 806 | | --exec | --exe | --ex) |
| 807 | ac_prev=exec_prefix ;; |
| 808 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 809 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 810 | | --exec=* | --exe=* | --ex=*) |
| 811 | exec_prefix=$ac_optarg ;; |
| 812 | |
| 813 | -gas | --gas | --ga | --g) |
| 814 | # Obsolete; use --with-gas. |
| 815 | with_gas=yes ;; |
| 816 | |
| 817 | -help | --help | --hel | --he | -h) |
| 818 | ac_init_help=long ;; |
| 819 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 820 | ac_init_help=recursive ;; |
| 821 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 822 | ac_init_help=short ;; |
| 823 | |
| 824 | -host | --host | --hos | --ho) |
| 825 | ac_prev=host_alias ;; |
| 826 | -host=* | --host=* | --hos=* | --ho=*) |
| 827 | host_alias=$ac_optarg ;; |
| 828 | |
| 829 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 830 | ac_prev=htmldir ;; |
| 831 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 832 | | --ht=*) |
| 833 | htmldir=$ac_optarg ;; |
| 834 | |
| 835 | -includedir | --includedir | --includedi | --included | --include \ |
| 836 | | --includ | --inclu | --incl | --inc) |
| 837 | ac_prev=includedir ;; |
| 838 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 839 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 840 | includedir=$ac_optarg ;; |
| 841 | |
| 842 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 843 | ac_prev=infodir ;; |
| 844 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 845 | infodir=$ac_optarg ;; |
| 846 | |
| 847 | -libdir | --libdir | --libdi | --libd) |
| 848 | ac_prev=libdir ;; |
| 849 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 850 | libdir=$ac_optarg ;; |
| 851 | |
| 852 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 853 | | --libexe | --libex | --libe) |
| 854 | ac_prev=libexecdir ;; |
| 855 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 856 | | --libexe=* | --libex=* | --libe=*) |
| 857 | libexecdir=$ac_optarg ;; |
| 858 | |
| 859 | -localedir | --localedir | --localedi | --localed | --locale) |
| 860 | ac_prev=localedir ;; |
| 861 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 862 | localedir=$ac_optarg ;; |
| 863 | |
| 864 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 865 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 866 | ac_prev=localstatedir ;; |
| 867 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 868 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 869 | localstatedir=$ac_optarg ;; |
| 870 | |
| 871 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 872 | ac_prev=mandir ;; |
| 873 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 874 | mandir=$ac_optarg ;; |
| 875 | |
| 876 | -nfp | --nfp | --nf) |
| 877 | # Obsolete; use --without-fp. |
| 878 | with_fp=no ;; |
| 879 | |
| 880 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 881 | | --no-cr | --no-c | -n) |
| 882 | no_create=yes ;; |
| 883 | |
| 884 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 885 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 886 | no_recursion=yes ;; |
| 887 | |
| 888 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 889 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 890 | | --oldin | --oldi | --old | --ol | --o) |
| 891 | ac_prev=oldincludedir ;; |
| 892 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 893 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 894 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 895 | oldincludedir=$ac_optarg ;; |
| 896 | |
| 897 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 898 | ac_prev=prefix ;; |
| 899 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 900 | prefix=$ac_optarg ;; |
| 901 | |
| 902 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 903 | | --program-pre | --program-pr | --program-p) |
| 904 | ac_prev=program_prefix ;; |
| 905 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 906 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 907 | program_prefix=$ac_optarg ;; |
| 908 | |
| 909 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 910 | | --program-suf | --program-su | --program-s) |
| 911 | ac_prev=program_suffix ;; |
| 912 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 913 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 914 | program_suffix=$ac_optarg ;; |
| 915 | |
| 916 | -program-transform-name | --program-transform-name \ |
| 917 | | --program-transform-nam | --program-transform-na \ |
| 918 | | --program-transform-n | --program-transform- \ |
| 919 | | --program-transform | --program-transfor \ |
| 920 | | --program-transfo | --program-transf \ |
| 921 | | --program-trans | --program-tran \ |
| 922 | | --progr-tra | --program-tr | --program-t) |
| 923 | ac_prev=program_transform_name ;; |
| 924 | -program-transform-name=* | --program-transform-name=* \ |
| 925 | | --program-transform-nam=* | --program-transform-na=* \ |
| 926 | | --program-transform-n=* | --program-transform-=* \ |
| 927 | | --program-transform=* | --program-transfor=* \ |
| 928 | | --program-transfo=* | --program-transf=* \ |
| 929 | | --program-trans=* | --program-tran=* \ |
| 930 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 931 | program_transform_name=$ac_optarg ;; |
| 932 | |
| 933 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 934 | ac_prev=pdfdir ;; |
| 935 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 936 | pdfdir=$ac_optarg ;; |
| 937 | |
| 938 | -psdir | --psdir | --psdi | --psd | --ps) |
| 939 | ac_prev=psdir ;; |
| 940 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 941 | psdir=$ac_optarg ;; |
| 942 | |
| 943 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 944 | | -silent | --silent | --silen | --sile | --sil) |
| 945 | silent=yes ;; |
| 946 | |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 947 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 948 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 949 | | --run | --ru | --r) |
| 950 | ac_prev=runstatedir ;; |
| 951 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 952 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 953 | | --run=* | --ru=* | --r=*) |
| 954 | runstatedir=$ac_optarg ;; |
| 955 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 956 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 957 | ac_prev=sbindir ;; |
| 958 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 959 | | --sbi=* | --sb=*) |
| 960 | sbindir=$ac_optarg ;; |
| 961 | |
| 962 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 963 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 964 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 965 | | --sha | --sh) |
| 966 | ac_prev=sharedstatedir ;; |
| 967 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 968 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 969 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 970 | | --sha=* | --sh=*) |
| 971 | sharedstatedir=$ac_optarg ;; |
| 972 | |
| 973 | -site | --site | --sit) |
| 974 | ac_prev=site ;; |
| 975 | -site=* | --site=* | --sit=*) |
| 976 | site=$ac_optarg ;; |
| 977 | |
| 978 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 979 | ac_prev=srcdir ;; |
| 980 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 981 | srcdir=$ac_optarg ;; |
| 982 | |
| 983 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 984 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 985 | ac_prev=sysconfdir ;; |
| 986 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 987 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 988 | sysconfdir=$ac_optarg ;; |
| 989 | |
| 990 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 991 | ac_prev=target_alias ;; |
| 992 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 993 | target_alias=$ac_optarg ;; |
| 994 | |
| 995 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 996 | verbose=yes ;; |
| 997 | |
| 998 | -version | --version | --versio | --versi | --vers | -V) |
| 999 | ac_init_version=: ;; |
| 1000 | |
| 1001 | -with-* | --with-*) |
| 1002 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1003 | # Reject names that are not valid shell variable names. |
| 1004 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1005 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1006 | ac_useropt_orig=$ac_useropt |
| 1007 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1008 | case $ac_user_opts in |
| 1009 | *" |
| 1010 | "with_$ac_useropt" |
| 1011 | "*) ;; |
| 1012 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1013 | ac_unrecognized_sep=', ';; |
| 1014 | esac |
| 1015 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1016 | |
| 1017 | -without-* | --without-*) |
| 1018 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1019 | # Reject names that are not valid shell variable names. |
| 1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1021 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1022 | ac_useropt_orig=$ac_useropt |
| 1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1024 | case $ac_user_opts in |
| 1025 | *" |
| 1026 | "with_$ac_useropt" |
| 1027 | "*) ;; |
| 1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1029 | ac_unrecognized_sep=', ';; |
| 1030 | esac |
| 1031 | eval with_$ac_useropt=no ;; |
| 1032 | |
| 1033 | --x) |
| 1034 | # Obsolete; use --with-x. |
| 1035 | with_x=yes ;; |
| 1036 | |
| 1037 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1038 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1039 | ac_prev=x_includes ;; |
| 1040 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1041 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1042 | x_includes=$ac_optarg ;; |
| 1043 | |
| 1044 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1045 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1046 | ac_prev=x_libraries ;; |
| 1047 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1048 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1049 | x_libraries=$ac_optarg ;; |
| 1050 | |
| 1051 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1052 | Try \`$0 --help' for more information" |
| 1053 | ;; |
| 1054 | |
| 1055 | *=*) |
| 1056 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1057 | # Reject names that are not valid shell variable names. |
| 1058 | case $ac_envvar in #( |
| 1059 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1060 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1061 | esac |
| 1062 | eval $ac_envvar=\$ac_optarg |
| 1063 | export $ac_envvar ;; |
| 1064 | |
| 1065 | *) |
| 1066 | # FIXME: should be removed in autoconf 3.0. |
| 1067 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1068 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1069 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1070 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1071 | ;; |
| 1072 | |
| 1073 | esac |
| 1074 | done |
| 1075 | |
| 1076 | if test -n "$ac_prev"; then |
| 1077 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1078 | as_fn_error $? "missing argument to $ac_option" |
| 1079 | fi |
| 1080 | |
| 1081 | if test -n "$ac_unrecognized_opts"; then |
| 1082 | case $enable_option_checking in |
| 1083 | no) ;; |
| 1084 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1085 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1086 | esac |
| 1087 | fi |
| 1088 | |
| 1089 | # Check all directory arguments for consistency. |
| 1090 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1091 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1092 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 1093 | libdir localedir mandir runstatedir |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1094 | do |
| 1095 | eval ac_val=\$$ac_var |
| 1096 | # Remove trailing slashes. |
| 1097 | case $ac_val in |
| 1098 | */ ) |
| 1099 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1100 | eval $ac_var=\$ac_val;; |
| 1101 | esac |
| 1102 | # Be sure to have absolute directory names. |
| 1103 | case $ac_val in |
| 1104 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1105 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1106 | esac |
| 1107 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1108 | done |
| 1109 | |
| 1110 | # There might be people who depend on the old broken behavior: `$host' |
| 1111 | # used to hold the argument of --host etc. |
| 1112 | # FIXME: To remove some day. |
| 1113 | build=$build_alias |
| 1114 | host=$host_alias |
| 1115 | target=$target_alias |
| 1116 | |
| 1117 | # FIXME: To remove some day. |
| 1118 | if test "x$host_alias" != x; then |
| 1119 | if test "x$build_alias" = x; then |
| 1120 | cross_compiling=maybe |
| 1121 | elif test "x$build_alias" != "x$host_alias"; then |
| 1122 | cross_compiling=yes |
| 1123 | fi |
| 1124 | fi |
| 1125 | |
| 1126 | ac_tool_prefix= |
| 1127 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1128 | |
| 1129 | test "$silent" = yes && exec 6>/dev/null |
| 1130 | |
| 1131 | |
| 1132 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1133 | ac_ls_di=`ls -di .` && |
| 1134 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1135 | as_fn_error $? "working directory cannot be determined" |
| 1136 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1137 | as_fn_error $? "pwd does not report name of working directory" |
| 1138 | |
| 1139 | |
| 1140 | # Find the source files, if location was not specified. |
| 1141 | if test -z "$srcdir"; then |
| 1142 | ac_srcdir_defaulted=yes |
| 1143 | # Try the directory containing this script, then the parent directory. |
| 1144 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1145 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1146 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1147 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1148 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1149 | $as_echo X"$as_myself" | |
| 1150 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1151 | s//\1/ |
| 1152 | q |
| 1153 | } |
| 1154 | /^X\(\/\/\)[^/].*/{ |
| 1155 | s//\1/ |
| 1156 | q |
| 1157 | } |
| 1158 | /^X\(\/\/\)$/{ |
| 1159 | s//\1/ |
| 1160 | q |
| 1161 | } |
| 1162 | /^X\(\/\).*/{ |
| 1163 | s//\1/ |
| 1164 | q |
| 1165 | } |
| 1166 | s/.*/./; q'` |
| 1167 | srcdir=$ac_confdir |
| 1168 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1169 | srcdir=.. |
| 1170 | fi |
| 1171 | else |
| 1172 | ac_srcdir_defaulted=no |
| 1173 | fi |
| 1174 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1175 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1176 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1177 | fi |
| 1178 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1179 | ac_abs_confdir=`( |
| 1180 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1181 | pwd)` |
| 1182 | # When building in place, set srcdir=. |
| 1183 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1184 | srcdir=. |
| 1185 | fi |
| 1186 | # Remove unnecessary trailing slashes from srcdir. |
| 1187 | # Double slashes in file names in object file debugging info |
| 1188 | # mess up M-x gdb in Emacs. |
| 1189 | case $srcdir in |
| 1190 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1191 | esac |
| 1192 | for ac_var in $ac_precious_vars; do |
| 1193 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1194 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1195 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1196 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1197 | done |
| 1198 | |
| 1199 | # |
| 1200 | # Report the --help message. |
| 1201 | # |
| 1202 | if test "$ac_init_help" = "long"; then |
| 1203 | # Omit some internal or obsolete options to make the list less imposing. |
| 1204 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1205 | cat <<_ACEOF |
| 1206 | \`configure' configures open_pdks 1.0 to adapt to many kinds of systems. |
| 1207 | |
| 1208 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1209 | |
| 1210 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1211 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1212 | |
| 1213 | Defaults for the options are specified in brackets. |
| 1214 | |
| 1215 | Configuration: |
| 1216 | -h, --help display this help and exit |
| 1217 | --help=short display options specific to this package |
| 1218 | --help=recursive display the short help of all the included packages |
| 1219 | -V, --version display version information and exit |
| 1220 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1221 | --cache-file=FILE cache test results in FILE [disabled] |
| 1222 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1223 | -n, --no-create do not create output files |
| 1224 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1225 | |
| 1226 | Installation directories: |
| 1227 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1228 | [$ac_default_prefix] |
| 1229 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1230 | [PREFIX] |
| 1231 | |
| 1232 | By default, \`make install' will install all the files in |
| 1233 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1234 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1235 | for instance \`--prefix=\$HOME'. |
| 1236 | |
| 1237 | For better control, use the options below. |
| 1238 | |
| 1239 | Fine tuning of the installation directories: |
| 1240 | --bindir=DIR user executables [EPREFIX/bin] |
| 1241 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1242 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1243 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1244 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1245 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 1246 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1247 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1248 | --includedir=DIR C header files [PREFIX/include] |
| 1249 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1250 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1251 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1252 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1253 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1254 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1255 | --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks] |
| 1256 | --htmldir=DIR html documentation [DOCDIR] |
| 1257 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1258 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1259 | --psdir=DIR ps documentation [DOCDIR] |
| 1260 | _ACEOF |
| 1261 | |
| 1262 | cat <<\_ACEOF |
| 1263 | _ACEOF |
| 1264 | fi |
| 1265 | |
| 1266 | if test -n "$ac_init_help"; then |
| 1267 | case $ac_init_help in |
| 1268 | short | recursive ) echo "Configuration of open_pdks 1.0:";; |
| 1269 | esac |
| 1270 | cat <<\_ACEOF |
| 1271 | |
| 1272 | Optional Packages: |
| 1273 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1274 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1275 | --with-sky130-source=/path/to/sky130/source |
| 1276 | "location of the source files for sky130" |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1277 | --with-sky130-local-path=/path/to/install/pdks |
| 1278 | "run-time location of the PDKs" |
| 1279 | --with-sky130-dist-path=/path/to/install/pdks |
| 1280 | "staging location to install the PDKs for |
| 1281 | distribution (optional)" |
| 1282 | --with-sky130-link-targets=none|source |
| 1283 | "make symbolic links to existing files |
| 1284 | [default=none]" |
| 1285 | --with-ef-style Use efabless style file system structure |
| 1286 | [default=no] |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1287 | |
| 1288 | Some influential environment variables: |
| 1289 | PYTHON the Python interpreter |
| 1290 | |
| 1291 | Use these variables to override the choices made by `configure' or to help |
| 1292 | it to find libraries and programs with nonstandard names/locations. |
| 1293 | |
| 1294 | Report bugs to <github.com/RTimothyEdwards/open_pdks>. |
| 1295 | _ACEOF |
| 1296 | ac_status=$? |
| 1297 | fi |
| 1298 | |
| 1299 | if test "$ac_init_help" = "recursive"; then |
| 1300 | # If there are subdirs, report their specific --help. |
| 1301 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1302 | test -d "$ac_dir" || |
| 1303 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1304 | continue |
| 1305 | ac_builddir=. |
| 1306 | |
| 1307 | case "$ac_dir" in |
| 1308 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1309 | *) |
| 1310 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1311 | # A ".." for each directory in $ac_dir_suffix. |
| 1312 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1313 | case $ac_top_builddir_sub in |
| 1314 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1315 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1316 | esac ;; |
| 1317 | esac |
| 1318 | ac_abs_top_builddir=$ac_pwd |
| 1319 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1320 | # for backward compatibility: |
| 1321 | ac_top_builddir=$ac_top_build_prefix |
| 1322 | |
| 1323 | case $srcdir in |
| 1324 | .) # We are building in place. |
| 1325 | ac_srcdir=. |
| 1326 | ac_top_srcdir=$ac_top_builddir_sub |
| 1327 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1328 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1329 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1330 | ac_top_srcdir=$srcdir |
| 1331 | ac_abs_top_srcdir=$srcdir ;; |
| 1332 | *) # Relative name. |
| 1333 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1334 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1335 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1336 | esac |
| 1337 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1338 | |
| 1339 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1340 | # Check for guested configure. |
| 1341 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1342 | echo && |
| 1343 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1344 | elif test -f "$ac_srcdir/configure"; then |
| 1345 | echo && |
| 1346 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1347 | else |
| 1348 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1349 | fi || ac_status=$? |
| 1350 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1351 | done |
| 1352 | fi |
| 1353 | |
| 1354 | test -n "$ac_init_help" && exit $ac_status |
| 1355 | if $ac_init_version; then |
| 1356 | cat <<\_ACEOF |
| 1357 | open_pdks configure 1.0 |
| 1358 | generated by GNU Autoconf 2.69 |
| 1359 | |
| 1360 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1361 | This configure script is free software; the Free Software Foundation |
| 1362 | gives unlimited permission to copy, distribute and modify it. |
| 1363 | _ACEOF |
| 1364 | exit |
| 1365 | fi |
| 1366 | |
| 1367 | ## ------------------------ ## |
| 1368 | ## Autoconf initialization. ## |
| 1369 | ## ------------------------ ## |
| 1370 | cat >config.log <<_ACEOF |
| 1371 | This file contains any messages produced by compilers while |
| 1372 | running configure, to aid debugging if configure makes a mistake. |
| 1373 | |
| 1374 | It was created by open_pdks $as_me 1.0, which was |
| 1375 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1376 | |
| 1377 | $ $0 $@ |
| 1378 | |
| 1379 | _ACEOF |
| 1380 | exec 5>>config.log |
| 1381 | { |
| 1382 | cat <<_ASUNAME |
| 1383 | ## --------- ## |
| 1384 | ## Platform. ## |
| 1385 | ## --------- ## |
| 1386 | |
| 1387 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1388 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1389 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1390 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1391 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1392 | |
| 1393 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1394 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1395 | |
| 1396 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1397 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1398 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1399 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1400 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1401 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1402 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1403 | |
| 1404 | _ASUNAME |
| 1405 | |
| 1406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1407 | for as_dir in $PATH |
| 1408 | do |
| 1409 | IFS=$as_save_IFS |
| 1410 | test -z "$as_dir" && as_dir=. |
| 1411 | $as_echo "PATH: $as_dir" |
| 1412 | done |
| 1413 | IFS=$as_save_IFS |
| 1414 | |
| 1415 | } >&5 |
| 1416 | |
| 1417 | cat >&5 <<_ACEOF |
| 1418 | |
| 1419 | |
| 1420 | ## ----------- ## |
| 1421 | ## Core tests. ## |
| 1422 | ## ----------- ## |
| 1423 | |
| 1424 | _ACEOF |
| 1425 | |
| 1426 | |
| 1427 | # Keep a trace of the command line. |
| 1428 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1429 | # Strip out --silent because we don't want to record it for future runs. |
| 1430 | # Also quote any args containing shell meta-characters. |
| 1431 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1432 | ac_configure_args= |
| 1433 | ac_configure_args0= |
| 1434 | ac_configure_args1= |
| 1435 | ac_must_keep_next=false |
| 1436 | for ac_pass in 1 2 |
| 1437 | do |
| 1438 | for ac_arg |
| 1439 | do |
| 1440 | case $ac_arg in |
| 1441 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1442 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1443 | | -silent | --silent | --silen | --sile | --sil) |
| 1444 | continue ;; |
| 1445 | *\'*) |
| 1446 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1447 | esac |
| 1448 | case $ac_pass in |
| 1449 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1450 | 2) |
| 1451 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1452 | if test $ac_must_keep_next = true; then |
| 1453 | ac_must_keep_next=false # Got value, back to normal. |
| 1454 | else |
| 1455 | case $ac_arg in |
| 1456 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1457 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1458 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1459 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1460 | case "$ac_configure_args0 " in |
| 1461 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1462 | esac |
| 1463 | ;; |
| 1464 | -* ) ac_must_keep_next=true ;; |
| 1465 | esac |
| 1466 | fi |
| 1467 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1468 | ;; |
| 1469 | esac |
| 1470 | done |
| 1471 | done |
| 1472 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1473 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1474 | |
| 1475 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1476 | # config.log. We remove comments because anyway the quotes in there |
| 1477 | # would cause problems or look ugly. |
| 1478 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1479 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1480 | trap 'exit_status=$? |
| 1481 | # Save into config.log some information that might help in debugging. |
| 1482 | { |
| 1483 | echo |
| 1484 | |
| 1485 | $as_echo "## ---------------- ## |
| 1486 | ## Cache variables. ## |
| 1487 | ## ---------------- ##" |
| 1488 | echo |
| 1489 | # The following way of writing the cache mishandles newlines in values, |
| 1490 | ( |
| 1491 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1492 | eval ac_val=\$$ac_var |
| 1493 | case $ac_val in #( |
| 1494 | *${as_nl}*) |
| 1495 | case $ac_var in #( |
| 1496 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1497 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1498 | esac |
| 1499 | case $ac_var in #( |
| 1500 | _ | IFS | as_nl) ;; #( |
| 1501 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1502 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1503 | esac ;; |
| 1504 | esac |
| 1505 | done |
| 1506 | (set) 2>&1 | |
| 1507 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1508 | *${as_nl}ac_space=\ *) |
| 1509 | sed -n \ |
| 1510 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1511 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1512 | ;; #( |
| 1513 | *) |
| 1514 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1515 | ;; |
| 1516 | esac | |
| 1517 | sort |
| 1518 | ) |
| 1519 | echo |
| 1520 | |
| 1521 | $as_echo "## ----------------- ## |
| 1522 | ## Output variables. ## |
| 1523 | ## ----------------- ##" |
| 1524 | echo |
| 1525 | for ac_var in $ac_subst_vars |
| 1526 | do |
| 1527 | eval ac_val=\$$ac_var |
| 1528 | case $ac_val in |
| 1529 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1530 | esac |
| 1531 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1532 | done | sort |
| 1533 | echo |
| 1534 | |
| 1535 | if test -n "$ac_subst_files"; then |
| 1536 | $as_echo "## ------------------- ## |
| 1537 | ## File substitutions. ## |
| 1538 | ## ------------------- ##" |
| 1539 | echo |
| 1540 | for ac_var in $ac_subst_files |
| 1541 | do |
| 1542 | eval ac_val=\$$ac_var |
| 1543 | case $ac_val in |
| 1544 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1545 | esac |
| 1546 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1547 | done | sort |
| 1548 | echo |
| 1549 | fi |
| 1550 | |
| 1551 | if test -s confdefs.h; then |
| 1552 | $as_echo "## ----------- ## |
| 1553 | ## confdefs.h. ## |
| 1554 | ## ----------- ##" |
| 1555 | echo |
| 1556 | cat confdefs.h |
| 1557 | echo |
| 1558 | fi |
| 1559 | test "$ac_signal" != 0 && |
| 1560 | $as_echo "$as_me: caught signal $ac_signal" |
| 1561 | $as_echo "$as_me: exit $exit_status" |
| 1562 | } >&5 |
| 1563 | rm -f core *.core core.conftest.* && |
| 1564 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1565 | exit $exit_status |
| 1566 | ' 0 |
| 1567 | for ac_signal in 1 2 13 15; do |
| 1568 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1569 | done |
| 1570 | ac_signal=0 |
| 1571 | |
| 1572 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1573 | rm -f -r conftest* confdefs.h |
| 1574 | |
| 1575 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1576 | |
| 1577 | # Predefined preprocessor variables. |
| 1578 | |
| 1579 | cat >>confdefs.h <<_ACEOF |
| 1580 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1581 | _ACEOF |
| 1582 | |
| 1583 | cat >>confdefs.h <<_ACEOF |
| 1584 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1585 | _ACEOF |
| 1586 | |
| 1587 | cat >>confdefs.h <<_ACEOF |
| 1588 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1589 | _ACEOF |
| 1590 | |
| 1591 | cat >>confdefs.h <<_ACEOF |
| 1592 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1593 | _ACEOF |
| 1594 | |
| 1595 | cat >>confdefs.h <<_ACEOF |
| 1596 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1597 | _ACEOF |
| 1598 | |
| 1599 | cat >>confdefs.h <<_ACEOF |
| 1600 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1601 | _ACEOF |
| 1602 | |
| 1603 | |
| 1604 | # Let the site file select an alternate cache file if it wants to. |
| 1605 | # Prefer an explicitly selected file to automatically selected ones. |
| 1606 | ac_site_file1=NONE |
| 1607 | ac_site_file2=NONE |
| 1608 | if test -n "$CONFIG_SITE"; then |
| 1609 | # We do not want a PATH search for config.site. |
| 1610 | case $CONFIG_SITE in #(( |
| 1611 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 1612 | */*) ac_site_file1=$CONFIG_SITE;; |
| 1613 | *) ac_site_file1=./$CONFIG_SITE;; |
| 1614 | esac |
| 1615 | elif test "x$prefix" != xNONE; then |
| 1616 | ac_site_file1=$prefix/share/config.site |
| 1617 | ac_site_file2=$prefix/etc/config.site |
| 1618 | else |
| 1619 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1620 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 1621 | fi |
| 1622 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1623 | do |
| 1624 | test "x$ac_site_file" = xNONE && continue |
| 1625 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1627 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1628 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1629 | . "$ac_site_file" \ |
| 1630 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1631 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1632 | as_fn_error $? "failed to load site script $ac_site_file |
| 1633 | See \`config.log' for more details" "$LINENO" 5; } |
| 1634 | fi |
| 1635 | done |
| 1636 | |
| 1637 | if test -r "$cache_file"; then |
| 1638 | # Some versions of bash will fail to source /dev/null (special files |
| 1639 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1640 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1642 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 1643 | case $cache_file in |
| 1644 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1645 | *) . "./$cache_file";; |
| 1646 | esac |
| 1647 | fi |
| 1648 | else |
| 1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1650 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 1651 | >$cache_file |
| 1652 | fi |
| 1653 | |
| 1654 | # Check that the precious variables saved in the cache have kept the same |
| 1655 | # value. |
| 1656 | ac_cache_corrupted=false |
| 1657 | for ac_var in $ac_precious_vars; do |
| 1658 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1659 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1660 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1661 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1662 | case $ac_old_set,$ac_new_set in |
| 1663 | set,) |
| 1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1665 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1666 | ac_cache_corrupted=: ;; |
| 1667 | ,set) |
| 1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1669 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1670 | ac_cache_corrupted=: ;; |
| 1671 | ,);; |
| 1672 | *) |
| 1673 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1674 | # differences in whitespace do not lead to failure. |
| 1675 | ac_old_val_w=`echo x $ac_old_val` |
| 1676 | ac_new_val_w=`echo x $ac_new_val` |
| 1677 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1679 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1680 | ac_cache_corrupted=: |
| 1681 | else |
| 1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1683 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1684 | eval $ac_var=\$ac_old_val |
| 1685 | fi |
| 1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1687 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1689 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1690 | fi;; |
| 1691 | esac |
| 1692 | # Pass precious variables to config.status. |
| 1693 | if test "$ac_new_set" = set; then |
| 1694 | case $ac_new_val in |
| 1695 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1696 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1697 | esac |
| 1698 | case " $ac_configure_args " in |
| 1699 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1700 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 1701 | esac |
| 1702 | fi |
| 1703 | done |
| 1704 | if $ac_cache_corrupted; then |
| 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1706 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 1708 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1709 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 1710 | fi |
| 1711 | ## -------------------- ## |
| 1712 | ## Main body of script. ## |
| 1713 | ## -------------------- ## |
| 1714 | |
| 1715 | ac_ext=c |
| 1716 | ac_cpp='$CPP $CPPFLAGS' |
| 1717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1720 | |
| 1721 | |
| 1722 | |
| 1723 | # detect PDKs based on directories that include Makefile.in files |
| 1724 | |
| 1725 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1726 | # check for the source and install paths for each PDK. |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1727 | |
| 1728 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5 |
| 1730 | $as_echo "$as_me: Found technology directories: sky130" >&6;} |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1731 | |
| 1732 | |
| 1733 | # --with-pdk-source=PDK_SOURCE_PATH |
| 1734 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1735 | |
Tim Edwards | 5ef0397 | 2020-08-08 12:23:27 -0400 | [diff] [blame] | 1736 | SKY130_SOURCE_PATH_="" |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1737 | |
| 1738 | # Check whether --with-sky130-source was given. |
| 1739 | if test "${with_sky130_source+set}" = set; then : |
Tim Edwards | 5ef0397 | 2020-08-08 12:23:27 -0400 | [diff] [blame] | 1740 | withval=$with_sky130_source; SKY130_SOURCE_PATH_=$withval |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1741 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1742 | fi |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1743 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1744 | |
| 1745 | # Require this argument |
| 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether source path is specified for 'sky130'" >&5 |
| 1747 | $as_echo "$as_me: Checking whether source path is specified for 'sky130'" >&6;} |
Tim Edwards | 5ef0397 | 2020-08-08 12:23:27 -0400 | [diff] [blame] | 1748 | if test "x$SKY130_SOURCE_PATH_" == "x" ; then |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1749 | as_fn_error $? "Option --with-sky130-source=<path> not specified!" "$LINENO" 5 |
| 1750 | fi |
| 1751 | |
Tim Edwards | 5ef0397 | 2020-08-08 12:23:27 -0400 | [diff] [blame] | 1752 | SKY130_SOURCE_PATH=`readlink -f $SKY130_SOURCE_PATH_` |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1753 | |
| 1754 | # basic check that the PDK exists there (the path must exist in any case) |
| 1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5 |
| 1756 | $as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;} |
| 1757 | as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh` |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5 |
| 1759 | $as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; } |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1760 | if eval \${$as_ac_File+:} false; then : |
| 1761 | $as_echo_n "(cached) " >&6 |
| 1762 | else |
| 1763 | test "$cross_compiling" = yes && |
| 1764 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1765 | if test -r "$SKY130_SOURCE_PATH"; then |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1766 | eval "$as_ac_File=yes" |
| 1767 | else |
| 1768 | eval "$as_ac_File=no" |
| 1769 | fi |
| 1770 | fi |
| 1771 | eval ac_res=\$$as_ac_File |
| 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1773 | $as_echo "$ac_res" >&6; } |
| 1774 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 1775 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5 |
| 1777 | $as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;} |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1778 | |
| 1779 | else |
| 1780 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1781 | as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5 |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1782 | |
| 1783 | fi |
| 1784 | |
| 1785 | |
| 1786 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1787 | |
| 1788 | |
| 1789 | # --with-pdk-local-path=PDK_LOCAL_PATH |
| 1790 | |
| 1791 | |
| 1792 | SKY130_LOCAL_PATH="" |
| 1793 | |
| 1794 | # Check whether --with-sky130-local-path was given. |
| 1795 | if test "${with_sky130_local_path+set}" = set; then : |
| 1796 | withval=$with_sky130_local_path; SKY130_LOCAL_PATH=$withval |
| 1797 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1798 | fi |
| 1799 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1800 | # Require this argument |
| 1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether local path is specified for 'sky130'" >&5 |
| 1802 | $as_echo "$as_me: Checking whether local path is specified for 'sky130'" >&6;} |
| 1803 | if test "x$SKY130_LOCAL_PATH" == "x" ; then |
| 1804 | as_fn_error $? "Option --with-sky130-local-path=<path> not specified!" "$LINENO" 5 |
| 1805 | fi |
| 1806 | SKY130_LOCAL_PATH=$(readlink -f $SKY130_LOCAL_PATH) |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1807 | |
| 1808 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1809 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1810 | # --with-pdk-dist-path=PDK_DIST_PATH |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1811 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1812 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1813 | SKY130_DIST_PATH="" |
| 1814 | |
| 1815 | # Check whether --with-sky130-dist-path was given. |
| 1816 | if test "${with_sky130_dist_path+set}" = set; then : |
| 1817 | withval=$with_sky130_dist_path; SKY130_DIST_PATH=$withval |
| 1818 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1819 | fi |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1820 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1821 | # Require this argument |
| 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether distribution path is specified for 'sky130'" >&5 |
| 1823 | $as_echo "$as_me: Checking whether distribution path is specified for 'sky130'" >&6;} |
| 1824 | if test "x$SKY130_DIST_PATH" == "x" ; then |
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: Option --with-sky130-dist-path=<path> not specified. Local install only.\"" >&5 |
| 1826 | $as_echo "$as_me: Option --with-sky130-dist-path=<path> not specified. Local install only.\"" >&6;} |
| 1827 | fi |
| 1828 | SKY130_DIST_PATH=$(readlink -f $SKY130_DIST_PATH) |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1829 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1830 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1831 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1832 | # --with-pdk-link-targets=PDK_LINK_TARGETS |
| 1833 | |
| 1834 | |
| 1835 | # Default link_targets = "none" |
| 1836 | SKY130_LINK_TARGETS="none" |
| 1837 | |
| 1838 | |
| 1839 | # Check whether --with-sky130-link-targets was given. |
| 1840 | if test "${with_sky130_link_targets+set}" = set; then : |
| 1841 | withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1842 | |
| 1843 | fi |
| 1844 | |
| 1845 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5 |
| 1847 | $as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;} |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1848 | |
| 1849 | |
| 1850 | |
| 1851 | # Checking if (some) prerequisites are satisfied |
| 1852 | |
| 1853 | |
| 1854 | |
| 1855 | |
| 1856 | |
| 1857 | |
| 1858 | if test -n "$PYTHON"; then |
| 1859 | # If the user set $PYTHON, use it and don't search something else. |
| 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5 |
| 1861 | $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; } |
| 1862 | prog="import sys |
| 1863 | # split strings by '.' and convert to numeric. Append some zeros |
| 1864 | # because we need at least 4 digits for the hex conversion. |
| 1865 | # map returns an iterator in Python 3.0 and a list in 2.x |
| 1866 | minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0] |
| 1867 | minverhex = 0 |
| 1868 | # xrange is not present in Python 3.0 and range returns an iterator |
| 1869 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 1870 | sys.exit(sys.hexversion < minverhex)" |
| 1871 | if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 |
| 1872 | ($PYTHON -c "$prog") >&5 2>&5 |
| 1873 | ac_status=$? |
| 1874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1875 | (exit $ac_status); }; then : |
| 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 1877 | $as_echo "yes" >&6; } |
| 1878 | else |
| 1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1880 | $as_echo "no" >&6; } |
| 1881 | as_fn_error $? "Python interpreter is too old" "$LINENO" 5 |
| 1882 | fi |
| 1883 | am_display_PYTHON=$PYTHON |
| 1884 | else |
| 1885 | # Otherwise, try each interpreter until we find one that satisfies |
| 1886 | # VERSION. |
| 1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5 |
| 1888 | $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; } |
| 1889 | if ${am_cv_pathless_PYTHON+:} false; then : |
| 1890 | $as_echo_n "(cached) " >&6 |
| 1891 | else |
| 1892 | |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 1893 | for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1894 | test "$am_cv_pathless_PYTHON" = none && break |
| 1895 | prog="import sys |
| 1896 | # split strings by '.' and convert to numeric. Append some zeros |
| 1897 | # because we need at least 4 digits for the hex conversion. |
| 1898 | # map returns an iterator in Python 3.0 and a list in 2.x |
| 1899 | minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0] |
| 1900 | minverhex = 0 |
| 1901 | # xrange is not present in Python 3.0 and range returns an iterator |
| 1902 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 1903 | sys.exit(sys.hexversion < minverhex)" |
| 1904 | if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 |
| 1905 | ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 |
| 1906 | ac_status=$? |
| 1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1908 | (exit $ac_status); }; then : |
| 1909 | break |
| 1910 | fi |
| 1911 | done |
| 1912 | fi |
| 1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 |
| 1914 | $as_echo "$am_cv_pathless_PYTHON" >&6; } |
| 1915 | # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. |
| 1916 | if test "$am_cv_pathless_PYTHON" = none; then |
| 1917 | PYTHON=: |
| 1918 | else |
| 1919 | # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. |
| 1920 | set dummy $am_cv_pathless_PYTHON; ac_word=$2 |
| 1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1922 | $as_echo_n "checking for $ac_word... " >&6; } |
| 1923 | if ${ac_cv_path_PYTHON+:} false; then : |
| 1924 | $as_echo_n "(cached) " >&6 |
| 1925 | else |
| 1926 | case $PYTHON in |
| 1927 | [\\/]* | ?:[\\/]*) |
| 1928 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 1929 | ;; |
| 1930 | *) |
| 1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1932 | for as_dir in $PATH |
| 1933 | do |
| 1934 | IFS=$as_save_IFS |
| 1935 | test -z "$as_dir" && as_dir=. |
| 1936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1938 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 1939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1940 | break 2 |
| 1941 | fi |
| 1942 | done |
| 1943 | done |
| 1944 | IFS=$as_save_IFS |
| 1945 | |
| 1946 | ;; |
| 1947 | esac |
| 1948 | fi |
| 1949 | PYTHON=$ac_cv_path_PYTHON |
| 1950 | if test -n "$PYTHON"; then |
| 1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 1952 | $as_echo "$PYTHON" >&6; } |
| 1953 | else |
| 1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1955 | $as_echo "no" >&6; } |
| 1956 | fi |
| 1957 | |
| 1958 | |
| 1959 | fi |
| 1960 | am_display_PYTHON=$am_cv_pathless_PYTHON |
| 1961 | fi |
| 1962 | |
| 1963 | |
| 1964 | if test "$PYTHON" = :; then |
| 1965 | as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 |
| 1966 | else |
| 1967 | |
| 1968 | |
| 1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 |
| 1970 | $as_echo_n "checking for $am_display_PYTHON version... " >&6; } |
| 1971 | if ${am_cv_python_version+:} false; then : |
| 1972 | $as_echo_n "(cached) " >&6 |
| 1973 | else |
| 1974 | am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` |
| 1975 | fi |
| 1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 |
| 1977 | $as_echo "$am_cv_python_version" >&6; } |
| 1978 | PYTHON_VERSION=$am_cv_python_version |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | PYTHON_PREFIX='${prefix}' |
| 1983 | |
| 1984 | PYTHON_EXEC_PREFIX='${exec_prefix}' |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 |
| 1989 | $as_echo_n "checking for $am_display_PYTHON platform... " >&6; } |
| 1990 | if ${am_cv_python_platform+:} false; then : |
| 1991 | $as_echo_n "(cached) " >&6 |
| 1992 | else |
| 1993 | am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` |
| 1994 | fi |
| 1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 |
| 1996 | $as_echo "$am_cv_python_platform" >&6; } |
| 1997 | PYTHON_PLATFORM=$am_cv_python_platform |
| 1998 | |
| 1999 | |
| 2000 | # Just factor out some code duplication. |
| 2001 | am_python_setup_sysconfig="\ |
| 2002 | import sys |
| 2003 | # Prefer sysconfig over distutils.sysconfig, for better compatibility |
| 2004 | # with python 3.x. See automake bug#10227. |
| 2005 | try: |
| 2006 | import sysconfig |
| 2007 | except ImportError: |
| 2008 | can_use_sysconfig = 0 |
| 2009 | else: |
| 2010 | can_use_sysconfig = 1 |
| 2011 | # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
| 2012 | # <https://github.com/pypa/virtualenv/issues/118> |
| 2013 | try: |
| 2014 | from platform import python_implementation |
| 2015 | if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
| 2016 | can_use_sysconfig = 0 |
| 2017 | except ImportError: |
| 2018 | pass" |
| 2019 | |
| 2020 | |
| 2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 |
| 2022 | $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } |
| 2023 | if ${am_cv_python_pythondir+:} false; then : |
| 2024 | $as_echo_n "(cached) " >&6 |
| 2025 | else |
| 2026 | if test "x$prefix" = xNONE |
| 2027 | then |
| 2028 | am_py_prefix=$ac_default_prefix |
| 2029 | else |
| 2030 | am_py_prefix=$prefix |
| 2031 | fi |
| 2032 | am_cv_python_pythondir=`$PYTHON -c " |
| 2033 | $am_python_setup_sysconfig |
| 2034 | if can_use_sysconfig: |
| 2035 | sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
| 2036 | else: |
| 2037 | from distutils import sysconfig |
| 2038 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') |
| 2039 | sys.stdout.write(sitedir)"` |
| 2040 | case $am_cv_python_pythondir in |
| 2041 | $am_py_prefix*) |
| 2042 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` |
| 2043 | am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` |
| 2044 | ;; |
| 2045 | *) |
| 2046 | case $am_py_prefix in |
| 2047 | /usr|/System*) ;; |
| 2048 | *) |
| 2049 | am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages |
| 2050 | ;; |
| 2051 | esac |
| 2052 | ;; |
| 2053 | esac |
| 2054 | |
| 2055 | fi |
| 2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 |
| 2057 | $as_echo "$am_cv_python_pythondir" >&6; } |
| 2058 | pythondir=$am_cv_python_pythondir |
| 2059 | |
| 2060 | |
| 2061 | |
| 2062 | pkgpythondir=\${pythondir}/$PACKAGE |
| 2063 | |
| 2064 | |
| 2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 |
| 2066 | $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } |
| 2067 | if ${am_cv_python_pyexecdir+:} false; then : |
| 2068 | $as_echo_n "(cached) " >&6 |
| 2069 | else |
| 2070 | if test "x$exec_prefix" = xNONE |
| 2071 | then |
| 2072 | am_py_exec_prefix=$am_py_prefix |
| 2073 | else |
| 2074 | am_py_exec_prefix=$exec_prefix |
| 2075 | fi |
| 2076 | am_cv_python_pyexecdir=`$PYTHON -c " |
| 2077 | $am_python_setup_sysconfig |
| 2078 | if can_use_sysconfig: |
| 2079 | sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) |
| 2080 | else: |
| 2081 | from distutils import sysconfig |
| 2082 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') |
| 2083 | sys.stdout.write(sitedir)"` |
| 2084 | case $am_cv_python_pyexecdir in |
| 2085 | $am_py_exec_prefix*) |
| 2086 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` |
| 2087 | am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` |
| 2088 | ;; |
| 2089 | *) |
| 2090 | case $am_py_exec_prefix in |
| 2091 | /usr|/System*) ;; |
| 2092 | *) |
| 2093 | am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages |
| 2094 | ;; |
| 2095 | esac |
| 2096 | ;; |
| 2097 | esac |
| 2098 | |
| 2099 | fi |
| 2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 |
| 2101 | $as_echo "$am_cv_python_pyexecdir" >&6; } |
| 2102 | pyexecdir=$am_cv_python_pyexecdir |
| 2103 | |
| 2104 | |
| 2105 | |
| 2106 | pkgpyexecdir=\${pyexecdir}/$PACKAGE |
| 2107 | |
| 2108 | |
| 2109 | |
| 2110 | fi |
| 2111 | |
| 2112 | |
| 2113 | |
| 2114 | if test -z $PYTHON; |
| 2115 | then |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 2116 | if test -z ""; |
| 2117 | then |
| 2118 | PYTHON="python3" |
| 2119 | else |
| 2120 | PYTHON="" |
| 2121 | fi |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2122 | fi |
| 2123 | PYTHON_NAME=`basename $PYTHON` |
| 2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5 |
| 2125 | $as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; } |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 2126 | $PYTHON -c "import distutils" 2>/dev/null |
| 2127 | if test $? -eq 0; |
| 2128 | then |
| 2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2130 | $as_echo "yes" >&6; } |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 2131 | eval HAVE_PYMOD_DISTUTILS=yes |
| 2132 | else |
| 2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2134 | $as_echo "no" >&6; } |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 2135 | eval HAVE_PYMOD_DISTUTILS=no |
| 2136 | # |
| 2137 | if test -n "" |
| 2138 | then |
| 2139 | as_fn_error $? "failed to find required module distutils" "$LINENO" 5 |
| 2140 | exit 1 |
| 2141 | fi |
| 2142 | fi |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2143 | |
| 2144 | |
| 2145 | # Extract the first word of "magic", so it can be a program name with args. |
| 2146 | set dummy magic; ac_word=$2 |
| 2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2148 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2149 | if ${ac_cv_path_MAGIC+:} false; then : |
| 2150 | $as_echo_n "(cached) " >&6 |
| 2151 | else |
| 2152 | case $MAGIC in |
| 2153 | [\\/]* | ?:[\\/]*) |
| 2154 | ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. |
| 2155 | ;; |
| 2156 | *) |
| 2157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2158 | for as_dir in $PATH |
| 2159 | do |
| 2160 | IFS=$as_save_IFS |
| 2161 | test -z "$as_dir" && as_dir=. |
| 2162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2164 | ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext" |
| 2165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2166 | break 2 |
| 2167 | fi |
| 2168 | done |
| 2169 | done |
| 2170 | IFS=$as_save_IFS |
| 2171 | |
| 2172 | ;; |
| 2173 | esac |
| 2174 | fi |
| 2175 | MAGIC=$ac_cv_path_MAGIC |
| 2176 | if test -n "$MAGIC"; then |
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5 |
| 2178 | $as_echo "$MAGIC" >&6; } |
| 2179 | else |
| 2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2181 | $as_echo "no" >&6; } |
| 2182 | fi |
| 2183 | |
| 2184 | |
| 2185 | if test -z "$MAGIC"; then |
| 2186 | as_fn_error $? "You need 'magic' to generate the needed various cell views" "$LINENO" 5 |
| 2187 | fi |
| 2188 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 2189 | # Check for "--with-ef-style" |
| 2190 | EF_STYLE=0 |
| 2191 | |
| 2192 | # Check whether --with-ef-style was given. |
| 2193 | if test "${with_ef_style+set}" = set; then : |
| 2194 | withval=$with_ef_style; |
| 2195 | pdks_ef_style=$withval |
| 2196 | if test "$withval" == "yes" -o "$withval" == "YES"; then |
| 2197 | EF_STYLE=1 |
| 2198 | fi |
| 2199 | |
| 2200 | fi |
| 2201 | |
| 2202 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2203 | |
| 2204 | |
| 2205 | MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g') |
| 2206 | ac_config_files="$ac_config_files $MAKEFILES" |
| 2207 | |
| 2208 | |
| 2209 | cat >confcache <<\_ACEOF |
| 2210 | # This file is a shell script that caches the results of configure |
| 2211 | # tests run on this system so they can be shared between configure |
| 2212 | # scripts and configure runs, see configure's option --config-cache. |
| 2213 | # It is not useful on other systems. If it contains results you don't |
| 2214 | # want to keep, you may remove or edit it. |
| 2215 | # |
| 2216 | # config.status only pays attention to the cache file if you give it |
| 2217 | # the --recheck option to rerun configure. |
| 2218 | # |
| 2219 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 2220 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 2221 | # following values. |
| 2222 | |
| 2223 | _ACEOF |
| 2224 | |
| 2225 | # The following way of writing the cache mishandles newlines in values, |
| 2226 | # but we know of no workaround that is simple, portable, and efficient. |
| 2227 | # So, we kill variables containing newlines. |
| 2228 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2229 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2230 | ( |
| 2231 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 2232 | eval ac_val=\$$ac_var |
| 2233 | case $ac_val in #( |
| 2234 | *${as_nl}*) |
| 2235 | case $ac_var in #( |
| 2236 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2237 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2238 | esac |
| 2239 | case $ac_var in #( |
| 2240 | _ | IFS | as_nl) ;; #( |
| 2241 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2242 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2243 | esac ;; |
| 2244 | esac |
| 2245 | done |
| 2246 | |
| 2247 | (set) 2>&1 | |
| 2248 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 2249 | *${as_nl}ac_space=\ *) |
| 2250 | # `set' does not quote correctly, so add quotes: double-quote |
| 2251 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 2252 | sed -n \ |
| 2253 | "s/'/'\\\\''/g; |
| 2254 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 2255 | ;; #( |
| 2256 | *) |
| 2257 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2258 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2259 | ;; |
| 2260 | esac | |
| 2261 | sort |
| 2262 | ) | |
| 2263 | sed ' |
| 2264 | /^ac_cv_env_/b end |
| 2265 | t clear |
| 2266 | :clear |
| 2267 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 2268 | t end |
| 2269 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 2270 | :end' >>confcache |
| 2271 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 2272 | if test -w "$cache_file"; then |
| 2273 | if test "x$cache_file" != "x/dev/null"; then |
| 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 2275 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 2276 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 2277 | cat confcache >"$cache_file" |
| 2278 | else |
| 2279 | case $cache_file in #( |
| 2280 | */* | ?:*) |
| 2281 | mv -f confcache "$cache_file"$$ && |
| 2282 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 2283 | *) |
| 2284 | mv -f confcache "$cache_file" ;; |
| 2285 | esac |
| 2286 | fi |
| 2287 | fi |
| 2288 | else |
| 2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 2290 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 2291 | fi |
| 2292 | fi |
| 2293 | rm -f confcache |
| 2294 | |
| 2295 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2296 | # Let make expand exec_prefix. |
| 2297 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2298 | |
| 2299 | # Transform confdefs.h into DEFS. |
| 2300 | # Protect against shell expansion while executing Makefile rules. |
| 2301 | # Protect against Makefile macro expansion. |
| 2302 | # |
| 2303 | # If the first sed substitution is executed (which looks for macros that |
| 2304 | # take arguments), then branch to the quote section. Otherwise, |
| 2305 | # look for a macro that doesn't take arguments. |
| 2306 | ac_script=' |
| 2307 | :mline |
| 2308 | /\\$/{ |
| 2309 | N |
| 2310 | s,\\\n,, |
| 2311 | b mline |
| 2312 | } |
| 2313 | t clear |
| 2314 | :clear |
| 2315 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 2316 | t quote |
| 2317 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 2318 | t quote |
| 2319 | b any |
| 2320 | :quote |
| 2321 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 2322 | s/\[/\\&/g |
| 2323 | s/\]/\\&/g |
| 2324 | s/\$/$$/g |
| 2325 | H |
| 2326 | :any |
| 2327 | ${ |
| 2328 | g |
| 2329 | s/^\n// |
| 2330 | s/\n/ /g |
| 2331 | p |
| 2332 | } |
| 2333 | ' |
| 2334 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 2335 | |
| 2336 | |
| 2337 | ac_libobjs= |
| 2338 | ac_ltlibobjs= |
| 2339 | U= |
| 2340 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 2341 | # 1. Remove the extension, and $U if already installed. |
| 2342 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 2343 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 2344 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 2345 | # will be set to the directory where LIBOBJS objects are built. |
| 2346 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 2347 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 2348 | done |
| 2349 | LIBOBJS=$ac_libobjs |
| 2350 | |
| 2351 | LTLIBOBJS=$ac_ltlibobjs |
| 2352 | |
| 2353 | |
| 2354 | |
| 2355 | : "${CONFIG_STATUS=./config.status}" |
| 2356 | ac_write_fail=0 |
| 2357 | ac_clean_files_save=$ac_clean_files |
| 2358 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 2360 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 2361 | as_write_fail=0 |
| 2362 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 2363 | #! $SHELL |
| 2364 | # Generated by $as_me. |
| 2365 | # Run this file to recreate the current configuration. |
| 2366 | # Compiler output produced by configure, useful for debugging |
| 2367 | # configure, is in config.log if it exists. |
| 2368 | |
| 2369 | debug=false |
| 2370 | ac_cs_recheck=false |
| 2371 | ac_cs_silent=false |
| 2372 | |
| 2373 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 2374 | export SHELL |
| 2375 | _ASEOF |
| 2376 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 2377 | ## -------------------- ## |
| 2378 | ## M4sh Initialization. ## |
| 2379 | ## -------------------- ## |
| 2380 | |
| 2381 | # Be more Bourne compatible |
| 2382 | DUALCASE=1; export DUALCASE # for MKS sh |
| 2383 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 2384 | emulate sh |
| 2385 | NULLCMD=: |
| 2386 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 2387 | # is contrary to our usage. Disable this feature. |
| 2388 | alias -g '${1+"$@"}'='"$@"' |
| 2389 | setopt NO_GLOB_SUBST |
| 2390 | else |
| 2391 | case `(set -o) 2>/dev/null` in #( |
| 2392 | *posix*) : |
| 2393 | set -o posix ;; #( |
| 2394 | *) : |
| 2395 | ;; |
| 2396 | esac |
| 2397 | fi |
| 2398 | |
| 2399 | |
| 2400 | as_nl=' |
| 2401 | ' |
| 2402 | export as_nl |
| 2403 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 2404 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2405 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2406 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2407 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 2408 | # but without wasting forks for bash or zsh. |
| 2409 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 2410 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2411 | as_echo='print -r --' |
| 2412 | as_echo_n='print -rn --' |
| 2413 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2414 | as_echo='printf %s\n' |
| 2415 | as_echo_n='printf %s' |
| 2416 | else |
| 2417 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 2418 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 2419 | as_echo_n='/usr/ucb/echo -n' |
| 2420 | else |
| 2421 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 2422 | as_echo_n_body='eval |
| 2423 | arg=$1; |
| 2424 | case $arg in #( |
| 2425 | *"$as_nl"*) |
| 2426 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 2427 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 2428 | esac; |
| 2429 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 2430 | ' |
| 2431 | export as_echo_n_body |
| 2432 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 2433 | fi |
| 2434 | export as_echo_body |
| 2435 | as_echo='sh -c $as_echo_body as_echo' |
| 2436 | fi |
| 2437 | |
| 2438 | # The user is always right. |
| 2439 | if test "${PATH_SEPARATOR+set}" != set; then |
| 2440 | PATH_SEPARATOR=: |
| 2441 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 2442 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 2443 | PATH_SEPARATOR=';' |
| 2444 | } |
| 2445 | fi |
| 2446 | |
| 2447 | |
| 2448 | # IFS |
| 2449 | # We need space, tab and new line, in precisely that order. Quoting is |
| 2450 | # there to prevent editors from complaining about space-tab. |
| 2451 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 2452 | # splitting by setting IFS to empty value.) |
| 2453 | IFS=" "" $as_nl" |
| 2454 | |
| 2455 | # Find who we are. Look in the path if we contain no directory separator. |
| 2456 | as_myself= |
| 2457 | case $0 in #(( |
| 2458 | *[\\/]* ) as_myself=$0 ;; |
| 2459 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2460 | for as_dir in $PATH |
| 2461 | do |
| 2462 | IFS=$as_save_IFS |
| 2463 | test -z "$as_dir" && as_dir=. |
| 2464 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 2465 | done |
| 2466 | IFS=$as_save_IFS |
| 2467 | |
| 2468 | ;; |
| 2469 | esac |
| 2470 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 2471 | # in which case we are not to be found in the path. |
| 2472 | if test "x$as_myself" = x; then |
| 2473 | as_myself=$0 |
| 2474 | fi |
| 2475 | if test ! -f "$as_myself"; then |
| 2476 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 2477 | exit 1 |
| 2478 | fi |
| 2479 | |
| 2480 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 2481 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 2482 | # suppresses any "Segmentation fault" message there. '((' could |
| 2483 | # trigger a bug in pdksh 5.2.14. |
| 2484 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 2485 | do eval test x\${$as_var+set} = xset \ |
| 2486 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 2487 | done |
| 2488 | PS1='$ ' |
| 2489 | PS2='> ' |
| 2490 | PS4='+ ' |
| 2491 | |
| 2492 | # NLS nuisances. |
| 2493 | LC_ALL=C |
| 2494 | export LC_ALL |
| 2495 | LANGUAGE=C |
| 2496 | export LANGUAGE |
| 2497 | |
| 2498 | # CDPATH. |
| 2499 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 2500 | |
| 2501 | |
| 2502 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 2503 | # ---------------------------------------- |
| 2504 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 2505 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 2506 | # script with STATUS, using 1 if that was 0. |
| 2507 | as_fn_error () |
| 2508 | { |
| 2509 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 2510 | if test "$4"; then |
| 2511 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2512 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 2513 | fi |
| 2514 | $as_echo "$as_me: error: $2" >&2 |
| 2515 | as_fn_exit $as_status |
| 2516 | } # as_fn_error |
| 2517 | |
| 2518 | |
| 2519 | # as_fn_set_status STATUS |
| 2520 | # ----------------------- |
| 2521 | # Set $? to STATUS, without forking. |
| 2522 | as_fn_set_status () |
| 2523 | { |
| 2524 | return $1 |
| 2525 | } # as_fn_set_status |
| 2526 | |
| 2527 | # as_fn_exit STATUS |
| 2528 | # ----------------- |
| 2529 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 2530 | as_fn_exit () |
| 2531 | { |
| 2532 | set +e |
| 2533 | as_fn_set_status $1 |
| 2534 | exit $1 |
| 2535 | } # as_fn_exit |
| 2536 | |
| 2537 | # as_fn_unset VAR |
| 2538 | # --------------- |
| 2539 | # Portably unset VAR. |
| 2540 | as_fn_unset () |
| 2541 | { |
| 2542 | { eval $1=; unset $1;} |
| 2543 | } |
| 2544 | as_unset=as_fn_unset |
| 2545 | # as_fn_append VAR VALUE |
| 2546 | # ---------------------- |
| 2547 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 2548 | # advantage of any shell optimizations that allow amortized linear growth over |
| 2549 | # repeated appends, instead of the typical quadratic growth present in naive |
| 2550 | # implementations. |
| 2551 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 2552 | eval 'as_fn_append () |
| 2553 | { |
| 2554 | eval $1+=\$2 |
| 2555 | }' |
| 2556 | else |
| 2557 | as_fn_append () |
| 2558 | { |
| 2559 | eval $1=\$$1\$2 |
| 2560 | } |
| 2561 | fi # as_fn_append |
| 2562 | |
| 2563 | # as_fn_arith ARG... |
| 2564 | # ------------------ |
| 2565 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 2566 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 2567 | # must be portable across $(()) and expr. |
| 2568 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 2569 | eval 'as_fn_arith () |
| 2570 | { |
| 2571 | as_val=$(( $* )) |
| 2572 | }' |
| 2573 | else |
| 2574 | as_fn_arith () |
| 2575 | { |
| 2576 | as_val=`expr "$@" || test $? -eq 1` |
| 2577 | } |
| 2578 | fi # as_fn_arith |
| 2579 | |
| 2580 | |
| 2581 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 2582 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 2583 | as_expr=expr |
| 2584 | else |
| 2585 | as_expr=false |
| 2586 | fi |
| 2587 | |
| 2588 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 2589 | as_basename=basename |
| 2590 | else |
| 2591 | as_basename=false |
| 2592 | fi |
| 2593 | |
| 2594 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 2595 | as_dirname=dirname |
| 2596 | else |
| 2597 | as_dirname=false |
| 2598 | fi |
| 2599 | |
| 2600 | as_me=`$as_basename -- "$0" || |
| 2601 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 2602 | X"$0" : 'X\(//\)$' \| \ |
| 2603 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 2604 | $as_echo X/"$0" | |
| 2605 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 2606 | s//\1/ |
| 2607 | q |
| 2608 | } |
| 2609 | /^X\/\(\/\/\)$/{ |
| 2610 | s//\1/ |
| 2611 | q |
| 2612 | } |
| 2613 | /^X\/\(\/\).*/{ |
| 2614 | s//\1/ |
| 2615 | q |
| 2616 | } |
| 2617 | s/.*/./; q'` |
| 2618 | |
| 2619 | # Avoid depending upon Character Ranges. |
| 2620 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 2621 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 2622 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 2623 | as_cr_digits='0123456789' |
| 2624 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 2625 | |
| 2626 | ECHO_C= ECHO_N= ECHO_T= |
| 2627 | case `echo -n x` in #((((( |
| 2628 | -n*) |
| 2629 | case `echo 'xy\c'` in |
| 2630 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 2631 | xy) ECHO_C='\c';; |
| 2632 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 2633 | ECHO_T=' ';; |
| 2634 | esac;; |
| 2635 | *) |
| 2636 | ECHO_N='-n';; |
| 2637 | esac |
| 2638 | |
| 2639 | rm -f conf$$ conf$$.exe conf$$.file |
| 2640 | if test -d conf$$.dir; then |
| 2641 | rm -f conf$$.dir/conf$$.file |
| 2642 | else |
| 2643 | rm -f conf$$.dir |
| 2644 | mkdir conf$$.dir 2>/dev/null |
| 2645 | fi |
| 2646 | if (echo >conf$$.file) 2>/dev/null; then |
| 2647 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 2648 | as_ln_s='ln -s' |
| 2649 | # ... but there are two gotchas: |
| 2650 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 2651 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 2652 | # In both cases, we have to default to `cp -pR'. |
| 2653 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 2654 | as_ln_s='cp -pR' |
| 2655 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 2656 | as_ln_s=ln |
| 2657 | else |
| 2658 | as_ln_s='cp -pR' |
| 2659 | fi |
| 2660 | else |
| 2661 | as_ln_s='cp -pR' |
| 2662 | fi |
| 2663 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 2664 | rmdir conf$$.dir 2>/dev/null |
| 2665 | |
| 2666 | |
| 2667 | # as_fn_mkdir_p |
| 2668 | # ------------- |
| 2669 | # Create "$as_dir" as a directory, including parents if necessary. |
| 2670 | as_fn_mkdir_p () |
| 2671 | { |
| 2672 | |
| 2673 | case $as_dir in #( |
| 2674 | -*) as_dir=./$as_dir;; |
| 2675 | esac |
| 2676 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 2677 | as_dirs= |
| 2678 | while :; do |
| 2679 | case $as_dir in #( |
| 2680 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 2681 | *) as_qdir=$as_dir;; |
| 2682 | esac |
| 2683 | as_dirs="'$as_qdir' $as_dirs" |
| 2684 | as_dir=`$as_dirname -- "$as_dir" || |
| 2685 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 2686 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 2687 | X"$as_dir" : 'X\(//\)$' \| \ |
| 2688 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 2689 | $as_echo X"$as_dir" | |
| 2690 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 2691 | s//\1/ |
| 2692 | q |
| 2693 | } |
| 2694 | /^X\(\/\/\)[^/].*/{ |
| 2695 | s//\1/ |
| 2696 | q |
| 2697 | } |
| 2698 | /^X\(\/\/\)$/{ |
| 2699 | s//\1/ |
| 2700 | q |
| 2701 | } |
| 2702 | /^X\(\/\).*/{ |
| 2703 | s//\1/ |
| 2704 | q |
| 2705 | } |
| 2706 | s/.*/./; q'` |
| 2707 | test -d "$as_dir" && break |
| 2708 | done |
| 2709 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 2710 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 2711 | |
| 2712 | |
| 2713 | } # as_fn_mkdir_p |
| 2714 | if mkdir -p . 2>/dev/null; then |
| 2715 | as_mkdir_p='mkdir -p "$as_dir"' |
| 2716 | else |
| 2717 | test -d ./-p && rmdir ./-p |
| 2718 | as_mkdir_p=false |
| 2719 | fi |
| 2720 | |
| 2721 | |
| 2722 | # as_fn_executable_p FILE |
| 2723 | # ----------------------- |
| 2724 | # Test if FILE is an executable regular file. |
| 2725 | as_fn_executable_p () |
| 2726 | { |
| 2727 | test -f "$1" && test -x "$1" |
| 2728 | } # as_fn_executable_p |
| 2729 | as_test_x='test -x' |
| 2730 | as_executable_p=as_fn_executable_p |
| 2731 | |
| 2732 | # Sed expression to map a string onto a valid CPP name. |
| 2733 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 2734 | |
| 2735 | # Sed expression to map a string onto a valid variable name. |
| 2736 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 2737 | |
| 2738 | |
| 2739 | exec 6>&1 |
| 2740 | ## ----------------------------------- ## |
| 2741 | ## Main body of $CONFIG_STATUS script. ## |
| 2742 | ## ----------------------------------- ## |
| 2743 | _ASEOF |
| 2744 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 2745 | |
| 2746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 2747 | # Save the log message, to keep $0 and so on meaningful, and to |
| 2748 | # report actual input values of CONFIG_FILES etc. instead of their |
| 2749 | # values after options handling. |
| 2750 | ac_log=" |
| 2751 | This file was extended by open_pdks $as_me 1.0, which was |
| 2752 | generated by GNU Autoconf 2.69. Invocation command line was |
| 2753 | |
| 2754 | CONFIG_FILES = $CONFIG_FILES |
| 2755 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 2756 | CONFIG_LINKS = $CONFIG_LINKS |
| 2757 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 2758 | $ $0 $@ |
| 2759 | |
| 2760 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2761 | " |
| 2762 | |
| 2763 | _ACEOF |
| 2764 | |
| 2765 | case $ac_config_files in *" |
| 2766 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 2767 | esac |
| 2768 | |
| 2769 | |
| 2770 | |
| 2771 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 2772 | # Files that config.status was made for. |
| 2773 | config_files="$ac_config_files" |
| 2774 | |
| 2775 | _ACEOF |
| 2776 | |
| 2777 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 2778 | ac_cs_usage="\ |
| 2779 | \`$as_me' instantiates files and other configuration actions |
| 2780 | from templates according to the current configuration. Unless the files |
| 2781 | and actions are specified as TAGs, all are instantiated by default. |
| 2782 | |
| 2783 | Usage: $0 [OPTION]... [TAG]... |
| 2784 | |
| 2785 | -h, --help print this help, then exit |
| 2786 | -V, --version print version number and configuration settings, then exit |
| 2787 | --config print configuration, then exit |
| 2788 | -q, --quiet, --silent |
| 2789 | do not print progress messages |
| 2790 | -d, --debug don't remove temporary files |
| 2791 | --recheck update $as_me by reconfiguring in the same conditions |
| 2792 | --file=FILE[:TEMPLATE] |
| 2793 | instantiate the configuration file FILE |
| 2794 | |
| 2795 | Configuration files: |
| 2796 | $config_files |
| 2797 | |
| 2798 | Report bugs to <github.com/RTimothyEdwards/open_pdks>." |
| 2799 | |
| 2800 | _ACEOF |
| 2801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 2802 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 2803 | ac_cs_version="\\ |
| 2804 | open_pdks config.status 1.0 |
| 2805 | configured by $0, generated by GNU Autoconf 2.69, |
| 2806 | with options \\"\$ac_cs_config\\" |
| 2807 | |
| 2808 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 2809 | This config.status script is free software; the Free Software Foundation |
| 2810 | gives unlimited permission to copy, distribute and modify it." |
| 2811 | |
| 2812 | ac_pwd='$ac_pwd' |
| 2813 | srcdir='$srcdir' |
| 2814 | test -n "\$AWK" || AWK=awk |
| 2815 | _ACEOF |
| 2816 | |
| 2817 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 2818 | # The default lists apply if the user does not specify any file. |
| 2819 | ac_need_defaults=: |
| 2820 | while test $# != 0 |
| 2821 | do |
| 2822 | case $1 in |
| 2823 | --*=?*) |
| 2824 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 2825 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 2826 | ac_shift=: |
| 2827 | ;; |
| 2828 | --*=) |
| 2829 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 2830 | ac_optarg= |
| 2831 | ac_shift=: |
| 2832 | ;; |
| 2833 | *) |
| 2834 | ac_option=$1 |
| 2835 | ac_optarg=$2 |
| 2836 | ac_shift=shift |
| 2837 | ;; |
| 2838 | esac |
| 2839 | |
| 2840 | case $ac_option in |
| 2841 | # Handling of the options. |
| 2842 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2843 | ac_cs_recheck=: ;; |
| 2844 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 2845 | $as_echo "$ac_cs_version"; exit ;; |
| 2846 | --config | --confi | --conf | --con | --co | --c ) |
| 2847 | $as_echo "$ac_cs_config"; exit ;; |
| 2848 | --debug | --debu | --deb | --de | --d | -d ) |
| 2849 | debug=: ;; |
| 2850 | --file | --fil | --fi | --f ) |
| 2851 | $ac_shift |
| 2852 | case $ac_optarg in |
| 2853 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2854 | '') as_fn_error $? "missing file argument" ;; |
| 2855 | esac |
| 2856 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 2857 | ac_need_defaults=false;; |
| 2858 | --he | --h | --help | --hel | -h ) |
| 2859 | $as_echo "$ac_cs_usage"; exit ;; |
| 2860 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2861 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 2862 | ac_cs_silent=: ;; |
| 2863 | |
| 2864 | # This is an error. |
| 2865 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 2866 | Try \`$0 --help' for more information." ;; |
| 2867 | |
| 2868 | *) as_fn_append ac_config_targets " $1" |
| 2869 | ac_need_defaults=false ;; |
| 2870 | |
| 2871 | esac |
| 2872 | shift |
| 2873 | done |
| 2874 | |
| 2875 | ac_configure_extra_args= |
| 2876 | |
| 2877 | if $ac_cs_silent; then |
| 2878 | exec 6>/dev/null |
| 2879 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 2880 | fi |
| 2881 | |
| 2882 | _ACEOF |
| 2883 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 2884 | if \$ac_cs_recheck; then |
| 2885 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 2886 | shift |
| 2887 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 2888 | CONFIG_SHELL='$SHELL' |
| 2889 | export CONFIG_SHELL |
| 2890 | exec "\$@" |
| 2891 | fi |
| 2892 | |
| 2893 | _ACEOF |
| 2894 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 2895 | exec 5>>config.log |
| 2896 | { |
| 2897 | echo |
| 2898 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 2899 | ## Running $as_me. ## |
| 2900 | _ASBOX |
| 2901 | $as_echo "$ac_log" |
| 2902 | } >&5 |
| 2903 | |
| 2904 | _ACEOF |
| 2905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 2906 | _ACEOF |
| 2907 | |
| 2908 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 2909 | |
| 2910 | # Handling of arguments. |
| 2911 | for ac_config_target in $ac_config_targets |
| 2912 | do |
| 2913 | case $ac_config_target in |
| 2914 | "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; |
| 2915 | |
| 2916 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 2917 | esac |
| 2918 | done |
| 2919 | |
| 2920 | |
| 2921 | # If the user did not use the arguments to specify the items to instantiate, |
| 2922 | # then the envvar interface is used. Set only those that are not. |
| 2923 | # We use the long form for the default assignment because of an extremely |
| 2924 | # bizarre bug on SunOS 4.1.3. |
| 2925 | if $ac_need_defaults; then |
| 2926 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 2927 | fi |
| 2928 | |
| 2929 | # Have a temporary directory for convenience. Make it in the build tree |
| 2930 | # simply because there is no reason against having it here, and in addition, |
| 2931 | # creating and moving files from /tmp can sometimes cause problems. |
| 2932 | # Hook for its removal unless debugging. |
| 2933 | # Note that there is a small window in which the directory will not be cleaned: |
| 2934 | # after its creation but before its name has been assigned to `$tmp'. |
| 2935 | $debug || |
| 2936 | { |
| 2937 | tmp= ac_tmp= |
| 2938 | trap 'exit_status=$? |
| 2939 | : "${ac_tmp:=$tmp}" |
| 2940 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 2941 | ' 0 |
| 2942 | trap 'as_fn_exit 1' 1 2 13 15 |
| 2943 | } |
| 2944 | # Create a (secure) tmp directory for tmp files. |
| 2945 | |
| 2946 | { |
| 2947 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 2948 | test -d "$tmp" |
| 2949 | } || |
| 2950 | { |
| 2951 | tmp=./conf$$-$RANDOM |
| 2952 | (umask 077 && mkdir "$tmp") |
| 2953 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 2954 | ac_tmp=$tmp |
| 2955 | |
| 2956 | # Set up the scripts for CONFIG_FILES section. |
| 2957 | # No need to generate them if there are no CONFIG_FILES. |
| 2958 | # This happens for instance with `./config.status config.h'. |
| 2959 | if test -n "$CONFIG_FILES"; then |
| 2960 | |
| 2961 | |
| 2962 | ac_cr=`echo X | tr X '\015'` |
| 2963 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 2964 | # But we know of no other shell where ac_cr would be empty at this |
| 2965 | # point, so we can use a bashism as a fallback. |
| 2966 | if test "x$ac_cr" = x; then |
| 2967 | eval ac_cr=\$\'\\r\' |
| 2968 | fi |
| 2969 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 2970 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 2971 | ac_cs_awk_cr='\\r' |
| 2972 | else |
| 2973 | ac_cs_awk_cr=$ac_cr |
| 2974 | fi |
| 2975 | |
| 2976 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 2977 | _ACEOF |
| 2978 | |
| 2979 | |
| 2980 | { |
| 2981 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 2982 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 2983 | echo "_ACEOF" |
| 2984 | } >conf$$subs.sh || |
| 2985 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 2986 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 2987 | ac_delim='%!_!# ' |
| 2988 | for ac_last_try in false false false false false :; do |
| 2989 | . ./conf$$subs.sh || |
| 2990 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 2991 | |
| 2992 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 2993 | if test $ac_delim_n = $ac_delim_num; then |
| 2994 | break |
| 2995 | elif $ac_last_try; then |
| 2996 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 2997 | else |
| 2998 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 2999 | fi |
| 3000 | done |
| 3001 | rm -f conf$$subs.sh |
| 3002 | |
| 3003 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3004 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 3005 | _ACEOF |
| 3006 | sed -n ' |
| 3007 | h |
| 3008 | s/^/S["/; s/!.*/"]=/ |
| 3009 | p |
| 3010 | g |
| 3011 | s/^[^!]*!// |
| 3012 | :repl |
| 3013 | t repl |
| 3014 | s/'"$ac_delim"'$// |
| 3015 | t delim |
| 3016 | :nl |
| 3017 | h |
| 3018 | s/\(.\{148\}\)..*/\1/ |
| 3019 | t more1 |
| 3020 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 3021 | p |
| 3022 | n |
| 3023 | b repl |
| 3024 | :more1 |
| 3025 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3026 | p |
| 3027 | g |
| 3028 | s/.\{148\}// |
| 3029 | t nl |
| 3030 | :delim |
| 3031 | h |
| 3032 | s/\(.\{148\}\)..*/\1/ |
| 3033 | t more2 |
| 3034 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 3035 | p |
| 3036 | b |
| 3037 | :more2 |
| 3038 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3039 | p |
| 3040 | g |
| 3041 | s/.\{148\}// |
| 3042 | t delim |
| 3043 | ' <conf$$subs.awk | sed ' |
| 3044 | /^[^""]/{ |
| 3045 | N |
| 3046 | s/\n// |
| 3047 | } |
| 3048 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 3049 | rm -f conf$$subs.awk |
| 3050 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3051 | _ACAWK |
| 3052 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 3053 | for (key in S) S_is_set[key] = 1 |
| 3054 | FS = "" |
| 3055 | |
| 3056 | } |
| 3057 | { |
| 3058 | line = $ 0 |
| 3059 | nfields = split(line, field, "@") |
| 3060 | substed = 0 |
| 3061 | len = length(field[1]) |
| 3062 | for (i = 2; i < nfields; i++) { |
| 3063 | key = field[i] |
| 3064 | keylen = length(key) |
| 3065 | if (S_is_set[key]) { |
| 3066 | value = S[key] |
| 3067 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 3068 | len += length(value) + length(field[++i]) |
| 3069 | substed = 1 |
| 3070 | } else |
| 3071 | len += 1 + keylen |
| 3072 | } |
| 3073 | |
| 3074 | print line |
| 3075 | } |
| 3076 | |
| 3077 | _ACAWK |
| 3078 | _ACEOF |
| 3079 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3080 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 3081 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 3082 | else |
| 3083 | cat |
| 3084 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 3085 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 3086 | _ACEOF |
| 3087 | |
| 3088 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 3089 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 3090 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 3091 | # (actually we leave an empty line to preserve line numbers). |
| 3092 | if test "x$srcdir" = x.; then |
| 3093 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 3094 | h |
| 3095 | s/// |
| 3096 | s/^/:/ |
| 3097 | s/[ ]*$/:/ |
| 3098 | s/:\$(srcdir):/:/g |
| 3099 | s/:\${srcdir}:/:/g |
| 3100 | s/:@srcdir@:/:/g |
| 3101 | s/^:*// |
| 3102 | s/:*$// |
| 3103 | x |
| 3104 | s/\(=[ ]*\).*/\1/ |
| 3105 | G |
| 3106 | s/\n// |
| 3107 | s/^[^=]*=[ ]*$// |
| 3108 | }' |
| 3109 | fi |
| 3110 | |
| 3111 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3112 | fi # test -n "$CONFIG_FILES" |
| 3113 | |
| 3114 | |
| 3115 | eval set X " :F $CONFIG_FILES " |
| 3116 | shift |
| 3117 | for ac_tag |
| 3118 | do |
| 3119 | case $ac_tag in |
| 3120 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 3121 | esac |
| 3122 | case $ac_mode$ac_tag in |
| 3123 | :[FHL]*:*);; |
| 3124 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 3125 | :[FH]-) ac_tag=-:-;; |
| 3126 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 3127 | esac |
| 3128 | ac_save_IFS=$IFS |
| 3129 | IFS=: |
| 3130 | set x $ac_tag |
| 3131 | IFS=$ac_save_IFS |
| 3132 | shift |
| 3133 | ac_file=$1 |
| 3134 | shift |
| 3135 | |
| 3136 | case $ac_mode in |
| 3137 | :L) ac_source=$1;; |
| 3138 | :[FH]) |
| 3139 | ac_file_inputs= |
| 3140 | for ac_f |
| 3141 | do |
| 3142 | case $ac_f in |
| 3143 | -) ac_f="$ac_tmp/stdin";; |
| 3144 | *) # Look for the file first in the build tree, then in the source tree |
| 3145 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 3146 | # because $ac_f cannot contain `:'. |
| 3147 | test -f "$ac_f" || |
| 3148 | case $ac_f in |
| 3149 | [\\/$]*) false;; |
| 3150 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 3151 | esac || |
| 3152 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 3153 | esac |
| 3154 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 3155 | as_fn_append ac_file_inputs " '$ac_f'" |
| 3156 | done |
| 3157 | |
| 3158 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 3159 | # use $as_me), people would be surprised to read: |
| 3160 | # /* config.h. Generated by config.status. */ |
| 3161 | configure_input='Generated from '` |
| 3162 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 3163 | `' by configure.' |
| 3164 | if test x"$ac_file" != x-; then |
| 3165 | configure_input="$ac_file. $configure_input" |
| 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 3167 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 3168 | fi |
| 3169 | # Neutralize special characters interpreted by sed in replacement strings. |
| 3170 | case $configure_input in #( |
| 3171 | *\&* | *\|* | *\\* ) |
| 3172 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 3173 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 3174 | *) ac_sed_conf_input=$configure_input;; |
| 3175 | esac |
| 3176 | |
| 3177 | case $ac_tag in |
| 3178 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 3179 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 3180 | esac |
| 3181 | ;; |
| 3182 | esac |
| 3183 | |
| 3184 | ac_dir=`$as_dirname -- "$ac_file" || |
| 3185 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3186 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 3187 | X"$ac_file" : 'X\(//\)$' \| \ |
| 3188 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 3189 | $as_echo X"$ac_file" | |
| 3190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3191 | s//\1/ |
| 3192 | q |
| 3193 | } |
| 3194 | /^X\(\/\/\)[^/].*/{ |
| 3195 | s//\1/ |
| 3196 | q |
| 3197 | } |
| 3198 | /^X\(\/\/\)$/{ |
| 3199 | s//\1/ |
| 3200 | q |
| 3201 | } |
| 3202 | /^X\(\/\).*/{ |
| 3203 | s//\1/ |
| 3204 | q |
| 3205 | } |
| 3206 | s/.*/./; q'` |
| 3207 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 3208 | ac_builddir=. |
| 3209 | |
| 3210 | case "$ac_dir" in |
| 3211 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3212 | *) |
| 3213 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 3214 | # A ".." for each directory in $ac_dir_suffix. |
| 3215 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 3216 | case $ac_top_builddir_sub in |
| 3217 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3218 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 3219 | esac ;; |
| 3220 | esac |
| 3221 | ac_abs_top_builddir=$ac_pwd |
| 3222 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 3223 | # for backward compatibility: |
| 3224 | ac_top_builddir=$ac_top_build_prefix |
| 3225 | |
| 3226 | case $srcdir in |
| 3227 | .) # We are building in place. |
| 3228 | ac_srcdir=. |
| 3229 | ac_top_srcdir=$ac_top_builddir_sub |
| 3230 | ac_abs_top_srcdir=$ac_pwd ;; |
| 3231 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 3232 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 3233 | ac_top_srcdir=$srcdir |
| 3234 | ac_abs_top_srcdir=$srcdir ;; |
| 3235 | *) # Relative name. |
| 3236 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 3237 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 3238 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 3239 | esac |
| 3240 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 3241 | |
| 3242 | |
| 3243 | case $ac_mode in |
| 3244 | :F) |
| 3245 | # |
| 3246 | # CONFIG_FILE |
| 3247 | # |
| 3248 | |
| 3249 | _ACEOF |
| 3250 | |
| 3251 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3252 | # If the template does not know about datarootdir, expand it. |
| 3253 | # FIXME: This hack should be removed a few years after 2.60. |
| 3254 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 3255 | ac_sed_dataroot=' |
| 3256 | /datarootdir/ { |
| 3257 | p |
| 3258 | q |
| 3259 | } |
| 3260 | /@datadir@/p |
| 3261 | /@docdir@/p |
| 3262 | /@infodir@/p |
| 3263 | /@localedir@/p |
| 3264 | /@mandir@/p' |
| 3265 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 3266 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 3267 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 3269 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 3270 | _ACEOF |
| 3271 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3272 | ac_datarootdir_hack=' |
| 3273 | s&@datadir@&$datadir&g |
| 3274 | s&@docdir@&$docdir&g |
| 3275 | s&@infodir@&$infodir&g |
| 3276 | s&@localedir@&$localedir&g |
| 3277 | s&@mandir@&$mandir&g |
| 3278 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 3279 | esac |
| 3280 | _ACEOF |
| 3281 | |
| 3282 | # Neutralize VPATH when `$srcdir' = `.'. |
| 3283 | # Shell code in configure.ac might set extrasub. |
| 3284 | # FIXME: do we really want to maintain this feature? |
| 3285 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3286 | ac_sed_extra="$ac_vpsub |
| 3287 | $extrasub |
| 3288 | _ACEOF |
| 3289 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3290 | :t |
| 3291 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 3292 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 3293 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 3294 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 3295 | s&@srcdir@&$ac_srcdir&;t t |
| 3296 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 3297 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 3298 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 3299 | s&@builddir@&$ac_builddir&;t t |
| 3300 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 3301 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 3302 | $ac_datarootdir_hack |
| 3303 | " |
| 3304 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 3305 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 3306 | |
| 3307 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 3308 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 3309 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 3310 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 3312 | which seems to be undefined. Please make sure it is defined" >&5 |
| 3313 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 3314 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 3315 | |
| 3316 | rm -f "$ac_tmp/stdin" |
| 3317 | case $ac_file in |
| 3318 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 3319 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 3320 | esac \ |
| 3321 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 3322 | ;; |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | esac |
| 3327 | |
| 3328 | done # for ac_tag |
| 3329 | |
| 3330 | |
| 3331 | as_fn_exit 0 |
| 3332 | _ACEOF |
| 3333 | ac_clean_files=$ac_clean_files_save |
| 3334 | |
| 3335 | test $ac_write_fail = 0 || |
| 3336 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 3337 | |
| 3338 | |
| 3339 | # configure is writing to config.log, and then calls config.status. |
| 3340 | # config.status does its own redirection, appending to config.log. |
| 3341 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 3342 | # by configure, so config.status won't be able to write to it; its |
| 3343 | # output is simply discarded. So we exec the FD to /dev/null, |
| 3344 | # effectively closing config.log, so it can be properly (re)opened and |
| 3345 | # appended to by config.status. When coming back to configure, we |
| 3346 | # need to make the FD available again. |
| 3347 | if test "$no_create" != yes; then |
| 3348 | ac_cs_success=: |
| 3349 | ac_config_status_args= |
| 3350 | test "$silent" = yes && |
| 3351 | ac_config_status_args="$ac_config_status_args --quiet" |
| 3352 | exec 5>/dev/null |
| 3353 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 3354 | exec 5>>config.log |
| 3355 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 3356 | # would make configure fail if this is the last instruction. |
| 3357 | $ac_cs_success || as_fn_exit 1 |
| 3358 | fi |
| 3359 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 3361 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 3362 | fi |
| 3363 | |
| 3364 | |
| 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5 |
| 3366 | $as_echo "Build configured successfully" >&6; } |